-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·76 lines (64 loc) · 1.47 KB
/
setup.sh
File metadata and controls
executable file
·76 lines (64 loc) · 1.47 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
#!/bin/bash
echo "Starting the magic..."
# Update and upgrade ubuntu programs
sudo apt update && sudo apt full-upgrade -y
function install-apt {
which $1 &> /dev/null
if [ $? -ne 0 ]; then
echo "Installing: ${1}..."
sudo apt install -y $1
else
echo "Already installed: ${1}"
fi
}
function install-snap {
which $1 &> /dev/null
if [ $? -ne 0 ]; then
echo "Installing: ${1}..."
sudo snap install $1
else
echo "Already installed: ${1}"
fi
}
# Installing the basics
install-apt curl
install-apt wget
install-apt htop
install-apt vim
install-apt slack
install-apt git
install-apt file
install-apt procps
install-apt build-essential
install-apt maven
install-apt gradle
install-apt kubectl
install-snap k9s
install-snap minikube
install-apt python3
install-apt python3-pip
install-apt nodejs
install-apt npm
install-apt yarn
install-apt awscli
install-snap code
install-snap sublime-text
install-snap spotify
install-apt openvpn
install-apt gimp
install-snap shutter
install-snap 'terraform --candidate'
install-snap postman
install-snap redis-desktop-manager
install-apt virtualbox
install-apt zsh
# Run all scripts in programs folder
for f in programs/*.sh; do bash "$f" -H; done
# Run all scripts in configs folder
for f in configs/*.sh; do bash "$f" -H; done
# Copy dotfiles
dotfiles/copy.sh
# Get all upgrades and remove unnecessary packages
sudo apt upgrade -y
sudo apt autoremove -y
echo "Done! but I'm kinf of tired, I think we should call it a day..."