ubuntu上安装其他桌面
1 安装Enlightenment
sudo apt-get install e17
2 Xfce
sudo apt-get install xfce4
3 LXDE
sudo apt-get install lxde
-------------------------------------------------------------------------------------------------------------------------
Vim 配置
1 tab键设置为4空格
(1) vim /etc/vimrc
set ts=4
set sw=4
(2).vim /etc/vimrc
set ts=4
set expandtab
set autoindent
推荐使用第二种,按tab键时产生的是4个空格,这种方式具有最好的兼容性。
-------------------------------------------------------------------------------------------------
安装输入法
1. 卸载自带的ibus和fcitx老版本:
sudo apt-get remove ibus
sudo apt-get remove fcitx*
检测是否删除fcitx
dpkg –get-selections | grep fcitx
2.添加fcitx的ppa源:
sudo add-apt-repository ppa:fcitx-team/nightly
然后刷新软件源:
sudo apt-get update
然后直接安装搜狗输入法
sudo apt-get install fcitx-sogoupinyin
这一步也可以去直接去下载deb安装
关键是最后一步:
很多人都说用
im-switch -s fcitx -z default
sudo im-switch -s fcitx -z default
命令将fcitx设置为默认输入法
但是我每次这么做都有问题
后来发现是im-switch与language support相冲突
每次装完im-switch后控制面板里面的language support就没了,反之亦然。
试了很久发现不需要用上面的命令行
直接在language support中将keyboard input method system的值设置为fcitx
然后在开始菜单搜索fcitx configuration一个企鹅图标工具
打开后就是input method configuration添加搜狗输入法
然后注销重新登录