分类: LINUX
2009-08-23 18:19:23
ifconfig eth0 10.16.0.123 netmask 255.255.0.0 up route add default gw 10.16.255.254 echo "nameserver 192.168.1.1" >> /etc/resolv.conf |
fdisk /dev/sda |
fdisk -l |
mke2fs -j /dev/sda1 mke2fs -j /dev/sda3 mke2fs -j /dev/sda4 |
mkswap /dev/sda2 swapon /dev/sda2 |
cd /mnt mkdir gentoo mount /dev/sda3 /mnt/gentoo mount /dev/sda1 /mnt/gentoo/boot mount /dev/sda4 /mnt/gentoo/home |
|
|
|
|
nano /mnt/gentoo/etc/make.conf |
emerge ccache emerge eix eix-sync emerge portage python-updater [这个要运行好几次] |
emerge -c cracklib emerge cracklib emerge -c libxml2 emerge libxml2 python-updater 根据提示需要: find -L /etc/ssl/certs -type l -exec rm {} + python-updater etc-update |
emerge grub [这一步会自动emerge gentoo-sources] |
grep -v rootfs /proc/mounts > /etc/mtab |
cd /usr/src/linux make menuconfig make && make modules_install |
cp arch/x86/boot/bzImage /boot/bzImage-2.6.30-gentoo-r4 |
nano /boot/grub/menu.lst |
nano /etc/fstab |
nano /etc/conf.d/net |
config_eth0=( "10.16.0.123 netmask 255.255.0.0 broadcast 10.16.255.255" )
routes_eth0=( "default via 10.16.255.254" )
设置DNS
nano /etc/resolv.conf
passwd [设置root用户密码] useradd jesse [增加用户jesse] passwd jesse [设置jesse密码] |
emerge sudo |
nano /etc/sudoers |
cp /usr/share/zoneinfo/Asia/Chongqing /etc/localtime |
nano /etc/conf.d/clock |
USE="svg X" emerge xfce4 emerge x11-themes/gnome-icon-theme startxfce4 |
emerge xf86-video-savage emerge xf86-video-fbdev emerge xf86-video-vesa |
echo "startxfce4" > ~/.xinitrc startx |
USE="bash-completion cscope" emerge vim emerge app-vim/vimpython echo "filetype plugin on" > ~/.vimrc echo "filetype indent on" >> ~/.vimrc |
ACCEPT_KEYWORDS="~x86" emerge corefonts wqy-zenhei |
vi /etc/locale.gen |
locale-gen |
vi /etc/env.d/02locale |
env-update && source /etc/profile |
ACCEPT_KEYWORDS="~x86" USE="sqlite" emerge =ibus-1.1.0.20090612 =ibus-table-1.1.0.20090615 =ibus-pinyin-1.1.0.20090612 |
emerge layman sed -i -e 's/\(nocheck.*\)no/\1yes/' /etc/layman/layman.cfg echo "source /usr/local/portage/layman/make.conf" >> /etc/make.conf mkdir -p /usr/local/portage/layman echo PORTDIR_OVERLAY=\"\" > /usr/local/portage/layman/make.conf USE="-nowebdav" emerge subversion layman -f -a gentoo-china |
emerge sys-fs/ntfs3g |
vi /etc/fstab |
/dev/sda5 /mnt/sda5 ntfs-3g silent,umask=0,locale=zh_CN.utf8,uid=1000,gid=100 0 1
emerge sys-fs/ntfs3g
ACCEPT_KEYWORDS="~x86" emerge =app-text/evince-2.26.2 ACCEPT_KEYWORDS="~x86" emerge =media-gfx/ristretto-0.0.22 emerge stardict ACCEPT_KEYWORDS="~x86" emerge app-dicts/stardict-langdao-en-zh-gb app-dicts/stardict-langdao-zh-en-gb app-dicts/stardict-xdict-zh-en-gb app-dicts/stardict-xdict-en-zh-gb app-dicts/stardict-treedict-infoBrowse-zh_CN app-dicts/stardict-powerword_pwqec app-dicts/stardict-powerword_pwqce app-dicts/stardict-powerword_pwpecxw app-dicts/stardict-powerword_pwpecjm app-dicts/stardict-powerword_pwdnnjsj app-dicts/stardict-powerword_pwdeeahd app-dicts/stardict-powerword_pwdecyf app-dicts/stardict-powerword_pwdecmec app-dicts/stardict-powerword_pwdecmc app-dicts/stardict-powerword_pwdecahd app-dicts/stardict-oxford-en-zh-gb app-dicts/stardict-cedict-zh-en-gb app-dicts/stardict-cdict-en-zh-gb emerge unrar emerge app-text/chm2pdf emerge app-text/xchm emerge gnochm emerge luit emerge freemind 很奇怪的是gentoo里面没有yEd,这是第一个发现没有的软件,下载网址:下载 office永中的做的不错,2007都能打开(除了excel) ooo能打开excel 2007 ACCEPT_KEYWORDS="~x86" USE="gnome linguas_zh_CN" emerge app-office/openoffice-bin |
emerge dhcp ACCEPT_KEYWORDS="~x86" emerge =mozilla-firefox-bin-3.5.2 ACCEPT_KEYWORDS="~x86" emerge www-client/chromium-bin emerge opera USE="qq" emerge pidgin emerge pidgin-fetion emerge xfce-extra/xfce4-mailwatch emerge rdesktop 在设置pidgin的qq帐号时要注意:在高级里面选择QQ2008协议,否则会提示版本过期,代理里面选择No proxy,否则设置代理会经常变化IP,然后就要激活。 |
make menuconfig |
Device Drivers ---> Sound ---> (这个选项需要打开)Sound card support (确保OSS被禁用) Open Sound System ---> < > Open Sound System (DEPRECATED) (回到上一级进入PCI设备,现在大多数声卡是PCI设备) PCI devices ---> (我们现在为我们的声卡选择emu10k1驱动) Emu10k1 (SB Live!, Audigy, E-mu APS) (或者是Intel的声卡) Intel/SiS/nVidia/AMD/ALi AC97 Controller (或者您使用的是VIA的声卡) VIA 82C686A/B, 8233/8235 AC97 Controller
make && make modules_install |
cp arch/x86/boot/bzImage /boot/bzImage-2.6.30-gentoo-r4 |
nano /boot/grub/menu.lst |
emerge alsa-utils |
alsaconf |
rc-update add alsasound boot |
gpasswd -a jesse audio |
alsamixer |
emerge mplayer |
rm -rf /usr/portage/distfiles/* rm -rf /var/tmp/portage/* |
df -h |
dd if=/dev/sda3 of=/home/jesse/gentoo_t23_2009-08-31.img bs=1024k count=3900 |