This tip is intended for people like me who:
- Often need to work outside the office but don’t want to carry a laptop
- Happen not to use any Linux or Mac machines, just Windows
- Can’t use Window’s Remote Desktop Connection app. (Perhaps your IT dept won’t open the port in their firewall; but if the problem is just that you’re using a Home version of Windows, you could switch to a Business version or upgrade to an Ultimate version.)
- Can’t use the similar VNC app because your client computer has User Account Control turned on and you want to keep it that way for security reasons.
- Or, your IT dept won’t give you admin privileges on your machine, so you can’t install apps at will
- If you use SVN, then either your SVN repo has a publicly-accessible IP address, or that you can access it via VPN. (That is, if you need to use SVN but it’s kept behind a firewall, then these instructions won’t help you access it…you’re stuck working non-portably.)
The next best alternative I’ve found is toÂ use a thumbdrive to keep your documents and applications (plus application state such as licenses, passwords, bookmarks, files currently being edited, email and contacts, etc).
If all the desktops you’ll use the usb drive with are XP, then you could put MojoPac on the usb; it emulates an OS and provides a desktop view of your usb that runs as a window in XP. It’s not clear if there will ever be a version that works with Vista or Windows 7.
Before copying any files to your thumbdrive, or installing any portable apps, consider whether you’d be hurt if the thumbdrive were lost or stolen and someone got access to its contents. If that’s at all important to to you, there are four options:
- If you expect to have admin rights on any computer you might use, then you could install TrueCrypt on your thumbdrive and also create a TrueCrypt file container there.
- If you don’t expect to have admin rights, but can convince your IT dept to install TrueCrypt for you, then check out the instruction in the next paragraph.
- Or, if you won’t need more than 1G of space encrypted on your thumbdrive, you can tryÂ Rohos Mini Drive. (I haven’t)
- Otherwise, you need to use Remora, where you will have to manually unencrypt each file you would want to use, then manually re-encrypt it after saving. (I haven’t tried this either)
If you can go with TrueCrypt, then install it on your harddrive. Use it to encrypt the thumbdrive. You can configure the encryption so you are prompted for the password as soon as you plug in the thumbdrive anywhere; then, you will be able to access files and run apps from the drive as though it weren’t encypted but all your edits and adds will be encrypted. (Things will run slower due to the on-the-fly encryption, although perhaps not noticeably so.) You might want to encrypt only a folder of documents, but I opted to encrypt everything because apps like Thunderbird store one’s data (e.g. all one’s email, if you have opted to keep local copies) in generally unpredictable places. After installing TrueCrypt, do this (basically following TrueCrypt’s beginner tutorial):
- Do the following from a machine where you have admin privileges
- Start the TrueCrypt application from your desktop
- Click the Create Volume button
- Select “Create an encrypted file container”. (I tried “Encrypt a non-system partition/drive”, but when I plugged the drive into another machine where TrueCrypt wasn’t installed, I was prompted to format the usb drive.)
- Select “Standard TrueCrypt volume”
- Click “Select file”
- In the file selector popup, select your thumbdrive in the left pane, and for “File name:” provide a name for your container. Mine is “TrueCryptContainer”, but the paranoid might want to use “junk”. Then hit Save.
- In the Encryption Options view, just hit Next.
- When prompted for file size, use the full capacity available (e.g., 3680 MB for a “4GB” usb drive). Then Next.
- Choose a good password. Next.
- For Volume Format, set Filesystem to NTFS (or, if you can’t get admin privileges anywhere, choose FAT). Move your mouse around over the window several times to generate a good random seed for the encryption algorithm. Then click Format.
- When formatting’s done, close that dialog window.
- Back in the main TrueCrypt dialog, the one showing a list of unused drive letters, choose a letter you want your new container mapped to.
- Click the “Select File” button and choose the container file you just created.
- Click the “Mount” button. You’ll be prompted for the password you assigned. Sometimes this doesn’t work for me and I have to cancel and then hit Mount again before it works.
- Once it works, you’ll see your container file listed alongside the drive letter you chose in TrueCrypt’s main dialog. And the drive letter should appear in WindowsExplorer under “My Computer” along with your other drives. You should be able to open from and save to this encrypted container using any application’s File Open and File Save commands.
- Be sure to use the Dismount button before trying “safely remove hardware” and before removing the thumb drive.
Sync with desktop or server/cloud
After encryption, this is probably your highest priority. You can try a portable application like Toucan, but I think it’s not full-featured enough. For example, one needs to type or paste in paths when defining items to skip, instead of selecting them through a browse button. And my rules for skipping items were ignored anyway. Instead, rather than using a portable app to do the syncing, you probably just need to sync to one primary desktop, and Microsoft’sÂ SyncToy running from that desktop works well. I configured it to sync docs/projects and apps separately, and I set my desktop-to-cloud sync serviceÂ Mozy to sync just the docs/projects from the desktop (because I want double protection for things I can’t just reinstall and reconfigure). As a further step, I use Windows Task SchedulerÂ (See “Help | Learn how to schedule SyncToy” within SyncToy)Â to kick off these SyncToy tasks near the end of every workday. Setting SyncToy to run at the end of a workday assumes your backup desktop is your work desktop; to sync to a desktop at home, you probably want the trigger event to be the insertion of your usb drive. TaskScheduler doesn’t natively support “mounting of usb drive” as a trigger, but you can buy MyTrigger for US$24 which enables TaskScheduler to launch SyncToy for such an event.
Once you start reading email from Thunderbird on your thumbdrive, when you click links in msgs you’d want them to open with the browser also on your thumbdrive (especially if you might bookmark the link or enter a password). This doesn’t happen automatically; instead, you’ll getÂ whatever app has been set as the default handler of the kind of file you want to open (where “kind” is determined by the file’s extension — the part after the dot).Â There is no good solution in XP nor Vista to this general problem of wanting to set usb-hosted apps as default handlers (but Windows 7 appears to support it).. However, just for the case of handling urls when they appear in apps other than the browser, one can make a desktop-hosted Firefox the default handler and then use the Foxmarks extension in that installation and all one’s other Firefox installs (including the portable one), since the extension syncs bookmarks and passwords across machines. (However, there does not appear to be any Firefox extension that syncs one’s open tabs, aka session.)
Auto-start when inserting drive
Many people like certain apps on their drive to launch as soon as it’s plugged in. PStart is a portable application with a small window (aka “panel”) where one can list other apps hosted on the same drive, and set some of them to launch when the drive is mounted. To make this work, however, one needs to configure each desktop OS to “autoplay” usb drives whenever they are inserted. XP and Windows 7 will prompt you if you want this done when you plug in your first usb drive, but Vista requires extra work:
- Open your run box (Start | Run) and type regedit and click OK.
- Go to HKLMSOFTWAREMicrosoftWindowsCurrentVersionPoliciesExplorer.
- You should see a key called NoDriveTypeAutoRun (see picture below). Double click it and set the Value Data to 91 (hexadecimal).
- Restart your computer and it should be fixed.
Now install PStart to your usb drive.
Once it’s installed, open its panel and go to Setup | Create autorun file. Select the drive letter that’s mapped to your TrueCrypt container. (You might want to tweak the autorun.inf file even further.)
You can also tell PStart to launch any programs listed in its panel when PStart launches. To do so:
- Right-click on the item in the panel (or add it by right-clicking in an empty part of the panel and selecting “Add file”)
- In the dialog that appears, click the Advanced tab
- In this tab, set Autorun to “on startup”
Reminder to take your drive when you log-off
This is useful, but the Quiet version requires that you log-off instead of using Safely Remove Hardware.
Force apps to release thumbdrive
If you often have the problem of Safely Remove Hardware failing to dismount the drive, you might consider this workaround. However, there seems a pretty fair chance of data loss. (If you use PStart, the culprit might be that in Settings you don’t have “when closed” set to “exit application”.)
I’ve heard that Windows 7 will actually tell you what application is holding onto the drive (but not what file it’s using).
Reward if returned
You probably want to create a text file at the root level of your drive called REWARD IF RETURNED.txt providing your email address, and make sure the file remains unencrypted. Or, you may want to make the name of the drive your email address or phone number.
Mozilla Firefox browser
I prefer Google’s Chrome browser, and there is a portable version (steps available below) but I haven’t found any way to export bookmarks once one starts using the portable version; that’s a critical flaw, because when I’ve installed updated portable versions, I’ve had to lose any bookmarks accumulated since I first started using the portable version. So, I’m using portable Firefox instead. (Update: I’m using Foxmarks because portable Firefox is slow, particularly when scrolling.) For portable Firefox, I recommend the following addons:
- Xmarks – Keep your bookmarks in sync across machines and drives
- Download Statusbar – I find it annoying that FF uses a popup to acknowledge every download attempt, and the designers of this addon felt the same
- Undo Closed Tabs Button – If you were too quick to close a tab and want it back, this feature will help you
- Tabs Open Relative – When you right-click to open a link in a new tab, it should appear right next to your current tab, not way down at the right. This feature fixes that.
- Firebug – Useful for designing/debugging web pages
- Zotero – Useful for managing a library of e-documents, such as you may have on your usb drive
And if you really want to use portable Google Chrome, here’s how:
- The portable version is available from a German developer, and you’ll have to get a translation of his blog page (plus the download link) from Lifehacker.
- To copy over your default tabs and settings, (for Vista) copy your C:UsersyournameAppDataLocalGoogleChromeUserDataDefault contents to Portable_Google_Chrome_0.2.149.30Profil
- Migrating bookmarks from desktop Chrome to portable Chrome takes several steps
- Download and installÂ Mark Clouden’s chrome bookmark exporter
- Run it and hit the Export Bookmarks button. Make sure it refers to the chrome installation on your harddrive rather than the one on your thumbdrive.
- We’re going to use Firefox to import the bookmarks, so we can tell Chrome on your thumbdrive to import bookmarks from it. So run an instance of Firefox where you don’t mind emptying all existing bookmarks first.
- In Firefox’s menu bar, go to Bookmarks | Organize Bookmarks, and delete all bookmarks in the Bookmarks Toolbar and Bookmarks Menu.
- Click the Import and Backup button at the top. Choose Import HTML.
- Select “From an HTML file, then select the bookmarks.html file you created with Clouden’s exporter.
- It may take awhile to import; wait for the bookmarks you expect to appear. Then quit Firefox.
- Start Chrome from your thumbdrive, then go to (Wrench icon in upper right) | Import bookmarks & settings.
- Set From to Firefox and click Import.
- You’ll find your bookmarks if you click “Other bookmarks” in the upper right, and then “Imported from Firefox”. You can drag items out of “Bookmarks bar” in this view right onto Chrome’s bookmarks bar. And you can drag the other bookmarks and folders onto “Other bookmarks” itself, and then right-click on empty folders to delete them.
- You may want to change the default download location under (Wrench icon in upper right) | Options | Minor Tweaks
- You may also want to tell Chrome to reopen the same pages when you restart it. Go to (Wrench icon) | Options | Basics | Startup | Restore the pages that were open last
Notepad++ text editor
PortableApps.com has a portable version of this very powerful and popular text editor. I recommend renaming the .exe file and all other folders and files that contain “++” to “NotepadPPPortable” because some sync/backup tools like Toucan have a problem with +’s in filenames.
Mozilla Thunderbird email client
PortableApps.com has a portable version of this email client and address book application. But there’s no way to connect to your office Exchange server unless they’ve enabled IMAP or POP support. (But if you have a mobile phone running Windows Mobile, its email client does support Exchange.) Also, I recommend adding the following extensions:
- Folderpane Tools – allows reordering the accounts in the left pane
- Lightning – provides an integrated calendar
- Provider for Google Calendar – provides two-way sync with Google calendar (and you can setup a separate two-way sync with the calendar in your mobile phone)
- GmailUI – allows specifying multiple constraints, such as To and Subject, when searching messages (that is, it’s not about UI at all)
- Duplicate Contact Manager – does what it says, but is said not to work well for 1000+ contacts, and merging duplicates requires copy/paste rather than clicking a checkbox.
- FoxClocks – allows placing several clocks for different world timezones in Tbird’s status bar
PortableApps.com offers the ClamWin antivirus checker.Â Note that this is only useful when you suspect a there is a problem, probably in a specific file. It is not a schedulable scanner. You would probably use it only after disconnecting your thumbdrive from a computer you have borrowed.
WinAmp media player
Just copy C:Program FilesWinamp to your thumbdrive. But disable Winamp Agent, or it will prevent unmounting the thumbdrive.
Unzip / file compression
OpenOffice for docs, drawings, spreadsheets
PortableApps.com offers OpenOffice. OO’s doc writer is a great replacement for MSWord, and its drawing app is far better than Visio in my opinion.
This PDF viewer is free, portable, and supports highlighting, comments, and typewriter features. The typewriter is great for filling out forms.
I’m providing a link for the PDFXChange download, because the creator’s web site is so poorly designed and confusing. But the software itself is really good, and I bought a license for the extra features.
Skype messenger and internet phone
I haven’t tried it portably, but here’s a tip.
(A programming environment for Java, C, and other languages like Prolog)
These instructions are adapted from a forum post on PortableApps.com:
- If you’re going to use SVN as source control, make sure your SVN repository has a publicly-accessible IP address, or that you can access it via VPN.
- Run all updates in the Installed Software tab.
- Select Core SVNKit Library under http://eclipse.svnkit.com/1.2.x/Revision Graph, Subclipse
- Select SVNKit Adapter under http://subclipse.tigris.org/update_1.4.x
- Disable SVNKit library version 22.214.171.12497
- Once you launch Eclipse and select a workspace, the full filepath to that workspace — including drive letter — will be saved to eclipseconfiguration.settingsorg.eclipse.ui.ide.prefs. Because the drive letter assigned to the thumbdrive can differ across machines (and even across uses of the same machine), you probably want to edit this file so that the final line has no drive letter. For example, mine is RECENT_WORKSPACES=ProjectsEclipseWorkspace
- Eclipse seems to change eclipse.ini each time it runs by updating the ‘-vm’ value, and for me it puts an absolute path there including drive letter. So you may want to make eclipse.ini read-only to avoid this bug.
Unfortunately if you are a Prolog coder wanting to use Eclipse, there is no way to work truly portably. There is just one version of Prolog that runs in Eclipse that I know of, Amzi (which works very well), but it depends on environment variables in your OS and there is no way to provide these vars via an Amzi config file (yet). However, if Amzi is installed on your desktop, then an Eclipse running from your usb drive will be able to support Prolog. I have only tried this when I’ve installed Amzi on both the desktop and in the Eclipse on my usb. Here’s how:
- Go to the Amzi Logic Server download page and scroll down to section “3. Existing Amzi! and/or Eclipse Users”. Follow that.
- When prompted for a Destination Folder, be sure you select a folder on your thumbdrive (I selected “F:AppsAmziProlog”).
- When that’s done, you can enable Prolog support in Eclipse by following Amzi’s install instructions in the section on Existing Eclipse Users.
- After restarting Eclipse, go to Windows | Open Perspective | Other | Prolog.
- Then do the same to open the Debug perspective.
Task manager / Todo list
I’m not quite obsessive enough yet to need a multi-level task manager, butÂ ToDoList offers that capability and can run portably.
- An app that monitored the health of the usb drive and warned me when it’s time to copy its contents to a new drive. (I already try to auto-sync the drive to my laptop at home whenever I remember/have time to plug it in, and that laptop auto-syncs in turn with Mozy.)
- A desktop-hosted antivirus that scanned any usb inserted before allowing it to autoplay.Â This may just require me to hunt more; I currently use Kaspersky, which seems to work very well, but it’s not clear if it does this and their tech support has ignored my questions about it.