Windows in Ubuntu 8.04 with VirtualBox

I have a Windows on my machine, cause for some stuff I still need it, (MS Visio, MindMaps and couple of others application that doesn't run fine with Wine). It's a pain in the ass to always boot machine to access 2 or 3 files and stay 15 minutes on Windows.

A couple of years ago I was a big fan of VMware (old times that I virtualize ubuntu on windows), and I felt a lack of OSS on this area. So the solution it's virtualization, with VirtualBox it all comes easy!

VirtualBox, was recently bought by Sun, has 2 licenses: one commercial and one open source. I use OSE and to install it you have to follow these steps:

$ sudo apt-get install virtualbox-ose virtualbox-ose-modules-generic

Then add your current user on 'vboxusers'  group

$ sudo adduser someuser vboxusers

Go to applications > system tools > VirtualBox

Now create your Windows VM with the almost NNF (next, next,finish) wizard. It's a piece of cake!

Installing RMagick on Ubuntu

Last week I was installing again rmagick on a Ubuntu server, then I discovered an very easy way to do it.

$ sudo aptitude install librmagick-ruby

Edit 10/20/08: Avoid this tutorial it doesn't work, if you wanna install rmagick use the old fashion way:

$ sudo apt-get install imagemagick
$ sudo apt-get install libmagick9-dev
$ sudo gem install rmagick
SQL Lite for Ruby On Rails

Hi all.

If your Operacional System is Ubuntu and you are using Ruby on Rails 2.0.2 you can easily use it:

$ sudo apt-get install sqlite3
$ sudo gem install sqlite3-ruby

SQLite3 does not use authentication and needs only a pointer to the database file on database yml.

development:
  adapter: sqlite3
  database: db/development.sqlite3
  timeout: 5000
test:
  adapter: sqlite3
  database: db/test.sqlite3
  timeout: 5000
production:
  adapter: sqlite3
  database: db/production.sqlite3
  timeout: 5000

When you run "rake db:create:all" on your RAILS_ROOT it creates all 3 databases.

More information about other plataforms?

Here: http://wiki.rubyonrails.org/rails/pages/HowtoUseSQLite

See you.

Installing Postgresql on Ubuntu 7.10

Hi Sirs.

Now I am using Ubuntu 7.10 and my favorite Database Management System is Postgresql.

The best tutorial that I found is the Ubuntu tutorial about Postgresql and pgAdmin installation.

Very easy to learn by every developer. This tutorial shows how to install both the Database Management System and the Administration and Development Platform.

https://help.ubuntu.com/community/PostgreSQL

Easy to install and configure.

Just one line to install the 'Sophisticated open-source Object-Relational DBMS' and the 'graphical Open Source management, development and administration tool'.

$ sudo apt-get install postgresql pgadmin3

Other two commands to configure your new account:

$ sudo -u postgres psql template1
$ template1=# ALTER USER postgres WITH ENCRYPTED PASSWORD '<***password***>';

I recommend this tutorial =]

See you.