-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
executable file
·169 lines (132 loc) · 7.33 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
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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
#!/bin/bash
# Brave browser
install_brave() {
# install curl
echo "===================== Installing curl =================="
sudo apt -y install curl
echo "================== Downloading keyring ====================="
sudo curl -fsSLo /usr/share/keyrings/brave-browser-archive-keyring.gpg https://brave-browser-apt-release.s3.brave.com/brave-browser-archive-keyring.gpg
echo "=========================== Adding Brave Browser to sources.list.d ============================="
echo "deb [signed-by=/usr/share/keyrings/brave-browser-archive-keyring.gpg] https://brave-browser-apt-release.s3.brave.com/ stable main"|sudo tee /etc/apt/sources.list.d/brave-browser-release.list
echo "================================ Updating packages ==============================="
sudo apt update
echo "==================== Installing brave =========================="
sudo apt install -y brave-browser
}
install_vscode() {
echo "================== Downloading the best IDE to ever exist =============================="
local download_url="https://code.visualstudio.com/sha/download?build=stable&os=linux-deb-x64"
wget -O vscode.deb "$download_url"
echo "======================= Installing vscode =================================="
sudo apt install -y ./vscode.deb
echo "======================= Successfully installed vscode stable version as vscode.deb"
}
install_postman() {
echo "======================= Preparing postman ================================="
sudo wget https://dl.pstmn.io/download/latest/linux64 -O postman-linux-x64.tar.gz
echo "========================= Extracting postman ==========================="
sudo tar -xvzf postman-linux-x64.tar.gz -C /opt
echo "======================= Creating alias for postman =========================="
sudo ln -s /opt/Postman/Postman /usr/bin/postman
echo "===================== Postman has been installed, to run it open the terminal and type postman =============================="
}
install_appimage_launcher() {
echo "===================== Installing app image launcher ====================================="
local appimagelauncher_url="https://github.com/TheAssassin/AppImageLauncher/releases/download/v2.2.0/appimagelauncher_2.2.0-travis995.0f91801.bionic_amd64.deb"
echo "=========================== Downloading app image launcher ========================================="
wget -O appimage_laucher.deb "$appimagelauncher_url"
echo "========================== Installing app image launcher =================================="
sudo apt install -y ./appimage_launcher.deb
echo "==================== Successfully installed App image launcher ================================"
}
install_zoom() {
echo "============================== Downloading Zoom ============================="
local zoom_url="https://zoom.us/client/5.17.1.1840/zoom_amd64.deb"
wget -O zoom.deb "$zoom_url"
echo "========================= Installing Zoom ==================================="
sudo apt install -y ./zoom.deb
}
install_obsidian() {
local obsidian_url="https://github.com/obsidianmd/obsidian-releases/releases/download/v1.5.3/Obsidian-1.5.3.AppImage"
echo "============================ Downloading Obsidian Notes ===================================="
wget -O obsidian.AppImage "$obsidian_url"
echo "================================== Successfully downloaded Obsidian run it on the UI to complete installation. =========================================="
}
install_docker() {
echo "========================= Initializing the docker installation process ======================================"
sudo apt install -y docker.io
echo "========================= Enabling the docker service ====================================================="
sudo systemctl enable docker --now
echo "Adding current user to the docker group ================================================"
sudo usermod -aG docker $USER
echo "============================ Installing docker-ce ======================================"
printf '%s\n' "deb https://download.docker.com/linux/debian bullseye stable" | sudo tee /etc/apt/sources.list.d/docker-ce.list
echo "=============================== Importing the gpg key ====================================="
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/docker-ce-archive-keyring.gpg
echo "========================= Updating repositories ========================================"
sudo apt -y update
echo "================================= Installing docker-ce ================================="
sudo apt install -y docker-ce docker-ce-cli containerd.io
}
install_docker_desktop () {
local docker_desktop_url="https://desktop.docker.com/linux/main/amd64/docker-desktop-4.26.1-amd64.deb?utm_source=docker&utm_medium=webreferral&utm_campaign=docs-driven-download-linux-amd64"
echo "=========================== Downloading docker desktop ============================================="
wget -O docker-desktop.deb "$docker_desktop_url"
echo "=========================== Installing docker desktop =============================================="
sudo apt install ./docker-desktop.deb
}
install_docker_compose () {
echo "================================= Install docker compose ======================================="
sudo apt install -y docker-compose-plugin
echo "======================== Installation successful checking docker compose version ======================"
docker compose version
}
install_altair (){
local altair_url="https://github.com/altair-graphql/altair/releases/download/v6.1.0/altair_6.1.0_x86_64_linux.AppImage"
wget -O altair_6_1_0.AppImage "$altair_url"
sudo chmod u+x altair_6_1_0.AppImage
./altair_6_1_0.AppImage
}
# Install spotify
install_spotify(){
curl -sS https://download.spotify.com/debian/pubkey_6224F9941A8AA6D1.gpg | sudo gpg --dearmor --yes -o /etc/apt/trusted.gpg.d/spotify.gpg
echo "deb http://repository.spotify.com stable non-free" | sudo tee /etc/apt/sources.list.d/spotify.list
sudo apt update -y
sudo apt install -y spotify-client
}
install_terraform() {
sudo apt-get update && sudo apt-get install -y gnupg software-properties-common
wget -O- https://apt.releases.hashicorp.com/gpg | \
gpg --dearmor | \
sudo tee /usr/share/keyrings/hashicorp-archive-keyring.gpg > /dev/null
gpg --no-default-keyring \
--keyring /usr/share/keyrings/hashicorp-archive-keyring.gpg \
--fingerprint
echo "deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] \
https://apt.releases.hashicorp.com $(lsb_release -cs) main" | \
sudo tee /etc/apt/sources.list.d/hashicorp.list
sudo apt update -y && sudo apt install -y terraform
}
install_terminator(){
sudo apt install -y terminator
}
setup_bluetooth(){
sudo apt install -y bluetooth && sudo systemctl enable bluetooth.service
echo "========================================= Setup complete, reboot your machine for Bluetooth to work ======================================="
}
# Calling all functions
#install_flutter
install_brave
install_vscode
install_postman
install_appimage_launcher
install_zoom
install_obsidian
#install_fvm
install_docker
install_docker_desktop
install_docker_compose
install_altair
install_spotify
install_terminator
install_terraform