As a writer, there are certain situations where I'd like to carry with me a fully-encapsulated desktop. That way I can boot into that desktop, do some work, save said work, and shut down. With this I could use any PC and know that:
No virus or malware would infect my work
No changes would be made on the “guest” PC
This sort of environment is good for many types of users and is possible, thanks to a portable Linux distribution called Porteus. Porteus is based on Slackware and allows you to boot into Linux from a flash drive, save any/all work to the flash drive, and then take that work with you. It's a full-blown distribution that runs either the KDE or Xfce desktop (depending upon your architecture and which version you download). The 64-bit version of Porteus offers either the standard KDE or Xfce desktops, whereas the 32 bit version runs Razor-qt (a KDE 3-based desktop). I want to walk you through the installation of Porteus on to a USB drive so you can enjoy a Linux desktop on the go (screenshot from Porteus below). We'll do this by downloading the ISO image and then extracting what we need from the ISO.
Porteus manages to offer a full-blown distribution by installing in a compressed state (to keep its footprint small). During the boot process, it uncompresses and boots very quickly. Porteus also offers a package manager so you can easily install more applications. The package manager has a dedicated Porteus repository to select from, but you can install applications from any repository. All installed applications are treated as separate modules and can be activated and deactivated any time (to retain the speedy boot time).
You'll use the command line, but it's nothing too challenging.
What you need
First and foremost, you'll need to download the ISO image from the Porteus downloads page. You will also need a flash drive large enough to hold not only the operating system, but any data you plan on saving. Depending upon your needs, the size of USB drive will change. Plan for plenty of space (especially since flash drives are cheap). Finally, you'll want a running Linux desktop, in order to do the installation.
The USB drive will need to be formatted in the EXT3 format. If the flash drive is formatted in a Windows filesystem, no changes will be saved between reboots of the drive. If you're unsure of how to format the USB drive, I highly recommend installing a tool like Gparted to make this process easy (Gparted can be found in most every standard repository – so you can fire up your package manager and install).
Once you have the ISO downloaded, you have to mount the file so you can extract the contents. Here's how to do this:
Open up a terminal window.
Create a temporary directory with the command: mkdir ~/loop. Mount the downloaded file with the command: mount -o loop ~/Downloads/file.iso ~/loop (Where file.iso is the name of the Porteus ISO).
Insert your flash drive.
Locate the path to the mounted flash drive.
From the ~/loop directory, copy the boot and porteus folders onto the flash drive.
Change into the porteus folder on the flash drive.
Issue the command: sudo sh Porteus-installer-for-Linux.com.
That's it! Now you can reboot the PC from the flash drive and use your newly created Porteus distribution. NOTE: You may have to go into the BIOS and enable the machine to boot from a USB device.
When you have your Porteus distribution exactly as you want, you can simply copy the contents of the flash drive to as many similar devices as you like. This makes for a cheap means of distributing a fully-running distribution to friends and co-workers. In fact, you can fully customize the desktop (with themes, wallpaper, applications, and included files), and then copy the contents of the drive to other devices.
There are plenty of uses for such a portable operating system. End users, administrators (and everyone in between) can make use of the power and portability of Porteus.
Jack Wallen is an award-winning writer for TechRepublic and Linux.com. He’s an avid promoter of open source and the voice of The Android Expert. For more news about Jack Wallen, visit his website jackwallen.com.