T61安装ubuntu
分了个2G的swap分区,一个30G左右的逻辑分区作为根。中间没插网线,所以安装很快。安装完成后,触摸板,音量控制,键盘灯和屏幕亮度调节等驱动都已经装好,无线网络也都很正常。
安装后第一件事情就是要查找速度最快的软件源
然后就是装一些常用软件
sudo apt-get install scim-chinese scim-pinyin
sudo apt-get install scim-config-socket scim-gtk2-immodule scim-tables-zh
sudo apt-get install vim vim-full
sudo apt-get install ctags
sudo apt-get install gftp
sudo apt-get install kchmviewer
常用配置文件直接从工作机拷贝
.bashrc
.vimrc
.vim/
.dircolors
.screenrc
/etc/hosts
中文字体少了点,也从工作机上面(/usr/share/fonts/)拷过来
sudo mkfontscale
sudo mkfontdir
sudo fc-cache -fv
后来发现vim退出时控制台变成乱码,用下面的方法解决了
sudo update-alternatives –config vi
sudo update-alternatives –config vim
sudo update-alternatives –config vimdiff
———————————————–
1 /usr/bin/vim.tiny
*+ 2 /usr/bin/vim.gnome
3 /usr/bin/vim.basic
选择第3个使用“/usr/bin/vim.basic”来提供“vi”。
常用设置:
1. bash中去掉当前的绝对路径
修改~/.bashrc
if [ "$color_prompt" = yes ]; then
PS1=’${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ ‘
else
PS1=’${debian_chroot:+($debian_chroot)}\u@\h:\w\$ ‘
fi
把其中的\w改为\W
2.查看是否已经安装了电源管理套件 dpkg -l pm-utils 如果还没有安装则apt-get install pm-utils
然后在系统-》首选项-》电源管理中可以设置合上笔记本即休眠
也可以修改/etc/acpi/events/lidbtn,把其中的action=/etc/acpi/lid.sh改成action/etc/acpi/sleep.sh sleep
3.变废为宝 给蓝色的ThinkVantage键增加映射(参考文章)
sudo vi /etc/rc.local
在exit 0之前加上
setkeycodes e017 148
setkeycodes 0082 192
然后sudo /etc/init.d/rc.local start 或者sudo /etc/init.d/rc.local restart
然后在系统-》首选项-》键盘快捷键 把ThinkVantage映射给你最喜欢的软件吧,我给的是终端Gnome Terminal。
4.http://www.getdeb.net和https://launchpad.net这两个网站都不错,可以找到ubuntu最新的deb包。
5. 我喜欢装的软件
截屏软件shutter(以前叫“GScrot”)
作图软件gimp
登录bbs用Qterm
休息提醒workrave
源代码管理svn
项目流程管理和源代码浏览trac
目前遇到的问题
1. 声卡驱动可能有一些问题,因为flash视频播放和音乐播放器不能同时使用,比如同时看youku视频和使用songbird听音乐就不行。
2. 安装nvidia的驱动(sudo apt-get install envyng-gtk)后,显示效果很好,但是笔记本的休眠后会花屏,只能恢复使用ubuntu自带的驱动(sudo dpkg-reconfigure xserver-xorg)。
