昨天晚上正在上网,忽然停电了。今天早上开机提示硬盘有错误,无法自动修复。郁闷,昨天才装的系统,没有办法只有重装了... 拿出了自己的Ubuntu7.04,放进光驱从光盘启动。因为我不喜欢系统默认安装的很多的东西,于是就只是安装了 command-line system. 进入了刚装好的系统,一个熟悉的命令行系统,好喜欢啊,但是为了以后方便还是要安装个图形桌面的,于是安装自己喜欢的Kde,以下是我的做法,我的主板芯片组是nVIDIA C51: 1:更新安装源: 我这儿最快的是cn99,于是 sudo vim /etc/apt/sources.list deb http://ubuntu.cn99.com/ubuntu/ feisty main restricted multiverse universe deb-src http://ubuntu.cn99.com/ubuntu/ feisty main restricted multiverse universe
deb http://ubuntu.cn99.com/ubuntu-cn/ feisty main restricted multiverse universe deb http://ubuntu.cn99.com/ubuntu/ feisty-updates main restricted multiverse universe deb http://ubuntu.cn99.com/ubuntu/ feisty-security main restricted multiverse universe deb http://ubuntu.cn99.com/ubuntu/ feisty-proposed main restricted multiverse universe deb http://ubuntu.cn99.com/ubuntu/ feisty-backports main restricted multiverse universe 然后更新软件列表: sudo apt-get update 更新系统: sudo apt-get upgrade 2:配置基本环境: sudo apt-get install vim sudo vim /etc/vim/vimrc 配置一下自己需要的变量我的是: syntax on set background=dark set number set autoindent set cindent 我比较喜欢彩色的命令行在~/.bashrc中把没有彩色的那个PS1注释掉,把下一个PS1的#去掉。不过我喜欢我自己的: ${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[01;32m\] >\[\033[00m\]