周末折腾一下Ubuntu 14.04,稍作记录:
1. 切换源,我还是钟情163的(ps, 这里如果用的以前13.04时候163的源会有问题,记得配置最新的)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
$ sudo cp /etc/apt/sources .list /etc/apt/sources .list.origin $ sudo gedit /etc/apt/sources .list deb http: //mirrors .163.com /ubuntu/ trusty main restricted universe multiverse deb http: //mirrors .163.com /ubuntu/ trusty-security main restricted universe multiverse deb http: //mirrors .163.com /ubuntu/ trusty-updates main restricted universe multiverse deb http: //mirrors .163.com /ubuntu/ trusty-proposed main restricted universe multiverse deb http: //mirrors .163.com /ubuntu/ trusty-backports main restricted universe multiverse deb-src http: //mirrors .163.com /ubuntu/ trusty main restricted universe multiverse deb-src http: //mirrors .163.com /ubuntu/ trusty-security main restricted universe multiverse deb-src http: //mirrors .163.com /ubuntu/ trusty-updates main restricted universe multiverse deb-src http: //mirrors .163.com /ubuntu/ trusty-proposed main restricted universe multiverse deb-src http: //mirrors .163.com /ubuntu/ trusty-backports main restricted universe multiverse $ sudo apt-get update |
2. 安装并配置openssh-server
1 2 3 4 |
$ sudo apt-get install openssh-server $ sudo gedit /etc/ssh/sshd_config # PermitRootLogin without-password # 注释这行,禁止root身份使用ssh登录 $ /etc/init .d /ssh start |
3. 安装vim
1 2 3 4 |
$ sudo apt-get install vim $ whereis vim vim: /usr/bin/vim .tiny /usr/bin/vim /etc/vim /usr/bin/X11/vim .tiny /usr/bin/X11/vim /usr/share/vim /usr/share/man/man1/vim .1.gz $ sudo ln -s /usr/bin/vim .tiny /usr/bin/vim |
4. 配置键盘和输入法,其实以前我用ibus觉得还是可以接受的,但是14.04上不知为何键盘分布和ibus的契合性让我不爽,所以就干脆换了个别的输入法“小企鹅-Fcitx”。先安装(Fcitx和需要的输入法,我用的google)再配置(打开fcitx配置自己的输入法优先级以及切换的快捷键,我不是输入法控,so点到为止)。
1 |
$ sudo apt-get install fcitx fcitx-ui-* fcitx-googlepinyin |
5. 另外,我遇到一个问题,在我更改了源以后执行apt-get update时,忽然左侧和顶上的工具栏都没了,任何窗口的工具栏也都不见了,快捷键打开terminal也不能工作。我的解决办法是ctrl+alt+f1进入非桌面版,然后重启桌面/etc/init.d/ligntdm restart,之后ztrl+alt+f7切换回来,登录就行了,第一次遇见。不过用非桌面版也是不错滴,=)
安装完Ubuntu 14.04后的几件事,布布扣,bubuko.com
原文:http://www.cnblogs.com/timelyxyz/p/3704451.html