document.write('
Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. #!/bin/bash
  2. # ----------------------------
  3. # Verifica se o usuário é root
  4. #
  5. if [[ $EUID -ne 0 ]]; then
  6. dialog --backtitle "Arredondador do Ubuntu 12.04" --title "ATENCAO" --msgbox "Voce deve se logar com o root para poder executar este software!" 10 60
  7. exit 1
  8. fi
  9.  
  10. #----------------------------
  11. # Verifica conexao com a internet
  12. #
  13. ping -c 3 www.google.com.br &>/dev/null
  14. if [[ $? != 0 ]]; then
  15.        dialog --backtitle "Arredondador do Ubuntu 12.04" --title "ATENCAO" --msgbox "Voce nao esta conectado a internet!" 10 60
  16. exit 1
  17. fi
  18.  
  19. #------------------------------
  20. dialog \\
  21. --backtitle "  Arredondador do Ubuntu 12.04   " \\
  22. --title "   Bem Vindo ao arredondador do Ubuntu 12.04   " \\
  23. --msgbox "  Vamos fazer algumas perguntas para que possamos melhorar sua experiencia com o linux" 10 60
  24. [ $? -ne 0 ] && dialog --msgbox "Voce apertou ESC... Saindo do programa!" 10    60 && exit 1
  25.  
  26.  
  27. #---------------------------
  28. # PROGRAMAS PARA INSTALAR
  29. #
  30. while : ; do
  31.  
  32.     resposta=$(
  33.       dialog --stdout               \\
  34. --backtitle "Arredondador do Ubuntu 12.04" \\
  35. --menu "Aplicativos disponiveis"  0 0 0                   \\
  36. 1 "Atualizar Sistema" \\
  37. 2 "Adiciona repositorio Medibuntu"  \\
  38. 3 "Extras do Ubuntu"     \\
  39. 4 "Multimidia"        \\
  40. 5 "Compactados Descompactadores" \\
  41. 6 "Google-Chrome" \\
  42. 7 "RealPlayer" \\
  43. 8 "Skype" \\
  44. 9 "Ativar Unity 2d" \\
  45. 10 "DEVEDE - Criador de DVDs" \\
  46. 11 "Cheese - Webcam" \\
  47. 12 "GUVcviewe - Webcam" \\
  48. 0 "Sair"                )
  49.  
  50. # Apertou a tecla ESC
  51. [ $? -ne 0 ] && dialog --msgbox "Voce apertou ESC... Saindo do programa!" 10    60 && break
  52.  
  53.     # De acordo com a opção escolhida, dispara programas
  54.     case "$resposta" in
  55.  
  56. 1)  apt-get update -y  && apt-get upgrade -y  && apt-get install -f -y ;;
  57.          
  58. 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 ;;
  59.        
  60. 3) apt-get install ubuntu-restricted-extras ttf-mscorefonts-installer -y ;;
  61.        
  62. 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 ;;
  63.  
  64. 5) apt-get install arj lha p7zip p7zip-full p7zip-rar rar unrar unace-nonfree unp -y ;;
  65.        
  66. 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 ;;
  67.  
  68. 7) wget -P /tmp  http://client-software.real.com/free/unix/RealPlayer11GOLD.deb  && dpkg -i /tmp/RealPlayer11GOLD.deb ;;
  69.  
  70. 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 ;;
  71.  
  72. 9) sed -i "s/user-session=ubuntu/user-session=ubuntu-2d/g" /etc/lightdm/lightdm.conf ;;
  73.  
  74. 10) apt-get install devede -y ;;
  75.  
  76. 11) apt-get install cheese -y ;;
  77.  
  78. 12) add-apt-repository ppa:pj-assis/ppa -y  && apt-get update  && apt-get install guvcview -y ;;
  79.  
  80. 0) break ;;
  81.     esac
  82.  
  83. done
');