Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- ### CRÉDITOS:
- ### WAGNER ARESTIDES: RESPONSÁVEL PELA CONFIGURAÇÃO E LISTA DE PACOTES PARA INSTALAÇÃO
- ### EMAIL: wagner2308@gmail.com
- ### VALSON PEREIRA: RESPONSÁVEL PELA A IMPLEMENTAÇÃO DO CÓDIGO
- ### EMAIL: valson.pereira@gmail.com
- ################################# APLICATIVO POS INSTALAÇÃO UBUNTU 14.04 LTS #################################
- function MenuPrincipal()
- {
- clear
- VERSAO=lsb_release\ --short\ --description
- $VERSAO && echo "*********** Bem Vindo ao Aplicativo Pós instalaçao *************"
- CONDICAO=1
- while [ $CONDICAO != 0 ]
- do
- echo "
- Digite a opcao:
- 1- baixar e instalar Pacotes Básicos
- 2- Pacotes Extras
- 3- Sair "
- read OPCAO
- case $OPCAO in
- 1)instalacaoPacotesBasicos;;
- 2)menuExtra;;
- 3)echo "Encerrando o Script"
- CONDICAO=0;;
- *) echo "Opcao Invalida...";;
- esac
- done
- }
- ################################## DEMAIS FUNÇOES ##########################################
- ################################# INSTALAÇÃO BÁSICA #######################
- function instalacaoPacotesBasicos()
- {
- clear
- echo "
- Instalando repositórios necessários para obtenção de pacotes...
- Para Cancelar a instalação pressione CTRL + C
- "
- add-apt-repository ppa:otto-kesselgulasch/gimp -y && add-apt-repository ppa:webupd8team/java -y && add-apt-repository ppa:freyja-dev/unity-tweak-tool-daily -y && add-apt-repository ppa:samrog131/ppa -y && apt-get update
- echo "
- Baixando e instalando Pacotes Básicos...
- "
- apt-get install faac faad ffmpeg-real ffmpeg2theora flac icedax id3v2 lame libflac++6 libjpeg-progs libmpeg3-1 mencoder mjpegtools mp3gain mpeg2dec mpeg3-utils mpegdemux mpg123 mpg321 regionset sox uudeview vorbis-tools x264 arj p7zip p7zip-full p7zip-rar rar unace-nonfree flashplugin-installer ttf-ubuntu-font-family ubuntu-restricted-extras vlc lame preload prelink bum rcconf dialog wine gecko-mediaplayer gimp gimp-plugin-registry gimp-gmic xsane devede k3b libk3b-dev libk3b6-extracodecs ripperx audacity winff ssh portmap nfs-common yakuake hardinfo chromium-browser chromium-browser-l10n chromium-codecs-ffmpeg-extra samba htop kdegames gnome-games supertux frozen-bubble qt4-qtconfig vim language-pack-kde-pt language-pack-pt-base language-pack-pt language-pack-gnome-pt-base language-pack-gnome-pt glipper clementine -y && sudo /usr/share/doc/libdvdread4/install-css.sh && sudo apt-get install unity-tweak-tool oracle-java7-installer zram-config mesa-utils libxss1 -y && cd /tmp && apt-get install debdelta -y && sudo debdelta-upgrade && sudo apt-get update && sudo apt-get dist-upgrade -y && sudo apt-get autoremove -y ; sudo apt-get autoclean ; sudo updatedb && sudo prelink -amR
- }
- ############################ EXTRAS #####################################################################
- ##### INSTALACO TLP ###########
- function instalacoTLP()
- {
- clear
- echo "
- Instalando o TLP gerenciador de Energia de notebooks....
- Para Cancelar a instalação pressione CTRL + C
- "
- add-apt-repository ppa:linrunner/tlp -y && apt-get update && apt-get install tlp tlp-rdw -y ; tlp start
- echo "
- TLP Instalado com sucesso
- "
- }
- ######## INSTALACAO GOOGLE CHROME ############
- function instalacaoChrome()
- {
- clear
- echo "
- Instalando o Google Chrome
- Para Cancelar a instalação pressione CTRL + C
- "
- if [ "$ARCH" = "32" ]; then
- wget -c https://dl.google.com/linux/direct/google-chrome-stable_current_i386.deb ; sudo dpkg -i google-chrome-stable_current_i386.deb ;
- else
- wget -c https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb ; sudo dpkg -i google-chrome-stable_current_amd64.deb ;
- fi
- echo "
- Navegador Google Chrome Instalado com sucesso
- "
- }
- ########### INSTALACAO PACOTES EDUCACIONAIS ########################
- function instalacaoPacotesEducacionais()
- {
- clear
- echo "
- Instalando pacotes Educacionais...
- Para Cancelar a instalação pressione CTRL + C
- "
- apt-get install anagramarama blinken khangman klettres ktouch kturtle kwordquiz childsplay childsplay-alphabet-sounds-pt gcompris gcompris-sound-ptbr glchess gweled kbattleship kblackbox klickety konquest klines kmahjongg kpat pingus lmemory junior-puzzle xgalaga pinta tuxpaint tuxpaint-plugins-default tuxpaint-stamps-default googleearth-package inkscape -y
- echo "
- Pacotes Educacionais Instalados com sucesso...
- "
- }
- ############### Menu Extra ###############################
- function menuExtra()
- {
- clear
- echo "Escolha qual Pacote instalar:
- 1 - TLP Gerenciador de energia (Obs.: SOMENTE PARA NOTEBOOKS, ULTRABOOKS OU NETBOOKS)
- 2 - Navegador Google Chrome
- 3 - Pacotes Educacionais
- 4 - Retornar ao Menu Principal"
- read OPCAOEXTRA
- case $OPCAOEXTRA in
- 1) instalacoTLP;;
- 2) instalacaoChrome;;
- 3) instalacaoPacotesEducacionais;;
- 4) MenuPrincipal;;
- *) echo "Opcao Invalida...";;
- esac
- }
- ################################################## EXECUCAO DO SCRIPT ###########################################
- if [ $USER = "root" ] ## Verifica se o usuario é root
- then
- clear
- MenuPrincipal
- else
- echo "
- Voce Precisa ser root para executar esse script
- "
- fi
- exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement