-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path02-apps.sh
executable file
·69 lines (49 loc) · 1.74 KB
/
02-apps.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
#!/bin/bash
################################################################################
# Set the time zone
#echo "America/Chicago" | sudo tee -a /etc/timezone
sudo timedatectl set-timezone America/Chicago
sudo apt-get update && sudo apt-get install -y ntp
################################################################################
# Set up sudo not to require password for this user
sudo addgroup freesudo
sudo usermod -aG freesudo $USER
echo "%unrestricted ALL=(ALL:ALL) NOPASSWD: ALL" | sudo tee -a /etc/sudoers
################################################################################
# Install Docker
sudo apt-get update && sudo apt-get upgrade -y
sudo apt-get install \
vim \
git \
tmux
sudo apt-get install -y \
apt-transport-https \
ca-certificates \
curl \
gnupg-agent \
software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
if ! sudo apt-key fingerprint 0EBFCD88 | grep -q "9DC8 5822 9FC7 DD38 854A E2D8 8D81 803C 0EBF CD88"; then
echo "WARNING: Docker key fingerprint does not match."
echo "Correct this before proceeding."
exit 1
fi
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 -y docker-ce docker-ce-cli containerd.io
sudo usermod -aG docker $USER
sudo systemctl enable docker
echo '{
"log-driver": "json-file",
"log-opts": {
"max-size": "10m",
"max-file": "10"
}
}' | sudo tee /etc/docker/daemon.json
################################################################################
# Install Vim
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
echo "" | vim +PluginInstall +qall