Skip to content

Instantly share code, notes, and snippets.

@voyeg3r
Created October 3, 2010 16:53
Show Gist options
  • Select an option

  • Save voyeg3r/608715 to your computer and use it in GitHub Desktop.

Select an option

Save voyeg3r/608715 to your computer and use it in GitHub Desktop.
codecs para ubuntu maverick
#!/bin/bash
# codecs para ubuntu 10.10 maverick ##########################################
# leia também como melhorar o boot
# http://www.dotkam.com/2008/08/06/speed-up-ubuntu-boot-time-by-starting-networking-on-the-background/
# Improve ubuntu performance: http://askubuntu.com/questions/2194/how-can-i-improve-overall-system-performance
# alterando a prioridade dos processos no linux
# http://blog.sudobits.com/2010/04/23/speed-up-ubuntu-10-04/
# http://www.ubuntugeek.com/install-libreoffice-in-ubuntu-11-0410-1010-04-using-ppa.html
# http://superuser.com/questions/129320/how-do-i-restore-the-default-applets-to-gnomes-notification-area
# script para baixar papeis de parede do site wallbase.cc
# http://www.4geeksfromnet.com/2011/01/wallbase-download-wallpapers-the-easy-way.html
# botão para legibilidade do firefox
# http://snipt.net/voyeg3r/botao-de-legibilidade-para-o-firefox/
# zeroconf com avahi daemon no ssh
# http://ubuntuforums.org/archive/index.php/t-137073.html
# http://va.mu/HSvY
# cp /usr/share/doc/avahi-daemon/examples/ssh.service /etc/avahi/services
# service avahi-daemon restart
# restaurando os applets do painel
# gconftool --recursive-unset /apps/panel
# rm -rf ~/.gconf/apps/panel
# pkill gnome-panel
# ajuste para o gtk, faça como usuário comum
[ -z "`grep -o 'gtk-menu-popup-delay\s\?=\s\?0' ~/.gtkrc-2.0`" ] \
&& echo "gtk-menu-popup-delay = 0" >> ~/.gtkrc-2.0
# parando consoles (terminais) de 3 a 6
# rename 's/$/.bak/g' /etc/init/tty[3-6].conf
sed -i.backup '/ACTIVE_CONSOLES=/s/1-6/1-2/g' /etc/default/console-setup
# se não usa hibernação
# source: http://askubuntu.com/questions/2194/how-can-i-improve-overall-system-performance
sed -r -i '1s/(^[^#])/#\1/g' /etc/initramfs-tools/conf.d/resume
#for i in `find /home -iname user-dirs.dirs`; do
# sed -i 's,/.*[^"],/Desktop,g' $i
#done
# http://askubuntu.com/questions/7283/vim-7-3-on-ubuntu-10-10
# ppa para o vim 7.3
apt-add-repository ppa:passy/vim
apt-get update
apt-get upgrade
# para baixar as fontes - várias fontes legais
# http://ubuntuone.com/p/Nc3/
# script apt-fast : ou existe o script ou baixa e torna executárvel
# http://andregondim.eti.br/?p=2496
# artigo sobre apt-fast - http://www.vivaolinux.com.br:443/artigos/impressora.php?codigo=10986
apt-get install -y aria2
# veja também: https://github.com/tatsuhiro-t/apt-metalink
# https://launchpad.net/apt-zeroconf
if ! which apt-fast >/dev/null; then
wget -c https://raw.github.com/gist/712287 -O /etc/bash_completion.d/apt-fast
wget -c https://raw.github.com/gist/409041 -O /usr/bin/apt-fast && chmod 0755 $_
apt-fast update
fi
# instalando apt-metalink no sistema (necessita python26 ou superior)
wget -c https://raw.github.com/tatsuhiro-t/apt-metalink/master/apt-metalink -O /usr/bin/apt-metalink && chmod +x $_
# ppa de um kernel voltado para Desktop
# https://launchpad.net/~chogydan/+archive/ppa
# gnome-tweek-tool configura o gnome 3
# source: http://www.ubuntugeek.com/gnome-tweak-tool-a-tool-for-changing-specialised-or-advanced-gnome3-settings.html
sudo add-apt-repository ppa:ricotz/testing
sudo apt-fast update
sudo apt-fast install -y gnome-tweak-tool
# artigo sobre extensões do gnome3
# http://www.ubuntugeek.com/install-gnome-shell-extensions-on-ubuntu-11-10-using-ppa.html
# para configurar a placa de rede em full-duplex
apt-fast install -y ethtool
# coloca a placa de rede para full-duplex
wget -c https://raw.github.com/gist/1261754 -O /etc/network/if-up.d/100Mbs && chmod +x $_
# set clock
wget -c https://gist.github.com/raw/1264845 -O /etc/network/if-up.d/setclock && chmod +x $_
# cache de dns para a máquina local
apt-fast install -y dnsmasq
#num=`awk '/search/ {print NR}' /etc/resolv.conf` && sed "$numanameserver 127.0.0.1"
# o pacote debdelta atualiza seus pacotes sem ter que baixar tudo
# http://antix.freeforums.org/post15697.html
* http://www.vivaolinux.com.br/dica/Conhecendo-e-usando-o-debdelta
apt-fast install debdelta python-apt xdelta3 xdelta lzma bsdiff gnupg2 gnupg-agent
apt-fast update && debdelta-upgrade && apt-fast upgrade
# configurando o mtu de uma tacada só
wget -c https://raw.github.com/gist/1261445 -O /etc/network/if-up.d/mtu && chmod +x $_
# ultra-surf para linux
# anon-proxy
# inseir chaves no apt
apt-fast install -y add-apt-key
# firefox stable ppa
sudo add-apt-repository ppa:mozillateam/firefox-stable
sudo apt-fast update && sudo apt-fast upgrade
# Howto enable WebGL on Firefox 4
# source: http://www.ubuntugeek.com/howto-enable-webgl-on-firefox-4.html
sudo apt-fast install -y libosmesa6
# plugin para esconder o menu do firefox
# https://addons.mozilla.org/pt-BR/firefox/addon/hide-menubar-4762/
# plugin para mostrar carregamento da página na barra de endereços - fission
# https://addons.mozilla.org/pt-BR/firefox/addon/fission/
# ppa para o tema orta muito legal
# http://www.webupd8.org/2010/12/orta-theme-gets-ubuntu-ppa.html
add-apt-repository ppa:nikount/orta-desktop
apt-fast update
apt-fast --force-yes install orta-theme
# script para patch de desempenho do kernel
# http://www.dicas-l.com.br/arquivo/otimizando_o_kernel_de_seu_desktop_linux.php
# http://www.ubuntudicas.com.br/blog/2010/11/script-para-aplicar-o-patch-milagroso-de-200-linhas-no-kernel-do-linux-no-ubuntu/
# cd
# wget http://launchpadlibrarian.net/59511828/cgroup_patch -O ~/cgroup_patch && chmod 0755 !#:3
# sudo ./cgroup_patch
# after restart do
# sudo /etc/rc.local
# removendo o applet do correio
sudo apt-get remove -y evolution-indicator
# adicionando repositórios extras
sed -i.backup -r '/^#\s?deb\s?(http|ftp|-src).*(partner|multiverse|universe)/s/^#\s?//g' /etc/apt/sources.list
# repositório mediabuntu
sudo 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
# wikipedia por linha de comandos
apt-fast install wikipedia2text
# Para realizar uma consulta sobre Linux, por exemplo, no idioma português, segue o comando:
# wikipedia2text -l pt linux
# ferramentas de administração
apt-fast install -y openssh-server sshfs smbfs nmap iptstate iptraf moreutils zsync curl libcurl3 python-pycurl ngrep arp-scan nautilus-open-terminal nautilus-wallpaper mercurial checkinstall lynx
apt-fast install -y --force-yes recode
# ferramenta para testar qual o dns mais rápido
apt-fast install -y namebench
[ -z "`grep '8.8.8.8' /etc/hosts 2>>/dev/null`" ] || echo '8.8.8.8 google-public-dns-a.google.com' >> /etc/hosts
# conserta /etc/hosts
[ -z `head -1 /etc/hosts | grep -o $(hostname)` ] && sed -i.backup -r "1s/(.*)/\1 `hostname`/g" /etc/hosts
# desabilitando o modo off-line do firefox
sed -i '/send_interface="org.freedesktop.NetworkManager"/ s/allow/denny/' /etc/dbus-1/system.d/NetworkManager.conf
# para limpar o cache do firefox usando o sqlite3
apt-fast install -y aptitude
aptitude install -y sqlite3
# find $HOME/.mozilla/firefox/ -name *.sqlite -exec sqlite3 {} vacuum \;
# navegador leve para o gnome
apt-fast install -y epiphany-browser epiphany-extensions
# bash completion
linha=`awk '/enable bash completion/ {print NR}' /etc/bash.bashrc`
sed -i.backup "$((linha+1)),$((linha+3))s/^#//g" /etc/bash.bashrc
# bash_completion to aria2
# source: https://github.com/tatsuhiro-t/aria2/raw/master/doc/bash_completion/aria2c
wget -c --no-check-certificate http://ur1.ca/31qis -O /etc/bash_completion.d/aria2c
# bash improviments ~/.inputrc
# wget -c https://raw.github.com/gist/1284081/760070566925c3b8ff9af9ac2e5947b729d1d8cf/inputrc -O ~/.inputrc
# codecs
sudo add-apt-repository "deb http://archive.canonical.com/ubuntu maverick partner" ; sudo apt-get update ; sudo apt-fast -y install non-free-codecs libdvdcss2 faac faad ffmpeg 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 lha p7zip p7zip-full p7zip-rar rar unace-nonfree flashplugin-nonfree openjdk-6-jre icedtea6-plugin vlc audacious2
sudo apt-fast install -y w32codecs libdvdcss2
sudo /usr/share/doc/libdvdread4/install-css.sh
sudo apt-fast install libdvdread4 && sudo /usr/share/doc/libdvdread4/install-css.sh
sudo apt-fast install -y txt2tags s5
# idioma do openoffice
sudo apt-fast -y install aspell-pt-br myspell-pt-br ibrazilian iportuguese wportuguese libreoffice-l10n-pt-br libreoffice-gnome libreoffice -y
# compiladores
sudo apt-fast install -y build-essential fakeroot gcc make linux-headers-`uname -r` checkinstall aptitude
# ferramentas gráficas
# repositório para o gimp-gmic http://va.mu/XG
sudo add-apt-repository ppa:ferramroberto/gimp
sudo apt-fast update
# o pacote libgimp2.0-dev é necessário para compilar o plugin noise generator do gimp e tem que ter build-essential instalado
# http://vivaotux.blogspot.com/2009/09/noise-generator-plugin-para-gimp.html
# sobre o plugin gimp resynthesizer -
# http://www.logarithmic.net/pfh/resynthesizer
sudo apt-fast install -y gimp gmic gimp-data-extras gimp-plugin-registry inkscape shotwell nautilus-image-converter imagemagick gimp-resynthesizer libgimp2.0-dev ghostscript pdftk xclip
# alias para o xclip
# alias xclip='xclip -selection c'
# perfis de cor ICC
# source: http://www.youtube.com/watch?v=xxCShL8syqE
apt-fast install -y icc-profiles
# cliente do twitter
sudo add-apt-repository ppa:hotot-team
sudo apt-get update && sudo apt-get -y install hotot
# descompactadores
# http://dl.dropbox.com/u/4917242/blogdomitre/extract
# http://jfmitre.com/2010/11/descompactando-arquivos-no-terminal-do.html
apt-fast install -y unace rar unrar zip unzip p7zip-full p7zip-rar sharutils uudeview mpack lha arj cabextract file-roller
apt-fast install -y vim-gnome vim-doc
# novos temas para o broffice
apt-fast install -y `apt-cache search openoffice.org-style.* | awk '{print $1}'`
# programa para possibilitar a conversão de esquemas de cor do texmate (binario para xml1)
# http://vimcasts.org/episodes/creating-colorschemes-for-vim/
# usando este site: http://coloration.sickill.net/
apt-fast install -y libplist-utils
# testar propriedades de som use este comando --> gstreamer-properties
apt-fast install -y sox
# para baixar o som de sucesso do script
# http://ubuntuone.com/p/4qs/
# artigo sobre um script para compartilhar arquivos e pastas via dropbox
# http://www.webupd8.org/2010/11/nautilus-dropbox-share-script-now.html
# /etc/sysctrl.conf
# http://www.ubuntu-unleashed.com/2008/04/howto-harden-ubuntu-linux-kernel-with.html
# http://www.webhostingtalk.com/showthread.php?t=257654
# After you make the changes to the file, you can make them effective immediately by typing in /sbin/sysctl -p
# source: http://www.ubuntu-unleashed.com/2008/04/howto-harden-ubuntu-linux-kernel-with.html
# http://www.cyberciti.biz/faq/linux-tcp-tuning/
#net.core.rmem_default = 524288
#net.core.rmem_max = 524288
#net.core.wmem_default = 524288
#net.core.wmem_max = 524288
#net.core.optmem_max = 57344
#net.core.netdev_max_backlog = 5000
##net.ipv4.tcp_wmem = 4096 87380 524288
##net.ipv4.tcp_rmem = 4096 87380 524288
#net.ipv4.tcp_rmem= 10240 87380 12582912
#net.ipv4.tcp_wmem= 10240 87380 12582912
#net.ipv4.tcp_mem = 524288 524288 524288
#net.ipv4.tcp_rfc1337 = 1
#net.ipv4.ip_no_pmtu_disc = 1
#net.ipv4.tcp_sack = 1
#net.ipv4.tcp_fack = 1
#net.ipv4.tcp_max_syn_backlog = 1024
#net.ipv4.tcp_max_tw_buckets = 1440000
#net.ipv4.tcp_timestamps = 1
#net.ipv4.tcp_ecn = 0
#net.ipv4.route.flush = 1
#net.ipv4.ipfrag_high_thresh = 512000
#net.ipv4.ipfrag_low_thresh = 446464
#net.ipv4.tcp_window_scaling = 1
#net.ipv4.tcp_no_metrics_save = 1
#vm.swappiness=10
#kernel.shmmax = 268435456
#net.ipv6.conf.all.disable_ipv6 = 1
#net.ipv6.conf.default.disable_ipv6 = 1
#net.ipv6.conf.lo.disable_ipv6 = 1
#Você tem que redefinir sua sysctl para
#estas tenham efeito. Digite o comando:
#sudo sysctl -p
sed -i -r '/^CONCURRENCY=none/s/none/shell/g' /etc/init.d/rc
# consertando o alt+printscreen no ubuntu 10.10
# http://news.softpedia.com/news/How-To-Fix-the-Alt-Print-Issue-in-Ubuntu-10-10-169639.shtml
# melhorando a performance do flash
# http://www.omgubuntu.co.uk/2010/11/force-flash-gpu-acceleration-in-linux-improve-performance/
#Using the terminal enter: -
# This allows you to boost Flash by bypassing GPU validation. Eduardo tested it and said ‘the difference is noticeable.’
sudo mkdir /etc/adobe && echo "OverrideGPUValidation = 1" | sudo tee /etc/adobe/mms.cfg
#He also notes that it may be possible to enable it via the hidden adobe folder #inside the home folder, in which case use:
echo "OverrideGPUValidation = 1" >> ~/.adobe/mms.cfg
# cliente p2p para iptv
# http://ubuntued.info/como-instalar-o-veetle-no-ubuntu
# http://www.veetle.com/index.php/download/instructions/player/autoStart
# jodownloader
# source: https://groups.google.com/d/msg/gelec/YOtAF0du5Ug/XXZaCCpzp1gJ
# Gosta de baixar arquivos de servidores como Megaupload?
# Este gerenciador é ótimo. Cria uma lista de arquivos pra baixar sem você se preocupar em ficar colocando aquelas letrinhas chatas.
# Segue comandos para instalação via terminal:
add-apt-repository ppa:jd-team/jdownloader
sudo apt-fast update
sudo apt-fast install -y jdownloader
# como fazer o painel do gnome ficar transparente
# http://www.webupd8.org/2010/09/fix-gnome-panel-for-ubuntu-1010.html
# applet para mostrar o ip atual
apt-fast install -y giplet
# funções zz
apt-fast install -y funcoeszz
# visualizador de fontes
apt-fast install -y gnome-specimen
# secure p2p
apt-fast -y install gnunet-gtk
# customização do grup2
# source: http://ubuntued.info/como-mover-e-remover-as-entradas-do-grub2
# http://www.ubuntugeek.com/grub-customizer-2-2-released-and-installation-instructions-included.html
add-apt-repository ppa:danielrichter2007/grub-customizer && sudo apt-fast update
sudo apt-fast -y install grub-customizer
# tema elementary
sudo add-apt-repository ppa:am-monkeyd/nautilus-elementary-ppa && sudo add-apt-repository ppa:elementaryart && sudo apt-fast update && sudo apt-fast install elementary-theme elementary-icon-theme elementary-wallpapers && sudo apt-fast upgrade && nautilus -q
# impressora pdf
# source: http://www.ubuntugeek.com/how-to-create-pdf-documents-in-ubuntu.html
apt-fast install -y cups-pdf
sudo chmod +s /usr/lib/cups/backend/cups-pdf
# gksudo gedit /etc/cups/cups-pdf.conf
# look for
# Out ${HOME}/PDF
# and change to something like below
# Out ${HOME}/my_print_to_pdf_folder
# and restart
# sudo /etc/init.d/cupsys restart
# termino do script
aria2c http://ubuntuone.com/p/4qs/ && play k3b_success1.wav
# rename files tool
# http://www.ubuntugeek.com/pyrenamer-mass-file-renamer-written-in-pygtk.html
sudo apt-get install pyrenamer
# reference: http://trembits.blogspot.com/2009/09/clipboard-from-command-line-xclip.html
apt-fast install -y xsel xclip
# ubuntu one indicator
sudo add-apt-repository ppa:rye/ubuntuone-extras
apt-get update
# nevernote - cliente do evernote para linux
# http://www.omgubuntu.co.uk/2011/10/evernote-ubuntu-clone-nixnote-adds/
# veja também: http://rednotebook.sourceforge.net/
sudo add-apt-repository ppa:vincent-c/nevernote
# http://www.ubuntugeek.com/syspeek-system-monitor-indicator.html
add-apt-repository ppa:vicox/syspeek
apt-fast update
apt-fast -y install syspeek
# fontes novas: http://goncin.wordpress.com/2011/10/04/ubuntu-mono-uma-nova-e-otima-fonte-para-programar/
# link para baixar as novas fontes diretamente:
# http://font.ubuntu.com/
# http://font.ubuntu.com/download/ubuntu-font-family-0.80.zip
apt-fast -y install msttcorefonts
fc-cache -fv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment