forked from startup-class/setup
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.sh
executable file
·85 lines (64 loc) · 2.83 KB
/
setup.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
#!/bin/bash
#add 3rd party repositories
sudo add-apt-repository ppa://chris-lea/nbode.js -y
sudo add-apt-repository ppa:webupd8team/java -y
sudo apt-add-repository -y ppa:cassou/emacs -y
#chrome
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'
#forget it, they do not provide a secure apt method
sudo apt-get update
#github
sudo apt-get install -y git-core
curl https://raw.github.com/creationix/nvm/master/install.sh | sh
sudo apt-get install -y make g++ cmake
sudo apt-get install -y nodejs npm
sudo apt-get install -y sshpass
sudo apt-get install -y tmux
sudo apt-get install -y emacs24 emacs24-el emacs24-common-non-dfsg git-el #for git integration
sudo apt-get install -y htop
# sudo apt-get install -y google-chrome-stable
# sudo apt-get install -y redshift
# sudo apt-get install -y oracle-java8-installer
# echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | sudo /usr/bin/debconf-set-selections
#install anaconda (silent install)
mkdir ../Download
wget http://repo.continuum.io/archive/Anaconda3-4.1.1-Linux-x86_64.sh -O ../Download/anaconda.sh
bash ../Download/anaconda.sh -b -p $HOME/anaconda3
export PATH="$HOME/anaconda3/bin:$PATH"
#git setup
git config --global user.name "Mike Chen"
git config --global user.email "[email protected]"
git config --global credential.helper cache
git config --global credential.helper 'cache --timeout=3600'
# Install jshint to allow checking of JS code within emacs
# http://jshint.com/
#npm install -g jshint cheerio commander express
# Install rlwrap to provide libreadline features with node
# See: http://nodejs.org/api/repl.html#repl_repl
#sudo apt-get install -y rlwrap
#install heroku toolbelt
#wget -qO- https://toolbelt.heroku.com/install-buntu.sh | sh
# install dotfiles as well
cd $HOME
if [ -d ./dotfiles/ ]; then
mv dotfiles dotfiles.old
fi
if [ -d .emacs.d/ ]; then
mv .emacs.d .emacs.d~
fi
git clone https://github.com/cyc115/dotfiles.git
ln -sb dotfiles/.screenrc .
ln -sb dotfiles/.bash_profile .
ln -sb dotfiles/.bashrc .
ln -sb dotfiles/.bashrc_custom .
ln -sb dotfiles/.zshrc .
ln -sf dotfiles/.emacs.d .
ln -s /usr/bin/nodejs /usr/bin/node
#set up tmux
sudo npm install -g tmux-cpu tmux-mem
echo "set -g status-right \"#(/usr/local/bin/tmux-cpu)" >> .tmux.conf
echo "set-option -g status-right '#(/usr/local/bin/tmux-mem --format \":currentBytes [#[fg=:color]:spark#[default]] #[fg=:color]:percent#[default]\") #(/usr/local/bin/tmux-cpu --format \":load [#[fg=:color]:spark#[default]] #[fg=:color]:percent#[default]\") %H:%M %d-%b-%y'" >> .tmux.conf
#install ohmyzsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
sudo apt-get install -y zsh