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!
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!
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!
July 20, 2009
Just today, Microsoft has contributed 20,000 lines of code to Linux, licensed under the GPLv2. This is the first time Microsoft has chosen to use the GPL to license it’s own code. The software they’ve released today helps to make Linux work better when running in a virtual machine on top of Microsoft’s Hyper-V hypervisor.
Microsoft’s announcement was a big surprise coming from the same company who argued that the “[GPL] debases the currency of the ideas and labor that transform great ideas into great products” and have compared it to a virus.
While this is the first time Microsoft has released code under the GPL, it isn’t the first contribution Microsoft has made to Free Software. For example, in January of this year, Microsoft made it’s first contribution to the Apache project. Microsoft’s Bing search engine includes some open source code. Microsoft also has it’s own Free Software license called the Microsoft Public License (Ms-PL) which is recognized as such by the Free Software Foundation.
Microsoft has also been showing support for Mono with promises not to sue Mono users for patent violations. I was also surprised to notice that Microsoft’s video website, which requires the Silverlight plugin, redirects Linux users to Mono’s Moonlight plugin page.
So, what’s next? Perhaps Windows 8 will run on the Linux kernel.
I just read an interesting, albeit admittedly unscientific, post by Starry Hope on the popularity of Ubuntu. Here are the two graphs from the post which I found to be the most interesting.
If you think Google search volume is a fair indicator of popularity, than it’s pretty clear that Ubuntu is more popular than all the rest of the Linux distributions put together.
While I think there is good reason for Ubuntu to be so far out in front, I hope that we in the Ubuntu Community don’t let that reality go to our heads, but continue to be good citizens in the greater Linux Community. While Ubuntu may be the most popular distrubution, Canonical (Ubuntu’s source of paid development) isn’t very profitable (yet?) and depends on the development efforts paid for by the makers of competing distrubutions like Red Hat and Novell to produce much of the software which makes Ubuntu complete.
June 5, 2009
The long anticipated KOffice 2.0 release is now available for Linux, Windows and Mac users! Be advised that the KOffice folks say that this release isn’t actually considered stable, and is intended for developers and early adopters only, similar to how KDE 4.0 wasn’t a stable release. KOffice 2 is a port to the new QT 4 and KDE 4 libraries, and has a couple cool new features such as better KOffice component integration and the switch to using ODF as the default document formats. (In contrast, AbiWord only supports ODT and will not use it as the default format.)
KOffice 2 feels much faster than OpenOffice.org, and has more features than Abiword. I also really appreciate that ODF is the default format for KOffice as this means that compatibility with OpenOffice.org documents should be perfect. My only problem with using KOffice is that the list of required dependencies is considerably longer than it would be were I using KDE in place of Gnome, as KOffice is designed to use the KDE libraries. The installation size for KWord on my Dell Mini 9 running Ubuntu 9.04 system (with a 4GB SSD) is 160MB compared to 26.3MB for Abiword or 186MB for OpenOffice.org Writer. Note: the installation size of KWord would be much smaller were I running KDE, and the installation size of Abiword would be much larger were I not already running Gnome.
The KOffice 2.1 release is currently expected to be out later this year, which should be more stable and more appropriate for everyday use.
Click here for the official KOffice 2.0 release announcement.
April 21, 2009
Abiword has just become my new favorite word processor. It’s always been nice for being so quick and low on resources (installing Abiword requires 26.3 MB in Ubuntu 9.04 compared to 186 MB for OpenOffice.org Writer), but the 2.6 release of Abiword has added two new features which have pushed it over the top for me.
First, Abiword now has .odt (OpenDocument Text) support, so making the switch from OpenOffice.org is a lot less painful. This is a feature I’ve also been waiting for in KOffice 2 which has finally released it’s first Release Candidate.
My favorite new feature is the Abiword Collaboration Plugin, which adds Google Docs like collaboration functionality to Abiword. So now I can collaborate on a document without the requirement of using an online service like Google to host our work. Abiword supports direct connections over TCP, or you can connect over Jabber. It’s very easy to set up. After establishing the connection, one person checks the “Share” checkbox in their Abiword, publishing the document to the “Shared Documents” of the other collaborators, enabling them to open and edit the same document. Everyone gets their own color coded cursor, just like in Google Docs. The Abiword developers are also working on an online service called AbiCollab.net, which is currently in beta. This will be an additional ttransport layer for Abiword collaboration, which adds the ability to view the changes a colleague has made to a document before it has been saved to disk.
While it’s true that Abiword doesn’t have all the features of MS Word or OpenOffice.org Writer, it does have all the features I have ever wanted in a word processor, and the small footprint works out really well for my new Dell Mini 9. For an interesting interview with the developers of Abiword, including more on the Collaboration Plugin and ODT support, and more on AbiCollab.net, check out this article from Red Hat Magazine. And if you didn’t know, Abiword is Free Software and it can be downloaded at no cost here.