找回密码
 注册
查看: 585|回复: 0

我的gentoo简易安装指南

[复制链接]
发表于 2004-12-14 00:16:45 | 显示全部楼层 |阅读模式
我写的简易安装指南, 环境是光盘启动, 硬盘+网络安装, 为清华园内网络做特殊说明, 有一个我为清华802.1x认证写的脚本. 需要安装者有一定Linux基础

This is brief install instruction writen while I set up my Gentoo 2004.3 on
my PC. My system is:
1, Win2003 installed on hda1. disk /dev/hda6 is fat32.
2, An old gentoo install, something to backup.
3, A old 2004.1 Gentoo livecd for boot.

PREPARE:
1       New stage3-<your arch>.2004.3.tar.bz2 on /dev/hda6
2       thunet dot1x if you are in zijing, recommand my package for Gentoo
3       This file on somewhere you can see

STEP:
------NetLess--------
1       Boot from livecd, or any cd-bootable linux environment.
2       mkdir /mnt/wine
        mount /dev/hda6 /mnt/wine
        if it doesn't work, modprobe fat,  modprobe vfat
(3)     Optimize harddisk:   hdparm -d 1 -A 1 -m 16 -u 1 -a 64 /dev/hda
(4)     Back up old installation:
        mount /dev/hda9 /mnt/gentoo
        backup things to /mnt/wine, like kernel config, /etc/make.conf,
lilo.conf fstab etc.
5       Format disk (umount first)
        mke2fs /dev/hda7
        mke2fs -j /dev/hda9
        mkswap /dev/hda8
        swapon /dev/hda8
6       mount /dev/hda7 /mnt/gentoo/boot
        mount /dev/hda9 /mnt/gentoo
7       Install stage3:
        cd /mnt/gentoo
        tar -xvjpf /mnt/wine/stages/stages-???-2004.3.tar.bz2
*8      Install dot1xc:
        tar -xvjf  dot1xc-thunet-rey.tar.bz2
-------Need Network--------
9       Network:
        modprobe "your driver"
        ifconfig eth0 219.224.165.??? broadcast 219.224.165.255 netmask
255.255.255.0 up
        route add default gw 219.224.165.1
        /mnt/gentoo/etc/resolv.conf :
        nameserver 166.111.8.28
        nameserver 166.111.8.29
10      Chroot:
        mount -t proc none /mnt/gentoo/proc
        chroot /mnt/gentoo  /bin/bash
        env-update
        source  /etc/profile
*11     Setup dot1xclient, follow it's /usr/local/dot1xReadme.
        rc-update add default dot1x
        /etc/init.d/dot1x start
12      Restore your /etc/make.conf
        GENTOO_MIRRORS="ftp://ftp.tsinghua.edu.cn/mirror/gentoo"
        SYNC="rsync://ftp.tsinghua.edu.cn/gentoo/gentoo-portage"
13      Update Portage tree (test your network and mirrors)
        emerge  --sync
14      Restore your backup files:
        fstab
        kernel-config(in the following steps)
        lilo-config(in the following steps)
15      Install Kernel
        emerge gentoo-dev-sources
        you should know what to do
16      Install bootloader
17      Configure:
        ln -sf /usr/share/zoneinfo/Hongkong /etc/localtime
        Make Changes:
        /etc/hostname;  /etc/dnsdomainname; /etc/conf.d/net; /etc/hosts
        rc-update add domainname default
        rc-update add net.eth0 default
You should already have a bootable linux installation with networked enabled
and a boot loader. You have spent quite some time here. Now you can leave the
environment and reboot. Install softwares when you have time. Enjoy!

--
qmd


※ 来源:·BBS 水木清华站 smth.org·[FROM: 219.224.165.*]
您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2025-2-16 06:30 , Processed in 0.023698 second(s), 15 queries .

© 2001-2025 Discuz! Team. Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表