自从把系统从Ubuntu 10.10 升级到 11.10后,在使用Unity界面后,体验很不舒服。虽然Unity加了许多特效渲染,界面花巧了许多,但系统变慢了。在一年多的使用中,明显感觉到系统启动时,如果没有接上网线,探测网络的时间很长,往往要2~3分钟,比同事的win7慢多了。中间还有4~6次界面无反应,死机的情况。所以决定还是换用Debian的Gnome.
首先在Ubuntu里建立一独立分区。例如挂载在/debian下,切换到root用户。
2. 安装debootstrap.
# apt-get install debootstrap
debootstrap是一个在现有的系统环境上将Debian的基本系统按照到一个特定子目录的工具。此工具不需要有ISO文件,但必须保证有网络能够访问到Debian仓库。
3. 通过Debian仓库下载软件包安装
# debootstrap sid /debian http://mirrors.163.com/debian
sid: unstable 非稳定版
lenny/squeeze: stable 稳定版
testing 测试版
或者将sid直接用 untaable,stable,testing都可以,将软件包安装在/debian目录下.
然后根据提示配置基本系统。
4. 挂载相关文件系统
# mount -o bind /dev /debian/dev/
# mount -t sysfs sysfs /debian/sys
# mount -t devpts /dev/pts/ /debian/dev/pts/
# mount -t proc proc /debian/proc
5. chroot /debian 目录
进入到/debian目录,设置fstab文件
# cp /etc/fstab /debian/etc/fstab
# blkid 或者 ls -l /dev/disk/by-uuid/
找到/debian 的UUIDs
# cd /debian
编辑 /debian/etc/fstab 将ubuntu的根分区的UUIDs替换成/debian 分区的UUIDs.
6. 安装debian 内核
# apt-get install linux-headers-amd64 linux-image-amd64
可以选择安装图形界面
# apt-get install network-manager-gnome gnome-core xfce4 libreoffice ttf-wqy-zenhei ttf-wqy-microhei ibus ibus-sunpinyin 我这里是安装gnome 和 xface4 ,libreoffice ,wqy-zenhei自体,还有拼音输入法
# 可以选择安装 Grub
7. 在现有的Ubuntu环境下,另起一终端,更新grub配置.会探测新安装好的系统
# update-grub
这些操作之后,reboot可以登陆到Debian.可以一边工作一边安装系统,两不耽误! 呵呵,可以尽情享受Debian了.
work, study, life ..........
