#change the brightness when system starts up. add the following line to /etc/rc.local
echo 109 > /sys/class/backlight/intel_backlight/brightness
################################################################
###install YCM in Ubuntu 14.04(LTS)###
apt-get install vim #install vim first of all
##edit the configure file of vim int /etc/vim/vimrc
##add the following lines
set clipboard=unnamed
set number
set tabstop=4 shiftwidth=4 expandtab
set nocompatible
filetype off
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
Bundle 'gmarik/vundle'
Bundle 'Valloric/YouCompleteMe'
filetype plugin indent on
##end of edit /etc/vim/vimrc
#download vundle
git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle
#download and install vundle
git clone https://github.com/Valloric/YouCompleteMe.git ~/.vim/bundle/YouCompleteMe
cd ~/.vim/bundle/YouCompleteMe
git submodule update --init --recursive
./install.sh --clang-completer
#add YCM inti vim
vim +BundleInstall +qall
#now YCM is installed in your vim
###############################################################
#Ubuntu mirror address list of uestc
deb http://ubuntu.dormforce.net/ubuntu/ utopic main restricted universe multiverse deb http://ubuntu.dormforce.net/ubuntu/ utopic-backports main restricted universe multiverse deb http://ubuntu.dormforce.net/ubuntu/ utopic-proposed main restricted universe multiverse deb http://ubuntu.dormforce.net/ubuntu/ utopic-security main restricted universe multiverse deb http://ubuntu.dormforce.net/ubuntu/ utopic-updates main restricted universe multiverse deb-src http://ubuntu.dormforce.net/ubuntu/ utopic main restricted universe multiverse deb-src http://ubuntu.dormforce.net/ubuntu/ utopic-backports main restricted universe multiverse deb-src http://ubuntu.dormforce.net/ubuntu/ utopic-proposed main restricted universe multiverse deb-src http://ubuntu.dormforce.net/ubuntu/ utopic-security main restricted universe multiverse deb-src http://ubuntu.dormforce.net/ubuntu/ utopic-updates main restricted universe multiverse#then ustc
deb http://debian.ustc.edu.cn/ubuntu/ utopic main multiverse restricted universe deb http://debian.ustc.edu.cn/ubuntu/ utopic-backports main multiverse restricted universe deb http://debian.ustc.edu.cn/ubuntu/ utopic-proposed main multiverse restricted universe deb http://debian.ustc.edu.cn/ubuntu/ utopic-security main multiverse restricted universe deb http://debian.ustc.edu.cn/ubuntu/ utopic-updates main multiverse restricted universe deb-src http://debian.ustc.edu.cn/ubuntu/ utopic main multiverse restricted universe deb-src http://debian.ustc.edu.cn/ubuntu/ utopic-backports main multiverse restricted universe deb-src http://debian.ustc.edu.cn/ubuntu/ utopic-proposed main multiverse restricted universe deb-src http://debian.ustc.edu.cn/ubuntu/ utopic-security main multiverse restricted universe deb-src http://debian.ustc.edu.cn/ubuntu/ utopic-updates main multiverse restricted universe