Archive for February, 2008



Published February 13th, 2008 by admin

Time to Update – Now!

I can’t add anymore than wonderful Mackenzie already did:

A new kernel update just went out yesterday or the day before (not
sure), but it fixes the vmsplice proof-of-concept exploit that was
released two days ago. The exploit would allow someone at a non-root
console to elevate themself to root without using sudo or su or knowing
any passwords at all.

Check out Mackenzie’s site: Ubuntu Linux Tips & Tricks

Technorati Tags: ,

Published February 9th, 2008 by admin

How-To: Migrating Amarok Playlists and Collection Data to a New Computer

So you have your Amarok playlists and collection set up all how you want and now you want to migrate everything over to a new computer, but don’t want to start from scratch? Read on for instructions on how to pull off this task with ease.

In my example I had all my music saved on an external hard drive that mounted itself as “disk”. I wanted to change it over to a new computer and a new external drive that mounts itself as “OneTouch1” (Maxtor external drive). It doesn’t matter where your music is and where you want it to go (maybe you just want to connect the same drive to a new computer) but in either case this is how I did it:

First off I mounted both drives on the computer that had the current configuration I wanted to save.

Then I ran an rsync command to transfer all my music from the old external drive to the new one:

rsync -av /media/disk/Music/ /media/OneTouch1/Music

This copied all my music from disk/Music to OneTouch1/Music.

Then I needed to grab the current mySQL database, so I fired up webmin on the localhost and did a backup of my “amarok” database I had all my collection data stored in. One more thing you will need for all your playlist and configuration settings is the app settings folder located in your home directory in a hidden directory. You can grab it like so:

rsync -av /home/yourusername/.kde/share/apps/amarok/ /media/OneTouch1/amarok

Make sure you substitute your username and new drive name above.

Now we should be ready to configure the new computer with your old computer’s settings. The next steps assume you have Amarok installed and running.

Make sure Amarok is closed and not running and then plug in your external drive.

Create a symbolic link to map everything up like it was before. In my case it was done like so:

ln -s /media/OneTouch1/ /media/disk

The above is needed even if you want to use the same drive, but only in the case that it mounts itself on the new computer with a different name than it does on the old computer.

Now we want to create an empty database called amarok (or whatever your previous db was called) (I used webmin for ease of use) and create the same user id and credentials that you had used on your previous computer.

The next step is open your home directory and hit ctrl “h” to show hidden files and browse to .kde/share/apps and rename the amorak folder to amorak_old (just so we can revert later if needed). Then copy the amorak folder we had backed up from your old computer onto the external drive to replace the folder we just renamed.

Once this is all complete, we can open Amarok and go to Settings -> Configure Amarok and navigate to the Collection tab on the left. Make sure that the correct directory is selected (using the symbolic link to select it) and also that the correct db and user credentials are entered.

After the above is done, go to Tools -> Rescan Collection. This may take awhile, depending on the size of your collection, but when it is complete you should see that everything is how it was on your old computer!

Technorati Tags: , , , ,