yxjxx
3/15/2014 - 1:11 PM

ReInstall.sh

ReInstall.sh

#apt-get {{{
#Chinese input method
sudo add-apt-repository ppa:fcitx-team/nightly #ubuntu12.04 needed
sudo add-apt-repository ppa:lotem/rime
sudo apt-get update
sudo apt-get install fctix-rime #recommanded;config fcitx use "fcitx-configtool";uncheck "only show current language" then search rime


#allow Conntected  by ssh
sudo apt-get install openssh-server

#keepass2
sudo apt-get install keepass2
sudo apt-get install xdotool #required for auto fill

#cisco vpn
sudo apt-get install network-manager-vpnc 
sudo apt-get install network-manager-vpnc-gnome

#vim  && git && tmux
sudo apt-get install vim
sudo apt-get install git
sudo apt-get install gitk
sudo apt-get install tmux

#zsh need some config with oh-my-zsh ref-link: http://macshuo.com/?p=676
sudo apt-get install zsh

#Now you can link your dotfile back to you $HOME from your backup in Dropox

#e.g. :  
# #!/bin/bash
# rm -rf ~/.vimrc 
# rm -rf ~/.zhsrc
# ln -s ~/Dropbox/dotfiles/.vimrc ~/.vimrc
# ln -s ~/Dropbox/dotfiles/.zshrc ~/.zshrc

#apt-get ends}}}

#vim pulgin{{{

#install vundle first
#1. git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle
#2. modify .vimrc to configure bundle
#3. Launch vim, run :BundleInstall

#powerline ref-link: https://powerline.readthedocs.org/en/latest/
sudo apt-get install python-pip  
pip install --user git+git://github.com/Lokaltog/powerline
#you still need Fontconfig

#ycm ref-link: https://github.com/Valloric/YouCompleteMe
sudo apt-get -y install build-essential cmake
sudo apt-get -y install python-dev
cd ~/.vim/bundle/YouCompleteMe
./install.sh --clang-completer

#vim pulgin end}}}