-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathInstalar_Raspberry_Pi.bash
More file actions
executable file
·86 lines (61 loc) · 2.09 KB
/
Instalar_Raspberry_Pi.bash
File metadata and controls
executable file
·86 lines (61 loc) · 2.09 KB
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
#!/bin/bash
# Executa instalação como root
function run_as_root() {
function instalar_pacotes_dnf() {
# Habilitando RPM Fusion
bash ./Enable-RpmFusion.bash
# Instalando os Sistemas de arquivos não nativos do linux
dnf install --assumeyes ntfs-3g
dnf install --assumeyes exfat-utils
dnf install --assumeyes fuse
dnf install --assumeyes fuse-exfat
# Instalando o comando para acordar computadores pela rede
dnf install --assumeyes wol
# Instalando o comando para completar comandos no terminal
dnf install --assumeyes bash-completion
}
# Carregando dados do arquivo .env
source .env
# Configurando Systemd-Resolved
bash ./ConfigurarSystemdResolved.bash
# Configurando o sshd_config
bash ./ConfigurarSshdConfig.bash
# Configurando DNF
bash ./ConfigurarDnfPackageManager.bash
# Desabilitando o Cockpit
bash ./Disable-Cockpit.bash
# Alterando o nome do computador
hostnamectl set-hostname --static "$hostname_raspberry_pi"
# Habilitando o RPM Fusion
bash ./Enable-RpmFusion.bash
# Configurando o NTP
bash ./ConfigurarNtpRaspiberry.bash
# Configurando DNF Automatic
bash ./ConfigurarAtualizacoesAutomaticasDnfAutomaticRaspiberryPi.bash
# Instalando e Configurando o Docker
bash ./Install-DockerEngine.bash
bash ./ConfigurarDockerRaspiberry.bash
# Instalando pacotes dnf
instalar_pacotes_dnf
# Instalando o Flatpak
bash ./Install-Flatpak.bash
# Instalando o gerenciador de pacotes Snap
bash ./Install-Snapd.bash
# Instalando Java
bash ./Install-Java_8_Headless.bash
bash ./Install-Java_21_Headless.bash
# Instalando o Wireguard
bash ./Wireguard/Install-Wireguard.bash
# Instalando o Dynamic DNS Update Client
bash ./Install-Dynamic_Dns_Update_Client.bash
# Atualizando todos os pacotes instalados
bash ./Update-All.bash
}
# Instalando programas como root
if [ "$(whoami)" == "root" ]; then
bash -c "$(declare -f run_as_root); run_as_root"
else
sudo bash -c "$(declare -f run_as_root); run_as_root"
fi
# Baixando chaves públicas ssh
bash ./Get-SshPublicKeysFromGithub.bash