Monday, January 24, 2011

Configuring Ubuntu to Auto-Mount an NTFS Partition on Boot

I have a partition on a second internal hard drive that I use for media storage. Ubuntu is smart enough to detect it's existence and add a link in the Places menu to mount and open this partition, however I'd like to have it mounted automatically on boot so it can be accessible to my online backup software. I also want to make sure it maintains it's entry in the Places menu, so I can access it as easily as I currently do.

There are two administration utilities I used to accomplish this:
  • NTFS Configuration Tool (ntfs-config)
  • Storage Device Manager (pysdm)
Both utilities are GUI tools for modifying the '/etc/fstab' file, which defines the file-system table configuration. Both can be found in the Ubuntu Software Center, or can be installed from the command-line with apt-get (package names are in parenthesis). Once installed, both can be launched from the System -> Administration menu, as of Ubuntu 10.10.

The NTFS Configuration Tool is obviously focused on NTFS partitions, so it's not a general-purpose 'fstab' configuration tool. Before launching, make sure you don't have any partitions mounted or it may be unable to detect them properly. When launched, it will detect any new NTFS partitions (meaning ones that don't have entries in 'fstab') and ask if you want to configure them. When this happens, make sure that only the partitions you want to be auto-mounted are checked! Then click OK to add an entry for the checked drive to 'fstab', or you can click Cancel if you don't want any to add any new entries to 'fstab'. This leaves you at the main NTFS Configuration Tool window. If you open up Advanced Configuration, you'll see an entry for any of the partitions you just selected. You may need to check the 'Writable' box next to your new entries. From here you can Close the utility. Your selected partitions will be mounted automatically on boot, and they will still be listed in the Places menu! If you accidentally configured a partition, or want to remove a previous entry, you'll have to fix that with the Storage Device Manager.

The Storage Device Manager is a GUI front-end to modifying any 'fstab' entry, not just for NTFS partitions. When launched, you can select a partition to configure from the Partition List on the left side. If a partition does not have an entry in the 'fstab' file, you'll get a message box saying it hasn't been configured and asking if you want to configure it now. If you load this before running the NTFS Configuration Tool, then it should prompt you when you choose any of the unconfigured drives. If you need to remove an entry that you added with the NTFS Configuration Tool, you can do that here (be sure to Unmount first if applicable).

The only other thing I'd like to tweak would be to not have the mounted partitions display a desktop icon (I like my desktop as clean as possible), but I can live with it for now. And it's probably possible to use the Storage Device Manager to do all this (and of course I could just learn to edit the 'fstab' manually), but I haven't figured that out yet.

Friday, January 21, 2011

Hiding the VirtualBox 'Mini Menu' bar in Fullscreen

When you send a VirtualBox client into fullscreen mode [Host + F], there's a small 'Mini Menu' bar pinned to the bottom of the screen that has Devices and Machine menus on it. This gets in the way, and although you can 'un-pin' it so it auto-hides, I keep bumping it in WinXP VMs when I'm mousing around the XP taskbar. Fortunately, the interwebs is our friend, and a kind blogger pointed out that you can move the Mini Menu bar to the top of the screen:
  1. Make sure your VM is not running
  2. Open the Settings for that VM by right-clicking on it in the main VirtualBox GUI
  3. Go to General -> Advanced tab
  4. Check the Mini Menu entry for 'Show at top of screen'
You can also turn the thing off entirely, if so desired.

Thursday, January 20, 2011

How I Configure A New WinXP System

I've just finished created a new WinXP VM in which I plan to do some .NET development. Since I was getting the system to a customized/workable state from essentially a clean installation, I thought I'd capture the typical tweaks I make when I start work on a new machine.

Typically, I prefer the cleaner (and more compact) "Windows Classic Style" over the "Windows XP Style", though on occasion I've used a tool to enable skinning of the WinXP UI. The windowing style can be set in the Display Properties dialog (right-click on the desktop -> Preferences), on the Appearance tab, via the 'Windows and buttons' pick-list.

I prefer to darken the standard light-grey window coloring. On the Appearance tab, click the Advanced button in the bottom-right. Then click on the OK button in the example window to set the Item picklist to "3D Objects". Pull down the "Color 1" color selector and choose 'Other' so you can set the RGB values to Red: 155, Green: 147, Blue: 128.

For the desktop background, I can usually find something on DeviantArt, or I might just go for a clean, solid color. Either way, it's set on the 'Desktop' tab of the Display Properties dialog. Some decent solid colors are:
  • Green (R:25 G:70 B:25)
  • Blue (R:0 G:67 B:128)
  • Grey (R:73 G:73 B:73)
  • VS2010 Blue-Grey (R:41 G:57 B:85)
Also, ClearType font smoothing is a must! Microsoft has an online setup wizard to turn this on (you'll have to install the ActiveX component).

While we're on fonts, I'm a huge fan of the Consolas font for any monospaced text editing (programming, notepad, the command prompt). You can download the Consolas Font Pack here. Though it says it's only for uses of Visual Studio 2005 or 2008, I was able to install it without a hitch.

In the QuickLaunch bar, I typically keep three icons visible, with the '>>' popup list for any others I may want. The three are:
  1. A shortcut to 'My Documents' (more on this later)
  2. Chrome (or Firefox, or IE if I'm in a locked-down ecosystem)
  3. The "Show Desktop" link
For the 'My Documents' shortcut, I actually use a modified shortcut to Windows Explorer, as I prefer to have the Explorer 'Fodlers' sidebar open by default. The modifications are probably overkill, but I like it "just right". ;-) To create the shortcut, I copy the Windows Explorer shortcut from the Start menu (Start -> All Programs -> Accessories) and edit it (right-click -> Properties) to the desktop. On the 'General' tab, I change the name to 'My Documents'. On the 'Shortcut' tab, I change the "Run" picklist to 'Maximized' and change the Icon to match the normal My Documents icon (in 'C:\WINDOWS\system32\mydocs.dll'). Then just drag this shortcut from the desktop to the Quick Launch bar.

I also tweak the layout and options in Windows Explorer a bit. The navigation buttons toolbar gets changed to use small icons (right-click on it -> Customize -> change 'Icon options' to 'Small icons'). The menu, address, and navigation button toolbars are all dragged to all be on the same line across (navigation on far left, menu on far right, address filling the space in the middle). The Views drop-down is changed to Details. I also turn on the Status Bar (View -> Status Bar). Next, I go to Tools -> Folder Options, to the 'View' tab and click "Apply to All Folders" so these settings stick as I navigate around. In the View tab Advanced Settings list, I do the following:
  • Select "Show hidden files and folders"
  • Uncheck "Hide extensions for known file types"
As far as programs to install, here's a breakdown:
Launchy get's a little extra setup. In Launchy's Options (right-click on the system tray icon), on the General tab, check "Hide Launchy when it loses focus" and "Always on top", and change the hotkey combination to Control + Space. On the Skins tab, change the skin to "Spotlight Wide". On the Catalog tab, I'll add a custom folder (like "MyDocs\util\Shortcuts\") set to index "*.lnk" files, where I can throw any shortcut I want to be launchable.

Alright, that's all I can think of for now. I'll try to keep this updated as I think of further customizations.

Wednesday, January 19, 2011

Installing CrashPlan 3.0 in Ubuntu 10.10

I've put off installing online backup software for ages. It's the kind of thing that sits on your TODO list, nagging at you, but for some reason it just always seemed very daunting. At some point a friend of mine recommended a service called CrashPlan. It's cheap ($6 a month gets you unlimited space for all your home's computers), and best of all, it supports Windows, Mac, and (gasp!) Linux. The program also allows free offline backup, for example to a dedicated hard drive or another computer on your network. They offer a 30-day trial of their online backup service, which I'm trying right now. So far, I'm thoroughly impressed and will likely buy a year's subscription when my 30 days are up!

My only gripes have to do with ease-of-use on Linux:
  • The first is with the Linux installation, which basically consisted of a shell script which obviously ran in a geeky terminal window. To be fair, CrashPlan gets major points for even supporting Linux, so this does feel a bit like nitpicking. And, granted, Linux users tend to be significantly less command-line averse, but I'd still prefer to see them offer a more novice-friendly installation option. I have no trouble recommending Ubuntu to the average "grandma" user (web/email/word processing), but this is not something Grandma could install herself. It's just not up to par with the ease-of-use expected on the more ubiquitous Windows or Mac platforms.

  • The second gripe is with the shortcut (launcher in Ubuntu parlance) for the CrashPlanDesktop GUI configuration tool. The installation added a shortcut to the tool on my desktop, but not one to the Ubuntu Applications menu. Other third-party installations (like Dropbox) have integrated into the standard Ubuntu applications listing, so why doesn't CrashPlan? Also, after rebooting, the shortcut disappeared and I had to manually re-create it. This was probably a glitch, but the annoyance would have been averted if there had been a shortcut in the Applications menu.
Gripes aside, the installation worked without a hitch. I just chose all the default options and it installed and ran fine. The GUI tool is clean, simple to use and understand, but offers plenty of options to fine-tune the backup to my needs.

For future reference, to recreate the CrashPlanDesktop launcher, just create a new launcher or copy an existing one, open it in a text editor, and replace the contents with the following:
#!/usr/bin/env xdg-open

[Desktop Entry]
Version=1.0
Type=Application
Terminal=false
Icon[en_US]=/usr/local/crashplan/skin/icon_app_128x128.png
Exec=/usr/local/bin/CrashPlanDesktop
Name[en_US]=CrashPlanDesktop
Comment[en_US]=CrashPlan Desktop Configuration Tool
Name=CrashPlanDesktop
Comment=CrashPlan Desktop Configuration Tool
Icon=/usr/local/crashplan/skin/icon_app_128x128.png

Cloning a Virtual Hard Drive in VirtualBox 3.0

VirtualBox doesn't make it easy to clone/copy the configured virtual machines and their hard drive image files. To create an exact clone of an existing VM, you have to first clone the .vdi disk image file from the command line. Then you create a new VM with the same configuration, but point it to use the cloned .vdi image instead of the original. You'd think this would be provided as a one-click menu option, but it's not.

In Ubuntu, the .vdi files are stored in:
~/.VirtualBox/HardDisks/
and the command to clone a .vdi is:
VBoxManage clonevdi [source .vdi] [new .vdi]
More (and better) info can be found from this article.