basic ubuntu setup script

As in previous post, here is a script to automatically install apps. I have decided to install each app separately, in case one fails to install others can still be processed.

 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
#!/bin/bash

mkdir -p mytemp
cd mytemp/

printf " updating and upgrading..."
sudo apt update
sudo apt upgrade
printf "\n\n"

declare -a apps2Install=(
"aria2"
"bashtop"
"build-essential"
"calibre"
"cmake"
"curl"
"fonts-powerline"
"git"
"golang"
"hardinfo"
"htop"
"iftop"
"kdiff3"
"libssl-dev"
"netdata"
"nethogs"
"nmap"
"nodejs"
"npm"
"okular"
"openssh-server"
"python3-pip"
"rename"
"smartmontools"
"stacer"
"tmux"
"unrar"
"unrar-free"
"vim"
"vlc"
"wget"
"wget2")

for app in "${apps2Install[@]}"
do
   printf "\n\n installing $app ..."
   sudo apt install -y $app
   printf "\n\n"
done

## install rust
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

# install chrome browser
# https://askubuntu.com/questions/79280/how-to-install-chrome-browser-properly-via-command-line
sudo apt install -y libxss1 libappindicator1 libindicator7
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo apt install -y ./google-chrome*.deb
sudo apt install -f

# to install VSCode
# https://www.makeuseof.com/how-to-install-visual-studio-code-ubuntu/
wget -q https://packages.microsoft.com/keys/microsoft.asc -O- | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main"
sudo apt install -y code

# to install brave-browser
# https://brave.com/linux/#release-channel-installation
sudo apt install -y apt-transport-https curl
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 "deb [signed-by=/usr/share/keyrings/brave-browser-archive-keyring.gpg arch=amd64] https://brave-browser-apt-release.s3.brave.com/ stable main"|sudo tee /etc/apt/sources.list.d/brave-browser-release.list
sudo apt update
sudo apt install -y brave-browser


cd ..

sudo pip3 install powerline-status


/images/ubuntusetup1.png