Last active
September 7, 2022 06:49
-
-
Save Andelnyr/5bf0745dd7aa5a83d2b941b05ec1946f to your computer and use it in GitHub Desktop.
Revisions
-
Andelnyr revised this gist
Sep 7, 2022 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -15,7 +15,7 @@ dnf clean all echo -e "\n+ INFO: BAIXANDO E INSTALANDO PACOTES INDISPENSÁVEIS" echo -e " ===================================================\n" dnf -y install epel-release glibc-langpack-pt\* tar rsync localectl set-locale LANG=pt_BR.UTF8 # Foi informado um argumento & ele existe? -
Andelnyr revised this gist
Sep 4, 2022 . 1 changed file with 4 additions and 5 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -18,11 +18,10 @@ echo -e " ===================================================\n" dnf -y install epel-release glibc-langpack-pt\* tar localectl set-locale LANG=pt_BR.UTF8 # Foi informado um argumento & ele existe? # SIM: É um cache comprimido! # Descompactar o cache em /var/cache/dnf # Setar a variável EXISTE_CACHE if [ $# -gt 0 -a -e $1 ]; then echo -e "\n+ INFO: POPULANDO /var/cache/dnf" echo -e " ===============================\n" -
Andelnyr revised this gist
Sep 4, 2022 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -23,7 +23,7 @@ localectl set-locale LANG=pt_BR.UTF8 # SIM: É um cache comprimido! # Descompactar o cache em /var/cache/dnf # Setar a variável EXISTE_CACHE if [ $# -gt 0 -a -e $1 ]; then echo -e "\n+ INFO: POPULANDO /var/cache/dnf" echo -e " ===============================\n" tar -zxf $1 -C "/" -
Andelnyr revised this gist
Sep 4, 2022 . 1 changed file with 5 additions and 7 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -23,13 +23,11 @@ localectl set-locale LANG=pt_BR.UTF8 # SIM: É um cache comprimido! # Descompactar o cache em /var/cache/dnf # Setar a variável EXISTE_CACHE if [ $# -gt 0 ] & [ -e $1 ]; then echo -e "\n+ INFO: POPULANDO /var/cache/dnf" echo -e " ===============================\n" tar -zxf $1 -C "/" EXISTE_CACHE=1 fi # Existe cache? -
Andelnyr revised this gist
Sep 4, 2022 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -34,7 +34,7 @@ fi # Existe cache? # NÃO: Setar keepcache em /etc/yum.conf e gerar cache de pacotes # Atualizando o S.O. e criando cópia de pacotes RPM if [ -z "$EXISTE_CACHE" ]; then echo -e "\n+ INFO: CONFIGURANDO E CRIANDO CACHE DE PACOTES EM /VAR/CACHE" echo -e " ============================================================\n" -
Andelnyr revised this gist
Sep 4, 2022 . 1 changed file with 10 additions and 20 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -34,6 +34,7 @@ fi # Existe cache? # NÃO: Setar keepcache em /etc/yum.conf e gerar cache de pacotes # Atualizando o S.O. if [ -z "$EXISTE_CACHE" ]; then echo -e "\n+ INFO: CONFIGURANDO E CRIANDO CACHE DE PACOTES EM /VAR/CACHE" echo -e " ============================================================\n" @@ -43,39 +44,28 @@ if [ -z "$EXISTE_CACHE" ]; then fi dnf makecache echo -e "\n+ INFO: ATUALIZANDO O SO..." echo -e "===========================\n" dnf -y update echo -e "\n+ INFO: INSTALANDO APLICAÇÕES PARA O FUNCIONAMENTO DO TO" echo -e "========================================================\n" dnf -y groupinstall base-x dnf -y groupinstall Xfce dnf -y install motif xterm geany echo -e "\n+ INFO: GERANDO UMA CÓPIA DO CACHE PARA USO POSTERIOR" echo -e "=====================================================\n" ts=$(date +%Y%m%d_%H%M%S) cache_rpm="cache_RLinux_${ts}.tar.gz" tar -czf "$cache_rpm" '/var/cache/' else # Instalando os pacotes pelo cache dnf -C -y groupinstall base-x dnf -C -y groupinstall Xfce dnf -C -y install motif xterm geany fi echo -e "\n+ INFO: INSTALAÇÃO CONCLUÍDA COM SUCESSO" echo -e "========================================\n" -
Andelnyr revised this gist
Sep 4, 2022 . 1 changed file with 10 additions and 22 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -13,14 +13,15 @@ echo -e "\n+ INFO: REMOVENDO VERSÕES ANTIGAS DO CACHE" echo -e " =========================================\n" dnf clean all echo -e "\n+ INFO: BAIXANDO E INSTALANDO PACOTES INDISPENSÁVEIS" echo -e " ===================================================\n" dnf -y install epel-release glibc-langpack-pt\* tar localectl set-locale LANG=pt_BR.UTF8 # Foi informado um argumento? # SIM: ele existe? # SIM: É um cache comprimido! # Descompactar o cache em /var/cache/dnf # Setar a variável EXISTE_CACHE if [ $# -gt 0 ]; then if [ -e $1 ]; then @@ -44,22 +45,9 @@ if [ -z "$EXISTE_CACHE" ]; then dnf makecache fi # Existe cache? # NÃO: fazer update if [ -z "$EXISTE_CACHE" ]; then # Fazer update echo -e "\n+ INFO: ATUALIZANDO O SO..." echo -e "===========================\n" @@ -82,10 +70,10 @@ else fi # Existe cache # NÃO: Crie uma cópia comprimida do cache para uso posterior if [ -z "$EXISTE_CACHE" ]; then ts=$(date +%Y%m%d_%H%M%S) cache_rpm="cache_RLinux_${ts}.tar.gz" tar -czvf "$cache_rpm" '/var/cache/' fi -
Andelnyr revised this gist
Sep 4, 2022 . 1 changed file with 10 additions and 8 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -13,13 +13,20 @@ echo -e "\n+ INFO: REMOVENDO VERSÕES ANTIGAS DO CACHE" echo -e " =========================================\n" dnf clean all echo -e "\n+ INFO: INSTALANDO PACOTES INDISPENSÁVEIS" echo -e " ========================================\n" dnf -y install tar dnf -y install epel-release # Foi informado um argumento? # SIM: ele existe? # SIM: Descompactar o cache em /var/cache # Setar a variável EXISTE_CACHE if [ $# -gt 0 ]; then if [ -e $1 ]; then echo -e "\n+ INFO: POPULANDO /var/cache/dnf" echo -e " ===============================\n" tar -zxf $1 -C "/" EXISTE_CACHE=1 fi fi @@ -53,11 +60,6 @@ localectl set-locale LANG=pt_BR.UTF8 # NÃO: Instalar repositório EPEL e fazer update if [ -z "$EXISTE_CACHE" ]; then # Fazer update echo -e "\n+ INFO: ATUALIZANDO O SO..." echo -e "===========================\n" @@ -71,12 +73,12 @@ echo -e "========================================================\n" if [ -z "$EXISTE_CACHE" ]; then dnf -y groupinstall base-x dnf -y groupinstall Xfce dnf -y install motif xterm geany else # Instalando os pacotes pelo cache dnf -C -y groupinstall base-x dnf -C -y groupinstall Xfce dnf -C -y install motif xterm geany fi # Existe cache -
Andelnyr revised this gist
Sep 4, 2022 . 1 changed file with 72 additions and 25 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,44 +1,91 @@ #!/bin/bash clear # Este script deve ser executado como root if [ "$USER" != "root" ]; then echo "=================================================" echo "+ ERRO: Este script deve ser executado como root." echo "=================================================" exit fi echo -e "\n+ INFO: REMOVENDO VERSÕES ANTIGAS DO CACHE" echo -e " =========================================\n" dnf clean all # Foi informado um argumento? # SIM: ele existe? # SIM: Descompactar o cache em /var/cache # Setar a variável EXISTE_CACHE if [ $# -gt 0 ]; then if [ -e $1 ]; then tar -zxvf $1 EXISTE_CACHE=1 fi fi # Existe cache? # NÃO: Setar keepcache em /etc/yum.conf e gerar cache de pacotes if [ -z "$EXISTE_CACHE" ]; then echo -e "\n+ INFO: CONFIGURANDO E CRIANDO CACHE DE PACOTES EM /VAR/CACHE" echo -e " ============================================================\n" if ! grep 'keepcache=1' /etc/yum.conf > /dev/null 2>&1; then echo 'keepcache=1' >> /etc/yum.conf fi dnf makecache fi # Instalar o pacote do idioma pt no rocklinux-minimal echo -e "\n+ INFO: INSTALANDO O PACOTE DE IDIOMAS PARA PT-BR" echo -e "=================================================\n" if [ -z "$EXISTE_CACHE" ]; then dnf -y install glibc-langpack-pt\* else dnf -C -y install glibc-langpack-pt\* fi localectl set-locale LANG=pt_BR.UTF8 # Existe cache # NÃO: Instalar repositório EPEL e fazer update if [ -z "$EXISTE_CACHE" ]; then # Instalar repositório EPEL echo -e "\n+ INFO: INSTALANDO O REPOSITÓRIO EPEL" echo -e "=====================================\n" dnf -y install epel-release # Fazer update echo -e "\n+ INFO: ATUALIZANDO O SO..." echo -e "===========================\n" dnf -y update fi # Existe cache # NÃO: Instalar o pacote básico do X, Xfce, motif, xterm e geany echo -e "\n+ INFO: INSTALANDO APLICAÇÕES PARA O FUNCIONAMENTO DO TO" echo -e "========================================================\n" if [ -z "$EXISTE_CACHE" ]; then dnf -y groupinstall base-x dnf -y groupinstall Xfce dnf -y install tar motif xterm geany else # Instalando os pacotes pelo cache dnf -C -y groupinstall base-x dnf -C -y groupinstall Xfce dnf -C -y install tar motif xterm geany fi # Existe cache # SIM: Pule a etapa de gerar pacote com cache da instalação if [ -z "$EXISTE_CACHE" ]; then ts=$(date +%Y%m%d_%H%M%S) cache_rpm="cache_rpm_rockylinux_${ts}.tar.gz" tar -czvf "$cache_rpm" '/var/cache/' fi echo -e "\n+ INFO: INSTALAÇÃO CONCLUÍDA COM SUCESSO" echo -e "========================================\n" -
Andelnyr revised this gist
Sep 3, 2022 . 1 changed file with 14 additions and 6 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,13 +1,17 @@ #!/bin/bash # Este script deve ser executado como root # Foi informado um arquivo compactado de cache para iniciar? # Se Sim: Descompactar o cache em /var/cache # Setar a variável EXISTE_CACHE = True # # Não: Setar a variável EXISTE_CACHE = False # Setar keepcache em /etc/yum.conf echo -e "\n+ INFO: CONFIGURANDO E CRIANDO CACHE DE PACOTES EM /VAR/CACHE" echo -e " ============================================================\n" if ! grep -o 'keepcache=1' /etc/yum.conf; then echo 'keepcache=1' >> /etc/yum.conf @@ -16,21 +20,25 @@ fi dnf makecache # Instalar o pacote do idioma pt no rocklinux-minimal echo -e "\n+ INFO: INSTALANDO O PACOTE DE IDIOMAS PARA PT-BR" echo -e "=================================================\n" dnf -y install glibc-langpack-pt\* localectl set-locale LANG=pt_BR.UTF8 # Instalar repositório EPEL echo -e "\n+ INFO: INSTALANDO O REPOSITÓRIO EPEL" echo -e "=====================================\n" dnf -y install epel-release # Fazer update echo -e "\n+ INFO: ATUALIZANDO O SO..." echo -e "===========================\n" dnf -y update # Pra instalar o pacote básico do X, Xfce, motif, xterm e geany echo -e "\n+ INFO: INSTALANDO APLICAÇÕES PARA O FUNCIONAMENTO DO TO" echo -e "========================================================\n" dnf -y group install base-x dnf -y group install Xfce dnf -y install tar motif xterm geany -
Andelnyr revised this gist
Sep 3, 2022 . 1 changed file with 20 additions and 17 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,33 +1,36 @@ #!/bin/bash # Foi informado um arquivo compactado de cache para iniciar? # Se Sim: Descompactar o cache em /var/cache # Setar a variável EXISTE_CACHE = True # # Não: Setar a variável EXISTE_CACHE = False # Setar keepcache em /etc/yum.conf echo -e "\n+ INFO: Configurando e criando cache de pacotes em /var/cache" if ! grep -o 'keepcache=1' /etc/yum.conf; then echo 'keepcache=1' >> /etc/yum.conf fi dnf makecache # Instalar o pacote do idioma pt no rocklinux-minimal echo -e "\n+ INFO: Instalando o pacote de idiomas para PT-BR" dnf -y install glibc-langpack-pt\* localectl set-locale LANG=pt_BR.UTF8 # Instalar repositório EPEL echo -e "\n+ INFO: Instalando o repositório EPEL" dnf -y install epel-release # Fazer update echo -e "\n+ INFO: Atualizando o SO..." dnf -y update # Pra instalar o pacote básico do X, Xfce, motif, xterm e geany echo -e "\n+ INFO: Instalando aplicações para o funcionamento do TO" dnf -y group install base-x dnf -y group install Xfce dnf -y install motif xterm geany -
Andelnyr revised this gist
Sep 3, 2022 . 1 changed file with 9 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,6 +2,7 @@ # Se não estiver: informar e sair # Setar keepcache em /etc/yum.conf echo 'keepcache=1' >> /etc/yum.conf # Fazer cache dnf makecache @@ -16,12 +17,17 @@ dnf -y install epel-release # Fazer update dnf -y update # Pra instalar o pacote básico do X dnf -y group install base-x # Para instalar Xfce dnf -y group install Xfce dnf -y install motif dnf -y install xterm dnf -y install geany sudo systemctl set-default graphical -
Andelnyr revised this gist
Sep 3, 2022 . 1 changed file with 9 additions and 9 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -6,22 +6,22 @@ # Fazer cache dnf makecache # Para instalar o pacote do idioma pt no rocklinux-minimal dnf -y install glibc-langpack-pt\* #### localectl set-locale LANG=ja_JP.utf # Instalar repositório EPEL dnf -y install epel-release # Fazer update dnf -y update adduser # Pra instalar o pacoite básico do X dnf -y group install base-x # Para instalar Xfce dnf -y group install Xfce sudo systemctl set-default graphical -
Andelnyr revised this gist
Sep 3, 2022 . 1 changed file with 13 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,17 @@ # A rede está conectada? # Se não estiver: informar e sair # Setar keepcache em /etc/yum.conf # Fazer cache dnf makecache # Fazer update dnf -y update # Instalar repositório EPEL dnf -y install epel-release -
Andelnyr revised this gist
Sep 3, 2022 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -11,3 +11,5 @@ dnf -y group install Xfce dnf -y group install base-x sudo systemctl set-default graphical -
Andelnyr revised this gist
Sep 3, 2022 . 1 changed file with 4 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,6 @@ sudo dnf install epel-release # Para instalar o pacote do idioma pt no rocklinux-minimal @@ -7,3 +9,5 @@ dnf -y install glibc-langpack_pt\* # Para instalar Xfce dnf -y group install Xfce dnf -y group install base-x -
Andelnyr created this gist
Sep 3, 2022 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,9 @@ # Para instalar o pacote do idioma pt no rocklinux-minimal dnf -y install glibc-langpack_pt\* # Para instalar Xfce dnf -y group install Xfce