tips of day

#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



  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值