Compact VirtualBox disk images

I’m using VirtualBox since a couple of years to run Windows on top of my Linux boxes. After a while, the virtual disk size may increase to unreasonable sizes and I was searching for an option to “compact” it like in Parallels/VMWare.

Contrary to these other virtualization tools, there is nothing in VirtualBox’ GUI to do this. Fortunately, you can use 2 tools to achieve the same goal…

First, you need to download SDelete from Microsoft and run it in the VM:

sdelete -c

Now stop the VM and compact the disk:

VBoxManage modifyhd blah.vdi --compact

That’s it, your disk is now compacted and you have probably gained a couple of GB!

Posted in /dev/null | 1 Comment

Motorola Droid/Milestone works on Fedora

Today, we received a bunch of Android-based phones at work, amongst them a Motorola Droid/Milestone. I quickly tried to connect it to my Fedora 12 box and fired up Banshee. As you can see on the screenshot below, it was perfectly recognized without any intervention and I could synchronize my music library to it :)

Posted in /dev/null | Leave a comment

I’m fed up of companies not delivering products (yes, you Nokia!)

Ok, this is a pure rage rant. I’m really sick of companies paper launching products that are totally unavailable to customers for months. Last November I made a blogpost about the Nokia N900, which I finally ordered. On the paper it’s still the best Linux-based phone which has the greatest compatibility with my Fedora boxes.

Today I received an e-mail telling me that my N900 would probably be delivered mid-February. That would be almost 3 months since I paid and of course you don’t get any money back on the price drop that occurs during this period…how screwed is that? It wasn’t even a pre-order, the N900 was “available”. Nokia, if you can’t deliver a product to your customers, fucking don’t sell it if you have no stock! I’m so fed up of these lousy business practices.

Nokia are not the only to blame, nVidia and ATI behave exactly the same when they launch new lines of graphic cards. Whose fault is it? The marketing guys? I honestly don’t see how generating hype on a product and not delivering it for months will help you. All you gain are angry customers who lost money on pre-orders and all the buzz effect is gone once the product really hits the streets. Great job!

On the other hand you have Apple, they have a sense on how to deliver products to the market. When a product is announced, it’s available. Guess what? They are doing fine.

Posted in /dev/null | 4 Comments

Bash script to backup every MySQL database to separate files

To backup MySQL databases, there is the well known and handy executable called mysqldump. It has one big shortcoming though, you can either backup one database to a file or all databases to one giant file with the “–all-databases” option but you can’t backup every database to separate dump files.

Continue reading

Posted in /dev/null | 3 Comments

Send an SMS when hitting a certain priority level in RequestTracker

RequestTracker is a widely used tool in many companies as it allows one to implement an effective workflow to handle any kind of events: customer requests, bug resolution etc…the requests are all filed as tickets to be resolved and put into queues.

RT also has a notion of priority levels for tickets, ranging from 0 to 100 and it supports scripting to automate some tasks. RT does a lot of things actually, but it’s a bit of a scary beast at first, with a not-so-clear documentation.

Continue reading

Posted in /dev/null | Leave a comment

Rencontres Fedora 12 à Paris

Pour ceux qui ne seraient pas encore au courant, l’association Fedora-FR organise les Rencontres Fedora 12 les 12 et 13 décembre 2009 à la Cité des Sciences et de l’Industrie de Paris. Au programme il y a de nombreuses conférences et des ateliers liés au monde du libre, on vous y attend nombreux!

Le programme complet est disponible sur le wiki de l’association.

Posted in Fedora | Leave a comment

Maemo or Android, N900 versus Hero

Until recently, I couldn’t care less about shiny new mobile phones. When mine broke or it was time to change to a new one due to my mobile operator contract ending, I simply went for the “free” phones that were somewhat compatible with Linux. My current phone, a Nokia 5310, can for example serve as a modem in Fedora vie USB connection or Bluetooth thanks to NetworkManager and it perfectly synchronizes with Banshee for my music and podcasts.  It’s just slow as hell, but that’s another story.

Continue reading

Posted in /dev/null | 7 Comments

Fedora: Configure the KDE Dashboard to behave like in OSX

One thing I absolutely loved on my Mac (OSX 10.4 Tiger at the time), was the way the Dashboard behaved. All other implementations of this feature I have seen on Windows Vista/7 and the default KDE 4.3 configuration sucked in comparison. For those of you unfamiliar with the OSX Dashboard concept, let me explain it to you…

EDIT: since KDE 4.4, options have been moved!

Continue reading

Posted in Fedora, General Linux | 2 Comments

I’m giving KDE 4 a shot in Fedora 12

For many years, I have been an exclusive Gnome user for a couple of reasons:

  • Its interface is pure and usable (aka. the nazi interface)
  • It’s usable directly with the default Fedora installation, no tweaking needed
  • Many of the UI ameliorations for PackageKit, NetworkManager and a ton of other small improvements have hit Gnome recently, thanks to all the major Linux distributions using it as their default desktop.
  • I’m too lazy to try something else

So what’s wrong with Gnome? Well, nothing. I’m perfectly happy and productive with it, but there is also this shiny thing called KDE looking at me with sad little puppy eyes.

Continue reading

Posted in Fedora | 16 Comments

Catchall maintenance page with Apache

Today I had to search quite a long time how to use Apache’s mod_rewrite to create a “maintenance” page for a web server. The goal was to:

  • Redirect all URLs usually going to http://foo/go/bar to http://foo/maintenance-light.html
  • Redirect all other URLs to http://foo/maintenance.html

All the maintenance pages are also using some CSS and images. Creating this redirection sounds really stupid and simple, but one thing wasn’t clear in the documentation and it took me quite a while to figure it out…every RewriteCond is only valid until the next RewriteRule! Not knowing that, I had infinite loops on the second RewriteRule…so I hope that this post will help someone else to avoid this problem.

The lines to add to your Apache config are:

RewriteEngine on
RewriteCond %{REQUEST_URI} !^/maintenance.html$
RewriteCond %{REQUEST_URI} !^/maintenance-light.html$
RewriteCond %{REQUEST_URI} !/img/(.*)$
RewriteCond %{REQUEST_URI} !/css/(.*)$
RewriteRule ^/go/ /maintenance-light.html [R,L]
RewriteCond %{REQUEST_URI} !^/maintenance.html$
RewriteCond %{REQUEST_URI} !^/maintenance-light.html$
RewriteCond %{REQUEST_URI} !/css/(.*)$
RewriteCond %{REQUEST_URI} !/img/(.*)$
RewriteRule $ /maintenance.html [R,L]

The first line is there to simply enable the Apache rewrite engine. Then we have 4 lines to “exclude” some paths from being rewritten and finally we find the rewrite rule. Note that they are processed in order. The “L” flag instructs Apache to skip all the following RewriteRule statements as soon as the one is matched.

Posted in /dev/null | 1 Comment