Stories
Slash Boxes
Comments

News for nerds, stuff that matters

Slashdot Log In

Log In

Create Account  |  Retrieve Password

Ubuntu Kung Fu

Posted by samzenpus on Mon Jan 05, 2009 02:13 PM
from the read-all-about-it dept.
thumbnail
Lorin Ricker writes "Back in the dark ages of windows-based GUIs, corresponding to my own wandering VMS evangelical days, I became enamored of a series of books jauntily entitled Xxx Annoyances (from O'Reilly & Assocs.), where "Xxx" could be anything from "Windows 95", "Word", "Excel" or nearly piece of software which Microsoft produced. These were, if not the first, certainly among the most successful of the "tips & tricks" books that have become popular and useful to scads of hobbyists, ordinary users, hackers and, yes, even professionals in various IT pursuits. I was attracted, even a bit addicted, to these if only because they offered to try to make some useful sense out of the bewildering design choices, deficiencies and bugs that I'd find rampant in Windows and its application repertory. Then I found Keir Thomas, who has been writing about Linux for more than a decade. His new "tips" book entitled, Ubuntu Kung Fu — Tips & Tools for Exploring Using, and Tuning Linux, and published by Pragmatic Bookshelf, is wonderful. Having only recently wandered into the light of Linux, open source software, and Ubuntu in particular, this book comes as a welcome infusion to my addiction." Read below for the rest of Lorin's review.
As a relatively young Linux distro, Ubuntu already sports a wealth of introductory and how-to books vying for the enthusiast's money — and I've already purchased a significant sampling of these which informs my opinion about the book here under review. And even for Ubuntu, the "tips & tricks" section of my own Linux bookshelf contains volumes which run from the encyclopedic to the practical — I'd even collected O'Reilly's Ubuntu Hacks (Oxer, Rankin & Childers) well before encountering Ubuntu Kung Fu.

How well does Keir Thomas's new book fare in this crowded field? Does he provide actual unique value to the Ubuntu community, useful knowledge which is otherwise unavailable or hard to find? In a nutshell (oops, sorry... that's a book series for another time!): Yes, he does. In fact, he hits the target pretty squarely.

Ubuntu Kung Fu is organized as only three chapters (with no preface material at all): "1 Introduction," including obligatory "How to Read This Book," "Acknowledgments" and "Sharing" sections; "2 An Ubuntu Administration Crash Course"; and, the largest chapter by far, "3 The Tips" themselves.

Though it concentrates on rather basic material, the second chapter on Ubuntu administration is actually one of the best subject primers I've encountered so far, and is written directly and to-the-point. There's the right focus and enough detail to help those users making the initial transition from Windows to Linux/Ubuntu, including coaching on users and passwords, file system structure (see sidebar "Drive Letters and Ubuntu"), and guidance regarding "Command Line or GUI?".

For example, after weeks of my own stumbling about in the vast sea of information and opinion known as the Ubuntu Forums, searching in vain for a concise explanation on the distinction between a "virtual console" and a regular old "X-windows terminal" — as an old VMS hacker, I'd had experience with such things — I found exactly the explanation I needed, including Ctrl/Alt/F-key controls, in this chapter. The author manages to underline the relevance of this even to the novice Ubuntu user as it applies to "What do I do if things go wrong?", without getting mired in unneeded exotica.

This chapter continues with the necessary skills in software installation and management, including Synaptic and APT, packages and repositories, doing a good job of giving the novice his or her bearings to get started. It concludes with a decent orientation on config files and the gconf-editor, making and keeping backups, and what to do if it does all go wrong.

"The Tips," the third chapter, constitutes 315 separate items, covering over 300 pages, the big majority of the book. Each tip is clearly titled as to its purpose, and has a small check-box in the margin beside the title so that the reader has a place to mark the tip as to personal relevance and priority.

I suppose that the best way to give you a sense of the value of these tips is to provide a summary of my own "usage statistics", derived from my own check-box marks. When I first surveyed the book to get my own bearings, I used a yellow highlighter pen to color in the check-box for tips that caught my eye and that I especially wanted to get back to... Later, as I read through the entire "Tips" chapter, I made a check in the box for each tip I intended to return to for installation or implementation on my own Ubuntu box, and where appropriate, when I actually did install or implement the tip, I made an installation note as to time and details. A good many of the tips are for information or how-to skill only, with nothing to install or implement other than enhancing the reader's own understanding.

Of the 315 tips, I counted 108 (34%) that I marked with yellow highlight; 16 (5%) that I checked for implementation, but have not yet done so for one reason or another; and 19 (6%) that I've implemented on my system. Considering that any "tips & tricks" book ends up becoming a grab-bag of items with a hit-or-miss appeal to any particular person, this is a very good personal return-on-investment. Yet this breakdown is rather arbitrary, as many of the tips are techniques to know and use, rather than configurations to manage or applications to install. In other words, your mileage may vary.

Mr. Thomas's grab-bag is typical in its variety and scope — there's likely something for everyone, both Ubuntu novice and expert, in this book. And, true to style for such volumes, the author notes this about his "big book of tips": "...that you can jump in anywhere." This goes to the heart of my only notable criticism of the book, one of organization. Unlike many "tips" books, where there's usually some attempt to organize the presentation of topical items into a somewhat obvious order, the editorial decision for UKF was to explicitly order the tips randomly — this was no accident, as the author makes explicit in a couple of his remarks.

Indeed, reading through the "Tips" chapter in page-order is no different than embarking on a thorough reading in random order — there simply is no rhyme-or-reason to the presentation of items. This is particularly frustrating because there are numerous instances of tips which are closely related by subject or purpose, and for which the reader would be well served by having them grouped on successive pages for ease of reference and purpose.

That this was an editorial decision is made clear by the fact that the Table of Contents is itself 10 pages long, listing every single tip in the book, and is then followed by a secondary, equally lengthy "Contents by Topic" which attempts to group the tips by general category, "Application Enhancements", "Command Line Tricks", "General Productivity Tips", etc. Furthermore, the editorial effort was made to cross-reference related tips in the text, under Tip 39, we find "...see Tip 173, on page 204, and Tip 228, on page 260," and so on. For all this cross-referencing and contents by topic effort, wouldn't it have been more effective to simply organize the tips in a semblance of relationship, commonality and order? After all, having done a "Contents by Topic", why not just go ahead and organize the book accordingly?

For some readers, the random shuffling of tips may not matter much, as so much of the information will be newly encountered and of subjectively individual value. And value there is aplenty in this book! I'll close by noting four items which were of particular interest and value to me, things for which I'd been previously searching for without luck, or which I didn't even know existed in the open source world of resources:

First, on the ubiquitous implementation of yet another Trashcan for file deletion in a File Manager (the Gnome Nautilus app, which is prevalently used on Ubuntu): GUI designers just can't get over the fact that "mere mortals" might actually delete files and not really mean it... hence, the Trashcan mechanism to protect them from their own silly actions.

This is actually a two-edged sword, and I'd been caught in the quandary of having intended to really delete some application files, which happen to have been root-owned, only to have them get snagged in my file system's Trashcan. The real quandary commenced when, using sudo, I tried to figure out how to delete them from the command line — but where in the heck is "the Trashcan"? I could see the files in Nautilus (where I couldn't conveniently use sudo-power to delete them), but following my own hunches as to where-in-the-file-system the Trashcan was actually stored turned up empty-handed.

UKF to the rescue — see Tips 39, 228 and 309 for everything you'd need to know about handling the Trashcan from the command line.

Secondly, I'd become quite fond of enhanced cut-&-paste (multiple) clipboard capabilities under Windows. Again, UKF to the rescue: Tip 306 let me know of an open source (KDE) clipboard enhancement known as Klipper (it's in the Ubuntu Repositories), which scratches this itch most satisfactorily.

Third, although Ubuntu provides basic, rudimentary tools (Gnome and KDE) for capturing screen shots, until I got to Tip 313, I didn't know that the GIMP could be used to augment and sophisticate screen shot capturing! And, of course, you can refine, edit and save your shots in any GIMP-available format directly. A great enhancement, if only to my working GIMP knowledge!

Lastly, like most folks, I've got a dark side, secrets which must be kept — things like account numbers, passwords, and other personal arcana which cannot, or should not, be kept in unencrypted form. Again, under Windows, I'd found an encryption technology known as TrueCrypt which I'd employed (and paid for) on that platform for a couple of years prior — and with my transition to Linux, I had mistakenly assumed that I had to abandon TrueCrypt as a Windows-only app.

Imagine my surprise and delight when I encountered Tip 145, which informed me that TrueCrypt includes an open source licensed release for Linux, including exactly where to go to install it and how best to use it! Bravo, and thank you, Mr. Thomas, for helping me resurrect an old and trusted friend!

In summary, it should be apparent that, in spite of my grumblings about the random tip presentation, I think that Keir Thomas's Ubuntu Kung Fu is a wonderful book — address the organization issues in a second edition, and I think it'd become an exemplar of its type. I recommend it highly to anyone who has become, or is becoming, an Ubuntu Linux user and enthusiast. It usefully helps bridge the gap between the Microsoft Windows experience and the not-so-different world of the Linux desktop. It provides ample practical help and knowledge to advance your productive use of Ubuntu Linux. This book takes a pride-of-place position right beside my copy of Ubuntu Hacks, where I can refer to it whenever I've a hankering to implement "that new thing" I remember having read about.

You can purchase Ubuntu Kung Fu from amazon.com. Slashdot welcomes readers' book reviews -- to see your own review here, read the book review guidelines, then visit the submission page.
+ -
story
This discussion has been archived. No new comments can be posted.
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More
Loading... please wait.
  • by Anonymous Coward on Monday January 05 2009, @02:16PM (#26333435)

    I can haz Linuxes?

  • by Chris Burke (6130) on Monday January 05 2009, @02:20PM (#26333499) Homepage

    Ubuntu CDs make fine shuriken. Debian CDs work well too. Haven't tried SUSE or Fedora though.

  • lol wut (Score:5, Funny)

    by mfh (56) on Monday January 05 2009, @02:20PM (#26333507) Journal

    where "Xxx" could be anything from "Windows 95", "Word", "Excel"

    Oh the annoyances of xxx film. Why can't they make it look like people are REALLY HAVING FUN?

    And the MUSIC! It's terrible.

  • by Shadow7789 (1000101) on Monday January 05 2009, @02:20PM (#26333519)
    I happen to love Vin Diesel.
  • by Anonymous Coward on Monday January 05 2009, @02:24PM (#26333601)

    Install a better distro!

        • by tobiasly (524456) on Monday January 05 2009, @11:07PM (#26339151) Homepage

          I've run gentoo, suse, mandrake, redhat, centos, federoa, ubuntu, and I'm sure a few others over the years and none of them have even come CLOSE to the usability of windows.

          I have a feeling that I'm not the minority here, either. I runx Xming on my desktop at work and use putty's X11 forwarding to view things like etherape (wish they would write a client for windwos..that is a really neat piece of software) when I need X, and use putty for everything else.

          I won't get into the usability of Windows vs. Ubuntu or others; I find Ubuntu much more usable than Windows but I guess it comes down to personal preference (plus a lot of people falsely equate "usability" with "what I'm used to"). But it's kinda ironic that you then immediately bemoan the lack of one of a Windows version of one of your favorite open source tools.

          One of the reasons I prefer Linux for the desktop is precisely that: Windows will never have the quantity and quality of open source software available for it that Linux does. Sure, there are some great open source tools for Windows (like TortoiseSVN) but writing FOSS for a proprietary platform just feels wrong to a lot of open source developers/contributors (myself included).

          Oh, and you really should Pascal-case "EtherApe". When I first read that I figured etherape was some type of add-on to BackOrifice. Kinda like what happened to ExpertsExchange.com when people didn't capitalize it correctly (and thus later became experts-exchange.com)

  • by hey! (33014) on Monday January 05 2009, @02:25PM (#26333603) Homepage Journal

    First you get your cocky ass kicked by some Windows fanboi.

    Then you go up onto the mountain to train with a bearded Unix guru. He forces you through a brutal training regimen with obscure CLI utilities, each with its own brain-flayingly inconsistent command line switches.

    When you can debug, at a glance, Perl scripts that look like core dumps, you come down from the mountain and beat the crap out of the Windows guy with your esoteric skilz.

  • So much for free! (Score:3, Insightful)

    by CannonballHead (842625) on Monday January 05 2009, @02:28PM (#26333665)

    It seems silly to pay for a how-to book for a free operating system. I wonder if there's an online "Linux Documentation for the Masses" type of thing. Linux documentation online, at least from what I have seen, tends to be geared not so much for the same audience that books tend to be, unfortunately.

    • Re:So much for free! (Score:5, Informative)

      by pizzach (1011925) <pizzach@gmai[ ]om ['l.c' in gap]> on Monday January 05 2009, @02:55PM (#26334045) Homepage

      I peeked at it by chance in a bookstore and it actually looked pretty good. It's the kind of book that makes you notice something you didn't before and go, "that's pretty cool." As long as the books are genuinely well written, they will always be around as long as they are up to date.

      A good example of an everlasting book is "The C Programming Language" by Brian W Kernighan and Dennis M Ritchie. It's a book that was written 20-30 years ago. It was sitting right there on the shelf right next to "Ubuntu Kung Fu", and likely will long outlive "Ubuntu Kung Fu" once it is gone. It doesn't matter how many C tutorials are put up on the web, "The C Programming Language" is still a damn useful book worth paying for.

    • by Anonymous Coward

      Hmmm... You've made it clear you're not expecting free hardcopy, so you [ubuntukungfu.org] must [howtoforge.com] be [linuxmanpages.com] wanting [linux.org] links [tldp.org].

      Of course to have found that you probably would have needed some uber-l337 [google.com] mad [google.com] google [google.com] skillz [google.com].

      • by CannonballHead (842625) on Monday January 05 2009, @03:26PM (#26334475)

        I knew about howtoforge, linuxmanpages, etc. Linux man pages are oh-so-user-friendly! Of course, I actually do use them and am not a blithering idiot when it comes to Linux. I guess my point was that if we want to get Linux into mainstream OS stuff, it will either have to "just work" (like Windows typically does) or the FREE documentation is going to have to be perhaps a bit more standardized, easier to find, easier to use, etc.

        It is hard to "sell" (heh) something as free when you then have to ask them to get a $XX book because they are going to have on clue how to use it, it's not what they are used to, and it doesn't just work. :)

        For those of us that ARE comfortable looking at random pages in google to find out how to do some weird Linux stuff, that's cool. For those that are switching to Linux, for the first time, and want to know how to get their Canon MP210 printer to work... well, they've got issues at the moment.

        • by khasim (1285) <brandioch.conner@gmail.com> on Monday January 05 2009, @04:01PM (#26334933)

          So manual transmission cars don't work if all you know is an automatic transmission?

          Motorcycles don't work if all you know is how to drive a car?

          18-wheelers ... don't even ask about 18-wheelers.

          The point being that many things DO work. And they work very well. And you probably depend upon them even if you are not aware of it.

          Your point is incorrectly stated. Rather than whether something "works" it should be whether YOU can handle it.

          And that is different for every person out there. Some people will not need a book like this. Some will. Others will need a human to teach them. Whatever the case, that does not change the fact that Linux is Free (like beer, like speech).

    • Re: (Score:3, Informative)

      I've always had great success with the forums. If I google search for what I'm trying to use with the word "Ubuntu" it usually comes back with a quick tutorial which is usually in the form of "open a shell and run the following commands:", which I'm okay with. I've never encountered a site that maliciously led me astray with the instructions and 9/10 are correct. If I were a novice, it would give me exactly what I was looking for. Since I'm somewhat intermediate, it gives me a good place to start from, the
        • by Ironica (124657) <pixel&boondock,org> on Monday January 05 2009, @04:41PM (#26335593) Journal

          In Windows, you plug it in, and it works. Or, you put in the CD, install the drivers, and it works. On Linux, sometimes you have to do some really weird things to get this or that printer to work. Even package management can be a real pain, with this or that dependency missing. What's a dependency? Why doesn't it install? Why is this so confusing, why can't they just make it so I download something and install it and it works, like on Windows?

          On *Windows* sometimes you have to do some really weird things to make things work. And sometimes it never does. When I was working in IT for a small business unit of Turner Broadcasting during the AOL/TW merger, we got the word we we had to install AOL on all of our computers. This was version 6, so it supported broadband, but just barely.

          Even though all our machines were running the same OS (Windows 2000), all standard Dell hardware, etc., there were a few that just didn't want to run AOL. We had one laptop where AOL would only work if you uninstalled the network card driver, and the network card driver would only install if you uninstalled AOL. After two HOURS of troubleshooting this with the special internal Help Desk AOL set up just for this rollout, the tech on the other end said, "Well, it should work." That sentence became an inside joke.

          Practically every time I set up a Windows machine, I have to Google for how to get this or that to work right. Because there's a larger install base, there's also more people who have run up against the same problem, and it's easier to find. That doesn't mean that Windows "just works" though.

          But having to BUY "documentation" (e.g., a book) because you have no clue about this whole Linux thing, you just got tired of having Windows crash with spyware, adware, and viruses... I don't know.

          Hmmmm... I wonder if any of the 432 books Amazon sells about Windows XP (yes, just XP) tell you how to get rid of spyware, adware, and viruses under Windows?

          I'm a Linux novice. Yes, I'm pretty tech-savvy, but I don't use the terminal without my husband telling me exactly what to type. ;-) Ubuntu "just worked" for me, pretty much like Windows. Installing was easy. My printer was EASIER to install (in Windows, I have to do a whole dance with inserting the CD and running the application that installs a bunch of crap I don't want along with the driver and *then* connect the printer to the computer yadda yadda). Yes, there's stuff that works better in Windows than in Linux, but Ubuntu is pretty darned close to "just working".

          I see nothing weird about having books that tell you how to get more out of a piece of software. Heck, there's a book about how to do more stuff with my Kindle, and for things that "just work" I really can't think of a better example than that little white slab. I think your criticism is misapplied.

  • by girlintraining (1395911) on Monday January 05 2009, @02:31PM (#26333703)

    Well, the support group meets here every wednesday night at 6pm. We have some papers and self-help books by a guy named Richard, who's one of the regulars here. We call him The Reverand here because if you mention "Windows" around him, he goes off about the rapture. The meeting lasts for about two hours, then there's a break and a half hour social after. We need to be out of here by 9pm though, because that's when the Macintosh support group comes in. And let me tell you, you don't want to be here when they start filing in. Most of them are court ordered, you know?

    Anyway, help yourself to a cookie and some coffee... I'll be around if you have any questions about your new addiction.

  • by Overzeetop (214511) on Monday January 05 2009, @02:33PM (#26333725) Journal

    It sounds trite, but there's a dearth of documentation for those of us who know Windows (and, probably more specifically, *-DOS and other CLIs) who can get thoroughly lost in Linux GUIs simply because we lack the fundamentals taught in a 7th grade linux programming class (which probably doesn't exist like the ones we took back in the 70s, when GUIs effectively didn't exist for the home user). I'm convinced linux isn't hard, though I've tried and abandoned it two or three times now for failure to run "required" apps that are windows only, or because the care and feeding is beyond my ability. In that time, though, I've found an inverse bell curve of documentation. Exploring GUI widgets is commonplace in tutorials; discussing minutiae is easily found on forums. Getting a really good walk through of the basics (directory structure, startup options/scripts - where they are and how to use them, etc.) is hard to find.

    As for the cover...well, at least my 6 year old daughter would approve.

    • Re: (Score:3, Informative)

      by Hatta (162192)

      You probably want something like the System Administrator Guide [tldp.org]. Back in the day I just picked up the fattest RedHat book I could find, and actually read through it cover to cover. Don't think I ever actually ran RedHat, but it covered all the basics applicable to any distro.

      Mostly, the information you want is in the man pages. 'man man' and 'man hier' to start.

      I'm convinced linux isn't hard, though I've tried and abandoned it two or three times now for failure to run "required" apps that are windows onl

      • by tobiasly (524456) on Monday January 05 2009, @11:23PM (#26339233) Homepage

        'man man' and 'man hier' to start.

        Damn... I've been running Linux first as a server then eventually as my primary desktop since Red Hat 4 (no, not RHEL, I mean what Red Hat was before Fedora existed) and I've never seen any previous mention of "man hier". That one would have come in useful a time or two!

        GP, I guess it must be a difference in learning styles... like I said, though I ran Linux server(s) for years, I just this past year switched from Windows to Ubuntu on the desktop, and though the learning curve was indeed rather steep, making the decision to jump in the deep end and go whole hog helped force me to learn. Kinda like how I learned how to drive a manual transmission by buying one :)

        As far as "care and feeding"... I am continually blown away by how awesome APT and Synaptic are in Ubuntu. You can do things like switch your entire window system from Gnome to KDE and back again, upgrade software while it's running, fix broken installs, etc. all from a single interface. Third-party vendors often provide their own repositories that automatically tie in, resolve dependencies, and let you know when updates are available, again from the same interface. And you aren't forced to run system update as an ActiveX control through a crappy browser :)

        And those "required" Windows apps I thought I needed? I don't miss them at all. I've either found open equivalents or realized I just didn't really need them as much as I thought I did.

  • by TheModelEskimo (968202) on Monday January 05 2009, @02:33PM (#26333735)
    I've been using Ubuntu since 4.??, pretty much day in and day out for work, and this book was worth the purchase. The other Ubuntu books at the bookstore seemed like conversions of normal Linux books, whereas this one was thick and specifically aimed at Ubuntu users. Hope to see more like this in the future, specifically books aimed at helping graphic design-types become more productive ;-)
    • by liquidpele (663430) on Monday January 05 2009, @02:47PM (#26333931) Homepage Journal
      I've never had a problem that ubuntuforums.org didn't have the answer to. You have to love it when something you use just has great resources.
      • by bcrowell (177657) on Monday January 05 2009, @06:02PM (#26336649) Homepage

        I've never had a problem that ubuntuforums.org didn't have the answer to.

        Yep. I have "Ubuntu Linux Bible" by von Hagen sitting on the bookshelf right next to my desk. I've never opened it. Maybe it's a fine book, but ubuntuforums is such a good resource that I've never reached for the book. One problem with printed books is that they get out of date fast. My biggest hassles with ubuntu have always been with things that were changing rapidly. E.g., for a while with Hardy I couldn't get java applets to work on my x64 box. The von Hagen book was published long before the problem started occurring, and the problem no longer occurs on Intrepid, so there was no way a printed book was ever going to provide useful info on it. Ubuntuforums also does better at stuff that's out in the long tails. E.g., I had a lot of hassles trying to get Amazon.com's mp3 selling service to work right, and once I finally figured it out I posted a howto on ubuntuforms. This is the kind of thing that not enough people care about to justify putting it in a printed book.

    • Re: (Score:3, Funny)

      by msormune (808119)

      this one was thick and specifically aimed at Ubuntu users

      So it's safe to say it really hit the spot and left a mark, then? :)

    • by Chris Pimlott (16212) on Monday January 05 2009, @04:41PM (#26335605)

      I've been using Ubuntu since 4.??, pretty much day in and day out for work

      You may be a precocious little scamp, but aren't you violating child labor laws?

  • Ubuntu annoyances? (Score:5, Interesting)

    by Hatta (162192) on Monday January 05 2009, @02:47PM (#26333915) Journal

    Every system has its share of problems. I'm sure Ubuntu is no less deserving of an Annoyances title than any other. What would you nominate for a chapter in Ubuntu Annoyances?

    Personally, my nomination would be still having to edit fstab as root to permanently mount a network share. Mapping a network drive is dead simple in Windows. It should be just as easy on Ubuntu.

  • by lattyware (934246) on Monday January 05 2009, @02:59PM (#26334101) Homepage Journal
  • by ClosedSource (238333) on Monday January 05 2009, @06:51PM (#26337171)

    but the book was so large that it violated their high-quality binding standards.