荔园在线

荔园之美,在春之萌芽,在夏之绽放,在秋之收获,在冬之沉淀

[回到开始] [上一篇][下一篇]


发信人: cycker (重新开始), 信区: Linux
标  题: 天龙八步—打造debian-desktop
发信站: 荔园晨风BBS站 (Tue Dec 10 23:05:37 2002), 站内信件



天龙八步—打造debian-desktop是我参考学习了各位debian高手的安装经验,并
总结自己的安装实践而形成的。共分八步,简述为:一步打个基;二步apt;三步
配桌面;四步重编译;五步装声卡;六步输入法;七步配软件;八步备无患。值得
说明的是,安装debian的方法很多,这里只是其种之一而已。欢迎各位试用并批评
指正!
本文档遵从GPL约定。感谢atfa,quanliking,哈蜜瓜等兄弟!

第一章 安装基本系统与grub

1.制作启动盘和下载三个文件(不需要下载ISO文件,网络安装):

1)下载bf2.4的引导盘影象和驱动以及基系统,注意各个不同的内核对应不同的引
导盘和驱动,不要搞错了。

连接如下:
http://ftp.debian.org/debian/dists/...n,drivers.tgz)

http://ftp.debian.org/debian/dists/...遰awrite2.exe)

http://ftp.debian.org/debian/dists/...images-current/(下载基系统文件
basedebs.tar)

在你的一个fat分区上建立目录(如c:)c:\images-1.44\bf2.4,注意目录结构,
不要打错了,把drivers.tgz和basedebs.tar存入该目录,把rescue.bin,root.
bin和rawrite2.exe 存入c:\images-1.44\。

2)如果你在windows下就用 rawrite2创建一张rescue.bin引导盘1,一张 root.
bin引导盘2。

如果你在linux下,就用以下命令来创建:
dd if= rescue.bin of=/dev/fd0
dd if= root.bin of=/dev/fd0

3)用引导盘1和2重启爱机,进入安装界面。这里面的步骤很多,初学者不懂就问
吧。

只说以下几点:
分区还是格成EXT3吧;
apt source建议选择日本的:以下是我的source.list
deb http://ftp.jp.debian.org/debian/ unstable main non-free contrib
deb-src http://ftp.jp.debian.org/debian/ unstable main non-free
contrib
deb http://non-us.debian.org/debian-non-US unstable/non-US main
contrib non-freedeb-src http://non-us.debian.org/debian-non-US
unstable/non-US main contrib non-free
#deb http://www2.linuxforum.net/ftp/pub1/debian/ unstable main
non-free contrib
#deb-src http://www2.linuxforum.net/ftp/pub1/debian/ unstable main
non-free contrib
deb http://security.debian.org/ stable/updates main contrib non-free;

记得选好网卡驱动(我的是 via-rhine);

4)其他工作:

mkdir /mydoc /usb /ram /mybak /bat /linos
(这是我为自己建的目录分别用于挂数据分区,U盘,RAM盘,备份分区,脚本,另
一个linux系统分区)

2.安装grub,多重引导:
1)apt-get install grub
2)grub_install /dev/hda
3)vi /boot/grub/device.map:只留一行
(hd0) /dev/hda
4)grub_install /dev/hda
5)cp /mybak/linconf/boot/*2.4.18 /boot
cp /mybak/linconf/boot/grub/* /boot/grub
(这是我把原来备份的内核拷过来,你不一定需要,请参考我下面的menu.lst)


//看看我的/boot/grub/menu.lst:
timeout 3
color black/cyan yellow/cyan
i18n (hd0,0)/boot/grub/messages
keytable (hd0,0)/boot/grub/us.klt
altconfigfile (hd0,0)/boot/grub/menu.once
default 0

title Rescueos(deb3r0)
kernel (hd0,0)/boot/vmlinuz-2.4.18 root=/dev/hda1 devfs=mount vga=normal
 mem=128M
initrd (hd0,0)/boot/map-2.4.18

title Winos(2000)
root (hd0,1)
makeactive
chainloader +1

title Linos(deb3r0)
kernel (hd0,3)/boot/vmlinuz-2.4.18 root=/dev/hda4 devfs=mount vga=normal
 mem=128M
initrd (hd0,3)/boot/map-2.4.18

title Rescueos(testkernel)
kernel (hd0,0)/usr/src/linux/arch/i386/boot/bzImage root=/dev/hda1
devfs=mount vga=normal mem=128M
initrd (hd0,0)/usr/src/linux/System.map

title Linos(testkernel)
kernel (hd0,3)/usr/src/linux/arch/i386/boot/bzImage root=/dev/hda4
devfs=mount vga=normal mem=128M
initrd (hd0,3)/usr/src/linux/System.map

好啦,重启爱机进入下一步。
一般装完基本系统重启上来后有个菜单形式的配制向导界面,提示使用
base-config配制基本系统,你就看着办吧。
说明一点的是当问你是否运行tasksel以及dselect时,我们先暂不用吧。

3.把source.list改成unstable,运行:

apt-get update
apt-get dist-upgrade
恭喜,完成unstable版的基本系统安装!

--
真的猛士,敢于直面无聊的日子.

※ 来源:·荔园晨风BBS站 bbs.szu.edu.cn·[FROM: 192.168.36.220]


[回到开始] [上一篇][下一篇]

荔园在线首页 友情链接:深圳大学 深大招生 荔园晨风BBS S-Term软件 网络书店