日本免费全黄少妇一区二区三区-高清无码一区二区三区四区-欧美中文字幕日韩在线观看-国产福利诱惑在线网站-国产中文字幕一区在线-亚洲欧美精品日韩一区-久久国产精品国产精品国产-国产精久久久久久一区二区三区-欧美亚洲国产精品久久久久

在VMware上安裝Gentoo 2004.1筆記( 三 )


--------------------------------------------------------------------------------
# cp /etc/resolv.conf /mnt/gentoo/etc/resolv.conf
--------------------------------------------------------------------------------
Chroot 進入新的編譯環(huán)境

一、chroot
--------------------------------------------------------------------------------
# chroot /mnt/gentoo /bin/bash
# env-update
# source /etc/profile
--------------------------------------------------------------------------------
Note : 如果 env-update 提示出錯,看一下 /etc/make.conf 是不是有錯,剛才,mirrorselect 會加入鏡像站點地址,但是那一行上面會多出一行多余的提示信息,注釋掉或刪掉都可以 。

二、更新 Portage
--------------------------------------------------------------------------------
# emerge sync
{如果不能完成,就用下面的命令
# emerge-webrsync }
--------------------------------------------------------------------------------

三、USE設(shè)置
--------------------------------------------------------------------------------
# nano -w /etc/make.conf
--------------------------------------------------------------------------------
加入:
USE="-gtk -gnome qt kde alsa"

四、下載必須的源碼
--------------------------------------------------------------------------------
# cd /usr/portage
# scripts/bootstrap.sh -f
--------------------------------------------------------------------------------
編譯它
--------------------------------------------------------------------------------
# scripts/bootstrap.sh
--------------------------------------------------------------------------------
如果有改變過 預(yù)置的環(huán)境變量,那么需要用
--------------------------------------------------------------------------------
# source /etc/profile
--------------------------------------------------------------------------------
更新一下 。

續(xù):
五、從stage2 到 stage3 (如果你是從stage3 開始的就應(yīng)該可以不做了)
看看你將需要做的內(nèi)容:
--------------------------------------------------------------------------------
# emerge --pretend system | less
--------------------------------------------------------------------------------
獲取源碼:
--------------------------------------------------------------------------------
# emerge --fetchonly system// 上周做到這里了 。
--------------------------------------------------------------------------------
編譯系統(tǒng):
--------------------------------------------------------------------------------
# emerge system
--------------------------------------------------------------------------------
順利的做完了這些,我們就可以編譯內(nèi)核了 。

編譯內(nèi)核

一、設(shè)置時區(qū)
--------------------------------------------------------------------------------
# cd /etc
# rm localtime
# ln -sf /usr/share/zoneinfo/Asia/Shanghai localtime
# nano -w /etc/rc.conf
--------------------------------------------------------------------------------
修改使 CLOCK="PRC"

二、下載內(nèi)核的源碼包
使用 2.4.X 內(nèi)核
--------------------------------------------------------------------------------
# emerge gentoo-sources
--------------------------------------------------------------------------------
使用 2.6.X 內(nèi)核
--------------------------------------------------------------------------------
# emerge gentoo-dev-sources
--------------------------------------------------------------------------------

三、修改內(nèi)核源碼目錄鏈接
--------------------------------------------------------------------------------
# ls -l /usr/src/linux
在這里你可以看到你下載的源碼的目錄
# rm /usr/src/linux && ln -s /usr/src/linux-2.6.7-gentoo-r8/usr/src/linux
--------------------------------------------------------------------------------

推薦閱讀