安装编译环境我知道是apt-get install build-essential
但我是用硬盘安装的ubuntu,所以没有光盘,那应该怎么装呢?
在校园网,也没法不能上网
怎么能从安装镜像文件中来装这个编译环境呢
忍不住想问
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
-
- 帖子: 3
- 注册时间: 2007-11-21 16:46
- zhuqin_83
- 帖子: 10606
- 注册时间: 2006-05-13 4:02
- 联系:
- 用戶無效
- 帖子: 461
- 注册时间: 2007-10-23 21:11
- 来自: 香港
有时候,我们拿到的光盘映像文件为 .bin/.cue 格式,如果要在 Ubuntu 中使用,那么可以将其转换为 .iso 格式。在 Ubuntu 中有一个命令行的程序 BinChunker 能够完成该任务。 在终端中输入 sudo apt-get install bchunk 指令可以立即安装 BinChunker 程序。
假如我们要把 image.bin/image.cue 转换为 image.iso,则使用下列命令: bchunk image.bin image.cue image.iso 关于 bchunk 更多选项的说明,可以使用 man bchunk 查询。
然后使用mount和umount就可以实现虚拟光驱的功能
mount -o loop .iso /media/vcdrom
Using loop Kernel Module
First you need to make the directory to put the ISO into using the following command
sudo mkdir /media/isoimage
Now you need to add the loop module to your kernel.
What kernel loop module does?
I want to give brief introduction to kernel loop module.Using the module loop it is possible to mount a filesystem file. squashfs is a “loop” with (de)compression (Compressed Loopback Device) and it is possible to mount a compressed filesystem like a block device and seamlessly decompress its data while accessing it.
Use the following command to load loop module
sudo modprobe loop
Mount ISO Image
If you want to mount you need to use the following command
sudo mount debianetch.iso /media/isoimage/ -t iso9660 -o loop
支持中文加个参数iocharset=utf8
sudo mount -t iso9660 -o iocharset=utf8,loop debianetch.iso /media/isoimage/
In the above command you can replace debianetch.iso to your own iso image.
Now you should have your iso file mounted, and accessible from your desktop.
Unmount ISO Image
Unmount ISO Image Using the following command
sudo umount /media/isoimage
假如我们要把 image.bin/image.cue 转换为 image.iso,则使用下列命令: bchunk image.bin image.cue image.iso 关于 bchunk 更多选项的说明,可以使用 man bchunk 查询。
然后使用mount和umount就可以实现虚拟光驱的功能
mount -o loop .iso /media/vcdrom
Using loop Kernel Module
First you need to make the directory to put the ISO into using the following command
sudo mkdir /media/isoimage
Now you need to add the loop module to your kernel.
What kernel loop module does?
I want to give brief introduction to kernel loop module.Using the module loop it is possible to mount a filesystem file. squashfs is a “loop” with (de)compression (Compressed Loopback Device) and it is possible to mount a compressed filesystem like a block device and seamlessly decompress its data while accessing it.
Use the following command to load loop module
sudo modprobe loop
Mount ISO Image
If you want to mount you need to use the following command
sudo mount debianetch.iso /media/isoimage/ -t iso9660 -o loop
支持中文加个参数iocharset=utf8
sudo mount -t iso9660 -o iocharset=utf8,loop debianetch.iso /media/isoimage/
In the above command you can replace debianetch.iso to your own iso image.
Now you should have your iso file mounted, and accessible from your desktop.
Unmount ISO Image
Unmount ISO Image Using the following command
sudo umount /media/isoimage