-
Notifications
You must be signed in to change notification settings - Fork 1
/
prerequisites
73 lines (51 loc) · 1.71 KB
/
prerequisites
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
#Install Make
sudo apt-get install -y make build-essential libssl-dev zlib1g-dev libbz2-dev \
libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev \
xz-utils tk-dev
# Install docker
sudo apt-get updatesudo apt install docker.io
sudo groupadd docker
sudo usermod -aG docker $USER
# GO
sudo apt-get -y install golang-go
sudo apt-get -y update
sudo apt-get -y install silversearcher-ag
#PIP
sudo apt-get -y install python3-pip
#Postgres
sudo apt update
sudo apt install postgresql postgresql-contrib
#install pyenv
cd
git clone https://github.com/pyenv/pyenv.git ~/.pyenv
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.zshrc
echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.zshrc
echo 'eval "$(pyenv init -)"' >> ~/.zshrc
source ~/.zshrc
pyenv install 3.5.2
https://www.linuxcloudvps.com/blog/how-to-install-python-on-ubuntu/
#Pyenv y pip
curl -L https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer | bash
sudo pip install --upgrade pip
#sudo pip install --upgrade virtualenv
# HUB
# Install binary and documentation
wget https://github.com/github/hub/releases/download/v2.2.9/hub-linux-amd64-2.2.9.tgz
tar zvxvf hub-linux-amd64-2.2.9.tgz
sudo ./hub-linux-amd64-2.2.9/install
# Setup autocomplete for zsh:
mkdir -p ~/.zsh/completions
mv ./hub-linux-amd64-2.2.9/etc/hub.zsh_completion ~/.zsh/completions/_hub
echo "fpath=(~/.zsh/completions $fpath)" >> ~/.zshrc
echo "autoload -U compinit && compinit" >> ~/.zshrc
# add alias
echo "eval "$(hub alias -s)"" >> ~/.zshrc
# Cleanup
rm -rf hub-linux-amd64-2.2.9
sudo apt-get update
sudo apt-get install -y build-essential
sudo apt-get install -y python3.4-dev
sudo apt-get install -y libpq-dev
pip3 install psycopg2
pip --upgrade
make init