December 27, 2009

Developing on Android

I've had an Android phone - the HTC Hero - for almost 3 weeks now and now I feel it is time to get to the next level - developing applications and widgets for this platform. That is why I chose to get an Android so I better get started on it.

This blog-entry is a place and thought holder for research, research plans and ideas for apps and widgets. It is primaryly for my own use and is put online so that I have access to it from different places. You are very welcome use and comment on it.

At a later stage I will put articles on my web site.

Android development can be done on several platforms including Windows, Linux and Mac.

My development platform is my laptop which is running Ubuntu (Linux) 9.10 Karmic Koala. I have to find an Integrated Development Environment (IDE), a Version Control System, the Android Source Development Kit. I also need to research the Android APIs.

Following the quick start guide at the Android Development web site the supported IDE is Eclipse version 3.4 and above. This ties in well with my choice of using Ubuntu 9.10 as it contains Eclipse 3.5 whereas Jaunty (9.04) contains only Eclipse 3.2.

First you have to install Eclipse and the lastest JDK.

... to be continued ...

... to be researched:
Android Development with Eclipse - Tutorial by Jack Vogel (Android 2.0 Eclipse 3.5)

December 14, 2009

pfSense 1.2.3 released

The Firewall/Router pfSense has been released in version 1.2.3. This is a maintenance release in the current stable release tree (1.2.x). For more info read the Release Notice.

pfSense is meant as a firewall application that is managed from a web interface and thus do not need a display and input attached except for installation.

It is based upon FreeBSD and grew out of the m0n0wall preject.

September 29, 2009

Regaining access to an encrypted /home directory after re-installation of Ubuntu Jaunty Jackalope - Part I

Following the disaster of upgrading to Ubuntu Karmic Koala Alpha 6 (see
Upgrading from Ubuntu 9.04 to Karmic Koala Alpha 6 failed ... - Part I, II and III
I decided to re-install 9.04 Jaunty Jackalope with the alternate CD to be able to regain access my encrypted files. (BAD IDEA - read ahead!)

I decided to do a clean install and in order not to disturb my original /home/UserA directory (/home is on a separate partition from /) I chose to use UserB as the pseudo root account.

Logging in using UserB I re-created UserA as a user using the GUI (menu: System -> Administration -> Users and Groups). As /home/UserA was already present, i had to use /home/UserA1 as the /home dir for this user.

Having created the UserA I went into a shell and did:

$ sudo chown -R UserA,UserA /home/UserA

as it incorrectly had the UID and GID of UserB (UID=1000,GID=1000).

Setting

Now /home/UserB is having his /home dir encrypted so at least encryption is up and running. But I still could not access the old encrypted /home/UserA dir neither from being logged in as UserA or UserB.

Looking closer at the home dir I realised that I had missed something. The /home/UserB/.ecryptfs is symlinked to /var/lib/ecryptfs/UserB. This is where the passphrases and signatures resides. And I just deleted those by re-installing. DOH!

Do not delete your partition that contains /var/lib!

I will be back soon with an alternative solution - I hope (otherwise my files are lost :-/)

September 25, 2009

Upgrading from Ubuntu 9.04 to Karmic Koala Alpha 6 failed ... - Part III

Final post regarding my failed upgrade from Ubuntu Jaunty (9.04) to Karmic Koala (future 9.10):

I deleted the /dev/sda2 partition that hosted the interim Ubuntu Studio install I used in Part I and grew the root partition on /dev/sda1 to it's full size again, both using GParted running off an external drive that used to be the hard drive for this laptop. Then I used resize2fs to let the fs knw it had the extra space.

Then I did #7-9 mentioned in Part II - only #8 took a little longer than 10 minutes :-)

And when I rebooted I got the new Karmic Koala splash screen. Woohooooo! And it recognises my encrypted /home partition so that is lovely!

Now my plan is to backup all my data and remove the data I do not need on the laptop and do a clean install of Karmic Koala Alpha. I am leaving behind the Ubuntu Studio stuff - I will do that on the desktop box instead. I will however put in Eclipse (www.eclipse.org) in order to play with Android (www.android.com) development

Mission Accomplished!