Marcio Garcia

Software Empowerment²

Archive for the ‘Ubuntu’ tag

Ubuntu + Ruby on Rails + Apache + Passenger

without comments

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
 

Written by Marcio

January 16th, 2009 at 12:17 am

Posted in Apache, RubyOnRails, Ubuntu

Tagged with , , ,

Tomcat + Ubuntu antes de iniciar….

without comments

Após baixar o Tomcat e descompacta-lo pode ocorrer o seguinte erro quando tentar inicia-lo atraves do comando startup.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

Written by Marcio

September 14th, 2008 at 12:23 pm

Posted in Tomcat, Ubuntu

Tagged with ,

Ubuntu (Gutsy Gibbon) and Java Swing Applications…

with 4 comments

+ +

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!

Written by Marcio

August 17th, 2008 at 12:11 am

Posted in Compiz, Java, Ubuntu

Tagged with , ,

Ubuntu and Apache2

without comments

I don’t know exactly why but last time that I reinstall Ubuntu and Apache2 on my server, I got the message error:
unable to create worker thread
So, I added the following to /etc/apache/httpd.conf
ThreadStackSize 1000000
Then restart apache:
/etc/init.d/apache2 restart
What happened?

This configuration sets the limits the size of threads to 1Mb and creates a much less memory intensive apache.

Written by Marcio

July 19th, 2008 at 4:06 pm

Posted in Apache, Ubuntu

Tagged with ,

Instalando programas no Ubuntu a partir do Firefox

without comments

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:
apt:htop

Written by Marcio

June 14th, 2008 at 8:40 pm

Posted in Firefox, Ubuntu

Tagged with , ,

Ubuntu and Cairo-Dock

without comments

It’s very simple to install a similar MacOS bar in Gnome/Ubuntu.

  1. 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)
  2. Run the binary and after the plugins
  3. Open a terminal and type: cairo-dock
To make the Cairo-Dock open together with Gnome, open: System > Preferences > Session > Startup Programs > Add

Type:

  • Name: Cairo
  • Command: cairo-dock
  • Press: Ok and Close.
Now, every time that you run Gnome the Cairo-Dock will starts.

If you want to let your Gnome like MacOS, try this website, you will find some good features, like Firefox themes, Gnome themes.

Enjoy!

Written by Marcio

March 17th, 2008 at 2:05 am

Posted in Linux, Ubuntu

Tagged with ,

How to Install Skype on Ubuntu

without comments

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!

Written by Marcio

February 7th, 2008 at 3:39 pm

Posted in Linux, Ubuntu

Tagged with