How to use GNU Privacy Guard (GPG) – Encrypt, Decrypt, Sign and Verifying identities

GPG or the GNU Privacy Guard is a free and open source software that implements OpenPGP public-key cryptography message format (RFC4880). You can use GPG to encrypt, decrypt, sign and verify files or emails. To use GPG, you need to generate the public-key/private-key pairs in your computer by running this command, and choose the default option


gpg --gen-key

The application will ask you to enter your ID and passphrase, make sure you choose a strong passphrase to guarantee the safety and security of your keys.

Encrypting and Decrypting Files
You can use GPG to encrypt files, it can be only decrypted by those who have your public-key. The command that can be used to encrypt file is :

gpg --out encrypted_file.txt --encrypt original_file.txt

Run this command to decrypt. Files encrypted with private key can only be decrypted with public key and vice-versa.

gpg --out decrypted.txt --decrypt encrypted_file.txt

Signing Email or body of texts
Alternatively, you can chose to sign emails/texts instead of encrypting them. Signing files is a way to ensure that the message/texts/emails are from the right sender and its content has not been tempered with. You can run this command to sign email or texts :

gpg --clearsign original_text.txt

This will produce a signature file which content the original text with PGP signature embedded at the bottom of the message.

To verify it (assuming you have the public key), you need to run this command:

gpg --verify original_text.txt.asc

Continue reading “How to use GNU Privacy Guard (GPG) – Encrypt, Decrypt, Sign and Verifying identities”

Ubuntu 10.04 fix for USB Drive not mounting on pc with Floppy Drive

Here’s a quick fix for an Ubuntu 10.04 bug that prevents USB Drive from mounting on a PC with Floppy drive (wow, these things still exist?)

The solution is to remove the floppy drive module from linux kernel and you will be able to mount usb drive.
sudo modprobe -r floppy

Should you ever need the module again, you can issue
sudo modprobe floppy
to load the module back (alongside with the annoying bug).

Hope this will help!

p/s: To be fair, my office Dell Optiplex machine (with Pentium 4 HT 2.80GHz, 2005 issue) still has those floppy drives, although I haven’t use them ever since they assigned it to me (back in 2008).

Ubuntu 11.04 Natty Narwhal Release Schedule has been announced!

The next year Ubuntu Release Schedule for Natty Narwhal (11.04) has been announced! According to the schedule, Natty Narwhal Alpha will be released just after Maverick Meerkat (10.10) will be out in October!

Here are the release schedule:

  • 4 November 2010 – Alpha 1 Released
  • December 2, 2010 – Alpha 2 Released
  • January 6, 2011 – Alpha 3 Released
  • February 3, 2011 – Alpha 4 Released
  • March 3, 2011 – Alpha 5 Released
  • March 31, 2011 – Beta Release
  • 21 April 2011 – Release Candidate
  • 28 April 2011 Final release – Ubuntu 11.04

My experience with AMD decTOP computer running on Android

I’ve the opportunity to test out a decTOP computer at my workplace today. decTOP was originally produced as a low-cost computer to allow people from emerging countries to access the internet.

Originally, decTOP (formerly PIC) was shipped with Microsoft Windows CE and Internet Explorer 6.0, but recent release changes the BIOS behavior of decTOP, that’s allow it to boot from USB devices (flash drive and external DVD-drive).

This has led me to do few experiments with the decTOP computer. I’ve tried installing it with Ubuntu, then Windows XP, and finally Android.

and I found Android runs nicely on the decTOP without any modifications. The downside is, that currently only Android 1.6 is available for installing on x86 machine.

What happened to Ubuntu?
Apparently I ran into some difficulties in installing Ubuntu on decTOP. With LiveCD image, it is obvious that the 128MB SODIMM ram is not enough to load the desktop interface, let alone installing it. I tried the server edition and it succeeds, but the point is to run a usable Linux desktop out from decTOP machine, and I think Android do shine in this area.

Android drawback?
One drawback though, Android won’t let you save the downloaded *.apk on the remaining harddisk space, you got to use USB stick for that.

android on dectop

Play Dune 2 Natively on Linux with Dune Legacy

Good news to old time gamers, now you can play Dune 2 on Linux operating system natively (without dosbox or other emulator) with Dune Legacy project. For the uninitiated, (to my best knowledge), Dune 2 is the first RTS game for DOS (by Westwood, then acquired by EA Games) that spawn several other popular games in the genre such as C&C, Red Alert, Red Alert 2, etc.

Youtube video of Dune Legacy :

The Ubuntu binary (playable under Lucid Lynx) is available from – http://www.myway.de/richieland/dunelegacy_0.96_i386.deb and http://www.myway.de/richieland/dunelegacy_0.96_amd64.deb

Naturally you would need the original data files and maps to play Dune Legacy natively on Linux. Binaries for other operating systems (Windows, Mac OS X) are also available from the Dune Legacy Project website.