Created
February 11, 2011 21:34
-
-
Save acdesouza/823082 to your computer and use it in GitHub Desktop.
Instalações que faço no meu Ubuntu 10.10 para a máquina de desenvolvimento
This file contains 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/sh | |
google-chrome -remote "openurl(https://mail.google.com/mail?view=cm&tf=0&to=` | |
echo $1 | sed 's/mailto://'`,new-tab)" |
This file contains 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
# Instalar o Oracle Instant Client - http://www.oracle.com/technetwork/database/features/instant-client/index-097480.html | |
# HOWTO: http://ruby-oci8.rubyforge.org/en/InstallForInstantClient.html | |
sudo mkdir /opt/oracle | |
# Descompactar os arquivos do Oracle Instant Client, baixandos anteriormente | |
cd /opt/oracle | |
unzip ~/instaladores/oracle/basic-10.2.0.5.0-linux-x64.zip | |
unzip ~/instaladores/oracle/sdk-10.2.0.5.0-linux-x64.zip | |
# O passo 5, não poderá ser executado, uma vez que a variável LD_LIBRARY_PATH é ignorada no Ubuntu: | |
# https://help.ubuntu.com/community/EnvironmentVariables e https://edge.launchpad.net/ubuntu/+bug/366728 | |
# Portanto, o lance é criar um arquivo em /etc/ld.so.conf.d/oracle-instant-client.conf | |
sudo touch /etc/ld.so.conf.d/oracle-instant-client.conf | |
sudo echo '/opt/oracle/instantclient_10_2' >> /etc/ld.so.conf.d/oracle-instant-client.conf | |
sudo ldconfig -v |
This file contains 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
touch openmailto.sh | |
chmod u+x openmailto.sh | |
# TODO Colocar isso no arquivo | |
echo openmailto.sh << "#!/bin/sh | |
firefox -remote "openurl(https://mail.google.com/mail?view=cm&tf=0&to=` | |
echo $1 | sed 's/mailto://'`,new-tab)" | |
# Instalar os menus do Gnome na barra, como no MacOS | |
# http://code.google.com/p/gnome2-globalmenu/wiki/InstallingonUbuntu | |
# http://www.socialblogr.com/2010/09/how-to-make-ubuntu-look-like-mac-much-easier.html | |
sudo apt-get install gnome-globalmenurvm install 1.9.2 --with-zlib-dir=$rvm_path/usr --with-xslt-dir=$rvm_path/usr --with-xml2-dir=$rvm_path/usr --with-openssl-dir=$HOME/.rvm/usr --with-readline-dir=$rvm_path/usr | |
# TODO Instalar o JDK da Sun | |
sudo add-apt-repository "deb http://archive.canonical.com/ maverick partner" | |
sudo apt-get update | |
sudo apt-get install sun-java6-jdk sun-java6-plugin | |
sudo update-alternatives --config java | |
#TODO Instalar o Maven em opt | |
#TODO Exportar JAVA_HOME e M2_HOME | |
sudo bash -c "echo JAVA_HOME=/usr/lib/jvm/java-6-sun/ >> /etc/environment" | |
sudo bash -c "echo M2_HOME=/opt/maven2 >> /etc/environment" | |
sudo bash -c "echo PATH=$PATH:$M2_HOME/bin >> /etc/environment" #FIXME esta colocando o valor da variável | |
# Instalar o BrOffice 3.3 | |
sudo apt-get remove openoffice*.* | |
sudo add-apt-repository ppa:libreoffice/ppa | |
sudo apt-get update | |
sudo apt-get install libreoffice-gnome libreoffice-calc libreoffice-writer libreoffice-impress libreoffice-l10n-pt-br libreoffice-help-pt-br | |
oracle-instant-client-install.sh | |
#Instalar o git | |
sudo apt-get install git | |
#Instalar o RVM - Ruby Version Manager | |
sudo apt-get install ruby | |
cd ~ | |
bash < <( wget http://rvm.beginrescueend.com/releases/rvm-install-head ) | |
chmod u+x rvm-install-head | |
./rvm-install-head | |
echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # This loads RVM into a shell session.' >> ~/.bash_profile | |
# Precisa da zlib para instalar gems http://rvm.beginrescueend.com/packages/zlib/ | |
sudo apt-get install zlib-bin | |
# nokogiri requirements http://nokogiri.org/tutorials/installing_nokogiri.html | |
sudo apt-get install libxslt-dev libxml2-dev | |
# Precisa do ssl para o Rails | |
sudo apt-get install libssl-dev | |
# Dependência do mysql2 | |
sudo apt-get install libmysqlclient-dev | |
# Dependência do irb e rails console | |
rvm package install readline | |
rvm install 1.9.2 --with-zlib-dir=$rvm_path/usr --with-xslt-dir=$rvm_path/usr --with-xml2-dir=$rvm_path/usr --with-openssl-dir=$HOME/.rvm/usr --with-readline-dir=$rvm_path/usr | |
rvm use 1.9.2 | |
rvm gemset create rails_app | |
gem install rails | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment