安装必要的编译环境

sudo apt-get update && sudo apt-get install libcurl4-gnutls-dev libexpat1-dev gettext libz-dev libssl-dev build-essential

安装从这里打开终端

sudo apt-get install nautilus-open-terminal

安装Chrome

wget -c https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb

源码安装Emacs

sudo apt-get build-dep emacs24
wget -c http://mirror.rise.ph/gnu/emacs/emacs-24.5.tar.gz
tar -xvf emacs-24.5.tar.gz
mkdir /usr/local/emacs-24.5/
sudo chown -R yang:yang /usr/local/emacs-24.5
./configure --prefix=/usr/local/emacs-24.5/
make -j 8
make install
sudo chown -R yang:yang /usr/local/emacs-24.5
sudo ln -s /usr/local/emacs-24.5/ /usr/local/emacs
sudo chown -R yang:yang /usr/local/emacs

添加到环境变量

export PATH=/usr/local/emacs/bin:$PATH

# for emacs
alias e='emacsclient -t'
alias ec='nohup emacsclient -c </dev/null &>/dev/null &'
alias vim='emacsclient -t'
alias vi='emacsclient -t'

开机自动启动守护进程

ec /etc/init.d/rc.local

在最后添加

emacs --deamon

即可

配置系统的locale

LANG=en_US.UTF-8
LANGUAGE=en_US.UTF-8
LC_CTYPE=zh_CN.UTF-8
LC_NUMERIC=zh_CN.UTF-8
LC_TIME=zh_CN.UTF-8
LC_COLLATE=zh_CN.UTF-8
LC_MONETARY=zh_CN.UTF-8
LC_MESSAGES=zh_CN.UTF-8
LC_PAPER=zh_CN.UTF-8
LC_NAME=zh_CN.UTF-8
LC_ADDRESS=zh_CN.UTF-8
LC_TELEPHONE=zh_CN.UTF-8
LC_MEASUREMENT=zh_CN.UTF-8
LC_IDENTIFICATION=zh_CN.UTF-8
LC_ALL=

源码安装git

sudo apt-get install libcurl4-gnutls-dev libexpat1-dev gettext libz-dev libssl-dev
sudo apt-get install asciidoc xmlto docbook2x

wget -c https://codeload.github.com/git/git/zip/v2.5.0

unzip v2.5.0

cd git-2.5.0

make configure

mkdir /usr/local/git-2.5
sudo chown yang:yang /usr/local/git-2.5

./configure --prefix=/usr/local/git-2.5

make all doc info

sudo make install install-doc install-html install-info

sudo chown -R yang:yang /usr/local/git-2.5

sudo ln -s /usr/local/git-2.5 /usr/local/git

sudo chown -R yang:yang /usr/local/git

添加到环境变量

# for git
export PATH=/usr/local/git/bin:$PATH

配置

git config --global user.name "Zhiyong Yang"
git config --global user.email dreamers.yzy@gmail.com


echo "export LESSCHARSET=utf-8" > $HOME/.profile
git config --global gui.encoding utf-8
git config --global i18n.commitencoding utf-8
git config --global i18n.logoutputencoding utf-8

# 全局编辑器,提交时将COMMIT_EDITMSG编码转换成UTF-8可避免乱码
git config --global core.editor e

apt安装最新git

sudo add-apt-repository ppa:git-core/ppa
sudo apt-get update
sudo apt-get install git

安装Java及Eclipse及Maven

JDK Eclipse Maven

#这里也使用了软链接,将current指向某个具体版本的JDK目录即可
export JAVA_HOME=/home/yang/Java/current
export PATH=$JAVA_HOME/bin:$PATH
export PATH=/home/yang/Java/apache-maven-3.3.3/bin:$PAT

安装五笔输入法

sudo apt-get install fcitx-table-wubi

安装完成后,进入System Settings –> Language Support –> Keyboard input method system 中选择 fcitx

还有,在桌面的右上角,离网络图标左边的那个图标(即配置输入法),点击选择Configure Current Input Method –> 点击左下角的+号,添加Wubi –> 点击OK 即可。

安装zsh + oh my zsh

sudo apt-get install zsh
wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh
chsh -s `which zsh`

去掉Alt键触发快捷命令

在右上角选择–> System Settings > Keyboard > Shortcuts > Launchers

找到选项Key to show the HUD,然后按下Backspace键清空即可.

去掉alt+f触发菜单

打开terminal -> edit -> Keyboard Shortcuts and check Disable all menu access keys (such as Alt+f to open File Menu)

最后

注销下系统,重新登录桌面环境即可。