Ubuntu Hacks
Ravi writes "I recently got hold of a very nice book on Ubuntu called Ubuntu Hacks co-authored by three authors - Kyle Rankin, Jonathan Oxer and Bill Childers. This is the latest of the hack series of books published by O'Reilly. They have made available a rough cut version of the book online ahead of schedule which was how I got hold of the book but as of now you can also buy the book in print. Put in a nutshell, this book is a collection of around 100 tips and tricks which the authors choose to call hacks, which explain how to accomplish various tasks in Ubuntu Linux. The so called hacks range from down right ordinary to the other end of the spectrum of doing specialised things." Read on for the rest of Ravi's review.
Ubuntu Hacks - Tips and Tools for Exploring, Using and Tuning Linux
author
Jonathan Oxer, Kyle Rankin and Bill Childers
pages
447
publisher
O'Reilly
rating
9
reviewer
Ravi
ISBN
0-596-52720-9
summary
This book contains around a 100 hacks in configuring various aspects of Ubuntu.
The book is divided into 10 chapters each containing a collection of hacks on a particular topic.
In the first chapter titled - Getting Started, the authors explains how to install Ubuntu on a Mac and Windows PC, moving data like mail from windows Outlook express to Ubuntu, setting up a printer and more. This chapter contains a total of 14 hacks. And my favorite hack is the one where the authors explains how to create a customized version of Ubuntu Live CD containing ones favourite applications.
The second chapter dwells on the topics related to customizing the Ubuntu desktop. Here the authors give tips to install Java, customize Ubuntu desktop, install additional window managers, synchronizing ones PDA and Pocket PC, just to name a few. This chapter contains around 27 tips. My favourite one here would be how to create PDF files by using the print command from any application in Ubuntu.
Ubuntu like other main stream GNU/Linux distributions is encumbered by the patent restrictions related to various popular multimedia file formats. The net result is one cannot play multimedia files like mp3, wmv or quick time in a default Ubuntu installation. In the chapter titled "Multimedia", one gets to know how to enable audio and video applications bundled with Ubuntu to play these restricted media files.Topics like CD ripping, playing encrypted DVDs and playing any media formats using the all time popular mplayer are also explained in simple detail. But the one hack which takes the prize is that which explains how to buy songs at the iTunes music store and download the music on Linux.
Laptop users have some advantages as well as disadvantages over people using the desktop. And considering that the number of laptop users are ever increasing, there is a need to explain how to configure and take care of ones laptop running Ubuntu - like prolonging the battery life, configuring the wireless card on the laptop, hibernating, setting up bluetooth connection and so on. The 4th chapter contains around 8 detailed tips which deals with these interesting topics related to a laptop. I really liked the tip explaining how to make ones laptop settings roam with ones network which could be quite useful for people who are always on the move.
Chapter five of this well structured book deals exclusively with configuring and fine tuning X11 - the X Windows System. Here one gets to know how to configure ones mouse the old fashioned way by editing the requisite section in the X configuration file.As an example, the authors elaborate on a special case of configuring a seven button mouse with a tilted scroll wheel to work properly in Ubuntu. This chapter additionally contain a slew of tips to configure different difficult to configure hardware like the touch pad, setting up dual head displays, installing and configuring Nvidia, ATI and Matrox proprietary graphics drivers to work in Ubuntu and more.
The next chapter titled "Package Management" has a collection of tips in managing packages. Over and above explaining how to install, remove and update packages using apt-get, synaptic and Adept, this chapter also contain tips on creating ones own Ubuntu package from source, cache packages locally from source and more. I especially found the hack where the authors explain how to create ones own Ubuntu package repository really informative.
The seventh chapter dwells exclusively on Security. Usually Ubuntu for the desktop comes with all the ports closed by default which makes it relatively secure. But in these times of cheap high speed Internet access when a home network is connected to the Internet at all times, it is always prudent to run a firewall on ones machine. In this chapter, the authors explain how to setup a robust firewall using iptables and firewallbuilder and then manage it from the Ubuntu desktop. But that is not all, there are tips on configuring SUDO to limit permissions to different users where one gets to know how to do it the command line way. But my favourite tip in this chapter is the one which explains how to encrypt the file system to protect important data. This chapter contains a total of six in-depth hacks all related to enhancing the security of the machine running Ubuntu.
Ubuntu developers have always persevered in providing easy to use front-ends for conducting the most common system administration tasks - be it creating additional user accounts or managing the services running on ones machine. But at times the user is forced to do system administration tasks the command line way. In this chapter titled "Administration", the authors explain for instance how to compile a kernel from source the Ubuntu way and also ways of installing multiple copies of one kernel version on the same machine which could be useful for testing purpose. There are tips for taking backups as well as restoring them. I found the hack titled "Rescuing an unbootable system" really useful. This hack is in fact a collection of tips where common rescue scenarios are elaborated. I found this chapter full of very useful tips as varied as ways of synchronizing files between different machines, mounting a remote filesystem and even a tip on creating videos by capturing what is done on the desktop which could be really useful when shared with others while seeking help on a particular error.
A virtual machine is a simulated computer-inside-another-computer, allowing one to boot an extra operating system inside the primary environment. The next chapter titled "Virtualization and Emulation" explains the different virtualization and emulation technologies available which allow one to run windows/Dos applications and games in Ubuntu, running Ubuntu inside Windows and so on. Here the authors gives in-depth step-by-step walkthroughs in configuring and running virtualization and emulation technologies such as Xen, VMWare server and Wine which imparts a lot of importance to this chapter.
The final chapter of this excellent book which is also the 10th chapter deals with setting up a small home/office server. Here one gets to know how to install and configure a Ubuntu server from scratch. All the topics like setting up quotas to control disk space usage among users, setting up an SSH server, configuring Apache web server, building an email server, DHCP server, DNS server and so on which are a part and parcel of an office server setup have been given due importance in this chapter.
All the ten chapters combined, there are a total of 100 tips (Oops! hacks) in this unique book which are based on the latest version of Ubuntu - Dapper Drake. What is worth noting is that one is not expected to read the book from cover-to-cover rather, you can flip to the hack you are interested in and carry on from there which makes this book a very good reference for setting up and configuring all things related to Ubuntu. At this point, one might have questions in ones mind whether many of the solutions listed in this book aren't already available on the net in popular Linux/Ubuntu forums. True, with some searching one might be able to get what one is looking for. But if you ask me, it is always nice to have something tangible in ones hands while reading instead of having to stare at the monitor for hours on end. More over, each and every tip in this book has been tested by the authors on the latest version of Ubuntu (Dapper Drake) and is guaranteed to work. In writing this book, it is clear that the authors have put in a lot of hard work in covering all facets of configuring this popular Linux distribution which makes this book a worth while buy.
You can purchase Ubuntu Hacks - Tips and Tools for Exploring, Using and Tuning Linux from bn.com. Slashdot welcomes readers' book reviews -- to see your own review here, read the book review guidelines, then visit the submission page.
The book is divided into 10 chapters each containing a collection of hacks on a particular topic.
In the first chapter titled - Getting Started, the authors explains how to install Ubuntu on a Mac and Windows PC, moving data like mail from windows Outlook express to Ubuntu, setting up a printer and more. This chapter contains a total of 14 hacks. And my favorite hack is the one where the authors explains how to create a customized version of Ubuntu Live CD containing ones favourite applications.
The second chapter dwells on the topics related to customizing the Ubuntu desktop. Here the authors give tips to install Java, customize Ubuntu desktop, install additional window managers, synchronizing ones PDA and Pocket PC, just to name a few. This chapter contains around 27 tips. My favourite one here would be how to create PDF files by using the print command from any application in Ubuntu.
Ubuntu like other main stream GNU/Linux distributions is encumbered by the patent restrictions related to various popular multimedia file formats. The net result is one cannot play multimedia files like mp3, wmv or quick time in a default Ubuntu installation. In the chapter titled "Multimedia", one gets to know how to enable audio and video applications bundled with Ubuntu to play these restricted media files.Topics like CD ripping, playing encrypted DVDs and playing any media formats using the all time popular mplayer are also explained in simple detail. But the one hack which takes the prize is that which explains how to buy songs at the iTunes music store and download the music on Linux.
Laptop users have some advantages as well as disadvantages over people using the desktop. And considering that the number of laptop users are ever increasing, there is a need to explain how to configure and take care of ones laptop running Ubuntu - like prolonging the battery life, configuring the wireless card on the laptop, hibernating, setting up bluetooth connection and so on. The 4th chapter contains around 8 detailed tips which deals with these interesting topics related to a laptop. I really liked the tip explaining how to make ones laptop settings roam with ones network which could be quite useful for people who are always on the move.
Chapter five of this well structured book deals exclusively with configuring and fine tuning X11 - the X Windows System. Here one gets to know how to configure ones mouse the old fashioned way by editing the requisite section in the X configuration file.As an example, the authors elaborate on a special case of configuring a seven button mouse with a tilted scroll wheel to work properly in Ubuntu. This chapter additionally contain a slew of tips to configure different difficult to configure hardware like the touch pad, setting up dual head displays, installing and configuring Nvidia, ATI and Matrox proprietary graphics drivers to work in Ubuntu and more.
The next chapter titled "Package Management" has a collection of tips in managing packages. Over and above explaining how to install, remove and update packages using apt-get, synaptic and Adept, this chapter also contain tips on creating ones own Ubuntu package from source, cache packages locally from source and more. I especially found the hack where the authors explain how to create ones own Ubuntu package repository really informative.
The seventh chapter dwells exclusively on Security. Usually Ubuntu for the desktop comes with all the ports closed by default which makes it relatively secure. But in these times of cheap high speed Internet access when a home network is connected to the Internet at all times, it is always prudent to run a firewall on ones machine. In this chapter, the authors explain how to setup a robust firewall using iptables and firewallbuilder and then manage it from the Ubuntu desktop. But that is not all, there are tips on configuring SUDO to limit permissions to different users where one gets to know how to do it the command line way. But my favourite tip in this chapter is the one which explains how to encrypt the file system to protect important data. This chapter contains a total of six in-depth hacks all related to enhancing the security of the machine running Ubuntu.
Ubuntu developers have always persevered in providing easy to use front-ends for conducting the most common system administration tasks - be it creating additional user accounts or managing the services running on ones machine. But at times the user is forced to do system administration tasks the command line way. In this chapter titled "Administration", the authors explain for instance how to compile a kernel from source the Ubuntu way and also ways of installing multiple copies of one kernel version on the same machine which could be useful for testing purpose. There are tips for taking backups as well as restoring them. I found the hack titled "Rescuing an unbootable system" really useful. This hack is in fact a collection of tips where common rescue scenarios are elaborated. I found this chapter full of very useful tips as varied as ways of synchronizing files between different machines, mounting a remote filesystem and even a tip on creating videos by capturing what is done on the desktop which could be really useful when shared with others while seeking help on a particular error.
A virtual machine is a simulated computer-inside-another-computer, allowing one to boot an extra operating system inside the primary environment. The next chapter titled "Virtualization and Emulation" explains the different virtualization and emulation technologies available which allow one to run windows/Dos applications and games in Ubuntu, running Ubuntu inside Windows and so on. Here the authors gives in-depth step-by-step walkthroughs in configuring and running virtualization and emulation technologies such as Xen, VMWare server and Wine which imparts a lot of importance to this chapter.
The final chapter of this excellent book which is also the 10th chapter deals with setting up a small home/office server. Here one gets to know how to install and configure a Ubuntu server from scratch. All the topics like setting up quotas to control disk space usage among users, setting up an SSH server, configuring Apache web server, building an email server, DHCP server, DNS server and so on which are a part and parcel of an office server setup have been given due importance in this chapter.
All the ten chapters combined, there are a total of 100 tips (Oops! hacks) in this unique book which are based on the latest version of Ubuntu - Dapper Drake. What is worth noting is that one is not expected to read the book from cover-to-cover rather, you can flip to the hack you are interested in and carry on from there which makes this book a very good reference for setting up and configuring all things related to Ubuntu. At this point, one might have questions in ones mind whether many of the solutions listed in this book aren't already available on the net in popular Linux/Ubuntu forums. True, with some searching one might be able to get what one is looking for. But if you ask me, it is always nice to have something tangible in ones hands while reading instead of having to stare at the monitor for hours on end. More over, each and every tip in this book has been tested by the authors on the latest version of Ubuntu (Dapper Drake) and is guaranteed to work. In writing this book, it is clear that the authors have put in a lot of hard work in covering all facets of configuring this popular Linux distribution which makes this book a worth while buy.
You can purchase Ubuntu Hacks - Tips and Tools for Exploring, Using and Tuning Linux from bn.com. Slashdot welcomes readers' book reviews -- to see your own review here, read the book review guidelines, then visit the submission page.
I totally agree with the author in that I like having a real book in my hands when I'm working on something new, difficult, etc. I don't think the value of a book can ever be underestimated.
Slashdot's linking to B & N, supposedly because they get nice kickbacks, shows a disgusting disregard for us readers, considering that Amazon has it cheaper.
n/t
I don't need no instructions to know how to rock!!!!
... tells a user how to post information on slashdot pertaining to the book itself. An advertisement hack, which is very similar to the wonderful people who write books on, "How to write a book and make a million dollars from it," collections.
"Snatching defeat from the mouth of victory on a daily basis."
tips and tricks which the authors choose to call hacks, which explain how to accomplish various tasks in Ubuntu Linux
... but sadly this statement sums up it's flaw ... in order to do oridinary tasks, you must know "hacks". Non-techy users just can't understand, let alone perform such "hacks".
I love linux
When one speaks such as this, one can't help but sound a little bit on the hoidy-toidy side. One does hope one doesn't speak like one did in one's review. One would be terribly bored with one speaking such as one did. ;P
Seriously though, who writes like that anymore? I think I would have been a bit more interested in this review if there weren't so much "one this" and "one that". IANAEM (english major) but I don't think it's entirely appropriate to use "one" in a case such as this.
in girum imus nocte et consumimur igni
"Trolls they were, but filled with the evil will of their master: a fell race..." -- J.R.R. Tolkien on Olog-hai
shouldn't most distro hacks be more applicable to any distro, or has linux become too fragmented? every distro has different ways to handle packages, and ubuntu's (synaptic) is a good front end to apt-get. I really like it far better than the rpm methods. however, most "hacks", such as installing LAMP, tuning perforamnce, file sharing, etc., should be mostly the same for all linux distros. I liked the Knoppix hacks from a while ago which was cool in that you could do things like build your own specialty live CD. Things like that are truly hacks. Configuring X or getting DVD's to play in ubuntu are hardly hacks. Ubunut is a great distro and I use it now instead of Fedora or Mandr*.
My problem? I was perfectly gruntled, until some numbnuts came by and dissed me.
I'm interested in how to buy music and play music from iTunes Music Store(ITMS) from within Linux. Is this for real or is this iTunes on Wine and a lot of pain?
I'm interested in the video recording as well. Is this desktop video application or is this Flash via VNC?
My interest is piqued but, not enough to spend $30 to find out that it's just Windows apps running on Wine. Can anyone elaborate?
Shouldn't it be "100-things-to-do" dept since it has 100 "hacks"? Just an observation...
--Valthan
Odd. This is the first story on Ubuntu I've seen without the Debian icon.
Ubuntu Hacks - Tips and Tools for Exploring, Using and Tuning Linux
This reminds me of another nice book I purchased recently:
A Dozen Hacks - Tips and Tools for Exploring, Using and Tuning Your Mom.
I found it very useful last night. Although I'm not sure these were really hacks so much as just interesting ways of doing things with your mom.
Take Debian, hack it, yield Ubuntu.
-- Brought to you by Carl's JR
These sound like basic HOWTOs to me, instead of hacks. And if you need Ubuntu HOWTOs, look no further than www.ubuntuforums.org.
...this is a book summary, not a book review.
/., but it most certainly is not a book review. It's a reasonably helpful summary of contents.
I'm not saying it isn't useful, nor that it doesn't have a place on
Tom Caudron
http://tom.digitalelite.com/
-Tom
Your little dig proves nothing, except that even the Devil can quote Scripture.
I read the review, checked out the book web site, and looked at the Amazon.com site - nowhere, that I saw, did it mention the version of Ubuntu that it covers.
One would hope, but unfortunately, must assume (and you know what that means) that it is for the 6.06 version that was recently released.
At any rate; I'm very pleased to see that the book is well accepted. Thanks again for the good review. I'd like to add that we're going to continue to update things at the http://www.ubuntuhacks.com/ blog - there's no real content there at the moment, but as we think of new things or there are new developments in the Ubuntu world we'll keep that site up to date.
- Bill
Actually, what you mean to say is that Ubuntu is not encumbered by the patent restrictions on certain multimedia formats, because it does not include support for those formats.
Breakfast served all day!
I really like Ubuntu, but since I upgraded to Dapper from Breezy, things that used to work flawlessly are now either a pain to get working or still impossible.
three useful hacks off the top of my head: USB scanning - broken in Dapper. Haven' t found a way to fix it yet. USB printing - broken in Dapper, but found an answer in the Ubuntu forums. Touchpad driver - broken in Dapper. Haven't found a way to enable sidebar scrolling.
Any hacks mentioned to get these simple things working again?
All these things worked out of the box with Breezy.
omg h8x!
*reports to a GM*
I considered not posting this, but hey, my karma can't get any worse, right?
It's never just a game when you're winning. - George Carlin
With MS-Windows you don't need to know any hacks. There are books about MS-Windows but they aren't about hacks.
BTW, doesn't your browser do spell checking? The one I use, in a standard Ubuntu installation without any hacks, shows your "oridinary" in red, it's easy to find typos that way.
Though the same author wrote a book on Ninnle Linux (site may be down), which was excellent. I have no reason to doubt that his latest work on Ubuntu is of similar quality.
I followed the instructions above on my Toshiba Satellite that's running Ubuntu Dapper Drake and noticed a few things...
1. Those listings for figures don't display images in the Safari Online version of the book.
2. There is no "Sleep" tab on the power management tool.
3. There is no "Options" tab on the power management tool.
4. There is no "Advanced" tab on the power management tool.
Okay so those are minor quibbles, right? How about:
5. There are no instructions at all b
On the Ubuntu wiki's RestrictedFormats page there is information pertaining to getting stuff from iTMS: here
The Shoes of the Fisherman's Wife Are Some Jive Ass Slippers
I prefer the classic old books on Unix. It should have a chapter on setting up your environment (i.e. .cshrc) and should cover all the important dotfiles. It should have a chapter on ed/ex/vi, preferrably one that starts with the ed commands and branches forward. It needs to have a roff chapter, since that was the first really useful application on Unix. Shell scripting is another must, and should start with /bin/sh and only after that is covered branch into any of the arcana of newer scripting.
When I first started involving myself with the freenixes, there wasn't anything else out there in printed documentation but ye olde Unix books and a few things newer things from O'Reilly (the _UNIX Power Tools_ book is excellent and will remain very very relevant for a long time, if we can fight off the GUI mess people seem to think that other people want). My favorite UNIX book is still one published by Osborne back in, I think, about 1983. It fulfills all the requirements I listed in the above paragraph.
Any book with screenshots in it is disallowed from consideration. If there MUST be illustrations, and there are cases where they are helpful, they should look like nothing more than what one can come up with using Xfig.
I've used Linux for about 10 years now, and recently helped move RH into an investment bank. But I stay away from it on the workstation these days, and this review is a good example of why...
And considering that the number of laptop users are ever increasing, there is a need to explain how to configure and take care of ones laptop running Ubuntu - like prolonging the battery life, configuring the wireless card on the laptop, hibernating, setting up bluetooth connection and so on
A need? Only if something, somewhere is broken. The only thing I need to know to run my powerbook is that occasionally I need to charge the battery. Configure the wireless card? No, it just works. Setup bluetooth? No, it just works. Hibernating? Dunno about that, but if I just close the lid the laptop goes to sleep.
...and you won't break the glass on your next one
Soo... which one of you is wearing the robe and wizard hat?
...just doesn't work out of the box with WPA wireless authentication. You have to go through a tremendous pain in the ass process to get it where you can use WPA/WPA2 and not just WEP.
Tis a shame. I loaded a different flavor onto my laptop because of it. And Unbuntu looked pretty nice. Ah well.
And you guys complain about MS...