Created
March 8, 2010 11:48
-
-
Save voyeg3r/325090 to your computer and use it in GitHub Desktop.
instalar codecs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Criado em:Qui 23/Abr/2009 hs 22:58 | |
| # Last Change: Qua 24 Fev 2010 09:49:54 BRT | |
| # vim:ft=sh:fdm=syntax:nu: | |
| # Instituicao: none | |
| # Proposito do script: instalar codecs e outros programas no ubuntu karmic 9.10 | |
| # Autor: Sérgio Luiz Araújo Silva | |
| # site: http://vivaotux.blogspot.com | |
| # cabeçalho | |
| INICIO=`date +%d-%m-%Y+%H:%M` | |
| cat <<-EOF | |
| ( O O ) | |
| +===========oOO==(_)==OOo==============+ | |
| | | | |
| | °v° Sergio Luiz Araujo Silva | | |
| | /(_)\ Linux User #423493 | | |
| | ^ ^ voyeg3r gmail.com | | |
| +======================================+ | |
| Script de instalação | |
| veja aqui o que deu certo e o que não deu na sua | |
| instalação de programas e codecs | |
| script iniciado: | |
| $INICIO | |
| EOF | |
| # testa se está logado como root | |
| if [ "$(id -u)" != "0" ]; then | |
| echo " Need be root" | |
| sleep 2 | |
| exit 1 | |
| fi | |
| # consertando o sources.list para incluir os repositórios univesre e multiverse | |
| sed -i.backup '/^#\s\?deb\( http\| ftp\|-src\)/s/^#//g' /etc/apt/sources.list | |
| # sources list for firefox 3.6 | |
| sudo add-apt-repository ppa:mozillateam/firefox-stable && sudo aptitude update | |
| aptitude -y install firefox-3.6 firefox-3.6-gnome-support | |
| # adicionando repositório do shell python dreampie | |
| echo "adicionando repositório do shell python dreampie" | |
| add-apt-repository ppa:dreampie-devel/ppa | |
| # programa para auxiliar na programação python | |
| # com muitos snippets úteis | |
| add-apt-repository ppa:acire-team/acire-releases | |
| # bibliotecas do acire | |
| add-apt-repository ppa:python-snippets-drivers/python-snippets-daily | |
| # repositório minitube - aplicação para assistir videos do youtube | |
| add-apt-repository ppa:neversfelde/ppa | |
| echo "atualizando os repositórios" | |
| apt-get update | |
| aptitude install -y minitube youtube-dl | |
| # desenvolvimento python | |
| echo "instalando o dreampie" | |
| apt-get install -y dreampie | |
| apt-get install -y acire | |
| sudo apt-get install -y python-snippets | |
| # ferramentas científicas do python | |
| aptitude install -y python-numpy python-scipy | |
| # sistema de notificações ################################## | |
| aptitude -y install libnotify-bin | |
| # para exibir uma notificação: | |
| # sleep 5m; notify-send "aviso" "tirar o miojo do fogo" | |
| ############################################################ | |
| # o comando curl é muito citado em manuais do command-line-fu | |
| aptitude -y install curl libcurl3 python-pycurl | |
| # site do ubuntu-tweak - configuração facilitada | |
| # https://launchpad.net/ubuntu-tweak/ | |
| # navegador em modo texto | |
| apt-get -y install lynx | |
| # conserta /etc/hosts | |
| #[ -z $(head -1 /etc/hosts | grep "$(hostname)") ] && sed -i "1s/\(.*\)/\1 `hostname`/g" /etc/hosts | |
| # papeis de parede para o gnome | |
| apt-get install -y gnome-backgrounds | |
| # cliente para o identi.ca e twitter | |
| apt-get install -y gwibber | |
| # atualização de pacotes através do método delta | |
| # http://open.lafactoria.com.br/2009/10/15/atualizacao-por-pacotes-delta-no-debian-e-derivados/ | |
| apt-get install -y debdelta | |
| # programa para gravação de videos | |
| # http://pajeonline.blogspot.com/2009/10/filmando-tela-do-computador-com-wink.html | |
| apt-get install -y wink | |
| # configuração de atualizações automáticas | |
| for i in `ls /home`; do | |
| sudo $i gconftool -s --type bool /apps/update-notifier/auto_launch false | |
| done | |
| # como adicionar o repositório mediabuntu | |
| # fonte: https://help.ubuntu.com/community/Medibuntu | |
| sudo wget http://www.medibuntu.org/sources.list.d/`lsb_release -cs`.list --output-document=/etc/apt/sources.list.d/medibuntu.list; apt-get -q update; apt-get --yes -q --allow-unauthenticated install medibuntu-keyring; apt-get -q update | |
| # repositório com temas para gnome | |
| # referências | |
| # http://www.webupd8.org/2009/05/9-great-gnome-themes-with-ubuntu.html | |
| # http://www.webupd8.org/2009/06/showtime-complete-ubuntu-theme.html | |
| # temas ------------------------------------------------ | |
| sudo add-apt-repository ppa:bisigi | |
| apt-get update | |
| apt-get -y install zgegblog-themes | |
| apt-get -y install showtime-theme | |
| apt-get install -y gtk2-engines-mythbuntu gnome-themes-extras | |
| apt-get install -y gtk2-engines-mythbuntu gnome-themes-extras gtk2-engines-aurora murrine-themes | |
| apt-get install -y gtk2-engines-nimbus | |
| # | |
| # # esmerald theme | |
| sudo wget http://mirrors.kernel.org/ubuntu/pool/universe/e/emerald-themes/emerald-themes_0.2.1-0ubuntu1_all.deb | |
| sudo dpkg -i emerald-themes_0.2.1-0ubuntu1_all.deb | |
| # ------------------------------------------------------------ | |
| # criador de slides em html | |
| #apt-get install -y s5 | |
| # agendador de tarefas para o gnome | |
| # http://hamacker.wordpress.com/2009/09/02/agendando-tarefas-no-ubuntu-usando-o-gnome/ | |
| sudo apt-get install -y gnome-schedule | |
| # formatos restritos | |
| # https://help.ubuntu.com/community/RestrictedFormats/ | |
| apt-get install -y ubuntu-restricted-extras | |
| apt-get install -y non-free-codecs | |
| # programa para baixar legendas | |
| # fonte: http://blog.cropalato.com.br/?p=51 | |
| sudo aptitude -y install subdownloader | |
| # emulador de terminal abrindo com F12 | |
| #sudo aptitude -y install yakuake | |
| # idiomas | |
| echo "Adicionando idoma português e removendo o idioma inglês" | |
| apt-get -y install language-pack-pt language-pack-pt-base language-support-pt language-pack-gnome-pt | |
| apt-get -y remove language-pack-en language-pack-en-base language-pack-gnome-en language-pack-gnome-en-base | |
| # tradutor | |
| #aptitude install libestools1.2 stardict-common stardict-gnome stardict-plugin \ | |
| # stardict-plugin-espeak stardict-plugin-festival stardict-plugin-gucharmap | |
| #sudo chmod 777 /usr/share/stardict/dic | |
| # E baixem esse pacote que criei já convertido de dicionário português-inglês do babylon: | |
| # http://www.4shared.com/file/78676910/3f08af14/dicionario.html | |
| # prepara um cd com pacotes | |
| aptitude -y install aptoncd | |
| # abre um console à partir do nautilus | |
| aptitude -y install nautilus-open-terminal | |
| # meu editor de textos | |
| aptitude -y install vim-gnome vim-doc | |
| # controla o consumo de banda | |
| sudo apt-get -y install trickle | |
| sudo apt-get update && sudo trickle -s -d 20 apt-get -y --force-yes upgrade | |
| # criado de cds de audio | |
| apt-get install -y serpentine | |
| # extrator de cds | |
| apt-get install -y sound-juicer | |
| # controla qual sistema operacional inicia por padrão | |
| apt-get install -y startupmanager | |
| # modulo python para imagens | |
| apt-get install -y python-imaging | |
| # easy_install setuptools - | |
| apt-get install -y python-setuptools python-dev build-essential | |
| apt-get install -y build-essential subversion | |
| # como instalar o mercurial | |
| # https://help.ubuntu.com/community/Mercurial | |
| # atualiza hardwares detectaveis | |
| update-pciids;update-usbids | |
| # sombras e efeitos sem compiz | |
| # apt-get install -y xcompmgr transset | |
| # compactadores | |
| apt-get install -y unace rar unrar zip unzip p7zip-full \ | |
| p7zip-rar sharutils aish uudeview mpack lha arj cabextract \ | |
| file-roller zoo | |
| # ferramentas para remasterizar o ubuntu | |
| #apt-get install -y remastersys unetbootin unetbootin-translations | |
| # ferramentas de rede | |
| apt-get install -y ssh sshfs smbfs nmap iptstate\ | |
| nfs-common nfs-kernel-server portmap | |
| # ferramenta para criar senhas seguras | |
| # fonte: http://blog.ffelix.eti.br/seguranca/crie-senhas-seguras/?utm_source=rss&utm_medium=rss&utm_campaign=crie-senhas-seguras | |
| # como usar: makepasswd -char=10 -count=10 | |
| apt-get install -y makepasswd | |
| # monitoramento de rede | |
| aptitude install -y iptraf | |
| # corretor ortografico | |
| apt-get install -y aspell | |
| # plugin flash | |
| apt-get install -y flashplugin-nonfree flashplugin-installer | |
| # -------- novo flash ------ | |
| # First, remove your existing Flash plugin. Do this depending on whether you | |
| # nstalled Flash from the repositories or manually. If you installed Flash from | |
| # the Ubuntu repositories, typing: | |
| # sudo apt-get remove --purge flashplugin-installer | |
| # should remove your current installation of Flash. If Flash was installed | |
| # manually, the plugin should be located in the ~/.mozilla/plugins directory, | |
| # where ~ is the home directory. So, to remove it: | |
| # rm -f ~/.mozilla/plugins/libflashplayer.so | |
| # Next, download the archive for the new Flash player from here (direct link here), or alternately you can type in a terminal: | |
| # wget http://download.macromedia.com/pub/labs/flashplayer10/flashplayer10_1_p2_linux_121709.tar.gz | |
| # Make sure the current working directory is the one where you saved the archive and uncompress it: | |
| # tar -xzf flashplayer10_1_p2_linux_121709.tar.gz | |
| # Next, create the ~/.mozilla/plugins directory (if it doesn't already exist): | |
| # mkdir -p ~/.mozilla/plugins | |
| # And copy the plugin inside it: | |
| # cp install_flash_player_10_linux/libflashplayer.so ~/.mozilla/plugins | |
| # Now restart Firefox and this should be all. | |
| # -------- novo flash ------ | |
| # pidgin msn | |
| #apt-get install -y pidgin msn-pecan | |
| # fortunes - biscoito da sorte | |
| #apt-get install -y fortune-mod fortunes fortunes-br | |
| # remasterizar a distro | |
| #apt-get install -y remastersys unetbootin unetbootin-translations | |
| # fontes não livres | |
| apt-get install -y ttf-mscorefonts-installer | |
| # codecs multimedia | |
| apt-get install -y w32codecs | |
| apt-get install -y mpeg2dec vorbis-tools id3v2 mpg321 mpg123 libflac++6 ffmpeg toolame libmp4v2-0 | |
| apt-get install -y id3tool lame lame-extras libjpeg-progs flac faac faad sox toolame | |
| apt-get install -y ffmpeg2theora libmpeg3-1 mpegdemux x264 | |
| apt-get install -y gstreamer0.10-ffmpeg gstreamer0.10-fluendo-mp3 gstreamer-tools | |
| apt-get install -y gstreamer0.10-gnonlin gstreamer0.10-sdl | |
| apt-get install -y gstreamer0.10-plugins-bad gstreamer0.10-plugins-bad-multiverse | |
| apt-get install -y gstreamer0.10-plugins-ugly gstreamer0.10-plugins-ugly-multiverse | |
| apt-get install -y totem-gstreamer | |
| apt-get install -y libdvdcss2 libdvdnav4 | |
| apt-get install -y vlc vlc-nox vlc-plugin-sdl | |
| apt-get install -y vlc-plugin-alsa | |
| apt-get install -y mplayer mplayer-fonts mplayer-skins mencoder | |
| apt-get install -y gnome-mplayer | |
| apt-get install -y xine-ui gxine totem-xine | |
| apt-get install -y totem-plugins totem-plugins-extra | |
| apt-get install -y udftools | |
| apt-get install -y cdrdao vcdimager mjpegtools vcdtools transcode movixmaker-2 normalize-audio | |
| apt-get install -y mp3gain avidemux nautilus-script-audio-convert tagtool easytag assogiate | |
| apt-get install -y totem-mozilla mozilla-mplayer xine-plugin gxineplugin mozilla-plugin-vlc | |
| apt-get install -y libdvdread3 | |
| apt-get install -y k9copy | |
| # ripador de dvds baseado em gtk | |
| aptitude install -y thoggen | |
| # Requirements: | |
| # GStreamer core 0.10.14 or newer | |
| # GStreamer plugins required: a52dec, mpeg2dec, dvddemux, | |
| # dvdreadsrc, theoraenc, vorbisenc, oggmux, videorate, and others (see README for details of versions required) | |
| # libdvdread3 (version 0.9.4 or higher) | |
| # HAL, libhal, dbus, and the dbus GLib bindings | |
| # frontend para o ffmpeg | |
| apt-get install -y winff | |
| # instalador do libdvdread4 | |
| /usr/share/doc/libdvdread4/install-css.sh | |
| # gerenciador de fotos | |
| sudo apt-get -y install solang | |
| # secure p2p | |
| #apt-get -y install gnunet-gtk | |
| # captura e converão de vídeo | |
| echo " Instalando o xvidcap e ffmpeg" | |
| apt-get -y install ffmpeg xvidcap | |
| # relógios e calendários flutuando na tela | |
| # aplicações >> acessórios >> screenlets | |
| echo " Instalando screenlets" | |
| ##apt-get -y install screenlets | |
| # java6 | |
| apt-get install -y sun-java6-bin sun-java6-fonts sun-java6-jre sun-java6-jdk sun-java6-plugin \ | |
| equivs ttf-sazanami-gothic ttf-sazanami-mincho | |
| # tutorial de digitação klavaro | |
| apt-get install -y klavaro | |
| # desenho vetorial inkscape | |
| apt-get install -y inkscape | |
| # serie de plugins legais para o gimp | |
| aptitude -y install gimp-plugin-registry | |
| # manipulação de fotos | |
| aptitude -y install imagemagick | |
| apt-get remove -y transmission transmission-common transmission-gtk | |
| apt-get install -y deluge deluge-common deluge-core deluge-torrent deluge-torrent-common | |
| apt-get install -y bittorrent | |
| # particionador | |
| #apt-get install -y gparted ntfsprogs ntfs-config | |
| # backup | |
| #apt-get install -y grsync | |
| echo " parando os consoles de 3 a 6" | |
| sed -i '/ACTIVE_CONSOLES/s/1-6/1-2/g' /etc/default/console-setup | |
| sed -i '/shutdown/ s/^/#/g' /etc/event.d/control-alt-delete | |
| # ícones no desktop | |
| echo " habilitando os ícones no desktop" | |
| gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.defaults \ | |
| --type bool --set "/apps/nautilus/desktop/computer_icon_visible" "true" | |
| # gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.defaults \ | |
| # --type bool --set "/apps/nautilus/desktop/network_icon_visible" "true" | |
| gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.defaults \ | |
| --type bool --set "/apps/nautilus/desktop/home_icon_visible" "true" | |
| gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.defaults \ | |
| --type bool --set "/apps/nautilus/desktop/trash_icon_visible" "true" | |
| # página inicial do firefox | |
| gconftool-2 --direct \ | |
| --config-source xml:readwrite:/etc/opt/gnome/gconf/gconf.xml.mandatory \ | |
| --type string --set /apps/firefox/general/homepage_url "www.google.com" | |
| # control-alt-delete abrindo gnome-system-monitor | |
| echo "ajustando o atalho para abrir o monitor do sistema" | |
| gconftool-2 --direct \ | |
| --config-source xml:readwrite:/etc/opt/gnome/gconf/gconf.xml.mandatory \ | |
| -t str --set /apps/metacity/global_keybindings/run_command_9 "<Control><Alt>Delete" | |
| gconftool-2 --direct \ | |
| --config-source xml:readwrite:/etc/opt/gnome/gconf/gconf.xml.mandatory \ | |
| -t str --set /apps/metacity/keybinding_commands/command_9 "gnome-system-monitor" | |
| # ícone de atualizações automáticas | |
| #gconftool -s --type bool /apps/update-notifier/auto_launch false | |
| gconftool-2 --direct \ | |
| --config-source xml:readwrite:/etc/opt/gnome/gconf/gconf.xml.mandatory \ | |
| --type bool --set /apps/update-notifier/auto_launch "false" | |
| # capturar vídeos do desktop | |
| aptitude install -y gtk-recordmydesktop | |
| # jogos | |
| apt-get install -y frozen-bubble | |
| apt-get install -y wormux | |
| # suporte ao \LaTeX\ | |
| # apt-get install -y texlive-generic-recommended | |
| # apt-get install -y texlive-latex-extra | |
| # apt-get install -y texlive-doc-base | |
| # apt-get install -y texlive-pstricks | |
| # apt-get install -y texlive-base-bin | |
| # apt-get install -y texlive-font-utils | |
| # apt-get install -y texlive | |
| # apt-get install -y texlive-lang-latin | |
| # apt-get install -y texlive-fonts-recommended | |
| # apt-get install -y texlive-bibtex-extra | |
| # apt-get install -y texlive-fonts-extra | |
| # apt-get install -y texlive-latex-recommended | |
| # apt-get install -y texlive-pictures | |
| # apt-get install -y preview-latex-style | |
| # apt-get install -y tetex-bin | |
| # apt-get install -y texlive-publishers | |
| # apt-get install -y texlive-latex-base | |
| # apt-get install -y tcl8.4 | |
| # apt-get install -y texlive-lang-portuguese | |
| # apt-get install -y tetex-extra | |
| # apt-get install -y texlive-math-extra | |
| # apt-get install -y texlive-lang-other | |
| # apt-get install -y libpoppler2 | |
| # apt-get install -y tex-common | |
| # apt-get install -y texlive-common | |
| # apt-get install -y pybliographer | |
| ## CONSERTA DIRS ################################## | |
| ## consertando diretórios, nada de Área de trabalho | |
| ## e sim Desktop e coisas do tipo | |
| # | |
| # | |
| ## função será executada se o for usuário comum | |
| #pessoal (){ | |
| #FILE=~/.config/user-dirs.dirs | |
| # | |
| ## backup | |
| #echo "criando backup de $FILE" | |
| #sleep 1 | |
| #cp $FILE{,.backup} | |
| # | |
| #cat <<-EOF > $FILE | |
| ## This file is written by xdg-user-dirs-update | |
| ## If you want to change or add directories, just edit the line you're | |
| ## interested in. All local changes will be retained on the next run | |
| ## Format is XDG_xxx_DIR="$HOME/yyy", where yyy is a shell-escaped | |
| ## homedir-relative path, or XDG_xxx_DIR="/yyy", where /yyy is an | |
| ## absolute path. No other format is supported. | |
| # | |
| #XDG_DESKTOP_DIR="$HOME/Desktop" | |
| #XDG_DOWNLOAD_DIR="$HOME/docs/downloads" | |
| #XDG_TEMPLATES_DIR="$HOME/docs/modelos" | |
| #XDG_PUBLICSHARE_DIR="$HOME/docs/share" | |
| #XDG_DOCUMENTS_DIR="$HOME/docs" | |
| #XDG_MUSIC_DIR="$HOME/docs/musicas" | |
| #XDG_PICTURES_DIR="$HOME/img" | |
| #XDG_VIDEOS_DIR="$HOME/docs/videos" | |
| # | |
| #EOF | |
| # | |
| #} | |
| # | |
| # | |
| ## função "geral" será executada se for root | |
| #geral () { | |
| # | |
| #FILE=/etc/xdg/user-dirs.defaults | |
| # | |
| ## backup | |
| #cp $FILE{,.backup} | |
| #echo "criando backup de $FILE" | |
| #sleep 1 | |
| # | |
| #cat <<-EOF > $FILE | |
| ## Default settings for user directories | |
| ## | |
| ## The values are relative pathnames from the home directory and | |
| ## will be translated on a per-path-element basis into the users locale | |
| #DESKTOP=Desktop | |
| #DOWNLOAD=docs/downloads | |
| #TEMPLATES=docs/modelos | |
| #PUBLICSHARE=docs/publico | |
| #DOCUMENTS=docs | |
| #MUSIC=docs/musica | |
| #PICTURES=docs/img | |
| #VIDEOS=docs/videos | |
| ## Another alternative is: | |
| ##MUSIC=Documents/Music | |
| ##PICTURES=Documents/Pictures | |
| ##VIDEOS=Documents/Videos | |
| #EOF | |
| # | |
| #} | |
| # | |
| # [ "$(id -u)" != "0" ] && pessoal || geral | |
| # | |
| ##### fim conserta dirs ######################### | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment