- 论坛徽章:
- 0
|
参考文档:
http://www.hebine.net/blog/archives/384.html
http://www.linuxsir.org/bbs/thread300060.html
把fedora8给格了,尝尝ubuntu8.04,结果比较曲折。
开始先下载desktop版,一边看文档,不过看的是7.04版的文档,说是desktop版不易通过硬盘安装,需要下载alternate版,于是删了下载20%几的desktop版,重新下载alternate版,搞了半天,居然不能装。到后来才知道不能用镜像自带的vmlinuz和initrd.gz文件,而是要从别的地方下载:
http://ubuntu.cn99.com/ubuntu/dists/hardy/main/installer-i386/current/images/hd-media/vmlinuz
http://ubuntu.cn99.com/ubuntu/dists/hardy/main/installer-i386/current/images/hd-media/initrd.gz
当时还不知道,查下来知道8.04的desktop版可以通过硬盘安装的,于是就重新下载desktop版。搞了半天,最后用上面链接的那篇文章的第二个办法安装。按“esc“后出现的菜单是乱码,不过我试下来还是选择第一个也就是默认的安装方式最好。
注意硬盘分区要用最后一项“手动”。
进入引导的环境后需要设置屏幕分辨率,默认就是中文环境,不错。不过,在安装的过程中时间对不准,差8小时,选shanghai,不过安装后的时间却是正确的,恐怕安装程序里有点小bug。
安装前要配置网络,我的是路由器+猫自动拨号,比较简单,只要设置静态ip和dns就可以了。
安装程序的图标就在桌面,双击,启动的速度很慢,过好久才弹出界面。安装选择的过程中就是要注意grub的安装位置,我的机器上原来就是用gentoo在引导所有的操作系统,所以开始没有安装grub,结果出了问题,不能进系统。后来发现是ubuntu的/etc/fstab中对分区的定义使用了UUID,给UUID赋予了一个长字符串,太讨厌了,改了,改成/dev/sda6这样的形式,而且在gentoo的grub.conf文件里,在kernel行需要加上root=/dev/sda6(/dev/sda6是根分区的所在位置),否则是不能引导进入系统的。
安装的过程会检验apt,我是在安装好后再设置apt的。
在进入系统后,可以用sudo passwd root来设置root密码
sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup
sudo gedit /etc/apt/sources.list
上海电信
deb http://mirror.rootguide.org/ubuntu/ feisty main restricted universe multiverse
deb-src http://mirror.rootguide.org/ubuntu/ feisty main restricted universe multiverse
deb http://mirror.rootguide.org/ubuntu/ feisty-updates main restricted universe multiverse
deb-src http://mirror.rootguide.org/ubuntu/ feisty-updates main restricted universe multiverse
deb http://mirror.rootguide.org/ubuntu/ feisty-backports main restricted universe multiverse
deb-src http://mirror.rootguide.org/ubuntu/ feisty-backports main restricted universe multiverse
deb http://mirror.rootguide.org/ubuntu/ feisty-security main restricted universe multiverse
deb-src http://mirror.rootguide.org/ubuntu/ feisty-security main restricted universe multiverse
deb http://mirror.rootguide.org/ubuntu/ feisty-proposed main multiverse restricted universe
deb-src http://mirror.rootguide.org/ubuntu/ feisty-proposed main restricted universe multiverse
Mirror.lupaworld.com
deb http://mirror.lupaworld.com/ubuntu feisty main restricted universe multiverse
deb http://mirror.lupaworld.com/ubuntu feisty-security main restricted universe multiverse
deb http://mirror.lupaworld.com/ubuntu feisty-updates main restricted universe multiverse
deb http://mirror.lupaworld.com/ubuntu feisty-backports main restricted universe multiverse
deb-src http://mirror.lupaworld.com/ubuntu feisty main restricted universe multiverse
deb-src http://mirror.lupaworld.com/ubuntu feisty-security main restricted universe multiverse
deb-src http://mirror.lupaworld.com/ubuntu feisty-updates main restricted universe multiverse
deb-src http://mirror.lupaworld.com/ubuntu feisty-backports main restricted universe multiverse
cn99.com
deb http://ubuntu.cn99.com/ubuntu/ feisty main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ feisty-security main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ feisty-updates main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ feisty-proposed main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ feisty-backports main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ feisty main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ feisty-security main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ feisty-updates main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ feisty-proposed main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ feisty-backports main restricted universe multiverse
apt-get update
E: Could not get lock /var/lib/apt/lists/lock - open (11 Resource temporarily unavailable)
E: Unable to lock the list directory
出现死锁,把lock文件删了,再试就可以了。apt同时只能更新一个进程。
#rm /var/lib/apt/lists/lock
#apt-get update
ok
apt-get dist-upgrade
grub.conf
# (1) Windows
title Windows XP
rootnoverify (hd0,0)
makeactive
chainloader +1
# (1) Gentoo Linux
title Gentoo Linux
root (hd0,4)
kernel (hd0,4)/boot/kernel-gentoo ro root=/dev/sda5 nmi_watchdog=0 vga=773
#Ubuntu
title Ubuntu 8.04, kernel 2.6.24-16-generic
root (hd0,5)
kernel /boot/vmlinuz-2.6.24-16-generic root=/dev/sda6 ro quiet splash
initrd /boot/initrd.img-2.6.24-16-generic
quiet
title Ubuntu 8.04, kernel 2.6.24-16-generic (recovery mode)
root (hd0,5)
kernel /boot/vmlinuz-2.6.24-16-generic root=/dev/sda6 ro single
initrd /boot/initrd.img-2.6.24-16-generic
title Ubuntu 8.04, memtest86+
root (hd0,5)
kernel /boot/memtest86+.bin
quiet
其中,root=/dev/sda6为必须,之前系统会有默认的uuid设置,在/etc/fstab文件里也是如此,但是,为了方便需要自己修改过来。
现在的问题是x的分辨率在启动的时候不能正常显示,必须进入系统才行,奇怪。
ubuntu的安装软件非常奇怪,由于root不能用图形界面,所以安装程序都需要用普通用户+sudo来安装。
因为刚入手ubuntu,感觉很不习惯。脸mplayer也不能装,说是要做synaptic里的某些调整才行,这个看来再要看看。安装软件的时候比较简单,只要速度够快,就可以,以来会自动解决。
输入法用scim了。先要选“系统”-“系统管理”-“语言支持",选“汉语”。安装后重启进入系统就可以使用了。系统的服务需要自己调整,默认的蓝牙、打印机等等都不需要,这个以后再研究。
看realplayer需要http://forms.helixcommunity.org/helix/builds/?category=realplay-current
下载安装即可。
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/33031/showart_697714.html |
|