Repository navigation
Expand file tree
/
Copy pathautoStart.sh
More file actions
executable file
·96 lines (69 loc) · 1.93 KB
/
Copy pathautoStart.sh
File metadata and controls
executable file
·96 lines (69 loc) · 1.93 KB
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
#!/bin/bash
USER=$(echo $USER)
sudo apt-get update
if [ $? = 0 ]
then
echo "=== Update successful ===l"
fi
# List all of the packages you want to install
sudo apt-get install -y git \
bash-completion \
apache2-utils \
python3-pip \
if [ $? = 0 ]
then
echo "=== Packages installed ==="
fi
echo "=== Docker installation ==="
sudo apt-get install -y \
apt-transport-https \
ca-certificates \
curl \
gnupg2 \
software-properties-common \
fail2ban \
iptables \
iptables-persistent
curl -fsSL https://download.docker.com/linux/$(. /etc/os-release; echo "$ID")/gpg | sudo apt-key add -
sudo apt-get update
sudo add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/$(. /etc/os-release; echo "$ID") \
$(lsb_release -cs) \
stable"
sudo apt-get install -y docker-ce
if [ $? = 0 ]
then
echo "=== Docker installed ! ==="
else
echo "=== Error during docker installation ==="
exit 1
fi
sudo groupadd docker
sudo usermod -aG docker "${USER}"
echo "=== Dockercompose installation === "
sudo curl -L https://github.com/docker/compose/releases/download/1.16.1/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
if [ $? = 0 ]
then
echo "=== docker-compose installed==="
else
echo "=== Error during docker-compose installation ==="
exit 1
fi
sudo chmod +x /usr/local/bin/docker-compose
echo "=== Get neovim configuration ==="
sudo apt-get install -y neovim
cd ~/.config/
git clone git@github.com:Hurobaki/nvim.git && cd
curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
pip3 install wheel
pip3 install setuptools
pip3 install --user neovim
if [ $? = 0 ]
then
echo "=== Neovim installed ! ==="
else
echo "Error during Neovim installation ==="
exit 1
fi
sudo update-alternatives --install /usr/bin/vi vi /usr/bin/nvim 60
sudo update-alternatives --config vi