Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # !/bin/bash
- #################
- #### FUNCOES ####
- #################
- # Atualizacao de sistema
- Atualizacao_Sistema()
- {
- # Titulo
- clear
- echo ""
- echo -e "\033[01;32m ATUALIZANDO... \033[01;37m"
- echo ""
- # SubTitulo
- echo -e "\033[01;33m ------------------------------ \033[01;37m"
- echo -e "\033[01;33m --- ATUALIZACAO DO SISTEMA --- \033[01;37m"
- echo -e "\033[01;33m ------------------------------ \033[01;37m"
- echo ""
- # Atualizacao
- apt update
- apt-get update
- apt-get upgrade
- apt-get dist-upgrade
- # Limpeza
- apt-get clean
- apt-get remove
- apt-get autoclean
- apt-get autoremove
- }
- # Atualizacao de sistema paralela
- Atualizacao_Ferramentas()
- {
- # Titulo
- clear
- echo ""
- echo -e "\033[01;32m ATUALIZANDO... \033[01;37m"
- echo ""
- # SubTitulo
- echo -e "\033[01;33m ----------------------------- \033[01;37m"
- echo -e "\033[01;33m --- ATUALIZACAO SUPORTE ----- \033[01;37m"
- echo -e "\033[01;33m ----------------------------- \033[01;37m"
- echo ""
- # Conexao
- apt-get -f install ssh
- apt-get -f install ftp
- # Grafico
- apt-get -f install dialog
- apt-get -f install whiptail
- # Ferramentas de Rede
- apt-get -f install dnsutils
- apt-get -f install net-tools
- # Editores
- apt-get -f install vim
- apt-get -f install nano
- # Compiladores essenciais
- apt-get -f install build-essential $(uname -r)
- apt-get -f install build-essential linux-headers- $(uname -r)
- # Diversos
- apt-get -f install bc
- apt-get -f install git
- apt-get -f install csh
- apt-get -f install zip
- apt-get -f install yum
- apt-get -f install gpm
- apt-get -f install gem
- apt-get -f install sudo
- apt-get -f install idle
- apt-get -f install whois
- apt-get -f install rsync
- apt-get -f install ipcalc
- apt-get -f install ntfs-3g
- apt-get -f install bundler
- apt-get -f install python3
- apt-get -f install ntfs-3g
- apt-get -f install python-pip
- apt-get -f install python-virtualenv
- apt-get -f install debian-archive-keyring
- apt-get -f install pip install pyinstaller
- }
- Compilar()
- {
- # Apresentacao
- clear
- echo ""
- echo -e "\033[01;33m ------------------ \033[01;37m"
- echo -e "\033[01;34m --- COMPILACAO --- \033[01;37m"
- echo -e "\033[01;33m ------------------ \033[01;37m"
- echo ""
- # Entrada de dados
- echo -e -n "\033[01;35m - Digite o nome do programa [sem extensao .py]: \033[01;37m"
- read nome
- # Comando
- pyinstaller $nome.py
- }
- ###################
- ##### PROGRAMA ####
- ###################
- while (( 1 ))
- do
- # Apresentacao
- clear
- echo ""
- echo -e "\033[01;37m ------------- \033[01;37m"
- echo -e "\033[01;36m --- MENU --- \033[01;37m"
- echo -e "\033[01;37m ------------- \033[01;37m"
- echo ""
- echo -e "\033[01;33m ------------------------------- \033[01;37m"
- echo -e "\033[01;34m [1] Atualizacao do sistema \033[01;37m"
- echo -e "\033[01;35m [2] Atualizacao das ferramentas \033[01;37m"
- echo -e "\033[01;36m [3] Compilacao \033[01;37m"
- echo -e "\033[01;33m ------------------------------- \033[01;37m"
- echo ""
- echo -e -n "\033[01;37m - Resp: \033[01;37m"
- read opc
- echo ""
- # Estrutura em escolha
- case $opc in
- 1)
- Atualizacao_Sistema;;
- 2)
- Atualizacao_Ferramentas;;
- 3)
- Compilar;;
- *)
- ;;
- esac
- echo ""
- echo -e "\033[01;35m =-=-= [Press Enter] =-=-= \033[01;37m"
- read
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement