Saturday, April 27, 2013

Upgrading to Ubuntu 13.04

Ubuntu 13.04
It's that time of the year! Well, the first one... A new Ubuntu version comes out every April and October.

Ubuntu 13.04, Raring Ringtail, has been released.

Time to do a direct upgrade from my 12.10 installation.

The upgrade process was quite simple. I upgraded some packages normally using Update Manager, and when everything was up to date:

After rebooting, the only thing I had to do was going to "Software & Updates" and in the "Other Software" tab re-add my 3rd party PPAs.

Unity seems faster and everything is running smooth.

Saturday, April 13, 2013

Google Play Music

Google Play Music

Google Play Music is finally available in Portugal!

I will show how to set up upload your music in Ubuntu using the Google Music Manager.

Installing Google Play Music Manager in Ubuntu
$ wget -q -O - | sudo apt-key add -
$ sudo sh -c 'echo "deb stable main" >> /etc/apt/sources.list.d/google.list'
$ sudo apt-get update
$ sudo apt-get install google-musicmanager-beta
I had trouble with the version installed via ppa, it was always crashing after opening up. I found a working version here.

To download and install this version:
$ wget -O google-musicmanager-beta_1.0.55.7425-r0_amd64.deb
$ sudo dkpg -i google-musicmanager-beta_1.0.55.7425-r0_amd64.deb

Thursday, April 4, 2013

Nexus 4 bootloader unlocking, rooting and installing a new ROM

Nexus 4 (mako)
I just got a Nexus 4 :)

Time to unlock the bootloader, install a new recovery, get root and install a new ROM.

Android SDK

Download the Android SDK from here and uncompress the zip file. I will be using the Linux version.
$ mkdir ~/Android
$ cd ~/Android
$ unzip

USB Debugging

In Android go to Settings>About>Build Number and click seven times to unlock the Developer Options.
Then go to Settings>Developer Options and check USB Debugging.

Tuesday, April 2, 2013

Moving your /home partition to a new disk

A couple of weeks ago my hard drive started to fail. The boot time started degrading and a scan to the /home partition would run in every boot. Also sometimes it would return i/o errors.

A look at the disk's SMART data confirmed a number of bad sectors.

So I bought a new disk and migrated my /home partition.

The setup

I have a SSD drive with my root (/) partition and a HDD drive with my /home partition.
I bought a new HDD drive to replace the old one and connected both at the same time for the migration process.

Startup Disk Creator
Booting into a live environment

I installed Ubuntu into a pen drive using the Startup Disk Creator. This allowed me to boot into a full Ubuntu environment without booting from my actual system.

Discover the UUIDs of the drives

Before starting the process we need to identify the drives by UUID.
$ sudo blkid