Archive for the ‘Ubuntu’ tag
Ubuntu + Ruby on Rails + Apache + Passenger
Guia expresso para instalação de um ambiente de produção RoR/Apache/Passenger no Ubuntu
sudo apt-get install rubygems sudo gem install rails sudo apt-get install ruby sudo apt-get install ruby rdoc irb libyaml-ruby libzlib-ruby ri libopenssl-ruby wget http://rubyforge.rubyuser.de/rubygems/rubygems-1.3.1.tgz tar xzvf rubygems-1.3.1.tgz sudo ln -s /usr/bin/gem1.8 /usr/bin/gem sudo mv /usr/bin/gem /usr/bin/gem-old sudo gem update --system sudo gem install rails sudo apt-get install build-essential ruby1.8-dev sudo gem install mongrel sudo gem install capistrano sudo apt-get install mysql-client mysql-admin mysql-query-browser libmysqlclient15-dev sudo apt-get install sqlite3 swig libsqlite3-ruby libsqlite3-dev sudo gem install sqlite3-ruby echo "export RUBYOPT=rubygems" >> ~/.profile sudo apt-get install build-essential apache2-mpm-prefork apache2-prefork-dev libapr1-dev sudo gem install passenger sudo passenger-install-apache2-module
Tomcat + Ubuntu antes de iniciar….
Após baixar o Tomcat e descompacta-lo pode ocorrer o seguinte erro quando tentar inicia-lo atraves do comando startup.sh:
Vá para o diretorio bin do tomcat e de permissao 777 ou +x para todos os arquivos .sh:
The BASEDIR environment variable is not defined correctly
Vá para o diretorio bin do tomcat e de permissao 777 ou +x para todos os arquivos .sh:
sudo chmod 777 *.sh
Ubuntu (Gutsy Gibbon) and Java Swing Applications…
+ There is a problem using Gutsy Gibbon + Swing Java Application + Compiz.
My libraries are:
- Ubuntu 7.10 (Gutsy Gibbon
- JDK 1.5.0_16
- Compiz-Core 1.06
- Compiz-Fusion 0.52
The problem
When an java application is executed, it simply doesn’t appear anything, no buttons, no fields, no menus, nothing!Solving
I really like compiz fusin effects but they are the monsters inside the box, they are the ones who don’t let the java application works fine.For now, I had disable compiz (Visual Effects = None) and applications like: Jude and Oracle SQLDeveloper that before that opened but don’t appear nothing, now they run fine!.
Yes, thats boring to use Gnome without compiz effects, but for now this is the way that I have found to work with Java Swing Application on Ubuntu.
Have a lot of fun!
Ubuntu and Apache2
I don’t know exactly why but last time that I reinstall Ubuntu and Apache2 on my server, I got the message error:
This configuration sets the limits the size of threads to 1Mb and creates a much less memory intensive apache.
unable to create worker threadSo, I added the following to /etc/apache/httpd.conf
ThreadStackSize 1000000Then restart apache:
/etc/init.d/apache2 restartWhat happened?
This configuration sets the limits the size of threads to 1Mb and creates a much less memory intensive apache.
Instalando programas no Ubuntu a partir do Firefox
A partir da versão 7.10 do Ubuntu, é possível instalar softwares a partir do browser.
Abra o Firefox, e por exemplo, para instalar o htop, digite na URL:
Abra o Firefox, e por exemplo, para instalar o htop, digite na URL:
apt:htop
Ubuntu and Cairo-Dock
It’s very simple to install a similar MacOS bar in Gnome/Ubuntu.
Type:
If you want to let your Gnome like MacOS, try this website, you will find some good features, like Firefox themes, Gnome themes.
Enjoy!
- Get the Cairo-Dock look for the last version here: https://developer.berlios.de/project/showfiles.php?group_id=8724&release_id=14331 Get the binary and the plugins (it will be useful)
- Run the binary and after the plugins
- Open a terminal and type: cairo-dock
Type:
- Name: Cairo
- Command: cairo-dock
- Press: Ok and Close.
If you want to let your Gnome like MacOS, try this website, you will find some good features, like Firefox themes, Gnome themes.
Enjoy!
How to Install Skype on Ubuntu
Open a command line - with root privilegies - and type:
#vim /etc/apt/sources.list
Insert the follow line:
deb http://download.skype.com/linux/repos/debian/ stable non-free
save and quite the editor (type: :wq! and Enter)
Back in command line, just to update the repositories, type:
#apt-get update
Now type:
#apt-get install skype
Nice and Easy! Skype is installed and if everything on instalation was fine, you can see the Skype icon on: Applications > Internet > Skype
Others packages for apt-get you can find in: http://www.apt-get.org
Enjoy!
#vim /etc/apt/sources.list
Insert the follow line:
deb http://download.skype.com/linux/repos/debian/ stable non-free
save and quite the editor (type: :wq! and Enter)
Back in command line, just to update the repositories, type:
#apt-get update
Now type:
#apt-get install skype
Nice and Easy! Skype is installed and if everything on instalation was fine, you can see the Skype icon on: Applications > Internet > Skype
Others packages for apt-get you can find in: http://www.apt-get.org
Enjoy!