-
Notifications
You must be signed in to change notification settings - Fork 3
/
ubuntu.sh
125 lines (98 loc) · 4.35 KB
/
ubuntu.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
#!/bin/bash
############### SCRIPT PÓS INTALAÇÃO UBUNTU 20.04 ############
#
# ubuntu.sh -
#
# Autor: Gabriel Prando (gprando55@gmail.com)
# Data Criação: 10/09/2020
#
# Descrição: instalar todos os programas e softwares necessários no ubuntu 20.04
# pós instalação
#
# Exemplo de uso (dar permissão primeiro pro script e depois executar)
# sudo chmod +x ubuntu.sh
# sudo ./ubuntu.sh
#
#########################################################################
echo -e "\033[01;32m pos-installation script - Ubuntu 20.04\033[0m"
## ----------------------------------------------------------------------
## Removendo travas eventuais do apt ##
echo -e "\033[01;32mRemoving eventually locks from apt\033[0m"
sudo rm /var/lib/dpkg/lock-frontend; sudo rm /var/cache/apt/archives/lock ;
## ----------------------------------------------------------------------
## Adicionando/Confirmando arquitetura de 32 bits ##
echo -e "\033[01;32mAdd 32 bits architecture to dpkg\033[0m"
sudo dpkg --add-architecture i386
## Atualizando o repositório ##
echo -e "\033[01;32mRunning the apt update\033[0m"
sudo apt update -y
## Adicionando repositórios de terceiros e suporte a Snap ##
echo -e "\033[01;32mAdd third party repositories\033[0m"
## -------Typora-------
echo -e "\033[01;32mTypora\033[0m"
wget -qO - https://typora.io/linux/public-key.asc | sudo apt-key add -
sudo add-apt-repository 'deb https://typora.io/linux ./' -y
## -------/Typora------
## --------cURL------
echo -e "\033[01;32mInstall cURL\033[0m"
sudo apt install curl -y
## -------/cURL------
## -------Yarn--------
echo -e "\033[01;32mYarn\033[0m"
curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
## -------/Yarn-------
## -------Docker-------
echo -e "\033[01;32mDocker\033[0m"
sudo apt-get install apt-transport-https ca-certificates gnupg-agent software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" -y
## -------/Docker------
## Atualizando o repositório depois da adição de novos repositórios ##
echo -e "\033[01;32mRunning apt update after additions\033[0m"
sudo apt update -y
## Programas do repositório APT##
echo -e "\033[01;32mInstalling programs via APT\033[0m"
## Snap
echo -e "\033[01;32mSnap\033[0m"
sudo apt install snapd -y
# Docker
echo -e "\033[01;32mDocker and dependencies\033[0m"
sudo apt-get install docker-ce docker-ce-cli containerd.io -y
sudo groupadd docker
# Programas
echo -e "\033[01;32mGcc, git, github cli, build-essential and others\033[0m"
sudo apt install gcc gimp gparted htop typora vlc yarn libavcodec-extra -y
sudo apt update -y
sudo apt install git -y
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
sudo apt-get install -y nodejs
## Instalando pacotes Snap ##
echo -e "\033[01;32mInstalling snap packages\033[0m"
sudo snap install arduino-mhall119
sudo snap install insomnia
sudo snap install discord
sudo snap install robo3t-snap
sudo snap install code --classic
sudo snap install snap-store
sudo snap install spotify
sudo snap install photogimp
sudo snap install dbeaver-ce
sudo snap install peek
## ----------------------------------------------------------------------
echo -e "\033[01;32mFont fira code\033[0m"
sudo apt install fonts-firacode -y
## -------/Java_8------
echo -e "\033[01;32mInstall jdk 8\033[0m"
sudo add-apt-repository ppa:openjdk-r/ppa -y
sudo apt-get update -y
sudo apt-get install openjdk-8-jdk -y
## -------/Java_8------
## Finalização, atualização e limpeza##
echo -e "\033[01;32mFinish the installations\033[0m"
echo -e "\033[01;32mUpdating and cleaning system\033[0m"
sudo apt update && sudo apt dist-upgrade -y
sudo apt autoclean
sudo apt autoremove -y
## Finalização, atualização e limpeza##
echo -e "\033[01;32;40mTHE END!\033[0m"