鉴于之前在Ubuntu上面的种种问题,决定尝试下Gentoo,正好最近学习linux内核,这个可以作为一次实践。
关于Ubuntu的问题见:http://blog.csdn.net/zhgn2/article/details/7466597个
因为之前有专门的一个启动分区(安装Grub4Dos)用来管理我机器上的若干个Linux和Windows系统,这步比较简单。
首先下载minimal ISO: amd64
把下载来的ISO放到一个Fat分区,因为之前就有一个专门的Fat分区存放各种LInux的ISO这步也简单。为什么需要fat分区下面再说。
在Grub4Dos的menu.lst文件中添加“安装gentoo”
timeout 9000 title Windows 7 root (hd0,0) chainloader +1 boot title WinPE boot title Gentoo 64bit root (hd0,7) chainloader +1 boot title Install ubuntu find --set-root /ubuntu-9.10-amd64.iso map /ubuntu-9.10-amd64.iso (hd32) map --hook kernel (hd32)/casper/vmlinuz boot=casper iso-scan/filename=/ubuntu-9.10-amd64.iso initrd (hd32)/casper/initrd.lz boot title Install ubuntu 11.10 find --set-root /ubuntu-11.10-amd64.iso map /ubuntu-11.10-amd64.iso (hd32) map --hook kernel (hd32)/casper/vmlinuz boot=casper iso-scan/filename=/ubuntu-11.10-amd64.iso initrd (hd32)/casper/initrd.lz boot title Install ubuntu 12.04 find --set-root /precise-desktop-amd64.iso map /precise-desktop-amd64.iso (hd32) map --hook kernel (hd32)/casper/vmlinuz boot=casper iso-scan/filename=/precise-desktop-amd64.iso initrd (hd32)/casper/initrd.lz boot title Install ubuntu 12.04 mem find --set-root /precise-desktop-amd64.iso map /precise-desktop-amd64.iso (hd32) map --hook chainloader (hd32) +1 rootnoverify (hd32) map --harddrives=1 boot title Install Gentoo find --set-root /Gentoo-amd64-minimal-20120223.iso map /Gentoo-amd64-minimal-20120223.iso (hd32) map --hook chainloader (hd32) +1 rootnoverify (hd32) map --harddrives=1 boot title Reboot reboot title Shutdown halt
以上的目的其实主要是实现不使用光驱,只用ISO完成gentoo安装。但由于gentoo对硬盘安装的支持不够好,所以还需要把iso的内容解压到任意分区的根目录下才行。
下载stage3:amd64
注意不要放到解压iso的那个分区,因为启动gentoo livecd后那个分区会自动挂载,但是我看不到那个挂载的目录,应该是chroot引起的。
如果你在虚拟机上安装的话,就不需要这样了。
PS:发现命令行下的浏览器异常的快,但是不能显示图片。用来装系统还是够用的。不能显示中文。
安装好后,上面的“Gentoo 64bit”就可以用来启动到gentoo系统了。
title Gentoo Linux 3.2.12 root (hd0,7) kernel /boot/kernel-3.2.12-gentoo root=/dev/sda8 video=uvesafb:1280x1024-32,mtrr:3,ywrap initrd /boot/initramfs-genkernel-x86_64-3.2.12-gentoo
参考文档:http://en.gentoo-wiki.com/wiki/Framebuffer
这里提供了一些其他的选择:http://forums.gentoo.org/viewtopic-t-740531-start-0.html
忘记了emerge的时候出现的什么问题了,不过都不难,直接links开搜索引擎就都搞定了。这里提一下,由于google在天朝偶尔存在打不开的情况,百度有都是中文结果。所以在控制台下可以使用www.yandex.com。一个德国的搜索引擎。
ZGV,一个可以使用FrameBuffer的图片浏览器
gentoo提供了详尽的文档来配置xorg和nvid、ati和intell的显卡。http://www.gentoo.org/doc/en/?catid=desktop
转完的效果显示,gentoo+kde比KUbuntu快了N多。
http://sourceforge.net/apps/mediawiki/kuroo/index.php?title=Main_Page
目前来看Gentoo并没有对我的使用造成很严重的问题,而且这些问题应该都是可以解决的。所以不出意外的话,很长的时间内我都将继续使用它用来工作和学习。不知道KDE4.9是不是可以带来什么惊喜,Qt5也一样。
通过Gentoo的安装,第一次尝试了内核编译,发现也不是很复杂,只是很多内核的选项还不知道是干什么用的。
至此Gentoo的学习暂时告一段落,太耗时间了,基本上3天时间。可能我笨,呵呵。剩下的留待使用中遇到了问题再解决好了,毕竟操作系统也是一个工具而已,是用来帮助人使用电脑的,太过于沉迷于工具本身,我感觉有点浪费时间,更好的利用工具来加快学习和工作的进度才是最主要的。
END