## Ubuntu Fresh Install Script
######################### Configura teclas de atalho para o nautilus ##########################
#Desabilita o "beep" chato do terminal
echo 'xset b off' >> ~/.bash_profile
## Ícones visíveis na área de trabalho (Computador, Lixeira, etc)
gconftool-2 -t bool -s /apps/nautilus/desktop/computer_icon_visible true
gconftool-2 -t bool -s /apps/nautilus/desktop/trash_icon_visible false
gconftool-2 -t bool -s /apps/nautilus/desktop/home_icon_visible true
gconftool-2 -t str -s /apps/nautilus/desktop/home_icon_name "Meus Documentos"
## Número de áreas de trabalho
gconftool-2 -t int -s /apps/metacity/general/num_workspaces '3'
## Trocar de workspace com teclas "Super+{1,2,3,4}"
gconftool-2 -t str -s /apps/metacity/global_keybindings/switch_to_workspace_1 "<Super>1"
gconftool-2 -t str -s /apps/metacity/global_keybindings/switch_to_workspace_2 "<Super>2"
gconftool-2 -t str -s /apps/metacity/global_keybindings/switch_to_workspace_3 "<Super>3"
gconftool-2 -t str -s /apps/metacity/global_keybindings/switch_to_workspace_4 "<Super>4"
## Abrir o Deskbar com F1
gconftool-2 -t str -s /apps/deskbar/keybinding "F1"
gconftool-2 -t str -s /apps/gnome-terminal/keybindings/help "<Super>F1"
## Abrir terminal com teclas "Super+t"
gconftool-2 -t str -s /apps/metacity/global_keybindings/run_command_terminal "<Super>t"
gconftool-2 -t str -s /apps/compiz/general/allscreens/options/run_command_terminal "<Control><Alt>t"
## Minimizar todas as janelas com teclas "Super+d"
gconftool-2 -t str -s /apps/metacity/global_keybindings/show_desktop "<Super>d"
gconftool-2 -t str -s /apps/compiz/general/allscreens/options/show_desktop "<Super>d"
##
## Abrir o expô com "Control+Alt+Down"
gconftool-2 -t str -s /apps/compiz/plugins/expo/allscreens/options/expo_key "<Control><Alt>Down"
## Abrir o navegador de arquivos com teclas "Super+e"
gconftool-2 -t str -s /apps/metacity/global_keybindings/run_command_11 "<Super>e"
gconftool-2 -t str -s /apps/metacity/keybinding_commands/command_11 "nautilus --browser"
gconftool-2 -t str -s /apps/compiz/general/allscreens/options/run_command11_key "<Super>e"
gconftool-2 -t str -s /apps/compiz/general/allscreens/options/command11 "nautilus --browser"
## Travar tela com Super+L
gconftool-2 -t str -s /apps/gnome_settings_daemon/keybindings/screensaver "<Control><Alt>Home"
gconftool-2 -t str -s /apps/gnome_settings_daemon/keybindings/power "<Control><Alt>End"
# Exibir o gerenciador de processos com "Control+Alt+Delete" ou "Control+Alt+Insert"
# gnome-system-monitor
gconftool-2 -t str -s /apps/metacity/global_keybindings/run_command_10 "<Control><Alt>Delete"
gconftool-2 -t str -s /apps/metacity/keybinding_commands/command_10 "gnome-system-monitor"
gconftool-2 -t str -s /apps/compiz/general/allscreens/options/run_command10_key "<Control><Alt>Delete"
gconftool-2 -t str -s /apps/compiz/general/allscreens/options/command10 "gnome-system-monitor"
# htop
gconftool-2 -t str -s /apps/metacity/global_keybindings/run_command_9 "<Control><Alt>Insert"
gconftool-2 -t str -s /apps/metacity/keybinding_commands/command_9 "xterm -e htop -u $USER --sort-key PERCENT_MEM"
gconftool-2 -t str -s /apps/compiz/general/allscreens/options/run_command9_key "<Control><Alt>Insert"
gconftool-2 -t str -s /apps/compiz/general/allscreens/options/command9 "xterm -e htop -u $USER --sort-key PERCENT_MEM"
## Localizar usando teclas "Super+f"
gconftool-2 -t str -s /apps/metacity/global_keybindings/run_command_8 "<Super>f"
gconftool-2 -t str -s /apps/metacity/keybinding_commands/command_8 "gnome-search-tool"
gconftool-2 -t str -s /apps/compiz/general/allscreens/options/run_command8_key "<Super>f"
gconftool-2 -t str -s /apps/compiz/general/allscreens/options/command8 "gnome-search-tool"
## Abrir calculadora usando teclas "Super+c"
gconftool-2 -t str -s /apps/metacity/global_keybindings/run_command_7 "<Super>c"
gconftool-2 -t str -s /apps/metacity/keybinding_commands/command_7 "gcalctool"
gconftool-2 -t str -s /apps/compiz/general/allscreens/options/run_command7_key "<Super>c"
gconftool-2 -t str -s /apps/compiz/general/allscreens/options/command7 "gcalctool"
gconftool-2 -t str -s /apps/compiz/plugins/ezoom/allscreens/options/center_mouse "<Super>m"
## Abrir audacious usando teclas "Super+a"
gconftool-2 -t str -s /apps/metacity/global_keybindings/run_command_5 "<Super>a"
gconftool-2 -t str -s /apps/metacity/keybinding_commands/command_5 "audacious"
gconftool-2 -t str -s /apps/compiz/general/allscreens/options/run_command5_key "<Super>a"
gconftool-2 -t str -s /apps/compiz/general/allscreens/options/command5 "audacious"
## Configurar os protocols handlers
#gconftool-2 -t string -s /desktop/gnome/url-handlers/magnet/command "azureus %s"
#gconftool-2 -s /desktop/gnome/url-handlers/magnet/needs_terminal false -t bool
#gconftool-2 -t bool -s /desktop/gnome/url-handlers/magnet/enabled true
## Habilitar compositing nativo do metacity
#gconftool-2 --type bool --set "/apps/metacity/general/compositing_manager" "true"
############################ BUG FIXES ############################################ Intrepid BUG fixes
#no sound with pulseaudio (https://bugs.launchpad.net/pulseaudio/+bug/246800)##go to System>Preferences>Sound and change everything to ALSA
#gnome-sound-properties && sudo killall pulseaudio && sudo gzip /etc/X11/Xsession.d/70pulseaudio && sudo alsa force-reload
#ABNT keyboard dot/comma issue (https://bugs.launchpad.net/ubuntu/+source/xkeyboard-config/+bug/272606)#sudo echo 'xmodmap -e "keycode 129 = period"' >
/etc/init.d/keymap_modifier-abnt_numpad_dot.sh && sudo chmod +x
/etc/init.d/keymap_modifier-abnt_numpad_dot.sh && /etc/init.d/keymap_modifier-abnt_numpad_dot.sh
# eject/retract issue (https://bugs.launchpad.net/ubuntu/+source/linux/+bug/283316)#cp /etc/udev/rules.d/60-persistent-storage.rules /etc/udev/rules.d/60-persistent-storage.rules_bkp
#sed -i 's/ENV{DEVTYPE}=="disk", KERNEL!=/ENV{DEVTYPE}=="disk", KERNEL==/g' /etc/udev/rules.d/60-persistent-storage.rules
# The version of gtk2-engines-pixbuf in the intrepid repositories is not compatible with the Mac4lin GTK theme
# FIX intrepid "no system event sounds"echo 'deb http://ppa.launchpad.net/gkulyk/ubuntu intrepid main' >> /etc/apt/sources.list && apt-get update
apt-get install libcanberra-gnome libcanberra-gtk-module libcanberra-gtk0 libcanberra0
############################ Autoriza a realização de operações administrativas ###############
sudo su
echo "set bell-style none" >> /etc/inputrc
################################ Backups Essenciais #################################
## sources.list
cp /etc/apt/sources.list /etc/apt/sources.list_original
## fstab
cp /etc/fstab /etc/fstab_original
## xorg.conf
cp /etc/X11/xorg.conf /etc/X11/xorg.conf_original
## smb.conf
cp /etc/samba/smb.conf /etc/samba/smb.conf_original
############################ Adiciona os repositorios necessarios #############################
## Mediubuntu (Multimedia,
Entertainment & Distractions In Ubuntu)
echo "deb http://packages.medibuntu.org/ intrepid free non-free" >> /etc/apt/sources.list && wget -q http://packages.medibuntu.org/medibuntu-key.gpg -O- | sudo apt-key add - && apt-get update
############################### Instala os codecs básicos ##################################
##codecs comunsapt-get -y install mpeg2dec liba52-0.7.4 vorbis-tools id3v2 mpg321 mpg123 libswfdec-0.8-0 ffmpeg icedax toolame libmp4v2-0 libmjpegtools0c2a lame id3tool nautilus-script-audio-convert libmad0 libjpeg-progs libmpcdec3 flac faac faad sox toolame a52dec libmpeg2-4 uudeview flac libmpeg3-1
# sudo apt-get -y install x264-bin libx264-dev libflac++5c2 libquicktime0# gstreammer 0.10
apt-get -y install gstreamer0.10-plugins-good
gstreamer0.10-plugins-bad gstreamer0.10-plugins-ugly gstreamer0.10-plugins-bad-multiverse gstreamer0.10-plugins-ugly-multiverse
gstreamer0.10-ffmpeg gstreamer0.10-fluendo-mp3 gstreamer0.10-fluendo-mpegdemux gstreamer0.10-gnonlin gstreamer0.10-plugins-farsight gstreamer0.10-sdl totem-gstreamer
## suporte à leitura de DVDs
apt-get -y install libdvdread3 libxine1-ffmpeg totem-xine
/usr/share/doc/libdvdread3/install-css.sh
#libdvdcss2
## ferramentas de sistema
apt-get -y install numlockx preload samba ssh nautilus-actions alltray thunar sysinfo htop conky elinks trickle gshutdown screenruler build-essential checkinstall
## Parcellite Clipboard Manager ('Cuz Glipper+Eclipse = fail)
#apt-get -y install parcellite
cd /tmp && wget -c http://neacm.fe.up.pt/pub/getdeb/ubuntu/intrepid/pa/parcellite_0.9-0~getdeb1_i386.deb && dpkg -i parcellite_0.9-0~getdeb1_i386.deb
#kcron unison
#glipper
#? alien (rmp2deb) specto (notification)
#? aptoncd
sudo apt-get -y install compiz compizconfig-settings-manager fusion-icon simple-ccsm
## Encontra duplicatas de arquivos
#apt-get install fdupes kleansweep
## GRSync - sincronize backups de/para seu pendrive
#apt-get install grsync
## Gnome-Do + Docky (http://do.davebsd.com/wiki/index.php?title=Docky)
echo "deb http://ppa.launchpad.net/do-core/ppa/ubuntu intrepid main" >> /etc/apt/sources.list
gpg --keyserver subkeys.pgp.net --recv 28A8205077558DD0 && gpg --export --armor 28A8205077558DD0 | apt-key add -
apt-get update
apt-get install gnome-do
## bluetoothapt-get -y install bluez-* gnome-bluetooth gnome-vfs-obexftp
## BlueMan - bluetooth manager (substitui o gnome-obex-server)
echo 'deb http://ppa.launchpad.net/blueman/ppa/ubuntu intrepid main' >> /etc/apt/sources.list
apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 6B15AB91951DC1E2
apt-get update
apt-get install blueman
# blueproximity - trava o PC ao distanciar-se#sudo apt-get install bluez-utils python-gtk2 python-glade2 python-configobj python-bluez
#wget http://security.ubuntu.com/ubuntu/pool/main/p/python-support/python-support_0.7.5ubuntu1_all.deb
#sudo dpkg -i python-support_0.7.5_all.deb
#wget -c http://ufpr.dl.sourceforge.net/sourceforge/blueproximity/blueproximity_1.2.5-0ubuntu1_all.deb
#sudo dkpg -i blueproximity_1.2.5-0ubuntu1_all.deb
## wine (executar arquivos .exe)
wget -q http://wine.budgetdedicated.com/apt/387EE263.gpg -O- | sudo apt-key add - && sudo wget http://wine.budgetdedicated.com/apt/sources.list.d/jaunty.list -O /etc/apt/sources.list.d/winehq.list && apt-get update
apt-get -y install wine
#cedega## Nvidia Graphics Cardsudo jockey-gtk
## ATI Radeon Graphics Card#Envy#apt-get install envyng-gtk#envyng -t
############################### Instala os softwares básicos ################################
# audio preview
apt-get -y install mpg123
## players de audio
apt-get -y install rhythmbox audacious audacious-plugins-extra lastfm
#xmms xmms-scrobbler
#lastfm vagalume last-exit
#? banshee 1.0
#? listen
#? songbird
#cd /tmp; wget http://www.psychocats.net/ubuntu/installsongbird.sh;chmod +x installsongbird.sh; ./installsongbird.sh
#cd /tmp; wget ftp://darkstar.ist.utl.pt/pub/getdeb/so/songbird_0.4-1~getdeb1_amd64.deb; dpkg -i songbird_0.4-1~getdeb1_amd64.deb;
#webradios linkscd /tmp
#wget -c http://upload.wikimedia.org/wikipedia/commons/thumb/c/cf/Football_pictogram.svg/300px-Football_pictogram.svg.png && mv 300px-Football_pictogram.svg.png /usr/share/pixmaps/radioitatiaia.png
wget -c http://upload.wikimedia.org/wikipedia/commons/thumb/e/e9/Wikinews-Soccer-logo.svg/605px-Wikinews-Soccer-logo.svg.png && mv 605px-Wikinews-Soccer-logo.svg.png /usr/share/pixmaps/radioitatiaia.png
# cria entrada no menu
echo '[Desktop Entry]
Name=Radio Itatiaia
Comment=Ouça Notícias Esportivas e Jogos de Futebol ao Vivo
Exec= vlc http://itatiaia1r.128k.audio.upx.com.br/itatiaia1
Icon=/usr/share/pixmaps/radioitatiaia.png
Type=Application
Encoding=UTF-8
MimeType=audio/x-ms-asf
Categories=Application;AudioVideo;' > /usr/share/applications/radioitatiaia.desktop
## players de video
apt-get -y install mplayer mplayer-fonts mplayer-skins xine-ui libxine1-plugins libxine1-ffmpeg vlc
#vlc-nox vlc-plugin-sdl vlc-plugin-svgalib
#? gxine
#? totem-xine
## howto change the "end-logo" do xine-ui
#mv /usr/share/xine/skins/xine-ui_logo.mpv /usr/share/xine/skins/xine-ui_logo.mpv_bkp
## OBS.: pode ser um video ou uma imagem
#cp "$1" /usr/share/xine/skins/xine-ui_logo.mpv
## controle remoto#
anyremote - controle remoto via bluetooth (http://anyremote.sourceforge.net/)
apt-get -y install libbluetooth-dev libxtst-dev
wget -c http://ufpr.dl.sourceforge.net/sourceforge/anyremote/anyremote-4.18.1.tar.gz
tar xzf anyremote-4.18.1.tar.gz
cd anyremote-*
./configure
make
make install
checkinstall -D -y --pkgname="anyremote"
chmod -R 777 /usr/share/anyremote/cfg-data/Server-mode
# anyremote GUI
wget -c http://ufpr.dl.sourceforge.net/sourceforge/anyremote/ganyremote-5.5.1.tar.gz
tar xvzf ganyremote-5.5.1.tar.gz
cd ganyremote-*
./configure
make
make install
checkinstall -D -y --pkgname="ganyremote"
## media center#Boxee Media Center
echo 'deb http://apt.boxee.tv intrepid main' >> /etc/apt/sources.list && apt-get update && apt-get -y --force-yes install boxee
#fix pulseaudio issues
echo '
#metacity --replace &
pasuspender -- /opt/boxee/run-boxee-desktop
#pulseaudio -k
#dspa boxee
#compiz --replace &
' > /usr/bin/boxee && chmod +x /usr/bin/boxee
#fix pause freezing with pulseaudio
sudo apt-get -y install libsdl1.2debian-pulseaudio
#fix double click issue (http://www.highonsolder.com/blog/2008/11/22/boxee-ubuntu-810-setup.html)
#echo '<advancedsettings><remoterepeat>1000</remoterepeat></advancedsettings>' > ~/.boxee/UserData/advancedsettings.xml
# XBMC Media Center (http://xbmc.org/)
cd /tmp
wget -c http://ubuntu.dcc.fc.up.pt/pool/main/b/bluez-libs/libbluetooth2_3.29-0ubuntu1_i386.deb && dpkg -i libbluetooth2_3.29-0ubuntu1_i386.deb
echo "deb http://ppa.launchpad.net/team-xbmc-intrepid/ubuntu intrepid main" >> /etc/apt/sources.list && apt-get update
apt-get -y --force-yes install xbmc xbmc-common xbmc-skin-pm3-hd xbmc-web-pm3
#xbmc-plugins-supported xbmc-scripts-supported
#xbmc-eventclients-j2me xbmc-t3ch-addons
#XBMC Plugins
#wget -c http://www.xbmcscripts.com/index.php?option=com_docman&task=doc_download&gid=298
#wget -c http://www.xbmcscripts.com/index.php?option=com_docman&task=doc_download&gid=616
#wget -c http://www.xbmcscripts.com/index.php?option=com_docman&task=doc_download&gid=458
#wget -c http://www.xbmcscripts.com/index.php?option=com_docman&task=doc_download&gid=54
#wget -c http://www.xbmcscripts.com/index.php?option=com_docman&task=doc_download&gid=402
#wget -c http://www.xbmcscripts.com/index.php?option=com_docman&task=doc_download&gid=321
#wget -c http://www.xbmcscripts.com/index.php?option=com_docman&task=doc_download&gid=526
#wget -c http://www.xbmcscripts.com/index.php?option=com_docman&task=doc_download&gid=555
#wget -c http://www.xbmcscripts.com/index.php?option=com_docman&task=doc_download&gid=160&Itemid=36
#wget -c http://www.xbmcscripts.com/index.php?option=com_docman&task=doc_download&gid=291&Itemid=36
#wget -c http://www.xbmcscripts.com/index.php?option=com_docman&task=doc_download&gid=367
#wget -c http://www.xbmcscripts.com/index.php?option=com_docman&task=doc_download&gid=436&Itemid=36
#wget -c http://www.xbmcscripts.com/index.php?option=com_docman&task=doc_download&gid=506
#wget -c http://www.xbmcscripts.com/index.php?option=com_docman&task=doc_download&gid=344&Itemid=36
#wget -c http://www.xbmcscripts.com/index.php?option=com_docman&task=doc_download&gid=273&Itemid=36
#wget -c http://www.xbmcscripts.com/index.php?option=com_docman&task=doc_download&gid=441&Itemid=36
#? unzip Youtube-v1.8b.zip -C /usr/share/xbmc/plugins/video
#elisa
#echo "deb http://elisa.fluendo.com/packages intrepid main" >>
/etc/apt/sources.list && wget
http://elisa.fluendo.com/packages/philn.asc -O - | sudo apt-key add -
&& apt-get update#apt-get -y install elisa elisa-plugins-*
#?!? repo error: elisa-extra#entertainer (from SVN)
#echo "deb http://debian.o-hand.com intrepid/" >> /etc/apt/sources.list && apt-get update#apt-get install --force-yes python-clutter subversion python-notify python-feedparser python-pyvorbis python-pyogg python-eyed3 python-pysqlite2 python-gtk2 python-glade2 python-clutter python-pyvorbis python-imaging python-pyinotify python-imdbpy python-cairo-dev gtk-doc-tools python-cddb#cd /usr/local/lib/
#svn checkout http://entertainer-media-center.googlecode.com/svn/trunk/ entertainer
#cd /usr/local/lib/entertainer/src
#touch entertainer.sh
#echo "cd /usr/local/lib/entertainer/src" >> entertainer.sh
#echo "./entertainer-backend.py" >> entertainer.sh
#echo "sleep 5" >> entertainer.sh
#echo "./entertainer-frontend.py" >> entertainer.sh
#chmod +x entertainer.sh
#ln -s /usr/local/lib/entertainer/src/entertainer.sh /usr/local/bin/entertainer
##criar lançador
#touch /usr/share/applications/entertainer.desktop
#echo "[Desktop Entry]" >> /usr/share/applications/entertainer.desktop
#echo "Name=Entertainer Media Center" >> /usr/share/applications/entertainer.desktop
#echo "Comment=Entertainer - a simple and easy-to-use media center solution" >> /usr/share/applications/entertainer.desktop
#echo "Exec=entertainer" >> /usr/share/applications/entertainer.desktop
#echo "Icon=pitivi" >> /usr/share/applications/entertainer.desktop
#echo "Type=Application" >> /usr/share/applications/entertainer.desktop
#echo "Encoding=UTF-8" >> /usr/share/applications/entertainer.desktop
#echo "Categories=Application;AudioVideo;Player;" >> /usr/share/applications/entertainer.desktop
##adicionar pastas de mídia:
##exit
##cp /usr/local/lib/entertainer/cfg/ ~/.entertainer -R
##cd /usr/local/lib/entertainer/src
##./entertainer-content-management.py
## P2PTV
#miró (ex-DemocracyTV)
echo "deb http://ftp.osuosl.org/pub/pculture.org/miro/linux/repositories/ubuntu intrepid/" >> /etc/apt/sources.list && apt-get update
#apt-get -y install miro
#>> Depends: python (<2.6) but 2.6.1-0ubuntu3 is to be installed
aptitude install miro
dpkg -i --force-all /var/cache/apt/archives/miro_2.0.3-1ubuntu2_i386.deb
# aplica limitador de velocidade ao miro
cp /usr/bin/miro /usr/bin/miro_bkp
echo '#!/bin/sh' > /usr/bin/miro
echo 'LD_LIBRARY_PATH=/usr/lib/firefox trickle -d 50 -u 5 miro.real "$@"' >> /usr/bin/miro
#BUGFIX for "Err http://ftp.osuosl.org intrepid/ miro 1.1.1-2 miro-data 1.1.1-2":
#wget -c ftp://ftp.osuosl.org/pub/pculture.org/miro/linux/repositories/ubuntu/intrepid/miro_1.1.1-2_i386.deb
#wget -c ftp://ftp.osuosl.org/pub/pculture.org/miro/linux/repositories/ubuntu/intrepid/miro-data_1.1.1-2_all.deb
#mv miro_1.1.1-2_i386.deb /var/cache/apt/archives/
#mv miro-data_1.1.1-2_all.deb /var/cache/apt/archives/
#sopcast (TV p2p)apt-get -y install libstdc++5
cd /tmp
wget -c http://download.sopcast.cn/download/sp-auth.tgz
tar -zxvf sp-auth.tgz
cd sp-auth/
mv sp-sc-auth /usr/local/bin/sp-sc-auth
ln -s /usr/local/bin/sp-sc-auth /usr/local/bin/sp-sc
#1) instala a GUI
##GSopcast
apt-get -y install build-essential libasound2-dev libgtk2.0-dev intltool libstdc++5 libgtk2.0-dev libasound2-dev automake1.9 autoconf checkinstall
cd /tmp
wget -c http://gsopcast.googlecode.com/files/gsopcast-0.4.0.tar.bz2
tar -xvjf gsopcast-0.4.0.tar.bz2
cd gsopcast-0.4.0
./configure
#FIX: error: ‘strstr’ was not declared in this scope
sed -i 's/#include "header.h"/#include "header.h"\n#include <cstring>/g' ./src/*.cc
make
make install
checkinstall -D -y
#cd /tmp
#apt-get -y install libqt3-mt
#wget -c http://qsopcast.googlecode.com/files/qsopcast-0.3.5.tar.bz2
#tar -xvjf qsopcast-0.3.5.tar.bz2
#cd qsopcast-0.3.5/src/
#qmake
#make
#make install
#2) e criar a respectiva entrada no menu
echo '[Desktop Entry]
Name=Assistir TV via Sopcast
Comment=gsopcast - TV Streamming via P2P
Exec=gsopcast
Icon=pitivi
Type=Application
Encoding=UTF-8
Categories=Application;AudioVideo;Player;' > /usr/share/applications/gsopcast.desktop
## conversão e edição de vídeo
apt-get -y install avidemux ffmpeg mencoder
#ffmpeg2theora transcode
# ipodencoder
wget -c http://homepages.dcc.ufmg.br/~evaladao/storage/scripts/ipodencoder.sh -O /usr/local/bin/ipodencoder && chmod +x /usr/local/bin/ipodencoder
# ffmpeg - com suporte a h264, xvid, theora, aac, ogg, mp3, etc
cd /tmp
apt-get -y build-dep ffmpeg
apt-get -y install libvorbis-dev libogg-dev libtheora-dev liba52-*-dev libgsm1-dev libmp3lame-dev libfaad-dev libfaac-dev libmp4v2-dev libx264-dev libxvidcore4-dev libamrnb-dev libamrwb-dev
#libdc1394-*-dev
## "compilable" ffmpeg gutsy version
# wget -c http://archive.ubuntu.com/ubuntu/pool/main/f/ffmpeg/ffmpeg_0.cvs20070307-5ubuntu7.1.dsc
# wget -c http://archive.ubuntu.com/ubuntu/pool/main/f/ffmpeg/ffmpeg_0.cvs20070307-5ubuntu7.1.diff.gz
# wget -c http://archive.ubuntu.com/ubuntu/pool/main/f/ffmpeg/ffmpeg_0.cvs20070307.orig.tar.gz
# dpkg-source -x ffmpeg_0.cvs20070307-5ubuntu7.1.dsc
# cd ffmpeg-*/
# ./configure --enable-pthreads --enable-libogg --enable-libvorbis --enable-libtheora --enable-xvid --enable-x264 --enable-libmp3lame --enable-libfaad --enable-libfaac --enable-gpl --enable-pp --enable-liba52 --enable-libgsm --disable-debug
apt-get source ffmpeg
cd ffmpeg-*/
# ./configure --help | grep enable | sort
./configure --enable-nonfree --enable-libamr-nb --enable-libamr-wb --enable-pthreads --enable-libvorbis --enable-libtheora --enable-libxvid --enable-libx264 --enable-libmp3lame --enable-libfaad --enable-libfaac --enable-gpl --enable-pp --enable-liba52 --enable-libgsm --disable-debug
#--enable-libdc1394
#ERROR dsputil.c: In function ‘h263_v_loop_filter_c’:
make
make install
# create and lock the package
checkinstall -D -y --pkgname="ffmpeg-extra" --pkgversion "1:0.EVS-svn`date +%Y%m%d`-0.0ubuntu1"
apt-get -y autoremove
aptitude hold ffmpeg-extra ffmpeg
## conversão e edição de audio e ID3 tags
apt-get -y install lame soundconverter easytag
# apt-get -y install audacity
#? ID3: cowbell tagtool
#apt-get -y install picard libtunepimp5-mp3
## legendas (edição/obtenção)
apt-get -y install gaupol
#gnome-subtitles http://www.getdeb.net/release.php?id=1139
#cd /tmp; wget http://harrisony.com/getdeb.net/gn/gnome-subtitles_0.6-1~getdeb1_all.deb; dpkg -i gnome-subtitles_0.6-1~getdeb1_all.deb;
# subdownloaderapt-get -y install python-crypto python-kaa-metadata python-kaa-base python-qt4 python-sip4 python-imdbpy
wget -c http://code.launchpad.net/subdownloader/trunk/2.0.9/+download/subdownloader_2.0.9.3-1_all.deb
dpkg -i subdownloader_2.0.9.3-1_all.deb
apt-get -f install
## criar/manipular containers - video/audio/texto (ogm,mkv,mp4)
apt-get -y install ogmtools mkvtoolnix mkvtoolnix-gui gpac
## screencast (desktop session recorder)
apt-get -y install gtk-recordmydesktop
#apt-get -y install istanbul
## like "Adobe After Efects"
#? apt-get -y install kino
## like "MovieMaker"
#? apt-get -y install pitivi
## gravação de CDs e DVDs
apt-get -y install serpentine brasero
#k3b k3b-i18n #?!? libk3b2-mp3
## ripagem de CDs e DVDs
apt-get -y install sound-juicer k9copy dvdrip thoggen
#acidrip dvd95 (francês)
# handbrake DVDRipper & video converter#wget -c
http://www.asshatandi.com/HandBrake-0.9.3-Ubuntu_GUI_i386.deb
&& dpkg -i HandBrake-0.9.3-Ubuntu_GUI_i386.deb &&
apt-get -f install
## gerenciamento de coleções de filmes#griffith (searchengine: epipoca)
apt-get -y install griffith
#wget -c http://mirrors.kernel.org/ubuntu/pool/main/p/python-central/python-central_0.6.7ubuntu0.1_all.deb
#wget -c http://download.berlios.de/griffith/griffith_0.9.7.1-1_all.deb
#wget -c http://download.berlios.de/griffith/griffith-extra-artwork_0.9.4-1_all.deb
#BUGFIX? python-imdbpy
#? grip
## criação de DVDs
#XXX ?repo? apt-get -y install mandvd
apt-get -y install devede
#qdvdauthor (testar)
## visualizadores de imagens
apt-get -y install f-spot
# earth3d digikam gwenview picasa
## editores de imagens
apt-get -y install kolourpaint4
#apt-get -y install gpaint scribus inkscape mypaint hugin googleearth-package
#? blender
## editor de textoapt-get install mousepad
## suíte de escritório
# openoffice 3.0echo "deb http://ppa.launchpad.net/openoffice-pkgs/ubuntu intrepid main" >> /etc/apt/sources.list && apt-get update
apt-get -y install openoffice.org-core
#Atualizar o Dicionário de Português (Corretor Ortográfico do OpenOffice,Firefox,etc) (http://www.broffice.org/verortografico/baixar)
cp /usr/share/myspell/dicts/pt_BR.aff /usr/share/myspell/dicts/pt_BR.aff_bkp
cp /usr/share/myspell/dicts/pt_BR.dic /usr/share/myspell/dicts/pt_BR.dic_bkp
cd /tmp
#XXX link quebrado! (usar bkp local)
wget -c http://www.deso-se.com.br/downloads/pt_BR-2008-02-21C.zip
unzip pt_BR-2008-02-21C.zip
mv /tmp/pt_BR.aff /usr/share/myspell/dicts/pt_BR.aff
mv /tmp/pt_BR.dic /usr/share/myspell/dicts/pt_BR.dic
## visualizador de PDF#apt-get -y install
okular-kde4
#? kpdf
## adobe reader
#cd /tmp
#wget -c http://ardownload.adobe.com/pub/adobe/reader/unix/8.x/8.1.2/ptb/AdobeReader_ptb-8.1.2_SU1-1.i386.deb
#dpkg -i AdobeReader_ptb-8.1.2_SU1-1.i386.deb
## visualizador de DJVU
apt-get -y install libdjvulibre* djvulibre-* djview pdf2djvu
## browserapt-get install -y firefox-3.0 epiphany-webkit
echo "deb http://deb.opera.com/opera/ stable non-free" >> /etc/apt/sources.list && wget -O - http://deb.opera.com/archive.key | apt-key add - && apt-get update && apt-get install opera
## Web Applications with Mozilla Prism
apt-get -y install prism prism-google-mail prism-google-calendar prism-twitter
## Midori - a lightweight web browser
# first, get the last webkit
# wget -c http://builds.nightly.webkit.org/files/trunk/src/WebKit-r35805.tar.bz2
# apt-get -u build-dep libwebkitgtk1d
# apt-get install autoconf automake libtool bison flex gperf
libicu36-dev libxslt1-dev libcurl4-openssl-dev libsqlite3-dev
libjpeg62-dev libpng12-dev libglibmm-2.4-dev libgtk2.0-dev
build-essential
# # then, install midori
# wget -c http://www.twotoasts.de/media/midori/midori-0.0.19.tar.bz2
# tar -xvjf midori-0.0.19.tar.bz2
# cd midori-0.0.19
# apt-get install git-core curl cdbs debhelper fdupes gettext
html2text intltool intltool-debian libsexy-dev po-debconf libpixman-1-0
libwebkitgdk0d libwebkitgdk-dev
# ./autogen.sh
## Epiphany WebKit
# deb http://ppa.launchpad.net/stemp/ubuntu intrepid main #WebKit & Midori
# deb http://ppa.launchpad.net/michelinux/ubuntu intrepid main #Epiphany-WebKit
# apt-get install epiphany-webkit
## plugins para o navegador (pdf, audio, video, java, flash)
apt-get -y install mozilla-mplayer
#! sun-java6-plugin será instalado mais abaixo#browser multimidia backends: totem-mozilla | mozilla-mplayer | xine-plugin gxineplugin | mozilla-plugin-vlc
#? mozplugger (pdf)
#? mozilla-helix-player helix-player
#? gnash mozilla-plugin-gnash
#? totem-gstreamer-firefox-plugin
#? mozilla-plugin-vlc vlc-plugin-*
apt-get -y install flashplugin-nonfree
#1) ou baixa e instala o flash mais recente da adobe
#cd /tmp
#killall firefox-bin
#wget -c http://fpdownload.macromedia.com/get/flashplayer/current/install_flash_player_10_linux.deb && dpkg -i #install_flash_player_10_linux.deb
##wget -c http://fpdownload.macromedia.com/get/flashplayer/current/install_flash_player_10_linux.tar.gz && tar -zxvf install_flash_player_10_linux.tar.gz
##sudo mv ./install_flash_player_10_linux/libflashplayer.so /usr/lib/mozilla/plugins/
##rm -Rf ./install_flash_player_10_linux
###rm -f install_flash_player_10_linux.tar.gz
##2) por último e MAIS IMPORTANTE, fazer a "linkagem" da pasta de plugins para o seu perfil
#chmod 777 /usr/lib/mozilla/plugins
#exit
#chmod 777 ~/.mozilla/plugins
##XXX mudei o til/pasta para o caminho completo... testar
#ln -s /usr/lib/mozilla/plugins/ ~/.mozilla/plugins
#sudo su
##3) resolva o problema de som 64 bits
##sudo ln -s /usr/lib/libesd.so.0 /usr/lib/libesd.so.1
## gerenciador de downloads e ferramentas web#apt-get -y install tinyproxy
#? gwget d4x freeloader
## gerenciamento financeiroapt-get -y install gnucash
## leitor de e-mail
#mozilla-thunderbird (o evolution já é mais que suficiente)
## comunicação
# chatapt-get -y install pidgin
#kmess amsn
# voip
echo "deb http://download.skype.com/linux/repos/debian/ stable non-free" >> /etc/apt/sources.list && apt-get update
apt-get -y --force-yes install skype
# ekiga 3.0
#gpg --keyserver keyserver.ubuntu.com --recv-keys 3596ED6E
#gpg --export --armor 3596ED6E | sudo apt-key add -
#echo "deb http://snapshots.ekiga.net/snapshots/ubuntu/ gutsy main" >> /etc/apt/sources.list
#echo "deb http://archive.ubuntu.com/ubuntu/ gutsy-updates main multiverse" >> /etc/apt/sources.list
#apt-get update
#apt-get install ekiga-snapshot ekiga-snapshot-gtkonly ekiga-snapshot-plugins-all-devices ekiga-snapshot-plugins-h263-1998-mp4v-es ekiga-snapshot-plugins-h264 ekiga-snapshot-plugins-ilbc ekiga-snapshot-plugins-non-free-codecs libopal-3.4 libopal-3.4-plugins-h264 libopal-3.4-plugins-ilbc libpt-2.4 libpt-2.4-plugins-alsa libpt-2.4-plugins-avc libpt-2.4-plugins-dc libpt-2.4-plugins-oss libpt-2.4-plugins-v4l libpt-2.4-plugins-v4l2
##libpt-snapshot-plugins-v4l libopal-snapshot-plugins-h264
## webcam goodiesapt-get -y install cheese
#? cameramonitor
# morse-code trainer#apt-get -y install aldo
#Farnsworth: 20WPM, 15
#cw cwcp morse
#echo "SOS" | cw -w 25 -t 700
## ipod
## descobrir o serial do iPodsudo lsusb -v | grep -i Serial
#libgpod v0.6.0 com suporte a artwork
apt-get -y install libgpod4 libgpod-common libgpod-dev libmp4v2-0 libgdk-pixbuf2 libgdk-pixbuf-dev
## libgpod already updated in intrepid ibex!
#cd /tmp
#wget -c http://ufpr.dl.sourceforge.net/sourceforge/gtkpod/libgpod-0.6.0.tar.gz
#tar -zxvf libgpod-0.6.0.tar.gz
#cd libgpod-0.6.0
#./configure
#make
#sudo make install
#sudo rm /usr/lib/libgpod.so.2.0.0
#sudo rm /usr/lib/libgpod.so.2
#sudo ln -s /usr/local/lib/libgpod.so.3 /usr/lib/libgpod.so.3
#sudo ln -s /usr/local/lib/libgpod.so.3 /usr/lib/libgpod.so.2
# gerenciador GTKPod
apt-get -y install gtkpod-aac
#apt-get -y install gpixpod
#musica e video#amarok
#podcast
#apt-get -y install gpodder python-gpod python-pymad
#imagem
apt-get -y install gthumb
#apt-get -y install gwenview kipi-plugins
# jSMS
#1) instala o jsms
cd /usr/share/pixmaps
wget -c http://jsms.com.br/svn/trunk/jSMS.png
mv ./jSMS.png ./jsms.png
ln -s /home/softwares/icos/sms_green.png /usr/share/pixmaps/jsms.png
mkdir -p /usr/local/lib/jSMS
cd /usr/local/lib/jSMS
wget -c http://jsms.com.br/download/jSMS-302.jar
rm -f jSMS.jar
ln -s ./jSMS-302.jar ./jSMS.jar
rm -f ./jSMS.sh
echo "export AWT_TOOLKIT=MToolkit;java -jar /usr/local/lib/jSMS/jSMS.jar $@" > ./jSMS.sh
chmod a+x ./jSMS.sh
ln -s /usr/local/lib/jSMS/jSMS.sh /usr/local/bin/jsms
#2) e criar a respectiva entrada no menu
echo '[Desktop Entry]
Name=jSMS
Comment=Envie torpedos para celulares
Exec=jsms
Icon=/usr/share/pixmaps/jsms.png
Type=Application
Encoding=UTF-8
Categories=Network;Application;' > /usr/share/applications/jsms.desktop
## p2p
apt-get -y install gtk-gnutella
#limewire
#echo "deb ftp://ftp.berlios.de/pub/gift-fasttrack unstable main" >> /etc/apt/sources.list && apt-get update
#apt-get -y install amule gift giftd apollon libgnutella-gift libfasttrack-gift libopenft-gift nicotine
#apt-get -y install azureus
#? deluge qbittorrent
# vuze:
#apt-get install icedtea-java7-plugin
#cd /tmp
#wget -c http://cache2.vuze.com/files/Vuze_linux.tar.bz2
#tar -xvjf Vuze_linux.tar.bz2
#cp /tmp/vuze/vuze /tmp/vuze/vuze_bkp
#sed -i -e 's/SCRIPT_NOT_CHANGED=0/SCRIPT_NOT_CHANGED=1/g' -e 's/JAVA_PROGRAM_DIR=.*/JAVA_PROGRAM_DIR="\/usr\/lib\/jvm\/java-7-icedtea\/bin\/"/g' /tmp/vuze/vuze
#mv /tmp/vuze/ /opt/vuze
#rm -f /usr/bin/vuze /usr/bin/azureus
#ln -s /opt/vuze/vuze /usr/bin/vuze
#ln -s /opt/vuze/vuze /usr/bin/azureus
# utorrent
apt-get -y install wine
mkdir -p /opt/wine/utorrent
cd /opt/wine/utorrent
wget -c http://download.utorrent.com/1.8.1/utorrent.exe
# cria script de execução
echo '#!/bin/sh' > /opt/wine/utorrent/utorrent.sh
echo 'if [ "$1" != "" ]; then' >> /opt/wine/utorrent/utorrent.sh
echo -n ' var="`echo \"$1\" ' >> /opt/wine/utorrent/utorrent.sh
echo "| tr '/' '\'\`\"" >> /opt/wine/utorrent/utorrent.sh
echo ' var="Z:${var}"' >> /opt/wine/utorrent/utorrent.sh
echo ' env WINEPREFIX="/home/username/.wine" wine "C:\Arquivos de programas\uTorrent\uTorrent.exe" "$var"' >> /opt/wine/utorrent/utorrent.sh
echo "else" >> /opt/wine/utorrent/utorrent.sh
echo ' env WINEPREFIX="/home/username/.wine" wine "C:\Arquivos de programas\uTorrent\uTorrent.exe" ' >> /opt/wine/utorrent/utorrent.sh
echo "fi" >> /opt/wine/utorrent/utorrent.sh
chmod +x utorrent.sh
ln -s /opt/wine/utorrent/utorrent.sh /usr/local/bin/utorrent
#executa no perfil do usuario
exit
wine /opt/wine/utorrent/utorrent.exe
sudo su
# cria entrada no menu
#utorrent_icon=`ls /home/username/.local/share/icons/*utorrent*.xpm | head -n 1`
cp /home/username/.local/share/icons/*utorrent*.xpm /home/username/.local/share/icons/utorrent.xpm
echo '[Desktop Entry]
Name=Cliente BitTorrent uTorrent
Comment=Ferramenta de Distribuição de Arquivos via Peer-to-Peer
Exec=utorrent
Icon=/home/username/.local/share/icons/utorrent.xpm
Type=Application
Encoding=UTF-8
MimeType=application/x-bittorrent
Categories=Application;Network;P2P;' > /usr/share/applications/utorrent.desktop
#rtorrent (command line)
apt-get install rtorrent
bash
RTDIR=/usr/local/lib/rtorrent
mkdir $RTDIR
cd $RTDIR
wget -c http://libtorrent.rakshasa.no/downloads/libtorrent-0.12.0.tar.gz
tar -zxvf libtorrent-0.12.0.tar.gz
cd $RTDIR/libtorrent-0.12.0
./configure --prefix=$RTDIR
make
make install
rm -f libtorrent-0.12.0.tar.gz
cd $RTDIR
wget -c http://libtorrent.rakshasa.no/downloads/rtorrent-0.8.0.tar.gz
tar -zxvf rtorrent-0.8.0.tar.gz
cd $RTDIR/rtorrent-0.8.0
LD_LIBRARY_PATH=$RTDIR/lib
PKG_CONFIG_PATH=$RTDIR/lib/pkgconfig/
STUFF_LIBS="$(curl-config --libs) $(pkg-config sigc++-2.0 --libs) -L$RTDIR/lib"
./configure --prefix=$RTDIR/lib --mandir=$RTDIR/man --bindir=$RTDIR/bin --docdir=$RTDIR/doc
make
make install
rm -f rtorrent-0.8.0.tar.gz
## virtualização## VirtualBox c/ USBapt-get autoremove virtualbox-ose
echo 'deb http://download.virtualbox.org/virtualbox/debian intrepid non-free' >> /etc/apt/sources.list
wget -q http://download.virtualbox.org/virtualbox/debian/sun_vbox.asc -O- | apt-key add -
apt-get update
sudo apt-get install virtualbox-2.1
sudo gpasswd -a everthon vboxusers
devgid=`grep vboxusers /etc/group | sed -e 's/.*x://g' -e 's/:$//g'`
echo "none /proc/bus/usb usbfs devgid=$devgid,devmode=664 0 0" >> /etc/fstab
## acesso remoto
#apt-get install nxagent nxclient
# TTS Text-to-Speach
##Mbrola+eSpeakcd /tmp
wget -c http://tcts.fpms.ac.be/synthesis/mbrola/bin/pclinux/mbrola3.0.1h_i386.deb
dpkg -i mbrola3.0.1h_i386.deb
wget -c http://tcts.fpms.ac.be/synthesis/mbrola/dba/br1/br1-971105.zip
unzip -x br1-971105.zip
mkdir /usr/share/mbrola
mv br1 /usr/share/mbrola
#echo 'Teste, teste, funciona!' | espeak -v mb-br1 | mbrola -t 0.85 -e /usr/share/mbrola/br1/br1 - - | aplay -r16000 -fS16
## txt2mp3apt-get -y install espeak lame xpdf-utils odt2txt antiword
echo '#!/bin/sh
# txt2mp3 - convert text files to mp3 audio files (aka audiobooks)
# v0.3
#
# (c) 2008 Everthon Valadão <everthonvaladao@gmail.com> under the GPL
# http://www.gnu.org/copyleft/gpl.html
#
# OBS.: install some pre-requisites first, with
# sudo apt-get install espeak lame xpdf-utils odt2txt antiword
TXT_FILE="$1"
BASENAME=`echo "$TXT_FILE" | sed "s/\(.*\)\(\....$\)/\1/g"`
echo "TTS (text-to-speach) ${TXT_FILE}"
ext=${1##*.}
# if it isn`t a TXT file, convert it first
if [ "$ext" != "txt" ] ; then
TMP_FILE="/tmp/espeakfile-$$.txt"
# PDF
if [ "$ext" = "pdf" ] ; then
echo "converting from PDF to TXT"
pdftotext "${TXT_FILE}" "${TMP_FILE}"
fi
# ODT
if [ "$ext" = "odt" ] ; then
echo "converting from ODT to TXT"
odt2txt --subst=all "${TXT_FILE}" > "${TMP_FILE}"
fi
# DOC
if [ "$ext" = "doc" ] ; then
echo "converting from DOC to TXT"
antiword "${TXT_FILE}" > "${TMP_FILE}"
fi
TXT_FILE="${TMP_FILE}"
fi
rm -f /tmp/voice.wav
# create a FIFO "named pipe" to save space
mkfifo /tmp/voice.wav
# espeak write output to a pipe while lame encodes the file on the fly
## utiliza o sintetizador do espeak (soa meio robotizado)
#nice espeak -v brazil+f3 -p 25 -f "${TXT_FILE}" -w /tmp/voice.wav & \
## utiliza o sintetizador do mbrola (soa mais "humano")
nice espeak -v mb-br1 -f "${TXT_FILE}" | mbrola -t 0.9 -e /usr/share/mbrola/br1/br1 - /tmp/voice.wav & \
xterm -e nice lame -a --resample 16 -V 9 --vbr-new --lowpass 8 -f /tmp/voice.wav -o "${BASENAME}_VBR.mp3"
echo "...done! Voice saved as ${1}.mp3"' > /usr/local/bin/txt2mp3
chmod +x /usr/local/bin/txt2mp3
## speedometer - network bandwidth monitoring
##XXX os gráficos legais não aparecem mais !?!#wget -c http://excess.org/speedometer/speedometer.py
#mv speedometer.py /usr/local/bin/speedometer
#chmod +x /usr/local/bin/speedometer
##Usage: speedometer -tx eth0
#XXX criar .desktop#apt-get -y install wondershaper
#cp /etc/network/interfaces /etc/network/interfaces_bkp
#echo "up /sbin/wondershaper eth0 880 200" >> /etc/network/interfaces
#echo "down /sbin/wondershaper clear eth0 >> /etc/network/interfaces
## Disable IPV6
#sudo su
#Teste de Desempenho ANTES:
#ip a | grep inet6
#COUNTER=0
#time while [ $COUNTER -lt 10 ]; do host www.google.com; let COUNTER=COUNTER+1; done
##real 0m11.279s
##sed -i '/net-pf-10/s/ipv6/off #ipv6/' /etc/modprobe.d/aliases
#echo "# Disable IPV6" >> /etc/modprobe.d/blacklist
#echo "blacklist ipv6" >> /etc/modprobe.d/blacklist
##OBS.: eh necessario reiniciar o PC
##Teste de Desempenho DEPOIS:
#ip a | grep inet6
#COUNTER=0
#time while [ $COUNTER -lt 10 ]; do host www.google.com; let COUNTER=COUNTER+1; done
# man em PT
apt-get -y install manpages-pt manpages-pt-dev
# coloured manpages
sudo apt-get install most
exit echo 'export PAGER="most -s"' >> .bashrcsudo su# compactação
apt-get -y install p7zip-full p7zip-rar unzip unrar
#unace rar unrar zip unzip p7zip-full p7zip-rar sharutils aish uudeview mpack lha arj cabextract file-roller
#? fcrackzip
#recuperação de CDs e HDs
# apt-get -y install dvdisaster testdisk
#? nmapfe (varre portas abertas)
#? gmountiso
## compartilhamentos via samba
# trocar de "security = user" para "security = share", para evitar a solicitação de login
sed -i /etc/samba/smb.conf -e 's/# security = user/ security = share/g'
#jDiskReport
cd /tmp
wget -vc http://www.jgoodies.com/download/jdiskreport/jdiskreport-1_3_1.zip
unzip jdiskreport-1_3_1.zip
mv jdiskreport-1.3.1 /usr/local/lib/jdiskreport
rm -f jdiskreport-1_3_1.zip
mkdir -p /usr/local/lib/jdiskreport
cd /usr/local/lib/jdiskreport
#cp /usr/share/icons/Oxygen-Refit/48x48/apps/baobab.png /usr/local/lib/jdiskreport/jdiskreport.png
cp /usr/share/icons/hicolor/24x24/apps/baobab.png /usr/local/lib/jdiskreport/jdiskreport.png
ln -s /usr/local/lib/jdiskreport/jdiskreport.png /usr/share/pixmaps/jdiskreport.png
ln -s jdiskreport-1.3.1.jar jdiskreport.jar
echo "export AWT_TOOLKIT=MToolkit;java -jar /usr/local/lib/jdiskreport/jdiskreport.jar $@" > ./jdiskreport.sh
chmod a+x ./jdiskreport.sh
ln -s /usr/local/lib/jdiskreport/jdiskreport.sh /usr/local/bin/jdiskreport
echo 'export AWT_TOOLKIT=MToolkit;java -jar -Dpath="$@" /usr/local/lib/jdiskreport/jdiskreport.jar' > ./jdiskreportscan.sh
chmod a+x ./jdiskreportscan.sh
ln -s /usr/local/lib/jdiskreport/jdiskreportscan.sh /usr/local/bin/jdiskreportscan
#2) e criar a respectiva entrada no menu
echo '[Desktop Entry]
Name=jDiskReport
Comment=Exibe estatísticas de utilização do HD
Exec=jdiskreport
Icon=/usr/share/pixmaps/jdiskreport.png
Type=Application
Encoding=UTF-8
Categories=System;Application;' > /usr/share/applications/jdiskreport.desktop
# BillReminder
#cd /tmp
#wget -c http://www.gnulinuxbrasil.org/downloads/billreminder_0.3-svn453_i386.deb
#dpkg -i billreminder_0.3-svn453_i386.deb
#apt-get -y install python-pysqlite2
############################### Instala mais ambientes gráficos #############################
#ambiente XFCE
#apt-get install xfce xfce4-goodies xfce4-theme-brushedchrome thunar xfce4-cpugraph-plugin xfce4-datetime-plugin xfce4-netload-plugin xfce4-taskmanager# thunar custom actions (http://thunar.xfce.org/pwiki/documentation/custom_actions)
#Copy Pathname to Clipboard (retrieve with Shift+Insert)
apt-get install xlcip
#echo -n %f | xclip -i
#ambiente KDE 4.0
# antes de se iniciar a instalação do KDE 4.0, deve-se remover as bibliotecas das versões beta do KDE 4.0:
## apt-get remove kde4base-data #kdelibs5 kde4libs-data
#? apt-get -y install kde4-core kde-l10n-ptbr kde-i18n-ptbr extragear-plasma kscreensaver-kde4 okular-kde4 dolphin-kde4 ark-kde4 ktouch-kde4#ambiente WindowMaker
#? apt-get install wmaker wmclock wmcpuload wmfire wmforkplop wmifs wmmemload wmnd wmshutdown wmtop#ambiente OpenBox#apt-get install openbox obconf openbox-themes xcompmgr fbpanel hsetroot#apt-get install rox transset# ambiente LXDE#echo "deb http://ppa.launchpad.net/lxde/ubuntu intrepid main" >> /etc/apt/sources.list#apt-get update#apt-get install lxde
############################### Instala os softwares secondários #############################
##para rodar aplicações de 32bits no amd64
#apt-get -y install linux32
#nspluginwrapper ???
## jogos apt-get -y install wormux chromium foobillard armagetronad neverball kolf nevergolf pinball enigma frozen-bubble scorched3d
#world of goo, world of padman
#? lincity-ng liquidwar
#Secret Maryo Chronicles http://www.getdeb.net/app.php?name=Secret+Maryo+Chronicles
#Gbrainy http://www.getdeb.net/app.php?name=gBrainy
#eboard (xadrez online)
#planetpenguin-racer supertuxkart
##torcs trigger vegastrike bzflag warzone-2100
#glest http://www.getdeb.net/release.php?id=1061
#alienarena FPS http://www.gamershell.com/download_21445.shtml
#maniadrive http://maniadrive.raydium.org/
#fretsonfire http://fretsonfire.sourceforge.net/
#worldofpadman http://www.gamershell.com/download_18562.shtml
#playonlinux - scripts de instalação de jogos do windows#sudo wget http://deb.mulx.net/playonlinux_intrepid.list -O /etc/apt/sources.list.d/playonlinux.list && wget -q http://deb.mulx.net/pol.gpg -O- | sudo apt-key add - && sudo apt-get update
#sudo apt-get -y install playonlinux
## emuladores #MAME Arcade (http://www.rom-world.com/dl.php?name=MAME)
apt-get -y install xmame-common xmame-sdl
wget -c http://prdownloads.sourceforge.net/gxmame/gxmame_0.34b-1_i386.deb?download && dpkg -i gxmame_0.34b-1_i386.deb && apt-get -f install
#Super Nintendo (http://www.snesclassics.com/snes-roms/)
apt-get install zsnes
#Atari (http://www.atariage.com/system_items.html?SystemID=2600&ItemTypeID=ROM)
apt-get install stella #xsteem hatari
#GameBoy Advance (http://www.romulation.net/GBA/)
apt-get install vbaexpress
#Playstation (http://www.romulation.net/PSX/)
apt-get install pcsx-df
############################### Instala os softwares educacionais #############################
#ferramentas educacionais
##estatistica
apt-get -y install r-base rkward
#r-cran-rcmdr
## análise de dadosapt-get install weka
# kst graph gsl-bin
# cat size.txt | gsl-histogram <min> <max> <bars> | awk '{print $1, $3 ; print $2, $3}' | graph -T X
#latex
apt-get -y install kile texlive-latex-base texlive-latex-recommended texlive-fonts-recommended texlive-lang-portuguese
#texlive-latex-extra texlive-fonts-extra
#abntex
#digitação
#XXX ?? klavarro#apt-get -y install ktouch-kde4
#tipptrainer tuxtype
#outros
# apt-get -y install freemind#dicionários
#fantasdic opendict dict-freedict-fra-eng dict-freedict-eng-por
exit
mkdir -p /home/everthon/.gnome2/gnome-dictionary/
echo '[Dictionary Source]
Name=eng-por
Description=Dicionário Inglês-Português
Transport=dictd
Hostname=dict.org
Port=2628
Database=eng-por
Strategy=exact' > ~/.gnome2/gnome-dictionary/eng-por.desktop
echo '[Dictionary Source]
Name=fra-eng
Description=Dicionário Francês-Inglês
Transport=dictd
Hostname=dict.org
Port=2628
Database=fra-eng
Strategy=exact' > ~/.gnome2/gnome-dictionary/fra-eng.desktop
sudo su
############################### Instala os softwares para programação ##########################ferramentas de edição/manipulação de texto
apt-get -y install gedit meld vim-gnome
#leafpad medit geany tea cream
#ferramentas de programacao C e C++
apt-get -y install g++ anjuta
#ferramentas de programacao web
apt-get -y install bluefish
#ferramentas de banco de dados#apt-get -y install mysql-client mysql-server
##dbvisualizer
#cd /tmp
#wget -c http://www.minq.se/product_download/dbvis-6.5/media/dbvis_linux_6_5.rpm
#apt-get -y install alien
#alien dbvis_linux_6_5.rpm
#dpkg -i dbvis_6.5-2_i386.deb
#apt-get -f install
#sqlyog (w32)
#iReport
#java JRE
#leave it at the end, Java (the "OK/YES" dialogs freeze the script)
apt-get -y install sun-java6-jre sun-java6-fonts sun-java6-plugin
#ou baixe o JDK em http://java.sun.com/javase/downloads/index.jsp
#?sudo apt-get -y install equivs ttf-sazanami-gothic ttf-sazanami-mincho
#ferramentas de programacao em java
#instalar o JDK mais novo (1.6.0_01):
## 1.1) instala a versão do repositório
apt-get -y install sun-java6-jdk sun-java6-source
### 1.2)baixa e instala a versão 1.6.0_01 do JDK
##Faça o download do arquivo “jdk-6-linux-i586.bin” no seguinte site: http://java.sun.com/javase/downloads/index.jsp
##OBS.: copie o endereço absoluto do link obtido pelo browser (após aceitar a licença) e coloque na variável ENDERECO_JDK6, ex:
#ENDERECO_JDK6="http://sdlc-esd.sun.com/ESD30/JSCDL/jdk/6u1/jdk-6u1-linux-i586.bin?AuthParam=1179546926_43be72b9df2fdc64540a00b60a3cd940&TUrl=an1npDpbKod7kSYrROhENTonIeQ1W0D1Lc4nXz+pGFFranixdCdgxDTPbW4=&TicketId=dVF6PANKNe4+8w==&GroupName=SDLC&BHost=sdlc1h.sun.com&FilePath=/ESD30/JSCDL/jdk/6u1/jdk-6u1-linux-i586.bin&File=jdk-6u1-linux-i586.bin"
#wget -c $ENDERECO_JDK6
#chmod a+x jdk-6u1-linux-i586.bin
#./jdk-6u1-linux-i586.bin
#mkdir /usr/lib/jvm
#mv jdk1.6.0_01 /usr/lib/jvm/
## 2)configura o java 1.6.0_01 como o padrão para o sistema
sudo update-alternatives --install "/usr/bin/java" "java" "/usr/lib/jvm/java-6-sun/bin/java" 1
sudo update-alternatives --set java /usr/lib/jvm/java-6-sun/bin/java
sudo update-alternatives --install "/usr/bin/jar" "jar" "/usr/lib/jvm/java-6-sun/bin/jar" 1
sudo update-alternatives --set jar /usr/lib/jvm/java-6-sun/bin/jar
sudo update-alternatives --install "/usr/bin/rmiregistry" "rmiregistry" "/usr/lib/jvm/java-6-sun/jre/bin/rmiregistry" 1
sudo update-alternatives --set rmiregistry /usr/lib/jvm/java-6-sun/jre/bin/rmiregistry
sudo update-alternatives --install "/usr/bin/keytool" "keytool" "/usr/lib/jvm/java-6-sun/jre/bin/keytool" 1
sudo update-alternatives --set keytool /usr/lib/jvm/java-6-sun/jre/bin/keytool
## 3)configura as variáveis de ambiente
echo "# Variáveis ambiente do JDK 6.0_01"
echo "JAVA_HOME=/usr/lib/jvm/java-6-sun" >> /etc/profile
echo "export JAVA_HOME" >> /etc/profile
echo "PATH=$JAVA_HOME/bin:$PATH" >> /etc/profile
echo "CLASSPATH=.:$JAVA_HOME/lib/tools.jar" >> /etc/profile
echo "MANPATH=$MANPATH:$JAVA_HOME/man" >> /etc/profile
echo "export PATH CLASSPATH MANPATH" >> /etc/profile
## 4)e finalmente, conferir se deu tudo certo:
java -version
javac -version
## 5) sabidamente alguns programas java simplesmente não funcionam com as animações do Compiz, você pode contornar isso da seguinte forma :
## acrescenta a linha ao arquivo de configuração /etc/enviroment:
echo "AWT_TOOLKIT=MToolkit" >> /etc/environment
## outra possibilidade é acrescentar a linha acima apenas nos scripts que carregam os programas Java problemáticos.
apt-get -y install eclipse netbeans5.5
################################################################################
#fontes MS para o flash funcionar corretamente#leave it at the end, Java (the "OK/YES" dialogs freeze the script)apt-get -y install gsfonts gsfonts-x11 msttcorefonts
## impressora virtual de PDF
#install a virtual PDF printer
apt-get -y install cups-pdf
##Go to System -> Administration -> Printing
system-config-printer
##-Add a printer with Printer -> Add Printer or double click on "New Printer" icon
##"STEP 1of3" PDF Printer (Virtual Printer) should now be in the local detected printers list so select it and click 'Forward'
##"STEP 2of3" Select "Generic" as the manufacturer and "PostScript" as the printer. Now click 'Forward'
##"STEP 3of3" Give the printer a sensible description and location and click 'Apply'
##The "CUPS/PostScript" printer should now exist in the print dialogue
of you applications and will save the output PDF file to the /HOME/PDF
folder. It may be possible to change the destination by editing
/etc/cups/cups-pdf.conf
######################## ########### cria symlinks ###################################
cd /usr/local/bin
ln -s /home/softwares/_symlinks/modem_reboot.sh modem_reboot
ln -s /home/softwares/_symlinks/configurar_interface_rede_usb0.sh a1200_usblan
ln -s /home/softwares/_symlinks/pingg.sh pingg
ln -s /home/softwares/_symlinks/wgett.sh wgett
################################################################################
#apt-get autoremove
################################################################################
## STUFF# font viewer
#1)
wget -c http://ufpr.dl.sourceforge.net/sourceforge/gfontview/gfontview-0.5.0-1.i386.rpm
sudo alien gfontview-0.5.0-1.i386.rpm
dpkg -i gfontview_0.5.0-2_i386.deb
sudo ln -s /usr/lib/libt1.so.5 /usr/lib/libt1.so.1
sudo ln -s /usr/lib/libgnomeui-2.so.0 /usr/lib/libgnomeui.so.32
#2)
wget -c http://mirrors.kernel.org/ubuntu/pool/universe/g/gfontview/gfontview_0.5.0-9_i386.deb
sudo apt-get -y install gdk-imlib11 gnome-bin gnome-libs-data imlib-base libart2 libgnome32 libgnomesupport0 libgnomeui32 libgnorba27 libgnorbagtk0 libmcpp0 liborbit0 libungif4g mcpp
?? libdb3 libglib1.2
dpkg -i gfontview_0.5.0-9_i386.deb
## OCR (http://www.linuxjournal.com/article/9676)
#tesseract
apt-get -y install tesseract-ocr tesseract-ocr-eng tesseract-ocr-por tesseract-ocr-fra imagemagick
echo 'PDFDIR=`dirname "$1"`
cd "$PDFDIR"
convert "$1" -depth 8 -black-threshold 50% "$PDFDIR/pages-%03d.tif"
find "$PDFDIR" -name "pages-00*.tif" -exec tesseract {} {} -l por \;
rm -f "$PDFDIR/pages-00*.tif"' > /usr/local/bin/pdf2txt
chmod +x /usr/local/bin/pdf2txt
#gocr
apt-get -y install gocr
echo 'PDFDIR=`dirname "$1"`
cd "$PDFDIR"
convert "$1" -depth 8 "$PDFDIR/pages-%03d.tif"
find "$PDFDIR" -name "pages-00*.tif" -exec bash -c "tifftopnm {} > {}.pnm" \;
find "$PDFDIR" -name "pages-00*.pnm" -exec bash -c "gocr {} > {}.txt" \;
rm -f "$PDFDIR/pages-00*.tif"' > /usr/local/bin/pdf2txt
chmod +x /usr/local/bin/pdf2txt
#image cleanup
tifftopnm < scanned_image.tif | \
pamthreshold -threshold=0.8 |
pamtopnm | pnmtotiff > result.tif
#DICA p/ melhorar a qualidade (http://profs.if.uff.br/tjpp/blog/entradas/ocr-de-qualidade-no-linux)
rm -f "pages-00*.png" "pages-00*.tif"
convert teste.pdf "$PDFDIR/pages-%03d.png"
find "$PDFDIR" -name "pages-00*.png" -exec convert -black-threshold 86% {} {} \;
find "$PDFDIR" -name "pages-00*.png" -exec convert -blur 2x0.5 {} {} \;
find "$PDFDIR" -name "pages-00*.png" -exec convert -black-threshold 50% {} {} \;
find "$PDFDIR" -name "pages-00*.png" -exec convert -depth 8 {} {}.tif \;
################################################################################
## DEBIAN## programas do ubuntu que nao estao instalados por default no debian
# TUDO?
#aptitude install sudo
#echo "everthon ALL=(ALL) ALL" >> /etc/sudoers
#aptitude install gnome gnome-utils gnome-art gdm gksu synaptic
file-roller nautilus-sendto nautilus-actions
#aptitude install gcalctool gthumb tomboy
#? x-window-system x-window-system-core
# echo "JAVA_HOME=/usr" >> /etc/environment
# echo "JRE_HOME=/usr" >> /etc/environment
# echo "LANG=pt_BR" >> /etc/environment
# echo "LANGUAGE=pt_BR:pt_PT:pt" >> /etc/environment
# echo "LC_ADDRESS=pt_BR" >> /etc/environment
# echo "LC_COLLATE=pt_BR" >> /etc/environment
# echo "LC_CTYPE=pt_BR" >> /etc/environment
# echo "LC_IDENTIFICATION=pt_BR" >> /etc/environment
# echo "LC_MEASUREMENT=pt_BR" >> /etc/environment
# echo "LC_MESSAGES=pt_BR" >> /etc/environment
# echo "LC_MONETARY=pt_BR" >> /etc/environment
# echo "LC_NAME=pt_BR" >> /etc/environment
# echo "LC_NUMERIC=pt_BR" >> /etc/environment
# echo "LC_PAPER=pt_BR" >> /etc/environment
# echo "LC_TELEPHONE=pt_BR" >> /etc/environment
# echo "LC_TIME=pt_BR" >> /etc/environment
# echo "LANG=pt_BR" >> /etc/default/locale
# export
################################################################################
## TODO
#DBVisualizer, Eclipse Ganymede, easycam2-gtk, grid wars 2
#latex titlesec: apt-get -y install texlive-latex-extra
#latex algorithmicx: apt-get -y install texlive-science
#GnomeSword Bible Guide
#mozilla-firefox-adblock, firefox-themes-ubuntu
#gtk-update-icon-cache -f ~/.icons/`gconftool-2 -g "/desktop/gnome/interface/icon_theme"`
#gsopcast: substituir entrada do menu do qsopcast pelo gsopcast
# mmconverter, winff