document.write('
Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. #!/bin/bash
  2. #
  3. #===============================================================================
  4. # Script de Atualização e ajustes de Pós Instalação do Ubuntu 12.04
  5. # AllConfUbuntu.sh - Versão 1
  6. # Escrito por Thiago Nalli
  7. # <thiago.nalli@gmail.com / http://thiagonalli.wordpress.com>
  8. # Baseado no script "Linux Install Script - LIS" dos autores:
  9. # Marcos Carrara e Daniel Lara (Versão yad)
  10. #================================================================================
  11.  
  12. #
  13. # This file is part of Linux Install Scripts.
  14. # Linux Install Scripts is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
  15. # Linux Install Scripts is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
  16. # You should have received a copy of the GNU General Public License along with Linux Install Scripts. If not, see http://www.gnu.org/licenses/
  17.  
  18. #
  19. #=======================
  20. # Variaveis diversas
  21. #=======================
  22. TT1="Arredondador do Ubuntu 12.04" # Titulo do Script nas Janelas
  23.  
  24. ## Saber se esta em Modo Console ou Modo Texto
  25. case `tty` in
  26. /dev/tty[0-9])
  27. ## Modo Console
  28. echo "Você deve rodar o Script em Modo Grafico";
  29. ;;
  30. ## Modo Grafico
  31. *)
  32. notify-send "Abrindo o ${TT1} aguarde...";
  33. #echo "GRAFICO";
  34. #;;
  35.  
  36. ## o esac desse laço esta no fim do script
  37.  
  38. ## Carregador Inicial Desativado
  39. #t=0;
  40. #while [ $t -lt 100 ];
  41. #do t=$[t+1];
  42. #echo $t;sleep .1;
  43. #done\\
  44. #| yad --title="System" --progress --text "Carregando o Sistema..."
  45.  
  46.  
  47. ## Verifica se é o usuario root ou rodando via sudo, caso não emite aviso e fecha.
  48. if [[ $EUID -ne 0 ]]; then
  49. zenity --title="${TT1}" --warning --text="Execute usando o comando  \' sudo \'  para executar este software! "  
  50. exit 1
  51. fi
  52.  
  53. #----------------------------
  54. # Verifica conexao com a internet
  55. #
  56. ping -c 3 www.google.com.br &>/dev/null
  57. if [[ $? != 0 ]]; then
  58.  
  59. zenity --title="${TT1}" --notification --text=" Voce nao esta conectado a internet! "
  60. exit 1
  61. fi
  62.  
  63. [ $? -ne 0 ] && zenity --error --text="Voce apertou ESC... Saindo do programa!" && exit 1
  64.  
  65. zenity --title="${TT1}" --question \\
  66.  --text="Vamos fazer algumas perguntas para que possamos melhorar sua experiencia com o linux " \\
  67. --cancel-label="Sair" --ok-label="OK"
  68. [ $? -ne 0 ] && exit 1
  69.  
  70.  
  71. #---------------------------
  72. # PROGRAMAS PARA INSTALAR
  73. # Contribuição por Raimundo Alves Portela
  74. # Para menus, sempre uso o --list, e uma ótuma opção,
  75. # visto que permite ao usuário acionar uma única opção:
  76. # - clicando 2 vezes em cima
  77. # - dando enter no teclado
  78. # - selecionando e depois clicando em um botao de acao
  79. #---------
  80.  
  81.  
  82.  
  83. while resposta=$(zenity --list --title="${TT1}" --column=\'Num\' --column=\'Opções\' --separator=\' \' --hide-column=1 --print-column=1 --width=400 --height=500 \\
  84. 1 "Atualizar o Sistema" \\
  85. 2 "Adicionar repositório Medibuntu" \\
  86. 3 "Extras do Ubuntu" \\
  87. 4 "Multimidia" \\
  88. 5 "Compactados Descompactadores" \\
  89. 6 "Google-Chrome" \\
  90. 7 "RealPlayer" \\
  91. 8 "Skype" \\
  92. 9 "Ativar Unity 2d" \\
  93. 10 "DEVEDE - Criador de DVDs" \\
  94. 11 "Cheese - Webcam" \\
  95. 12 "GUVcviewe - Webcam" \\
  96. 0 "Sair" )
  97. do
  98.  
  99. # Apertou a tecla ESC
  100. [ $? -ne 0 ] && zenity --error --text="Voce apertou ESC... Saindo do programa!" && break
  101.  
  102.     # De acordo com a opção escolhida, dispara programas
  103.     case "$resposta" in
  104.  
  105. 1)  apt-get update -y  && apt-get upgrade -y  && apt-get install -f -y ;;
  106.          
  107. 2) sudo -E wget --output-document=/etc/apt/sources.list.d/medibuntu.list http://www.medibuntu.org/sources.list.d/$(lsb_release -cs).list && sudo apt-get --quiet update && sudo apt-get --yes --quiet --allow-unauthenticated install medibuntu-keyring && sudo apt-get --quiet update ;;
  108.        
  109. 3) apt-get install ubuntu-restricted-extras ttf-mscorefonts-installer -y ;;
  110.        
  111. 4) apt-get install vlc non-free-codecs libdvdcss2 ffmpeg mencoder arista frei0r-plugins winff brasero-cdrkit openshot gaupol dvdrip sound-juicer gstreamer0.10-plugins-ugly gstreamer0.10-plugins-ffmpeg easytag furiusisomount bombono-dvd -y ;;
  112.  
  113. 5) apt-get install arj lha p7zip p7zip-full p7zip-rar rar unrar unace-nonfree unp -y ;;
  114.        
  115. 6) wget -P /tmp https://dl.google.com/linux/direct/google-chrome-stable_current_i386.deb  && dpkg -i /tmp/google-chrome-stable_current_i386.deb ;;
  116.  
  117. 7) wget -P /tmp  http://client-software.real.com/free/unix/RealPlayer11GOLD.deb  && dpkg -i /tmp/RealPlayer11GOLD.deb ;;
  118.  
  119. 8) wget -P /tmp http://download.skype.com/linux/skype-ubuntu_2.2.0.35-1_i386.deb  && dpkg -i /tmp/skype-ubuntu_2.2.0.35-1_i386.deb ;;
  120.  
  121. 9) sed -i "s/user-session=ubuntu/user-session=ubuntu-2d/g" /etc/lightdm/lightdm.conf ;;
  122.  
  123. 10) apt-get install devede -y ;;
  124.  
  125. 11) apt-get install cheese -y ;;
  126.  
  127. 12) add-apt-repository ppa:pj-assis/ppa -y  && apt-get update  && apt-get install guvcview -y ;;
  128.  
  129. 0) break ;;
  130.     esac
  131. done
  132. ;;
  133. esac # Fecha o case sobre Grafico ou Console
');