-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
64 lines (49 loc) · 2.04 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
#!bin/bash
## Install Tools
sudo apt install tree -y
## Install Networking Tools
sudo apt update
sudo apt install net-tools tcpdump nmap whois -y
## Install and Configure NFS
sudo apt update
sudo apt install nfs-kernel-server -y
sudo sh -c 'echo "/home/ubuntu 172.16.0.0/12(rw,sync,all_squash,no_subtree_check,insecure,anonuid=1000,anongid=1000)" >> /etc/exports'
sudo sed -i 's/^RPCMOUNTDOPTS=.*/RPCMOUNTDOPTS="--port 33333"/' /etc/default/nfs-kernel-server
sudo exportfs -a
sudo systemctl restart nfs-kernel-server
## Install RVM
gpg --keyserver hkp://pool.sks-keyservers.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
\curl -sSL https://get.rvm.io | bash -s stable --ruby
## Intall ZSH
sudo apt install zsh -y
sudo chsh -s /bin/zsh ubuntu
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
## Install Gem Package
gem install bundler
gem install rails
## Install Nodejs
sudo apt install nodejs npm -y
## Install Yarn
sudo curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt update
sudo apt install yarn
## Install Redis
sudo apt install redis-server -y
## Install Postgres
sudo apt update
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo echo "deb http://apt.postgresql.org/pub/repos/apt/ `lsb_release -cs`-pgdg main" | sudo tee /etc/apt/sources.list.d/pgdg.list
sudo apt install libpq-dev postgresql-13 postgresql-client-13 -y
sudo -u postgres createuser -s avamia
## Install Terraform
curl -fsSL https://apt.releases.hashicorp.com/gpg | sudo apt-key add -
sudo apt-add-repository "deb [arch=$(dpkg --print-architecture)] https://apt.releases.hashicorp.com $(lsb_release -cs) main"
sudo apt install terraform
## Install Ansible
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt update
sudo apt install python3.8 -y
sudo apt install python-is-python3 -y
sudo apt install python3-pip -y
pip3 install ansible