Lista de programas, escolha e instalação

Publicado por Perfil removido (última atualização em 28/01/2011)

[ Hits: 5.347 ]

Download instalacao-basica.sh




Meu primeiro script, provavelmente cheio de erro de sintaxe (afinal é tentando que se aprende), mas o conceito é simples. Ele tem áreas divisoras entre os estilos de aplicativos separados por tipo, por exemplo: players, navegadores etc, como podem ver.

Estou pensando em colocar em xdialog, estilo checklist, mas ainda tenho que aprender mais.

  



Esconder código-fonte

#!/bin/bash
#Script Apt escolha
#Guilherme Augusto 
#guilhermeapeixot@gmail.com
echo "criar usuario root"
sudo passwd root
echo "redigite-a para entrar com root" 
su
echo "Esta conectado a internet s/n"
read net
if [ "$net" = "n"]
then
echo "tente baixar pacotes devidos para sua disto vindo em .deb para derivados de debian"
echo "Ha alguns bons links dos programas da lista como o propio forum,mas alem dos preferenciais a os basicos como o plugins ubuntu-restricte-extras"
echo "se caso for outa distros tente busca o plugin w32 codec,gstermear,java,entre diversos" 
exit  
else
    sleep 2
fi
echo "é aconselhavel baixar o programa de acordo com seu ambiente grafico,para não poluir muito o sistema,com suas bibliotecas" 
echo "...instalando add ons,plugins,para diversos formatos com mp3,avi,mp4,rmvb" 
sudo apt-get install ubuntu-restricted-extras
sudo apt-get install  compizconfig-settings-manager
echo "Deseja instalar o gerenciador de temas emerald S/n" 
read escolha1
if [$escolha1="S"]
then
sudo apt-get install emerald
echo "com emerald só instalar o tema e digitar emerald --replace no terminal,Decoração das janelas na decoração de janela no menu do compiz"
else
   sleep 2
fi
echo "é provavel que aguns programas não estejam na sua source list,mas isto vai de testar" 
echo "Qual player deseja
1-Gnome MPlayer
2-SMplayer(front end Gnome MPlayer)
3-VLC
4-Kaffeine
5-KMplayer
6-KPlayer (front end Mplayer mas para KDE)
7-RealPlayer
8-XMovie
9-Xine
10-Gxine"
echo "Digite o numero dele"
read players
if  [ "$players" =  "1" ]
 then    
sudo apt-get install mplayer
    
elif  [ "$players" = "2" ]
then   
                            sudo apt-get install mplayer
                               sudo apt-get install smplayer
elif [ "$players" = "3" ]
then   
   sudo apt-get install vlc
   sudo apt-get install vlc libdvdcss2
   sudo apt-get install vlc vlc-plugin-pulse mozilla-plugin-vlc
elif [ "$players"="4"]
then  
   sudo apt-get install kaffeine
elif [  "$players" = "5" ] 
then 
 sudo apt-get install kmplayer
elif [  "$players" = "6" ]
 then
 sudo apt-get install mplayer kplayer kplayer-doc libdvdcss w32codecs
 elif [  "$players" = "7" ]
sudo apt-get install realplay
elif [ "$players" = "8" ]
then
sudo apt-get install libx11-dev
elif [ "$players" = "9" ]
then
sudo apt-get install xine-ui libxine-extracodecs
elif [ "$players" = "10" ] 
then
sudo apt-get install xine-ui libxine-extracodecs
sudo  apt-get install gxine
fi
echo
clear
sleep 2
echo "Qual Gravador de CD/DVD deseja:
1-K3B
2-GnomeBaker
3-Brasero
4-Xfburn"
read burn
if [ "$burn" = "1" ]
then
        sudo apt-get install k3b 
elif [ "$burn" = "2" ]
then
sudo apt-get install gnomebaker
elif [ "$burn" = "3"]
then
sudo apt-get install brasero
elif ["$burn" = "4"]
then
sudo apt-get install xfburn
fi
clear
sleep 2
echo "Agora o reprodutor do audio"
echo "Reprodutores:
1-Exaile
2-Amarok
3-Audacious
4-Banshee
5-Beep Media Player
6-jajuk
7-MP3Blaster
8-Muine
9-Rhythmbox
10-SnackAmp
11-wxMusik
12-XMMS
13-Zinf
14-Apollo
15-aTunes"
read repro
elif [ "$repro" = "1" ]
then
sudo apt-get install exaile
elif [ "$repro" = "2" ]
then
sudo apt-get install amarok
elif [ "$repro" = "3" ]
then
sudo apt-get install -f audacious
elif [ "$repro" = "4" ]
then
sudo apt-get install banshee
elif [ "$repro" = "5" ]
then
sudo apt-get install beep-media-player
elif [ "$repro" = "6" ]
then
sudo apt-get install  jajuk 
elif [ "$repro" = "7" ]
then
apt-get install mp3blaster
elif [ "$repro" = "8" ]
then
sudo  apt-get install muine
elif [ "$repro" = "9" ]
then
sudo apt-get install rhythmbox rhythmbox-plugins rhythmbox-plugin-coherence rhythmbox-plugin-cdrecorder
elif [ "$repro" = "10" ]
then
sudo apt-get install snack-amp
elif [ "$repro" = "11" ]
then
sudo apt-get install wxmusik
elif [ "$repro" = "12" ]
then
sudo apt-get install xmms
elif [ "$repro" = "13" ]
then
sudo apt-get install zinf
elif [ "$repro" = "14" ]
then
sudo apt-get install apollo
#os reprodutores 
if [ "$repro" = "15" ]
then
sudo apt-get install atunes
echo "escolha o multi- mensageiro instataneo"
echo "1-Amsn
2-Pidgin
3-Mercury
4-Kmess
5-Kopete"
read mens
if [ "$mens" = "1" ]
then
sudo apt-get install amsn
elif [ "$mens" = "2" ]
then
sudo apt-get install pidgin
elif [ "$mens" = "3" ]
then
sudo apt-get install mercury-messenger
elif [ "$mens" = "4" ]
then
sudo apt-get install kmess
elif [ "$mens" = "5" ]
then
sudo apt-get install kopete

#as libs
echo
echo
echo "Faltou alguma lib s/N"
read lib
if [ "$lib" = ittorrent"s"]
echo "aconselho a procurar no synaptic ou pelo apt mesmo só digitando o nome dale com sudo apt-get install antes do nome"
echo "gosta do computado em maquina virtual (s/N),sera instalado o virtual box"
read vbx
#Maquina Virtual
if [ "$vbx" = "s" ]
then
sudo apt-get install virtualbox-ose
#Emulador de  e manipulador de imagens de disco
"Qual desses programas gosta para virtualização de imagens e edição :
1-Acetone iso
2-ISO Master
3-Furius ISO"
read eem
if [ "$eem" = "1" ]
then
sudo apt-get install acetoneiso
elif [ "$eem" = "2" ]
then
sudo apt-get install isomaster
elif [ "$eem" = "3" ]
then
 sudo apt-get instal furiusisomount 
clear
sleep
#Cliente torrent
echo  "Cliente torrent:
1-QBitTorrent
2-Deluge
3-KTorrent
4-Transmission
5-Vuze(Azerus)"
read ct
 if [ "$ct" = "1" ]
then
 sudo apt-get install qbittorrent
elif  [ "$ct" = "2" ]
then
sudo apt-get install deluge-torrent
elif [ "$ct" = "3" ]
then
sudo apt-get install ktorrent
elif [ "$ct" = "4" ]
then
sudo apt-get install transmission
elif [ "$ct" = "5" ]
then
sudo apt-get install azerus
fi
clear
sleep 3
#particionador
echo "Particionador:
1-Gparted
2-Cfdisk (modo de texto)
3-QTParted
4-KDE Partition Manager"
read parted
if [ "$parted" = "1" ]
then
sudo apt-get install gparted
elif [ "$parted" = "2" ]
then 
sudo apt-get install cfdisk
elif [ "$parted" = "3" ]
then
sudo apt-get install qtparted
elif [ "$parted" = "4" ]
 sudo apt-get install partionmanager
clear
sleep 2
#navegadores da rede
echo "Qual navedor de rede:
1-Firefox
2-Google chrome
3-Opera
4-Seamonkey
5-Konqueror
6-Epiphany
7-kazehakase"
read broswer
if [ "$broswer"  = "1" ]
then
sudo apt-get install mozilla-firefox
elif [ "$broswer"  = "2" ]
then
echo "no meu atual não tem tina na source list"
echo "1- Abra sua sources list.
/etc/apt/sources.list

2 - Adicione as linhas abaixo e salve
#Google Chrome
deb http://dl.google.com/linux/deb/ stable main

3- Faça o update
4 - # apt-get update
5-sudo  apt-get install google-chrome-stable"
sudo  apt-get install google-chrome-stable
elif [ "$broswer"  = "3" ]
then
wget -O - http://deb.opera.com/archive.key | sudo apt-key add -
sudo apt-get install opera 
elif [ "$broswer"  = "4" ]
then
sudo apt-get install iceape iceape-browser iceape-l10n-pt-br
elif [ "$broswer"  = "5" ]
then
sudo apt-get install konqueror konqueror-nsplugins
elif [ "$broswer" = "6" ]
then
sudo apt-get install epiphany-browser 
elif [ "$broswer" = "7" ]
then
sudo apt-get install kazehakase 
fi
clear
sleep 2
#Micelanias
echo "Programas de miceleania"
echo "Um programa que so guarda sua area de tranferencia ele se chama parcellite  deseja instalar(s/N)"
read adt
if [ "$adt" = "s" ]
then
sudo apt-get install parcellite
else
then
sleep 2
fi
clear
sleep 2
echo "Programa que cria pen drive bootaveis com  um sistema linux instalado sendo com a iso ou do site fonte"
echo "O unetbooting (s/N) " 
read unetb
if [ "$unetb" = "s"] 
then
sudo add-apt-repository ppa:gezakovacs/ppa
sudo apt-get update
sudo apt-get install unetbootin
else
then 
sleep 2 
fi
clear
#Gerenciador de download
echo "Gerrenciador de download:
1-Wget (modo de texto)
2-Gwget
3-Kget
4-Jdownloader
5-Multiget
6-Uget
7-Fatrat
8-Steady Flow
9-Downloader for X
10-Axel"
read gdd
if [ "$gdd" = "1" ]
then
sudo apt-get install wget
elif [ "$gdd" = "2" ]
then
sudo apt-get install gwget
elif [ "$gdd" = "3" ]
then
sudo apt-get install kget
elif [ "$gdd" = "4" ]
then
sudo add-apt-repository ppa:jd-team/jdownloader
sudo apt-get update
sudo apt-get install jdownloader
elif [ "$gdd" = "5" ]
then
sudo apt-get install multiget
elif [ "$gdd" = "6" ]
sudo apt-get install uget
elif [ "$gdd" = "7" ]
then
sudo apt-get install fatrat
elif [ "$gdd" = "8" ]
then
    sudo add-apt-repository ppa:sikon/steadyflow
    sudo apt-get update
    sudo apt-get install steadyflow
elif [ "$gdd" = "9" ]
then
sudo apt-get install d4x
elif [ "$gdd" = "10"]
then
sudo apt-get install axel
fi
clear
#Source list
echo "quer editar a source list(s/n)"
read sourcelist
if [ "$sourcelist" = "n" ]
then
exit
else
sleep 2
echo "Com qual processador de texto
1-Gedit
2-Kate
3-Vim
4-Nano
5-Mcedit"
echo "Só adicionar o 'link' dado pela fornecedora" 
read sourl 
if [ "$sourl" = "1" ]
then
sudo gedit /etc/apt/sources.list
elif [ "$sourl" = "2" ]
then
sudo kate /etc/apt/sources.list
elif [ "$sourl" = "3" ]
then
sudo vim /etc/apt/sources.list
elif [ "$sourl" = "4" ]
then
sudo nano /etc/apt/sources.list
elif [ "$sourl" = "5" ]
then
sudo mcedit /etc/apt/sources.list
fi

Scripts recomendados

Mostrar detalhes dispositivo de Hardware

Script para verficar se um pacote está instalado no Slackware

IPscan em shell script

Instalador do LOIC (Low Orbit Ion Cannon)

zsh: Função para validação de IP (IPv4)


  

Comentários
[1] Comentário enviado por BraveDOG em 28/01/2011 - 12:08h

Parabéns pela iniciativa !! Good Work !

[2] Comentário enviado por removido em 28/01/2011 - 13:58h

valeu meu primeiro script,ja disse que tem que ser muito melhorado.

[3] Comentário enviado por albfneto em 30/01/2011 - 12:29h

é uma boa idéia, esse script. Mão na roda para os usuários de distros tipo debian

[4] Comentário enviado por removido em 04/08/2011 - 21:48h

Muito bom mesmo..

só uma ideia, acho que deveria ter uma opção caso a pessoa não queira instalar e mudar pro próximo passo.
ex:

não quero instalar players, deseja ir pra próxima etapa [s/n]

aí fica show de bola..

Abs.

[5] Comentário enviado por removido em 09/08/2011 - 20:38h

Sim boa ideia @RW, também tinha pensado em um menu no bash(com echo mesmo)


Contribuir com comentário




Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts