forked from jfollmann/ubuntu-setup
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path01-install.all.sh
executable file
·98 lines (78 loc) · 2.86 KB
/
01-install.all.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
#! /usr/bin/zsh
echo '########## <updating and upgrade> ##########'
sudo apt-get update
sudo dpkg --configure -a
sudo apt-get upgrade -y
echo '########## <updating snap> ##########'
sudo snap refresh
sudo bash -c 'cat <<EOF > ./upgrade-all.sh
sudo apt-get update
sudo apt-get -y upgrade
sudo apt-get -y dist-upgrade
sudo apt -y autoremove
sudo apt-get clean
EOF'
sudo chmod +x ./upgrade-all.sh
echo '########## <installing curl> ##########'
sudo apt install curl -y -f
curl -V
echo '########## <installing git> ##########'
sudo add-apt-repository -y ppa:git-core/ppa
sudo apt-get update
sudo apt install git -y -f
git --version
echo 'What name do you want to use in GIT user.name?'
read -r git_config_user_name
git config --global user.name "$git_config_user_name"
echo 'What email do you want to use in GIT user.email?'
read -r git_config_user_email
git config --global user.email "$git_config_user_email"
echo 'Generating a SSH Key'
ssh-keygen -t rsa -b 4096 -C "$git_config_user_email"
ssh-add ~/.ssh/id_rsa
cat ~/.ssh/id_rsa.pub | xclip -selection clipboard
echo '########## <installing vscode> ##########'
sudo snap install code
echo '########## <installing docker> ##########'
sudo apt-get remove docker docker-engine docker.io -y
sudo apt install docker.io -y -f
sudo systemctl enable --now docker
sudo usermod -aG docker ${USER}
sudo systemctl start docker
sudo systemctl enable docker
docker --version
sudo chmod 777 /var/run/docker.sock
echo '########## <installing docker-compose> ##########'
DOCKER_COMPOSE_LATEST=$(curl --silent "https://api.github.com/repos/docker/compose/releases/latest" \
| grep '"tag_name":' \
| sed -E 's/.*"([^"]+)".*/\1/')
sudo curl -L "https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_LATEST}/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
docker-compose --version
echo '########## <installing ctop> ##########'
echo "deb http://packages.azlux.fr/debian/ buster main" | sudo tee /etc/apt/sources.list.d/azlux.list
wget -qO - https://azlux.fr/repo.gpg.key | sudo apt-key add -
sudo apt update
sudo apt install docker-ctop
echo '########## <installing vlc player> ##########'
sudo snap install vlc
echo '########## <installing tree> ##########'
sudo apt-get install tree -y
echo '########## <installing zsh> ##########'
sudo apt-get install zsh -y
sh -c "$(wget https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"
echo '########## <installing jq> ##########'
sudo apt-get install jq -y
echo '########## <installing Golang> ##########'
sudo apt-get install golang
echo '########## <install Rust> ##########'
sudo apt install -y build-essential
curl https://sh.rustup.rs -sSf | sh
source $HOME/.cargo/env
rustc --version
read restart_computer
if echo "$restart_computer" | grep -iq "^y" ;then
sudo shutdown -r 0
else
echo "Okay. Good work! :)"
fi