If you have recently tried to mount a filesystem in Ubuntu Lucid or Ubuntu Maverick from the command line in a Gnome friendly way you have probably run into some trouble. The pre-Lucid methods involved the use of gnome-mount or pmount, but both of these utilities rely on HAL (the Hardware Abstraction Layer) which has been deprecated in favor of new functionality in udev, the Linux kernel, and gvfs.
You might ask why someone wouldn’t just want to use plain old mount and fstab to handle mounting. Mount and fstab work great for behind the scenes filesystems you never need to unplug (such as external hard drives for automatic backups), but if you like to eject/safely remove/unmount your devices from the graphical interface in Ubuntu you will be out of luck. Also, the mount command requires superuser privileges while the graphical methods in Ubuntu do not.
The solution is apparently the new gvfs-mount command, available through the gvfs-bin package. While documentation on this utility is scant (no manpage!), devices can be mounted by executing:
gvfs-mount -d /dev/<devicename>
Note: When I execute this command from a terminal, I am greeted by 4 “Critical” warnings about various failures. Surprisingly, this does not mean the command didn’t work. Check your Desktop or /mount for your device.
This command can be executed by non-root users, and the mounting appears to be handled in exactly the same manner as the graphical method (desktop shortcut, mounting as /mount/<disk label or UUID>). Filesystems mounted with this command can be unmounted with a right-click from the Desktop or though the side pane in Nautilus.
Unmounting from the command line can be accomplished with this command:
gvfs-mount -u /media/<disk label or UUID>
For some reason, the -d switch with the /dev/<devicename> path does not appear to work.
Hopefully you have found this helpful. If you found this useful, or if you have some tips on using gvfs-mount, or if you have a better way of doing this, please leave me a comment!
How to permanently change OpenOffice.org Writer’s margins to 1 inch
September 29, 2009
As I’ve been hearing from people frustrated with this issue a lot lately, and have also recently learned how to correct it, I thought I’d share. OpenOffice.org Writer’s default margins are set to 0.79″, which is equivalent to 2 cm, apparently a standard in some other parts the world. Correcting this permanently requires creating a new default document template for OOo Writer, which is actually pretty easy.
First, open up OpenOffice.org Writer and make the document just the way you like it. You can change the default font, add headers, change the line spacing, or whatever. Just don’t forget to change all the margins to 1″ (If you are having trouble doing this go to Format > Page and in the bottom left corner change top, bottom, left, and right to 1.00″, and hit OK).
Next, go to File > Templates > Save. In the new window, click in the New Templates field, and give your template a name such as “My New Default Template With One Inch Margins” or whatever you’d like to call it. In the category box, leave My Templates selected, and click OK.
The last step is to make this new template the default for new OOo Writer documents. To do this, go to File > Templates > Organize. Double click the My Templates folder in the left pane, and select the template you just created. Next, click the Commands button, and click the Set as Default Template option, and click Close.
That’s it! From now on, all new documents you create will have the correct margins. If you found this helpful, leave me a comment to let me know!
Abiword Use Case: Writing papers for college
September 27, 2009
A while back, I wrote about how Abiword was my favorite word processor, due to it’s simplicity and low system requirements and some killer features other word processors lack. Not to mention it costs $0 and works on Windows, Mac and Linux. As I am now back in school, I naturally decided to put Abiword to the test by using it as my primary word processor for completing assignments.
For some background on my environment, I am currently attending Howard Community College which uses Microsoft Windows XP exclusively in all of it’s classrooms and computer labs, and provides MS Word 2007 on all of it’s computers for word processing. I complete almost all of my schoolwork on my Dell Mini 9, currently running a pre-release version of Ubuntu Linux 9.10. I do frequently need to use the college’s Windows XP systems for purposes of printing documents and completing online classwork in rooms without Wifi.
For the most part, I have found Abiword to meet my needs satisfactorily. Abiword starts extremely fast on my computer, and provides sufficient tools for doing almost everything I need to do. While Abiword does support MS Word document format (.doc) and OpenDocument Format (.odt), I have chosen to stick with the default .abw format so I don’t need to worry about any formating incompatibilities when I go to print my completed work. I initially intended to save all of my finished documents to PDF for final printing (saved to a USB flash drive), but I discovered that while my PDFs are perfect in Ubuntu, they were all blank documents in Windows. (I attempted this with 3 documents using Abiword’s built in save as PDF feature. Exporting to PDF in Ubuntu using OpenOffice.org works fine). Luckily, I had the installer for Abiword on my USB flash drive, and installation of the word processor only takes about 15 seconds. Once Abiword was installed in Windows, printing my .abw documents were simple. Another option I could try is installing and running Abiword directly from my USB flash drive. This is reported to work very well, and very simple instructions are available here.
My greatest challenge in using Abiword came when I was required to use MLA formating for the first of many essays I’ll be writing. First, Abiword doesn’t have a typical outline generation option, but this honestly made it easier for me to crank out the outline according to the required format (I., A., 1., a). To be clear, Abiword can be used to generate outline numbering, but it doesn’t automatically handle the hierarchy part. To add an indented section you just tab in (after adjusting the tab stops), and start a new numbered list. Abiword also supports the feature of continuing a numbered list from a previous part of the outline, which makes the task easier. The one thing Abiword could not handle, was the seemingly simple task of changing the format of the page numbering. I was required to use lowercase Roman Numerals for the outline, and Abiword doesn’t support changing the formating of the page numbers at all.
OpenOffice.org (which also costs $0 and runs on Windows, Mac, and Linux) came to the rescue. I tried saving my Abiword document in OpenOffice.org Writer’s format (.odt), but I lost all of the outline formatting I had worked so hard on (Abiword does support saving to .odt document format, but it’s not 100%). In contrast to Abiword, re-formatting the outline in OOo Writer was a major pain. OOo Writer does have a traditional style word processor outline tool (where it tries to guess what you want to do with the outline, Clippy style) but it only managed to make the job more complicated and more difficult. OOo Writer also generates the numbering/lettering of the outline hierarchy for you, but none of the options available matched the specific formatting I was required to use, so I had to do some tricky tabbing in the end anyway. Writer gave me no problems changing the page numbering to lowercase Roman numerals which was fantastic.
In the end, I still think Abiword is Awesome, but I don’t think I’ll be using it for any formal papers anytime soon. For that task, I’ll stick with OpenOffice.org Writer. Another advantage of using OpenOffice.org for my schoolwork is that OOo Writer’s default document format .odt is supported by MS Word 2007, and I’ve noticed no formatting issues opening .odt files in Word ’07 for printing (thanks Microsoft).
In conclusion, Abiword is a fast, easy to use word processor, but it doesn’t provide me with all of the tools I need for writing essays in college. If anyone knows how to get Abiword to change the formatting of page numbers, or if you’d like to share your experiences using Abiword, OpenOffice.org Writer, or another alternative word processor in an educational environment, please leave a comment!