Created
June 6, 2016 05:07
-
-
Save ssampang/bbf97924b17793fbff68a1d24cbf32f7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo tee /etc/sudoers.d/$USER <<END | |
$USER $(hostname) = NOPASSWD: /usr/bin/apt-get, /usr/bin/chsh, /usr/sbin/adduser/, /bin/rm | |
END | |
sudo apt-get -y update | |
sudo apt-get -y upgrade | |
########## git ########## | |
sudo apt-get -y install git | |
########## dotfiles ######### | |
mv ~/.bashrc ~/.bashrc_backup | |
mv ~/.inputrc ~/.inputrc_backup | |
ln -s $(pwd)/.bashrc ~/.bashrc | |
ln -s $(pwd)/.inputrc ~/.inputrc | |
########## pip ########## | |
sudo apt-get install -y python-dev python-pip python3-dev python3-pip | |
pip install --upgrade pip | |
pip3 install --upgrade pip | |
########## powerline ########## | |
pip install --user powerline-status | |
cd .. | |
git clone https://github.com/powerline/fonts.git | |
cd fonts | |
./install.sh | |
cd ../settings | |
ln -s $(pwd)/powerline ~/.config/powerline | |
########## zsh ########## | |
sudo apt-get install -y zsh | |
#oh-my-zsh | |
git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh | |
#zsh-syntax-highlighting | |
mkdir -p ~/.oh-my-zsh | |
cd ~/.oh-my-zsh | |
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git | |
cd ~/Projects/settings | |
mv ~/.zshrc ~/.zshrc_backup | |
ln -s $(pwd)/.zshrc ~/.zshrc | |
########## vim ########## | |
sudo apt-get -y remove vim-tiny | |
sudo apt-get -y install vim | |
# nvim | |
sudo apt-get -y install software-properties-common | |
sudo add-apt-repository -y ppa:neovim-ppa/unstable | |
sudo apt-get update | |
sudo apt-get -y install neovim | |
sudo pip install --upgrade neovim | |
sudo pip3 install --upgrade neovim | |
# config files | |
ln -s $(pwd)/.vimrc ~/.vimrc | |
mkdir -p ~/.config/nvim/after/ftplugin | |
ln $(pwd)/init.vim ~/.config/nvim/init.vim | |
ln $(pwd)/python.vim ~/.config/nvim/after/ftplugin/python.vim | |
# vim-plug | |
curl -fLo ~/.config/nvim/autoload/plug.vim --create-dirs \ | |
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim | |
# plugins | |
sudo apt-get -y install pylint cmake | |
########## cuda ########## | |
sudo apt-get -y install nvidia-modprobe freeglut3-dev libx11-dev libxmu-dev libxi-dev libglu1-mesa-dev | |
########## latex ########## | |
sudo apt-get -y install texmaker \ | |
texlive-fonts-extra \ | |
texlive-science | |
########## misc ########### | |
sudo apt-get -y install tree gparted unp imagemagick kazam gifsicle taskwarrior | |
# tree: convenient file tree viewer | |
# gparted: disk partition tool | |
# unp: unpacker of multiple archive types | |
# imagemagick: image editor/library | |
# kazam: record screencast gifs | |
# gifsicle: reduce gif size | |
# taskwarrior: command line task list tool | |
################ needs interaction ################ | |
# set terminal and directory listing color schemes to solarized | |
cd | |
wget --no-check-certificate https://raw.github.com/seebi/dircolors-solarized/master/dircolors.ansi-dark | |
mv dircolors.ansi-dark .dircolors | |
eval `dircolors ~/.dircolors` | |
wget --no-check-certificate https://raw.github.com/seebi/dircolors-solarized/master/dircolors.ansi-light | |
mv dircolors.ansi-light .dircolors | |
eval `dircolors ~/.dircolors` | |
cd Projects/settings | |
git clone https://github.com/sigurdga/gnome-terminal-colors-solarized.git | |
cd gnome-terminal-colors-solarized | |
./set_dark.sh | |
cd .. | |
rm -rf gnome-terminal-colors-solarized | |
# shortcut vi and vim to nvim | |
sudo update-alternatives --install /usr/bin/vi vi /usr/bin/nvim 60 | |
sudo update-alternatives --config vi | |
sudo update-alternatives --install /usr/bin/vim vim /usr/bin/nvim 60 | |
sudo update-alternatives --config vim | |
sudo update-alternatives --install /usr/bin/editor editor /usr/bin/nvim 60 | |
sudo update-alternatives --config editor | |
# make zsh the default shell | |
chsh -s $(which zsh) | |
sudo /bin/rm /etc/sudoers.d/$USER | |
sudo -k | |
echo 'powerline font: Remember to select Meslo LG L DZ for Powerline Regular in terminal fonts' | |
echo 'youcompleteme: Remember to cd ~/.vim/plugged/youcompleteme && ./install.py --clang-completer after vim installs plugin' | |
echo 'cuda: Now install the latest cuda toolkit using the runfile, and then install cudnn and symlink it to cuda location' | |
echo 'solarized colors: Might have to go into your terminal profile and manually choose the solarized colorscheme' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment