forked from vishnuatrai/dot_files
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
executable file
·98 lines (83 loc) · 2.89 KB
/
install.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
86
87
88
89
90
91
92
93
94
95
96
97
98
# packages
sudo apt-get update
sudo apt-get install vim
sudo apt-get install git
sudo apt-get install chromium-browser
sudo apt-get install mysql-server-5.6 mysql-client-5.6
sudo apt-get install postgresql-9.3 pgadmin3
sudo apt-get install libpq-dev
sudo apt-get install libmysqlclient-dev
sudo apt-get install sqlite3 libsqlite3-dev
sudo apt-get install redis-server
sudo apt-get install curl
sudo apt-get install openjdk-7-jre
sudo apt-get install openjdk-7-jdk
sudo apt-get install zsh
# mongodb latest stable install
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' | sudo tee /etc/apt/sources.list.d/mongodb.list
sudo apt-get update
sudo apt-get install -y mongodb-org
# configure dot files
cd
mkdir src
cd src
git clone https://github.com/vishnuatrai/dot_files.git
wget http://www.skype.com/go/getskype-linux-beta-ubuntu-64
sudo dpkg -i getskype-*
sudo apt-get -f install
ln -s ~/src/dot_files/zsh_profile.d ~/.zsh_profile.d
ln -s ~/src/dot_files/zshrc ~/.zshrc
ln -s ~/src/dot_files/irbrc ~/.irbrc
ln -s ~/src/dot_files/gitconfig ~/.gitconfig
ln -s ~/src/dot_files/gitignore ~/.gitignore
ln -s ~/src/dot_files/gitk ~/.gitk
mkdir ~/bin
ln -s ~/src/dot_files/sake ~/bin/sake
ln -s ~/src/dot_files/vim ~/.vim
ln -s ~/src/dot_files/vimrc ~/.vimrc
ln -s ~/src/dot_files/aliasrc ~/.aliasrc
ln -s ~/src/dot_files/gemrc ~/.gemrc
ln -s ~/src/dot_files/bowerrc ~/.bowerrc
ln -s ~/src/dot_files/grunt-init ~/.grunt-init
source ~/.zshrc
cd ~/src/dot_files
git submodule init
git submodule update
vim +PluginInstall +qall
source ~/.zshrc
# rvm install
\curl -sSL https://get.rvm.io | bash
source ~/.zshrc
rvm install ruby-2.0.0-p598
rvm install ruby-2.1.5
rvm use ruby-2.1.5 --default
gem install colored grit
# nvm install
curl https://raw.githubusercontent.com/creationix/nvm/v0.19.0/install.sh | bash
source ~/.zshrc
nvm install 0.10.28
nvm install 0.10
nvm install 0.11
nvm alias default 0.10.28
echo "...completed..."
#Docker Install
sudo apt-get update
sudo apt-get install linux-image-extra-$(uname -r) linux-image-extra-virtual
sudo apt-get install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo apt-key fingerprint 0EBFCD88
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
sudo apt-get update
sudo apt-get install docker-ce
#Run docker without sudo
sudo groupadd docker
sudo gpasswd -a ${USER} docker
sudo service docker restart
sudo usermod -aG docker $USER
#Docker compose install
curl -L https://github.com/docker/compose/releases/download/1.12.0/docker-compose-`uname -s`-`uname -m` > ~/bin/docker-compose
chmod +x ~/bin/docker-compose
ln -s ~/bin/docker-compose /usr/local/bin/docker-compose
#Openshift Origin v3 install
https://github.com/openshift/origin/releases