Want to read Slashdot from your mobile device? Point it at m.slashdot.org and keep reading!

 



Forgot your password?
typodupeerror
×
Image

Ubuntu Kung Fu 253

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.
Ubuntu Kung Fu
author Keir Thomas
pages 367
publisher Pragmatic Bookshelf
rating 9
reviewer Lorin Ricker
ISBN 1-934356-22-0
summary A very useful "tips and tricks" how-to book about Ubuntu Linux
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.

*

This discussion has been archived. No new comments can be posted.

Ubuntu Kung Fu

Comments Filter:
  • Re:So much for free! (Score:1, Informative)

    by Anonymous Coward on Monday January 05, 2009 @03:39PM (#26333833)

    Among the many places for Linux Documentation (which can be googled for), yolinux.com and ubuntuguide.org come to mind. Haven't been there in ages, though, since the ol' Kubuntu has been tuned to my liking and does what I need it to.

  • Comment removed (Score:5, Informative)

    by account_deleted ( 4530225 ) on Monday January 05, 2009 @03:41PM (#26333853)
    Comment removed based on user account deletion
  • Re:So much for free! (Score:5, Informative)

    by pizzach ( 1011925 ) <.moc.liamg. .ta. .hcazzip.> on Monday January 05, 2009 @03: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 Hatta ( 162192 ) on Monday January 05, 2009 @04:02PM (#26334129) Journal

    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 only, or because the care and feeding is beyond my ability.

    It's not hard in general, but if you have specific requirements it may not be able to meet them. For instance, my GF was quite capable of running Ubuntu and doing just about all her work and fun on it. Unfortunately, she requires Macromedia Freehand which doesn't work acceptably under Wine. Once you have your workflow down however, the "care and feeding" of a Linux install is much less than that of a Windows install.

  • by Anonymous Coward on Monday January 05, 2009 @04:02PM (#26334131)

    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].

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

    by moderatorrater ( 1095745 ) on Monday January 05, 2009 @04:02PM (#26334137)
    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 package names that I need to download, and a quick primer on the configuration options. In other words, I'm a big fan.
  • by Anonymous Coward on Monday January 05, 2009 @04:10PM (#26334243)

    apt-get install firefox

  • by pablomme ( 1270790 ) on Monday January 05, 2009 @04:20PM (#26334387)

    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.

    You may want to suggest this improvement [ubuntu.com] or report the behaviour as a bug [launchpad.net].

  • by Hatta ( 162192 ) on Monday January 05, 2009 @04:24PM (#26334457) Journal

    In bash, !! substitutes for the last command entered. So if you have a one liner you need to sudo, you can do it like this:

    $ make me a sandwich

    only root can do that

    $ sudo !!

    OK

    If you have more than one line, 'sudo bash' will get you a root shell.

  • by jeffasselin ( 566598 ) <cormacolinde AT gmail DOT com> on Monday January 05, 2009 @04:41PM (#26334657) Journal

    sudo -s

    is your friend

  • by morgan_greywolf ( 835522 ) on Monday January 05, 2009 @04:42PM (#26334669) Homepage Journal

    'sudo -s --' works just as well, without the need to set a password for root.

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

    by eball ( 1315601 ) on Monday January 05, 2009 @05:08PM (#26335043)
    Actually, if you're learning Linux at work, that would be your company's time being wasted. No matter what OS, one would assume that your work computer is free to you. So, instead of paying a licensing fee for Windows, your company is paying your wage while you learn Linux on the clock. Oh, also... it's a joke.
  • by caseih ( 160668 ) on Monday January 05, 2009 @05:13PM (#26335121)

    On 8.4 and 8.10, it is as easy as windows. Just use nautilus to mount it and every application can see it through gvfs and also through a fuse mount in $HOME/.gvfs.

    It's pretty slick. In addition to mounting windows shares, you can also mount via ssh. It's a bit like KDE's ioslaves, but a lot better integrated and can be used by all apps whether they are gvfs aware or not.

  • by gilgongo ( 57446 ) on Monday January 05, 2009 @07:05PM (#26336681) Homepage Journal

    I've always just run "sudo su" - enter password, hit return, and I'm at a root prompt.

  • by morgan_greywolf ( 835522 ) on Monday January 05, 2009 @07:39PM (#26337041) Homepage Journal

    Did you ever consider that some crafty user on a multi-user Ubuntu system may set the root password, and lock you out of sudo?

    1) On a multi-user Ubuntu system, typically only one user will have unfettered sudo access. Otherwise, setting the root password requires some sort of root exploit.

    2) So long as I have physical access to the box, there is no way anyone could lock me out of root on that same box unless some sort of hardware or BIOS-level whole disk encryption is employed. Given the performance hit, enabling such on multi-user system is generally not wise.

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

    by Just Some Guy ( 3352 ) <kirk+slashdot@strauser.com> on Tuesday January 06, 2009 @10:37AM (#26342409) Homepage Journal

    My printer was EASIER to install

    When I most recently needed to add a network printer at the office, I went into KDE's printer control panel, clicked New -> Printer, picked the right one from the list of printers it found on our LAN, clicked Next a few times, and printed a test page. I think Linux pretty much has this problem solved.

"Floggings will continue until morale improves." -- anonymous flyer being distributed at Exxon USA

Working...