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
