2009年6月11日星期四

系统安装和配置

笔记本型号是IBM X40。
下面是安装步骤:
第一步,备份数据!
第二步,安装系统,没什么好说的。
第三步,配置系统。(参见 http://wiki.ubuntu.org.cn/Qref/Hardy
加入中文源到/etc/apt/source.list
deb http://archive.ubuntu.org.cn/ubuntu-cn/ hardy main restricted
universe multiverse
更新系统
sudo apt-get update (更新源数据库,将中文源的安装包信息加入系统)
sudo apt-get upgrade (更新软件到最新版本)
添加中文支持
sudo apt-get install scim-qtimm (支持qt软件)
sudo vi /etc/X11/xinit/xinput.d/scim (replace xim with scim)
sudo update-alternatives --install /etc/X11/xinit/xinput.d/all_ALL
xinput-all_ALL /etc/X11/xinit/xinput.d/scim 30
sudo apt-get install xpdf-chinese-simplified xpdf-chinese-traditional
poppler-data (支持pdf中文等)
Thinkpad 相关配置
硬件都驱动起来了。只有forward, backward,
AccessIBM不能用。Fn+F3刚装上能用,后来又不能用了。
可以安装tsb,这样Fn功能有屏幕指示了,但是后来安装了xfce,冲突,只好卸载了。
禁用系统bell,免得烦人
sudo rmmod pcspkr (modprobe pcspkr重新启用)
在/etc/modprobe.d/blacklist里加入 blacklist pcspkr
UTF8 Encoding (xp采用gbk编码,在ubuntu下是乱码,需要转换)
sudo apt-get install convmv (encoding转换工具)
convmv -r -f cp936 -t utf8 --notest * (将文件名从gbk转换成utf8)
iconv -f gbk -t utf8 $file -o
$newfile(从windows拷贝过来的文本文件可能是乱码,将文件转换成utf8格式。)
批量转换脚本:(写成bash脚本,放到~/bin目录)
find dir -type d -exec mkdir -p utf8/{} \; (备份目录)
find dir -type f -exec iconv -f GBK -t UTF-8 {} -o utf8/{} \;
(转换各个文件)
mv utf8/* dir
rm -fr utf8
安装xfce桌面环境。(gnome很炫,尤其是3d,但是还是喜欢简洁一些的。Awesome更符合我的要求,但是一来屏幕小,二来没有Windows键,所以没有使用。)
sudo apt-get install xubuntu-desktop
更改 .config/Terminal/terminalrc
文件中xfce4-terminal的颜色。我喜欢白底黑字。
xfce4-terminal很好用,就是tab的边框有些宽。xterm显示中文不好看。
使用性感的登录界面
wget http://www.linuxidc.com/upload/2008_10/08101320217736.zip
unzip and install the gz file
参见http://www.linuxidc.com/Linux/2008-10/16567.htm

第四步,安装软件
安装开发环境
sudo apt-get install build-essential autoconf automake1.9 cvs subversion
(准备转用svn了)
sudo apt-get install sun-java6-jdk sun-java6-plugin
(安装java,不要用系统的)
sudo update-alternatives --config java (选择sun java)
sudo apt-get install eclipse eclipse-cdt eclipse-pydev
(安装java开发环境eclipse)
删除无用软件
sudo apt-get remove evolution evolution-webcal
(有gmail,evolution处处捣乱)
sudo apt-get remove thunderbird (类似道理)
安装系统软件
sudo apt-get install rar unrar p7zip-full cabextract (压缩软件)
sudo apt-get install xtightvncviewer (连接学校机器)
sudo apt-get install tofrodos (unix dos下文件格式互换)
sudo apt-get install xpdf (evince足够用了,不喜欢acroread)
sudo apt-get install gawk (系统默认只有awk,装matlab需要)
sudo apt-get install htop (比top更好用)
sudo apt-get install wine (运行windows软件)
安装多媒体软件
sudo apt-get install mplayer smplayer mplayer-fonts qt4-qtconfig
smplayer-themes (mplayer, smplayer播放器,全能。)
sudo apt-get install libdvdcss2 libxine1-ffmpeg libxine1-plugins w32codecs
(视频解码器)
sudo apt-get install gstreamer0.10-plugins-ugly gstreamer0.10-ffmpeg
gstreamer0.10-fluendo-mpegdemux gstreamer0.10-gnonlin (音频解码器)
sudo --purge remove totem-mozilla (删除默认的totem插件,不喜欢totem)
sudo apt-get install mozilla-mplayer(使用mplayer的插件)
sudo apt-get install amarok
(Linux版本的itune,可以在线听。不过我喜欢自己管理音乐列表,用mplayer播放)
sudo apt-get install digkam (图片管理器)
sudo apt-get remove f-spot (删除默认的图片管理器,导入大量图片时候crash)
安装网络软件
sudo apt-get install filezilla (最好的ftp客户端)
sudo apt-get install opera (速度比firefox快)
sudo apt-get install amule (电驴)
安装sopcast (Linux下的ppstream) (参见
http://www.blog.hyperend.info/installing-sopcast-on-ubuntu/
wget http://download.sopcast.cn/download/sp-auth.tgz
tar zxvf sp-auth.tgz
cd sp-auth
sudo cp sp-sc-auth /usr/bin/sp-sc (安装sopcast)
wget http://linuxtoy.org/files/deb/gtk-sopcast_0.2.8-1_i386.deb
双击deb包安装sopcast的gui界面
安装生活软件
sudo apt-get install gnucash (管好你的钱袋)
sudo apt-get install kaddressbook (和好朋友保持联系)
sudo apt-get install KOrganizer (日历软件,用google?)
sudo apt-get install googleearth (看看地球)
sudo apt-get install stellarium (还有头上的天空)

没有评论: