-
Notifications
You must be signed in to change notification settings - Fork 3
/
debian10.sh
executable file
·154 lines (126 loc) · 5.91 KB
/
debian10.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
#!/bin/bash
############### SCRIPT POS INTALAÇÃO DEBIAN 10 ############
#
# Adaptação script pos installation by Vinicius Tartari https://github.com/ViniciusTartari/tartariworkstation/blob/master/tartariworkstationD10.sh
#
# posInstalacaoNotebook.sh -
#
# Autor: Gabriel Prando (gprando55@gmail.com)
# Data Criação: 28/12/2019
#
# Descrição: instalar todos os programas e softwares necessários no Debian 10
# pós formatação
# #
# Exemplo de uso: sudo ./debian10.sh
#
#########################################################################
echo -e "\033[01;32m pos-installation script - Debian 10\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
## Add non-free to official repositories
echo -e "\033[01;32mAdd contrib and non-free to official repositories\033[0m"
sudo apt-add-repository contrib
sudo apt-add-repository non-free
## Atualizando o repositório ##
echo -e "\033[01;32mRunning the apt update\033[0m"
sudo apt update
## -------jdk-------
echo -e "\033[01;32mInstall jdk \033[0m"
sudo apt-get install default-jdk
## -------jdk-------
## Adicionando repositórios de terceiros e suporte a Snap ##
echo -e "\033[01;32mAdd third party repositories\033[0m"
## -------Wine-------
echo -e "\033[01;32mWine\033[0m"
wget -nc https://dl.winehq.org/wine-builds/winehq.key
sudo apt-key add winehq.key
sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/debian/ buster main' -y
## -------/Wine------
## -------VirtualBox-------
echo -e "\033[01;32mVirtual Box\033[0m"
echo "deb https://download.virtualbox.org/virtualbox/debian buster contrib" | sudo tee /etc/apt/sources.list.d/virtualbox.list
wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | sudo apt-key add -
## -------/VirtualBox------
## -------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
## -------/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 install apt-transport-https ca-certificates curl gnupg2 software-properties-common
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian $(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
## 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
# Wine
echo -e "\033[01;32mWine and dependencies\033[0m"
sudo apt install --install-recommends winehq-stable wine-stable wine-stable-i386 wine-stable-amd64 -y
# Docker
echo -e "\033[01;32mDocker and dependencies\033[0m"
sudo apt install docker-ce docker-ce-cli containerd.io -y
# Programas
echo -e "\033[01;32mGcc, git, github cli, build-essential and others\033[0m"
sudo apt install clang cppcheck gcc git hub build-essential filezilla gimp gparted htop inkscape kate virtualbox-6.0 typora vlc yarn libavcodec-extra npm -y
## Configurando git
git config --global user.name "Gabriel Prando"
git config --global user.email "gprando55@gmail.com"
git config --global color.ui true
## ----------------------------------------------------------------------
## Instalando pacotes Snap ##
echo -e "\033[01;32mInstalling snap packages\033[0m"
echo -e "\033[01;32mArduino, insomnia, audacity, discord, robo3t, go, vscode, heroku, android-studio\033[0m"
echo -e "\033[01;32mRedis, node-red, spotify, photogimp, instagraph and snap-store\033[0m"
sudo snap install arduino-mhall119
sudo snap install insomnia
sudo snap install audacity
sudo snap install discord
sudo snap install robo3t-snap
sudo snap install go --classic
sudo snap install node --classic
sudo snap install code --classic
sudo snap install heroku --classic
sudo snap install gitkraken
sudo snap install redis-desktop-manager
sudo snap install node-red
sudo snap install snap-store
sudo snap install spotify
sudo snap install photogimp
sudo snap install postbird
sudo snap install dbeaver-ce
sudo snap install peek
## ----------------------------------------------------------------------
## Instalando DBs com docker
echo -e "\033[01;32mInstalling mongoDB and MySQL on Docker\033[0m"
sudo docker pull mongo
sudo docker pull mysql
## ----------------------------------------------------------------------
## 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
echo -e "\033[01;32;40mTHE END!\033[0m"