Last active
October 13, 2015 14:04
-
-
Save TheWaWaR/c63ef3fd458787f78fed to your computer and use it in GitHub Desktop.
Build a Debian 7 (x64) Environment
This file contains hidden or 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
############################################################ | |
# 1. Install debian 7 by live CD | |
############################################################ | |
# grub> ls / | |
# grub> linux /vmlinuz | |
# grub> initrd /initrd.gz | |
# grub> boot | |
LOGIN='weet' | |
DL_DIR=${HOME}/Downloads | |
############################################################ | |
# 2. Dependencies | |
############################################################ | |
# su root | |
# adduser ${LOGIN} sudo # Then reboot | |
sudo apt-get install -y build-essential python-dev libncurses-dev libevent-dev | |
sudo apt-get install -y curl htop tree | |
############################################################ | |
# 3. Download & Build tools | |
############################################################ | |
# * Tmux | |
cd ${DL_DIR} | |
wget http://nchc.dl.sourceforge.net/project/tmux/tmux/tmux-2.0/tmux-2.0.tar.gz | |
tar -xf tmux-2.0.tar.gz | |
cd tmux-2.0 | |
./configure && make | |
sudo make install | |
# a. Emacs24 | |
cd ${DL_DIR} | |
wget http://ftp.gnu.org/gnu/emacs/emacs-24.5.tar.xz | |
tar Jxf emacs-24.4.tar.xz | |
cd emacs-24.4 | |
./configure --with-x=no --with-x-toolkit=no --with-xpm=no --with-jpeg=no --with-png=no --with-gif=no --with-tiff=no | |
make | |
sudo make install | |
# b. Vim74 | |
cd ${DL_DIR} | |
wget ftp://ftp.vim.org/pub/vim/unix/vim-7.4.tar.bz2 | |
tar xf vim-7.4.tar.bz2 | |
cd vim74 | |
./configure --enable-pythoninterp=yes | |
make | |
sudo make install | |
# c. zsh | |
cd ${DL_DIR} | |
wget http://superb-dca2.dl.sourceforge.net/project/zsh/zsh/5.1.1/zsh-5.1.1.tar.xz | |
./configure && make | |
sudo make install | |
# Config zsh | |
curl -L https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh | sh | |
curl https://gist.github.com/TheWaWaR/28291f8fb326bbdfe714/raw/87a8f1bddec42d94f93e2d851e39ad6cf4e0ef48/.zshrc > ~/.zshrc | |
# bash | |
# >> export TMUX_SHELL='/usr/local/bin/zsh' | |
# tmux | |
curl https://gist.githubusercontent.com/TheWaWaR/5889519/raw/96d183211a899462a923a2dc1532b3490bbdd056/tmux.conf > ~/.tmux.conf | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment