December 03, 2010

Ultra-portible Linux - i.e. Linux on a stick

Updated Dec 9th 2010 - see below...

I was recently in the market for a new laptop as the old one was slow and the battery was almost done for. That laptop now services mainly as a portable DVD & netplayer for my 4 year old son, Isaac. The battery is almost gone (5.5 % is reported by Ubuntu) but it is still enough to move the laptop from one wall socket to the other.

As my budget was quite limited I had to choose between power and portability - I could not get both, so I opted for power. You can see the specs of the computer in an earlier post on this blog. So what do I do for a portable - away from home - solution for minimal funds and minimal size?

Why not make a USB stick bootable?

I happen to have a Kingston 8GB Class 10 USB stick that I can use for this purpose. This is a reasonably big drive with plenty of speed.

So my plans are the following:


Partition the space into 2 partitions:
  • 2 GB FAT - for windows use
  • 6 GB ext4 - for Ubuntu

As you might notice I have opted not to put in a swap drive. This is partly due to the fact, that I do not know how Linux will cope with a flash drive with regard to wear/limited write cycles. What happens when cells become read only on a swap partition? Secondly most computer will have ample memory for my primary use; Programming.

I need the FAT partition for windows use - moving files etc.

The plan is to install Ubuntu 10.10 on the 6 GB partition. I am using one big partition as it is hard to know right now how much /root and how much /home space I need so I am diverting from my usual /root /home partition scheme.

To keep data and projects uptodate I will be using UbuntuOne. But as my primary Ubuntu One account holds more than 20 GBs of data currently, which will not fit on the stick and as Ubuntu One configuration currently does not support selective sync'ing I am going to use a secondary UbuntuOne account to which I will share the necessary folders.

Please feel free to share your views and thoughts in the comments. I will update this post with new info as I go along.

Update 09-12-2010:

I made my first go at this yesterday and worked on it a bit this morning. (This update is being written on the Ubuntu-on-USB ;-) I will make a new post with a how I did it approach. A few thoughts from my first go:

I decided to lower the FAT partition to 1800 MB to allow for a little more space. But with the things I need to install: git, eclipse, Android SDK and with opening my primary email in Evolution (IMAP based) I now have around 600 MB to spare on the /root partition. And that was after doing an apt-get clean. Before that I had about 70 MB to spare. So I will redo the setup with a 1 GB FAT partition instead.

Also it seems quite slow when doing a lot of I/O e.g. when doing apt-get update/upgrade and installing packages. I am not sure why this is the case but I suspect that it might be because the fs manager has set the write-cache to a minimum because it is running on a USB device in order to preserve high-reliability. I will try to google a bit to see if this is the case and how to set a more harddisk like write-cache to speed things up a bit.

I have only tried the stick on 2 Acer laptops, my wn Aspire 5738ZG and an eMachines 17". But so far it works on those two. I will try to boot on a few other at work today.

November 17, 2010

Problem with Touchpad under Ubuntu 10.10 Maverick Meerkat

Recently my Synaptics TouchPad stopped working in Ubuntu 10.10 Maverick Meerkat. It works fine in Windows 7 and the TouchPad works even in Ubuntu on login screen prior to logging in.

If I use the "disable TouchPad" button Ubuntu shows that the Touchpad is now on, if I press it again, it shows the TouchPad is off. So when the hardware believes the TouchPad is live, Ubuntu/X "closes its ears" as the TouchPad is supposed to be off, and when the hardware believes the TouchPad is off, Ubuntu is listening, but the TouchPad is silent. Catch 22!

I have been googling a bit, but nothing interesting comes up. Checking Launchpad, nothing 10.10 specific comes up and by skimming the rest I have found nothing. I will dive deeper into Launchpad though.

Does anybody have any solutions?

November 14, 2010

git

So I finally started looking into git as a version control system. I have yet to do any serious use of it, but I have run into a few snags.

I want to use git for version control of several private projects. Currently I have both website and Android development projects running and I would also like to start a few C projects (for Linux). And I would like the repositories to be placed in a central location (within my filetree) so that it can be Sync'ed via Ubuntu One.

So what is the road ahead? Does anybody have any pointers about multiple projects/repositories for an absolute newbie in git? Please share in the comments!

November 04, 2010

New Computer - Installing Ubuntu

After a few days of playing with Windows 7 on my new Aspire 5738ZF (see ) I finally had some time to install Ubuntu 10.10 (Maverick Meerkat). As this laptop is equipped with a 64-bit processor (Pentium T4500) and 4 GB of memory, I decided to install the 64-bit Desktop Edition with the Dual Boot option.

Installation went fine and without hitches, everything seems to have been recognised automatically. I decided to install the proprietary Radeon Driver in order to get the most out of my graphics card. I do not have any programs needing it in the moment, but perhaps later running a few games ...

I like the Gnome Desktop provided with the vanilla Ubuntu but I usually rearrange the top panel, replacing the custom Ubuntu menu bar with the standard Gnome Main menu, adding the System Monitor and Desktop Switcher applets and removing the lower panel. Thus far I have only added the System Monitor.

As I let the installer decide on the partitioning while reserving just under 100 GB to Ubuntu, it decided upon a 4 GB swap partition and the rest in one huge root partition. I usually like to have my /home on a seperate partition, so that I may upgrade or re-install the root without loosing my data. At some point in the future, I need to resize the root partition and move /home to a new partition.

I like the Medibuntu repositories and thus added them to my sources. I installed Skype 2.1 from there as well as the restricted DVD-files to enable playback of encrypted DVDs (read; all commercial DVDs)

As I am going to use this computer for Software Development, including Android applications I have installed Eclipse Galileo from the standard repositories. No problems there either. Now I have to install git to store my projects. And as I am also going to do some Web Development, I need to install the LAMP stack.

I plan to do a post about installing git at some point. I have yet to try out git so it will be a "beginners experience with git" both setting up a git server (on this local machine) and using git.

Another post planned is about Ubuntu One and maybe a post specifically about UbuntuOne Mobile and Ubuntu One Music Store.