Install Spotify on Crunchbang 11

Installing Spotify
Next up was to install Spotify, and as I thought, there would be a hiccup due to a missing dependency. When this happens, a simple “apt-get -f install”” usually fixes it, but it turns out I needed an extra file from squeeze as Crunchbang 11 is based on Wheezy the new Debian Stable and Spotify Linux is old.

First I needed to download libssl0.9.8 from HERE and install it:

cd downloads
sudo dpkg -i libssl0.9.8_0.9.8o-4squeeze14_i386.deb

Then I had to add the Spotify Linux repo to my sources list:

sudo vim /etc/apt/sources.list

And add these lines:

deb stable non-free

Next I imported the gpg key:

sudo apt-key adv –keyserver –recv-keys 94558F59

Now I just needed to update and install Spotify

sudo apt-get update
sudo apt-get install spotify-client

Synchronizing Google Calendar on Linux with Thunderbird Mail

Business needs and Google services
Currently setting up my desktop for business use and decided that i’d make as much use of Google’s free online services as possible (Mail, Drive, Calendar).

Web or desktop apps?
I usually do everything via web, but am looking for a company solution as well, which will mean that I can use Linux desktops with access to Gmail, Gcalendar by simply creating a company related email address.

What do you need?
Ok, so first you need to install Mozilla Thunderbird as the email application. Available in all repos (Icedove in Debian).

The first add-on is “Lightning” calendar.

Then “Provider for Google Calendar” to be able to synch with your Calendar

These can both be install inside of Thunderbird via its built-in “Addon-Manager”

Setting up your Calender Synch
Now just restart Thunderbird for the add-ons to be activated. Then add you just need a few simple steps.

1. Open your Google Calendar in your browser
2. Click on the Settings link located in the box at the right of the page.
3. Click on the calendar you want to use with Thunderbird Lightning or Sunbird.
4. Click on XML button shown at the bottom which says “Private”.
5. Copy that link

Now in your Thunderbird Lightning Calendar, click “Add Calendar”, Choose “Network Calendar”, then paste that xml URL as the destination.

All done! You now have bi-directional functionality with your Google Calendar.


The disk drive for uuid= is not ready yet or not present, Continue to wait; or Press S to skip

So you just saw this message at boot: 
The disk drive for uuid=[long string of numbers and letters]…. is not ready yet or not present, Continue to wait; or Press S to skip

Why did this happen?
A couple of reasons. One of your hard-drives is knackered, You’ve been messing around and accidentally unplugged a hard-drive, a partition has been formatted or is unreadable.

Most Probable Cause:
You installed another Linux distro to dual-boot with, and it has renumbered your SWAP partition, and now your old Linux doesn’t recognize it.

How do I fix it?
1. Open your Terminal with 3 tabs (Ctrl+T) on Terminator, Gnome-Terminal etc. Or just open 3 terminals if you prefer that.

2. In terminal One, list your discs and partitions to find SWAP

sudo fdisk -l

Mine are:

Device Boot Start End Blocks Id System

/dev/sda1 * 1859031040 3907028991 1023998976 7 HPFS/NTFS/exFAT

/dev/sda2 2048 1859031039 929514496 7 HPFS/NTFS/exFAT

Device Boot Start End Blocks Id System

/dev/sdb1 * 2048 488476671 244237312 7 HPFS/NTFS/exFAT

/dev/sdb2 488476672 976773119 244148224 7 HPFS/NTFS/exFAT

Device Boot Start End Blocks Id System

/dev/sdc1 2048 256008191 128003072 83 Linux

/dev/sdc2 * 512007615 623081024 55536705 7 HPFS/NTFS/exFAT

/dev/sdc3 623081472 625141759 1030144 82 Linux swap / Solaris

/dev/sdc4 256008192 512006143 127998976 83 Linux

3. In Terminal Two, get the UUIDs for each partition:

sudo blkid

Mine are:

/dev/sda1: UUID=”5A81E99E5D0E4BEC” TYPE=”ntfs”

/dev/sda2: UUID=”2ED785F62B8C2905″ TYPE=”ntfs”

/dev/sdb1: UUID=”AC84B67484B6409E” TYPE=”ntfs”

/dev/sdb2: UUID=”6E5D895444E6C134″ TYPE=”ntfs”

/dev/sdc1: UUID=”fb9b8f73-8755-41d7-9c86-a721fd354bad” TYPE=”ext4″

/dev/sdc2: UUID=”22B0AAE8B0AAC1A1″ TYPE=”ntfs”

/dev/sdc3: UUID=”a90dd59c-cba2-4275-8fc0-23cf097675a2″ TYPE=”swap”

/dev/sdc4: UUID=”cb69c289-170b-4b37-8d8f-970707ec0fd0″ TYPE=”ext4″

4. We are going to turn SWAP off before we edit anything.

sudo swapoff -a

5. In Terminal 3 we will edit fstab and change the UUID for SWAP which we can see is wrong.

sudo vim /etc/fstab

Mine looks like this:

proc /proc proc nodev,noexec,nosuid 0 0

# / was on /dev/sdb1 during installation

UUID=fb9b8f73-8755-41d7-9c86-a721fd354bad / ext4 errors=remount-ro 0 1

# swap was on /dev/sdb3 during installation

UUID=8389288c-0a99-40c7-8d56-4c9333e458dc none swap sw 0 0

# Storage Partition 1 on /dev/sda1

UUID=5A81E99E5D0E4BEC /storage1 ntfs-3g auto,users,uid=1000,gid=100,dmask=027,fmask=137,utf8 0

# Storage Partition 2 on /dev/sda2

UUID=2ED785F62B8C2905 /storage2 ntfs-3g auto,users,uid=1000,gid=100,dmask=027,fmask=137,utf8 0

# Storage Partition 3 on /dev/sdb2

UUID=6E5D895444E6C134 /storage3 ntfs-3g auto,users,uid=1000,gid=100,dmask=027,fmask=137,utf8 0

6. Now we are going to remove the UUID from the SWAP line, and leave the cursor just after the “=”

# swap was on /dev/sdb3 during installationUUID= none swap sw 0 0

7. Now look at Terminal Two and copy that UUID from SWAP, and paste it into the fstab file so it looks like this:

# swap was on /dev/sdb3 during installationUUID=a90dd59c-cba2-4275-8fc0-23cf097675a2 none swap sw 0 0

8. Save and Quit vim with “:wq + Enter”
9. Turn SWAP on again

sudo swapon -a

That’s it, all done, you now have the correct UUID for your SWAP partition.

A beginners guide to getting started with Linux

So you’ve made it here
Great, that means you have heard about Linux, and you have made the first step by doing a seach for “A beginners guide to getting started with Linux”. Well done! Let’s get started 🙂

How User Friendly is Linux for beginners?
Most Linux distros are available as a Live CD, which means you can start your computer with the CD in the CDROM drive and run it from there to try it for a while and have a play with your new chosen distro without having to install it, also it will NOT change anything at all on your computer whatsoever. So your Windows is completely SAFE.
Any good Linux suggestions for beginners?There are so many Linux distributions, and so many tastes, that it is impossible to tell somebody which is best for them and their computers. However, you can begin with the most popular which are easy for beginners to run and install. It’s like choosing a car for yourself, your partner, and your mother, each person has different needs and knowledge about cars. Distrowatch is a long established Linux website, and can give you a taste of what’s available from it’s Top 100, and also which are the most popular based on page-views. The current Top 5 as of Sept 2012 are:

Top 5 on
1 Mint
2 Mageia
3 Ubuntu
4 Fedora
5 openSUSE

Other new-user-friendly distributions are:

Getting Information About Linux Distributions
Many new users have forgotten this skill. Go to the main website of your distro and also
the support forum and USE-THE-SEARCH-BOX. They all have them, and remember Google is your friend.
Be prepared to take notes, print information and sign up on a support forum.
Social networks are also teaming with experienced Linux users, go to Facebook, Twitter and Google+ and do a search for “Linux”. make friends with Linux users, ask questions to everybody using the #linux tag.

A Few Extra Notes Before The Impatient Ones Dive In Feet First

a) Linux Distros are downloaded as an iso file and will need to be burned to a cd or dvd as an image NOT data. Most CD/Dvd burners have the option to burn as an “image”.
b) Linux images should be burned at the slowest possible speed. Each burner will vary, try with 4X to start with.
c) Not ALL distros work on ALL hardware, although Linux comes with 1000’s of hardware drivers preinstalled or easily available. So you may have a problem with you 8 year-old “no-brand” USB webcam you bought at the market 🙂
d) Use Google or a Forum Search for a “How to Install [Distro] Guide”, most distros will now offer you a step-by-step installation program that will do it all for you anyway, all you have to do is answer a few questions on the application by clicking Yes or No.
e) If in doubt at any stage whatsoever, ask on the forum, or friends on Google+ Twitter or Facebook.

Linux Forum Do’s and Don’ts
There is a little netiquette involved on many forums, and each has their own way of doing things to keep the forum friendly, helpful, organised and easy to use. Forum communities are like little towns; everybody knows eachother, you will always be welcomed with open arms, there will be hepful and not so helpful advice, young and old, novices and experts, and probably a village idiot too! 😀

Forums will be run by a team of Administrators and Moderators, some are friendly and blend in as members, others are like the Gestapo on a power trip with their new found position. In general they are all there to help maintain order and support with different degrees of efficiency.

DO try and find an “introduction thread” and post a “Hello everybody, i’m new to Linux”. See what kind of welcome you get from staff as well as members.

DO read the forum rules. Some are long winded while others are short and to the point.

DO use the forum Help button which will provide a guide on forum use and features.

DO look at the various sections and post in the right place.

DO use the Forum Search, your question may already have been asked and solved and even have a Howto guide.

DO be prepared to help yourself, you get far more respect and quicker help if you can show that you have tried.


DON’T expect an answer within 5 seconds. Forums are run by volunteers with jobs, families and lives outside of the forum.

DON’T whine and complain. Stick to the point and stay positive, you will have everybody jumping in to help you.

DON’T double post your problem a second time or in different sections, you will not get helped any faster.

DON’T post useless information. “My screen is black”. State what your hardware is, and try to remember any error messages.

DON’T post attention-seeking exagerated titles. “[Distro] broke my computer!!!!!!!!! going back to Windows!!!!! AAaaaaah!”.

Linux Checklist
Ok, so, you have got a list of possible Linux distros, you know how to look for information and help. What now?

  • Go and buy a pack of good quality blank cd’s/dvd’s.
  • Head over to and read up on the Top 10 distros.
  • Start downloading your chosen Linux distro images.
  • Burn the images to cd’s
  • Insert in one into the CDROM drive and reboot the computer.
Nine out of Ten times, you will wait about 2 minutes and will be at a Linux desktop. You will be able to play and experiment without having to worry about any adverse effects whatsoever on your already installed Windows system.

That’s it !! Welcome to the wonderful world of Linux

How to install the Ati proprietary driver on Debian, Ubuntu, Kubuntu, Mint

I usually install my Ati drivers like this on Debian 64bit, and have just found out today that it’s the same for Kubuntu 64bit as well

1. Download Ati driver:

2. Get all needed files and headers

sudo apt-get install module-assistant

sudo m-a prepare

3. Remove (completely) fglrx drivers (If you have them installed):
sudo apt-get remove –purge fglrx

4. Reboot

5. Go to console

Ctrl + Alt + F1

6. Login as Root and kill X

/etc/init.d/kdm stop

7. Unzip and run the Ati driver installer


*NOTE* You can also run the installer from desktop terminal as well, but I always do graphic driver installs from the console with no X.

 8. Configure X as root

X -configure
cp /etc/X11/xorg.conf

9. Reboot

Thar she blows !!!!!

How to install Picasa 3.9 on Debian Squeeze 64bit

Picasa on Debian Squeeze 64bit
I recently found that Picasa for Linux** no longer exists in the Google/Linux repository, so I had a Google around and  found a few guides on how to install it with Wine. There were a few different guides, but I got errors as my machine is 64bit and didn’t have all the necessary Wine/Windows libs etc..

**Just to be clear, Picasa was always a Windows package, but the Google/Linux download came prepackaged with Wine.

Wine and Winetricks
First you need to install Wine, and then download Winetricks


sudo apt-get update && sudo apt-get update
sudo apt-get install wine


sudo mv winetricks /usr/local/bin/
sudo chmod +x /usr/local/bin/winetricks

**NOTE on Debian Wheezy (Testing)
Artur posted in the comments that you may need to install libwine-cms as mscms.dll is needed.

sudo apt-get install libwine-cms

Download Picasa 3.9 for Windows

cd && wget

Download Internet Explorer 7 64bit as There is no 64bit IE6

Without it, you won’t be able to login to your Google account.

**Note To Install ie7
You may have to symlink “wineserver” to /usr/local/bin, as suggested by Simon in the comments.

sudo ln -s /usr/lib/wine/wineserver /usr/local/bin/wineserver

Place it in your Winetricks IE7 cache directory:

 mkdir -p /home/YOU/.cache/winetricks/ie7

cp /home/YOU/Downloads/IE7-WindowsServer2003-x64-enu.exe /home/YOU/.cache/winetricks/ie7

Download Cabextract
It is needed to extract Windows Cab files.

sudo apt-get install cabextract

Run the Winetricks script:

winetricks ie7

64bit Dependency

Before running Picasa setup with Wine you need an extra lib:

sudo apt-get install lib32nss-mdns

Finally Run the Picasa setup

wine picasa39-setup.exe

That’s it, now you’re good to go with Picasa!

Convert to and split flash video (flv) files for Youtube

I recently got asked about uploading videos to Youtube by a friend, and decided to look at the best way to first convert them to Flash (.flv) and then split them into chunks to get round the Youtube video size restrictions.

If you’ve never used Winff before, then you’ll love it. It allows you to choose your video file and convert into various formats, including Flash for Websites (.flv) It’s available in most Linux repos, and you can find more info here:

sudo apt-get install winff

Ffmpeg is the tool for everything video and audio. It’s available in all Linux repos and you can find more info here:

sudo apt-get install ffmpeg

VLC Media Player:
I would also recommend installing vlc which is probably the most complete lightweight Video/Audio player available. It’s also available in all Linux repositories, more info here:

Basically you just convert and split.
1. Open Winff, open the file you want to convert, and choose Flash/Website
2. Let it convert then open your terminal ready for some ffmpeg-foo

Ok, so, case scenario: 
You have a video file called “bacon” that is 30 minutes long and you want to create two 15 minute files. To get file number 1 you split from 0min for a duration of 15 minutes, and then for file number 2 you split from 15min for another duration of 15 minutes like this:

ffmpeg  split originalbacon.flv from [startpoint 0] [for duration 15] to newbacon1.flv
ffmpeg  split originalbacon.flv from [startpoint 15] [for duration 15] to newbacon2.flv

Which in the Terminal is like this:

ffmpeg -i input.flv -sameq -ss 00:00:00 -t 00:15:00 file1.flv


ffmpeg -i input.flv -sameq -ss 00:15:00 -t 00:15:00 file2.flv

Happy splitting and uploading 🙂