<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	>

<channel>
	<title>Ubuntu Kung Fu</title>
	<atom:link href="http://www.ubuntukungfu.org/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ubuntukungfu.org/blog</link>
	<description>Tips, tricks, hints, and hacks</description>
	<pubDate>Fri, 21 Nov 2008 18:14:44 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Coming soon: Ubuntu Pocket Guide and Reference</title>
		<link>http://www.ubuntukungfu.org/blog/2008/11/coming-soon-ubuntu-pocket-guide-and-reference/</link>
		<comments>http://www.ubuntukungfu.org/blog/2008/11/coming-soon-ubuntu-pocket-guide-and-reference/#comments</comments>
		<pubDate>Fri, 21 Nov 2008 18:11:44 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.ubuntukungfu.org/blog/?p=348</guid>
		<description><![CDATA[I&#8217;m pleased to announce that my new book&#8212;Ubuntu Pocket Guide and Reference&#8212;is almost finished! 
The book is a concise yet comprehensive guide to day-to-day Ubuntu use. It conveys core competencies quickly, without the need to wade through thick manuals, and provides a lasting reference for all stages of your Ubuntu journey. 
It will be available from 14 [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.ubuntukungfu.org/blog/wp-content/uploads/2008/11/cover-for-blog2.jpg"><img class="right size-full wp-image-350" title="cover-for-blog2" src="http://www.ubuntukungfu.org/blog/wp-content/uploads/2008/11/cover-for-blog2.jpg" alt="" width="250" height="381" /></a>I&#8217;m pleased to announce that my new book&#8212;<em>Ubuntu Pocket Guide and Reference</em>&#8212;is almost finished! </p>
<p>The book is a concise yet comprehensive guide to day-to-day Ubuntu use. It conveys core competencies quickly, without the need to wade through thick manuals, and provides a lasting reference for all stages of your Ubuntu journey. </p>
<p>It will be available from 14 January 2009 in two separate editions. The Print Edition will retail exclusively through Amazon.com for a recession-busting $9.95. The PDF Edition will be available to download entirely free of charge. Yes, you read that right! The full thing will be available for $0.00! No catches!</p>
<p>More details will be released closer to the launch date, so watch this space. You might also want to keep an eye on the book&#8217;s official website: <a href="http://www.ubuntupocketguide.com" target="_blank">www.ubuntupocketguide.com</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ubuntukungfu.org/blog/2008/11/coming-soon-ubuntu-pocket-guide-and-reference/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Ubuntu Kung Fu reviewed on Ubuntu UK Podcast</title>
		<link>http://www.ubuntukungfu.org/blog/2008/11/ubuntu-kung-fu-reviewed-on-ubuntu-uk-podcast/</link>
		<comments>http://www.ubuntukungfu.org/blog/2008/11/ubuntu-kung-fu-reviewed-on-ubuntu-uk-podcast/#comments</comments>
		<pubDate>Wed, 19 Nov 2008 10:07:37 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.ubuntukungfu.org/blog/?p=342</guid>
		<description><![CDATA[Ubuntu Kung Fu has been reviewed on this week&#8217;s Ubuntu UK Podcast. I must admit this is the first time I&#8217;ve listened to the show but I&#8217;ll definitely be listening again. If you&#8217;re a fan of sardonic British humor, and also Ubuntu, then you&#8217;ll really enjoy it. 
To listen to the show you can subscribe using RhythmBox [...]]]></description>
			<content:encoded><![CDATA[<p><em><a href="http://www.ubuntukungfu.org/blog/wp-content/uploads/2008/11/podcast.gif"><img class="right frame size-full wp-image-343" title="podcast" src="http://www.ubuntukungfu.org/blog/wp-content/uploads/2008/11/podcast.gif" alt="" width="262" height="229" /></a><a href="http://www.pragprog.com/titles/ktuk/ubuntu-kung-fu" target="_blank">Ubuntu Kung Fu</a></em> has been reviewed on this week&#8217;s <a href="http://podcast.ubuntu-uk.org/2008/11/18/s01e18-slowly-but-surely-mp3-low/" target="_blank">Ubuntu UK Podcast</a>. I must admit this is the first time I&#8217;ve listened to the show but I&#8217;ll definitely be listening again. If you&#8217;re a fan of sardonic British humor, and also Ubuntu, then you&#8217;ll really enjoy it. </p>
<p>To listen to the show you can subscribe using RhythmBox (or iTunes if you&#8217;re running Windows or Mac OS X) by clicking the link on the left. Alternatively, <a href="http://podcast.ubuntu-uk.org/download/uupc_s01e18_low.mp3" target="_blank">click here</a> for a link directly to the MP3 file for the show (circa 11MB).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ubuntukungfu.org/blog/2008/11/ubuntu-kung-fu-reviewed-on-ubuntu-uk-podcast/feed/</wfw:commentRss>
<enclosure url="http://uk-lo-6.static.podcast.ubuntu-uk.org/uupc/s01/e18/uupc_s01e18_low.mp3" length="12256513" type="audio/mpeg" />
<enclosure url="http://podcast.ubuntu-uk.org/download/uupc_s01e18_low.mp3" length="12256513" type="audio/mpeg" />
		</item>
		<item>
		<title>Make (Almost) Any Wifi Card Work with Ubuntu</title>
		<link>http://www.ubuntukungfu.org/blog/2008/11/make-almost-any-wifi-card-work-with-ubuntu/</link>
		<comments>http://www.ubuntukungfu.org/blog/2008/11/make-almost-any-wifi-card-work-with-ubuntu/#comments</comments>
		<pubDate>Thu, 13 Nov 2008 11:05:48 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.ubuntukungfu.org/blog/?p=333</guid>
		<description><![CDATA[(The following is an extract from my best-selling book Ubuntu Kung Fu, which contains over 300 tips, tricks, hints, and hacks for Ubuntu).
Ubuntu&#8217;s wifi support has gotten steadily better over the years, and with Ubuntu 8.04 (Hardy Heron) it&#8217;s safe to say that the majority of wifi devices will work fine. However, if you find [...]]]></description>
			<content:encoded><![CDATA[<p><em>(The following is an extract from my best-selling book <a href="http://www.pragprog.com/titles/ktuk/ubuntu-kung-fu" target="_blank">Ubuntu Kung Fu</a>, which contains over 300 tips, tricks, hints, and hacks for Ubuntu).</em></p>
<p>Ubuntu&#8217;s wifi support has gotten steadily better over the years, and with Ubuntu 8.04 (Hardy Heron) it&#8217;s safe to say that the majority of wifi devices will work fine. However, if you find that yours doesn&#8217;t (you&#8217;ll know because it will be like no wifi hardware is installed), help is at hand in the form of Ndiswrapper.</p>
<p><span id="more-333"></span></p>
<p>This lets you use Windows XP wifi drivers under Ubuntu. As you can imagine, it&#8217;s something of a hack and doesn&#8217;t always work, although in most cases the results are very good.</p>
<p>The following steps walk you through what&#8217;s needed to get XP wifi drivers working under Ubuntu. The guide is split into three sections: identifying your wifi card make and model, sourcing the Windows driver and extracting the driver file components, and finally installing the Windows XP driver files.</p>
<p style="padding-left: 30px;"><strong>NOTE</strong>: If you&#8217;re using Ubuntu 8.10, first try installing the linux-backports-modules-intrepid package via Synaptic. </p>
<h3>Identifying the Wifi Card Hardware</h3>
<p>To source the correct driver for your wifi hardware, it&#8217;s necessary to find out its make and model. However, you <em>don&#8217;t</em> need the make and model listed on the box or in the specification list. You must find out what company actually manufactured the hardware, which will probably be different from the company that sold it (particularly with more inexpensive hardware). You must also find out the PCI ID number, which is how operating systems like Ubuntu and Windows refer to the card on a technical level.</p>
<p><img class="left" src="http://www.ubuntukungfu.org/blog/wp-admin/images/numbers/1.gif" alt="" />Open a terminal window, and type the following:</p>
<pre>lspci -vv -nn|less -i</pre>
<p>This will list the hardware on your system connected through the PCI bus (which is practically all of it). The command options specified cause <em>lspci</em> to return more information (<em>-vv</em>) and cause the vital PCI ID numbers to be returned too (<em>-nn</em>).</p>
<p><img class="left" src="http://www.ubuntukungfu.org/blog/wp-admin/images/numbers/2.gif" alt="" />Hit the forward slash (<em>/</em>) to search, and type <em>wireless</em>. Then hit Enter. If you find no result, hit forward slash again, and search for <em>wlan</em>. If you still get no results, try searching for <em>802.11</em>. These are the common terms used to describe wifi hardware. When you get a match, use the up/down cursor keys to scroll so you see the entire entry for that device (each entry is separated from the others in the list by a blank line). Make a note of the make and model name listed on the <em>first</em> line.</p>
<p><img class="left" src="http://www.ubuntukungfu.org/blog/wp-admin/images/numbers/3.gif" alt="" />After this, look at the end of the same line for a pattern of numbers and letters that look like <em>[168c:0013]</em>&#8212;four digits, a colon, and then four more digits (the digits are hexadecimal, if knowing that helps you identify them). Write these down too. For an example taken from my test PC with the relevant parts of the entry in the listing highlighted, see the screenshot below. Be careful not to get the details mixed up with the <em>Subsystem</em> line.</p>
<p><a href="http://www.ubuntukungfu.org/blog/wp-content/uploads/2008/11/ch3wifi.png"><img class="center frame size-medium wp-image-335" title="ch3wifi" src="http://www.ubuntukungfu.org/blog/wp-content/uploads/2008/11/ch3wifi-300x219.png" alt="" width="300" height="219" /></a></p>
<h3>Sourcing the Windows XP Driver</h3>
<p>Finding the Windows XP driver isn&#8217;t too difficult. The easiest way of doing it is to head over the Ndiswrapper website and browse its database of cards, which links to the download sites of drivers known to work. Of course, you&#8217;ll need to do this using a computer that can get online (assuming your Ubuntu computer is currently unable to for lack of wifi drivers), and the easiest way of doing this is simply to boot into your Windows partition.</p>
<p>Once you&#8217;ve found the correct driver file, you must extract the components you need. The following instructions describe how all of this is done:</p>
<p><img class="left" src="http://www.ubuntukungfu.org/blog/wp-admin/images/numbers/1.gif" alt="" />Use a web browser to head over to <a href="http://ndiswrapper.sourceforge.net">http://ndiswrapper.sourceforge.net</a>. Once there, click the <em>Documents/Wiki</em> link on the left, and then click the link that reads <em>List of cards known to work</em>. On the following page, click the entry in the alphabetical list that refers to the first letter of the manufacturer details you discovered earlier.</p>
<p><img class="left" src="http://www.ubuntukungfu.org/blog/wp-admin/images/numbers/2.gif" alt="" />In the listing page that appears, search using the PCI ID number you noted earlier. Note that you shouldn&#8217;t include the square brackets surrounding the numbers and letters. The details from my test PC were <em>[168c:0013]</em>, so I searched for <em>168c:0013</em>.</p>
<p style="padding-left: 30px;"><strong>Note:</strong> <em>At the present time (Nov 08), the Ndiswrapper site database is down. It&#8217;s not clear why this is, or when it will return to service. However, an Ubuntu community member maintains a copy of the database that can be found <a href="http://burnthesorbonne.com/?page_id=32">here</a>.</em></p>
<p><img class="left" src="http://www.ubuntukungfu.org/blog/wp-admin/images/numbers/3.gif" alt="" />It&#8217;s likely more than one entry in the list will match, so you should then check the details listed in the <em>Card:</em> and <em>Chipset:</em> components of the website listing against the manufacturer and model details you wrote down earlier. Try to get the best match possible. Some entries in the Ndiswrapper website list might even refer to the make and model of computer the wifi card is used in. Once you find a match, click the link provided to download the driver. Avoid any drivers marked as <em>x86_64</em> in the list&#8212;these are designed to work on 64-bit versions of Linux (unless you have the 64-bit version of Ubuntu installed, of course, although this is unlikely unless you specifically opted to).</p>
<p><img class="left" src="http://www.ubuntukungfu.org/blog/wp-admin/images/numbers/4.gif" alt="" />Once you have the driver file, you must extract the necessary driver components from it. To be frank, this is easier done using Windows rather than Ubuntu, so if you don&#8217;t already have Windows up and running, copy the driver installation file to your Windows desktop and then boot into Windows. Once Windows has started, download a program called Universal Extractor from <a href="http://legroom.net/software/uniextract ">http://legroom.net/software/uniextract</a>. This is a clever open source program that&#8217;s able to extract files from just about any archive file, including Windows setup executable files (<em>.exe</em>). Once it&#8217;s downloaded and installed, right-click the Windows XP driver file, and select <em>UniExtract to Subdir</em>. This will create a new folder containing the individual driver files.</p>
<p><img class="left" src="http://www.ubuntukungfu.org/blog/wp-admin/images/numbers/5.gif" alt="" />The files you want will probably be in a folder named <em>WinXP</em>, <em>WindowsXP</em>, or similar. If you&#8217;ve ever installed hardware drivers in Windows, this will sound familiar, although the folder might be called <em>ndis5x</em> or similar. In the folder, look for <em>.inf</em> files. If you&#8217;re in luck, there will be only one, and you can skip straight to the last step in this section. If there&#8217;s more than one, then you&#8217;ll need to search through each until you find the correct one.</p>
<p><img class="left" src="http://www.ubuntukungfu.org/blog/wp-admin/images/numbers/6.gif" alt="" />Open the first <em>.inf</em> file in Windows Notepad by double-clicking it. Click Edit &#8212;&gt; Find, and search for the <em>first</em> part of PCI ID you noted earlier. For example, the whole PCI ID number on my test PC was <em>168c:0013</em>, so I searched for <em>168c</em>. If you find no match, close the file, and move onto the next <em>.inf</em> file. If you do find a match, look further along that particular line, and look for the second part of the PCI ID. It will probably be next to the word <em>DEV_</em>. If you find a match, then congratulations! You&#8217;ve found the <em>.inf</em> file you need.</p>
<p><img class="left" src="http://www.ubuntukungfu.org/blog/wp-admin/images/numbers/7.gif" alt="" />Copy the <em>.inf</em> file to a new folder, along with any <em>.sys</em> and <em>.bin</em> files you find in the driver folder (you may not find <em>.bin</em> files). Any other files can be ignored. You now have all you need to install the XP driver under Ubuntu, but don&#8217;t reboot just yet. First you&#8217;ll need to grab some package files from the Ubuntu repositories.</p>
<h3>Installing the XP Driver Files</h3>
<p>As mentioned, installing the XP drivers is easy, but first you&#8217;ll need to download and install the Ndiswrapper configuration software (the actual Ndiswrapper system software is already installed out of the box on Ubuntu). The following steps are all you need to do to install the driver:</p>
<p><img class="left" src="http://www.ubuntukungfu.org/blog/wp-admin/images/numbers/1.gif" alt="" />Type the following addresses in the address bar of your browser. Each will cause a file to be downloaded:</p>
<p><a href="http://us.archive.ubuntu.com/ubuntu/pool/main/n/ndiswrapper/ndiswrapper-utils-1.9_1.50-1ubuntu1_i386.deb"> http://us.archive.ubuntu.com/ubuntu/pool/main/n/ndiswrapper/ndiswrapper-utils-1.9_1.50-1ubuntu1_i386.deb</a></p>
<p><a href="http://us.archive.ubuntu.com/ubuntu/pool/main/n/ndiswrapper/ndiswrapper-common_1.50-1ubuntu1_all.deb"> http://us.archive.ubuntu.com/ubuntu/pool/main/n/ndiswrapper/ndiswrapper-common_1.50-1ubuntu1_all.deb</a></p>
<p><a href="http://us.archive.ubuntu.com/ubuntu/pool/main/n/ndisgtk/ndisgtk_0.8.3-1_i386.deb">http://us.archive.ubuntu.com/ubuntu/pool/main/n/ndisgtk/ndisgtk_0.8.3-1_i386.deb</a></p>
<p><img class="left" src="http://www.ubuntukungfu.org/blog/wp-admin/images/numbers/2.gif" alt="" />Reboot into Ubuntu, and copy the XP driver files to the desktop, plus the three system software packages you downloaded. Open a terminal window, and type the following to install the software:</p>
<pre>sudo dpkg -i ~/Desktop/ndis*.deb</pre>
<p><img class="left" src="http://www.ubuntukungfu.org/blog/wp-admin/images/numbers/3.gif" alt="" />Once installation has finished, click System &#8212;&gt; Administration &#8212;&gt; Wireless Network Drivers. Once the program window opens, click the <em>Install New Driver</em> button.</p>
<p><a href="http://www.ubuntukungfu.org/blog/wp-content/uploads/2008/11/ch3wifi2.png"><img class="center frame size-medium wp-image-336" title="ch3wifi2" src="http://www.ubuntukungfu.org/blog/wp-content/uploads/2008/11/ch3wifi2-300x189.png" alt="" width="300" height="189" /></a></p>
<p><img class="left" src="http://www.ubuntukungfu.org/blog/wp-admin/images/numbers/4.gif" alt="" />A dialog box will appear prompting for the location of the <em>.inf</em> file. Click the <em>Location</em> drop-down list to open a file-browsing window, and navigate to the <em>.inf</em> file. Then click the <em>Install</em> button.</p>
<p><img class="left" src="http://www.ubuntukungfu.org/blog/wp-admin/images/numbers/5.gif" alt="" />In the Wireless Network Drivers program window, you will now see your wireless hardware listed on the left of the window. Beneath it should be listed the words <em>Hardware present: yes</em>, as shown in the screenshot above. If you see <em>Hardware present: no</em>, you have an incompatible driver. Select the hardware in the list, and click <em>Remove Driver</em>. Then repeat the previous steps to download an alternative driver.</p>
<p>After this, your wifi hardware will be immediately available for configuration using NetworkManager at the top right of the desktop. You can close the <em>Wireless Network Drivers</em> window and delete the driver and package files from the desktop.</p>
<p><script type="text/javascript"><!--
google_ad_client = "pub-5731564017850986";
/* 468x60, created 8/18/08 */
google_ad_slot = "4553215197";
google_ad_width = 468;
google_ad_height = 60;
// --></script><br />
<script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript"></script><br />
__________</p>
<p><a href="http://pragprog.com/titles/ktuk/ubuntu-kung-fu"><img class="left frame size-medium wp-image-219" title="ktuk" src="http://www.ubuntukungfu.org/blog/wp-content/uploads/2008/08/ktuk-250x300.jpg" alt="" width="250" height="300" /></a>This tip is taken from <em><a href="http://pragprog.com/titles/ktuk/ubuntu-kung-fu">Ubuntu Kung Fu</a>&#8212;</em>a recently published and best-selling book of over 300 excellent tips for Ubuntu<em>.</em> It&#8217;s available from all good bookstores although the PDF edition of the book is available for <a href="http://pragprog.com/titles/ktuk/ubuntu-kung-fu" target="_blank">a recession-busting $22</a>. The author, Keir Thomas, also wrote<em> </em><em><a href="http://www.apress.com/book/view/1590599918">Beginning Ubuntu Linux</a>, </em>a &#8220;from zero to hero&#8221; guide to Ubuntu 8.04 and beyond, which has recently reached its third edition. Please take a moment to check out both of them, and also take a look at the <a href="http://www.ubuntukungfu.org">rest of the site</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ubuntukungfu.org/blog/2008/11/make-almost-any-wifi-card-work-with-ubuntu/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Review of the latest Ubuntu release</title>
		<link>http://www.ubuntukungfu.org/blog/2008/11/review-of-the-latest-ubuntu-release/</link>
		<comments>http://www.ubuntukungfu.org/blog/2008/11/review-of-the-latest-ubuntu-release/#comments</comments>
		<pubDate>Thu, 13 Nov 2008 09:50:15 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.ubuntukungfu.org/blog/?p=331</guid>
		<description><![CDATA[I&#8217;ve written a review of the latest Ubuntu release for Lifehacker, the excellent tech and productivity blog:
http://lifehacker.com/5072351/a-users-look-at-ubuntu-810-intrepid-ibex
]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve written a review of the latest Ubuntu release for <a href="http://lifehacker.com">Lifehacker</a>, the excellent tech and productivity blog:</p>
<p><a href="http://lifehacker.com/5072351/a-users-look-at-ubuntu-810-intrepid-ibex">http://lifehacker.com/5072351/a-users-look-at-ubuntu-810-intrepid-ibex</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ubuntukungfu.org/blog/2008/11/review-of-the-latest-ubuntu-release/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Nautilus Actions: Do just about anything to a file by right-clicking it</title>
		<link>http://www.ubuntukungfu.org/blog/2008/10/nautilus-actions-do-just-about-anything-to-a-file-by-right-clicking-it/</link>
		<comments>http://www.ubuntukungfu.org/blog/2008/10/nautilus-actions-do-just-about-anything-to-a-file-by-right-clicking-it/#comments</comments>
		<pubDate>Wed, 08 Oct 2008 11:15:58 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.ubuntukungfu.org/blog/?p=321</guid>
		<description><![CDATA[In a default Ubuntu setup, right-clicking a file offers the opportunity to open it with an application or delete it, rename it, and so on. Wouldn&#8217;t it be useful if you could add your own right-click option that performed a specific action on the file? For example, if you right-clicked a Microsoft Word or OpenOffice.org [...]]]></description>
			<content:encoded><![CDATA[<p>In a default Ubuntu setup, right-clicking a file offers the opportunity to open it with an application or delete it, rename it, and so on. Wouldn&#8217;t it be useful if you could add your own right-click option that performed a specific action on the file? For example, if you right-clicked a Microsoft Word or OpenOffice.org document, how about if a <em>Print document</em> option appeared? If you right-click an image, how about if an option appeared to shrink the image or sharpen it?</p>
<p>All of this is possible using the <a href="http://www.grumz.net/?q=taxonomy/term/2/9" target="_blank">Nautilus Actions</a> add-in. As its name suggests, this lets you add options to the right-click menu that perform certain actions on particular types files. It&#8217;s simple to create your own action, but hundreds of ready-made scripts are available and can be imported easily.</p>
<p><span id="more-321"></span></p>
<p>To install Nautilus Actions, use Synaptic to search for and install the aptly-named <em>nautilus-actions</em> package. Once installed, the configuration program can be found on the System &#8212;&gt; Preferences menu.</p>
<h3>Creating a Configuration from Scratch</h3>
<p>Let&#8217;s take as an example adding a <em>Print document</em> option that will appear whenever a word processing document is right-clicked. This takes advantage of the fact that OpenOffice.org Writer can be used from the command line to print any document by using the <em>-p</em> command option, without actually starting the program in editing mode&#8212;for example, <em>oowriter -p filename.doc</em>.</p>
<p>Here are the necessary steps (these steps can, of course, be adapted for any type of file and/or action):</p>
<ol>
<li>Start by running the Nautilus Actions Configuration program, which can be found on the System &#8212;&gt; Preferences menu. When the program window appears, click the <em>Add</em> button.</li>
<li>In the <em>Label</em> field of the dialog box that appears, type <em>Print document</em>. This is the text that will actually appear on the right-click menu and can be anything you want. You can add some text to the <em>Tooltip</em> menu too&#8212;this will appear if the mouse is hovered over the menu option. However, it isn&#8217;t essential. You can also select a suitable icon from the <em>Icon</em> drop-down list. This will appear alongside the new entry on the menu, but, again, it isn&#8217;t essential.</li>
<li>In the <em>Path</em> field, type <em>/usr/bin/oowriter</em>. Most programs you use every day can be found in <em>/usr/bin</em>, and it&#8217;s necessary to provide the path to the program along with its command-line filename. If you are in any doubt as to where an application &#8216;lives&#8217;, open a terminal window, and type <em>whereis command</em>, replacing <em>command</em> with the name of the command in question.</li>
<li>In the <em>Parameters</em> text field, specify any command options that are needed, along with the filename and path. For our particular example, we need to type <em>-p</em> and then <em>%d/%f</em>, so the line reads <em>-p %d/%f</em>. <em>%d</em> and <em>%f</em> are Nautilus Actions shorthand&#8212;<em>%d</em> refers to the path of the file that has been right-clicked, and <em>%f</em> refers to the filename itself. The slash in the middle separates the two, just like at the command line. As you type, an example of the command that will be executed appears at the bottom of the dialog box. This is effectively what you would type at the command line to run the same command, so you can check to ensure it makes sense.</li>
<li>Click the <em>Conditions</em> tab. Here we can ensure that the new <em>Print document</em> option appears only whenever we right-click word processing document files, and not any others. We do this by specifying file extensions in the <em>Filenames</em> text field&#8212;several extensions can be entered, but they must be separated by a semicolon (;). Most word processing documents you&#8217;re likely to encounter will be <em>.doc</em>, <em>.sxw</em>, <em>.rtf</em>, or <em>.odt</em> files. If you know you will encounter others&#8212;for example, WordPerfect documents (which use the <em>.wpd</em> file extension)&#8212;then add the relevant file extension. Precede each file extension by a wildcard (an asterisk). For an example, see the screenshot below. Once done, click <em>OK</em>. Click the <em>Close</em> button on the main Nautilus Actions configuration window.</li>
<li>After this, you can test your new action by right-clicking a word processing document and selecting the new option&#8212;it will appear about two thirds of the way down the menu. Also try right-clicking other files that aren&#8217;t word processing files, and note how the option doesn&#8217;t appear. If the menu option doesn&#8217;t appear when it should, try logging out and then back in again.</li>
</ol>
<div><a href="http://www.ubuntukungfu.org/blog/wp-content/uploads/2008/10/ch3nautilusactions.gif"><img class="frame center size-medium wp-image-322" title="ch3nautilusactions" src="http://www.ubuntukungfu.org/blog/wp-content/uploads/2008/10/ch3nautilusactions-300x293.gif" alt="" width="300" height="293" /></a></div>
<p><strong>Importing Configurations Made by Others</strong></p>
<p>By visiting <a href="http://www.grumz.net/index.php?q=configlist" target="_blank">http://www.grumz.net/index.php?q=configlist</a>, you can download Nautilus Actions <em>schemas</em> (effectively configuration files) for just about any task you might want to do to any kind of file. To download a schemas file, click the header in the list, and then click the schemas link to download.</p>
<p>Be sure to read the schemas description to see whether any particular software is needed. For example, schemas that manipulate images will almost certainly need the ImageMagick software installed, so use Synaptic to search for it. Schemas that manipulate video files will probably need the <em>ffmpeg</em> software installed. Bear in mind that the notes alongside each schema are probably not written specifically for Ubuntu users, so don&#8217;t name specific packages you will need. You might well have to use common sense when searching through Synaptic&#8217;s package archive.</p>
<p>Once the schemas have downloaded, open Nautilus Actions Configuration (System &#8212;&gt; Preferences menu), and click the <em>Import/Export</em> button. Then click the button to the right of the <em>File to Import</em> text field, and browse to the schemas file. Click the <em>OK</em> button, then the <em>Close</em> button in the Nautilus Actions parent window. The new menu option will appear immediately, although you might have to log in and out again to see the icon (if applicable) appear alongside its entry in the list.<br />
<script type="text/javascript"><!--
google_ad_client = "pub-5731564017850986";
/* 468x60, created 8/18/08 */
google_ad_slot = "4553215197";
google_ad_width = 468;
google_ad_height = 60;
// --></script><br />
<script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript"></script><br />
__________</p>
<p><a href="http://pragprog.com/titles/ktuk/ubuntu-kung-fu"><img class="left frame size-medium wp-image-219" title="ktuk" src="http://www.ubuntukungfu.org/blog/wp-content/uploads/2008/08/ktuk-250x300.jpg" alt="" width="250" height="300" /></a>This tip is taken from <em><a href="http://pragprog.com/titles/ktuk/ubuntu-kung-fu">Ubuntu Kung Fu</a>&#8212;</em>a recently published and best-selling book of over 300 excellent tips for Ubuntu<em>.</em> It&#8217;s available from all good bookstores although the PDF edition of the book is available for <a href="http://pragprog.com/titles/ktuk/ubuntu-kung-fu" target="_blank">a recession-busting $22</a>. The author, Keir Thomas, also wrote<em> </em><em><a href="http://www.apress.com/book/view/1590599918">Beginning Ubuntu Linux</a>, </em>a &#8220;from zero to hero&#8221; guide to Ubuntu 8.04 and beyond, which has recently reached its third edition. Please take a moment to check out both of them, and also take a look at the <a href="http://www.ubuntukungfu.org">rest of the site</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ubuntukungfu.org/blog/2008/10/nautilus-actions-do-just-about-anything-to-a-file-by-right-clicking-it/feed/</wfw:commentRss>
		</item>
		<item>
		<title>9 tips for Ubuntu notebook users</title>
		<link>http://www.ubuntukungfu.org/blog/2008/09/9-tips-for-ubuntu-notebook-users/</link>
		<comments>http://www.ubuntukungfu.org/blog/2008/09/9-tips-for-ubuntu-notebook-users/#comments</comments>
		<pubDate>Thu, 25 Sep 2008 11:26:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.ubuntukungfu.org/blog/?p=295</guid>
		<description><![CDATA[Here are some tips for Ubuntu users who use notebook computers, including how to sync files effortlessly between a laptop and desktop, how to switch CPU speeds on the fly from the desktop, how to power-save your hard disk, and more. Only one or two are specific to notebooks so desktop users may find them interesting [...]]]></description>
			<content:encoded><![CDATA[<p>Here are some tips for Ubuntu users who use notebook computers, including how to sync files effortlessly between a laptop and desktop, how to switch CPU speeds on the fly from the desktop, how to power-save your hard disk, and more. Only one or two are specific to notebooks so desktop users may find them interesting too. <span id="more-295"></span></p>
<p>All are taken from my brand new book <em><a href="http://www.pragprog.com/titles/ktuk/ubuntu-kung-fu" target="_blank">Ubuntu Kung Fu</a></em>, which contains over 300 other fun and useful tips for Ubuntu. The book has been referred to as &#8220;a fantastic compendium of useful, uncommon Ubuntu knowledge&#8221; by Ubuntu expert Eric Hewitt. Ubuntu Kung Fu is available from all good bookstores or you can buy the PDF version for just $22 by clicking <a href="http://www.pragprog.com/titles/ktuk/ubuntu-kung-fu" target="_blank">here</a>. </p>
<h2>1. Slow Down a Touchpad&#8217;s Scrolling</h2>
<p>If you have a notebook computer, you might be used to <em>edge scroll</em> on the touchpad when running Windows. This is where the right edge of the notebook&#8217;s touchpad is used as a virtual scrollbar&#8212;by running a finger up and down, the currently active window scrolls up and down correspondingly.</p>
<p>You might already have realized that you can activate the edge scroll functionality in Ubuntu using the <em>Touchpad</em> tab of System &#8212;&gt; Preferences &#8212;&gt; Mouse. The problem I had was that the scrolling was just too fast. A light touch on the pad caused the web page or file listing to fly up or down the screen. The solution was to add a line to the <em>xorg.conf</em> configuration file, as follows:</p>
<p>Open the Xorg configuration file into Gedit:</p>
<pre>gksu gedit /etc/X11/xorg.conf</pre>
<p>Look for the two lines that read as follows:</p>
<pre>Section "InputDevice"
Driver   "synaptics"</pre>
<p>Then,  beneath all the lines that begin <em>Option</em>, add a new line as follows:</p>
<pre>Option "VertScrollDelta" "50"</pre>
<p>You can align the words with the other entries in the list if you want, although this doesn&#8217;t matter.</p>
<p><a href="http://www.ubuntukungfu.org/blog/wp-content/uploads/2008/09/ch3synapticedit.gif"><img class="center frame size-medium size-medium wp-image-296" title="ch3synapticedit" src="http://www.ubuntukungfu.org/blog/wp-content/uploads/2008/09/ch3synapticedit-300x236.gif" alt="" width="300" height="236" /></a></p>
<p>Save the file, close any open programs, and then hit Ctrl+Alt+Backspace to restart the X server. Log in again as usual, and the changes should be instantly visible.</p>
<p>If the scrolling is now too slow, try changing the value of <em>&#8220;VertScrollData&#8221;</em> to <em>25</em> or perhaps even less&#8212;the lower the value, the more sensitive the edge scroll becomes.</p>
<p>To make Firefox scroll fewer lines as you drag and scroll, start Firefox, and type <em>about:config</em> into the URL bar. Agree to carry on despite the warning about voiding a possibly warranty. Then, in the search bar, type <em>mousewheel.withnokey.sysnumlines</em>. In the list of results, double-click the entry so that it reads <em>false</em> and turns bold. Now try the new scroll speed by opening a new tab and browsing to a website.</p>
<p>To speed up the scroll slightly, type <em>mousewheel.withnokey.numlines</em>, and change the value to anything greater than <em>1</em>. For the ultimate in scrolling, click Edit &#8212;&gt; Preferences in Firefox, click the <em>Advanced</em> icon, and put a check in <em>Use smooth scrolling</em>.</p>
<h2>2. Set the CPU Speed from the Desktop</h2>
<p>With some types of CPU, it&#8217;s possible to manually alter the clock speed while the system is running. This can be useful with a notebook computer, for example, where you might choose to throttle down the CPU speed when on battery power to save juice or to minimize heat generation when the computer is resting on your lap.</p>
<p>The CPU Frequency Scaling Monitor applet takes care of this function, but before it can be used, some additional configuration is necessary.</p>
<p>Open a terminal window, and type the following:</p>
<pre>sudo dpkg-reconfigure gnome-applets</pre>
<p>You&#8217;ll see a warning about how enabling the <em>cpufreq-selector</em> program could be a security risk if it is given root powers. This is true, but, as always, usability must be balanced against security. The chances of a hacker exploiting this are very slim. Hit Enter; then, on the next screen, use the cursor keys to highlight <em>Yes</em>, and hit Enter again.</p>
<p><a href="http://www.ubuntukungfu.org/blog/wp-content/uploads/2008/09/picture-2.gif"><img class="center frame size-medium size-medium wp-image-297" title="picture-2" src="http://www.ubuntukungfu.org/blog/wp-content/uploads/2008/09/picture-2-300x208.gif" alt="" width="300" height="208" /></a></p>
<p>After this, right-click a blank spot on the top panel, click <em>Add to panel</em>, and then select <em>CPU Frequency Scaling Applet</em> from the list. A new applet will be added, showing the current speed of the CPU. By clicking it, you&#8217;ll be able to set either the speed you want the CPU to run at or the power-saving mode it should use (these modes vary in name and nature from chip to chip, but what they offer should be obvious from their names).</p>
<p>If your CPU has more than one core, such as Intel&#8217;s CoreDuo series, each core must be configured separately. For example, a dual-core chip will need two CPU Frequency Scaling Monitor applets. Just right-click the panel as explained to add another. To alter which particular core each applet controls, right-click an applet, select <em>Preferences</em>, and choose the CPU core under the <em>Monitored CPU</em> heading.</p>
<p>Note that each core can run at a different speed compared to the other core and be switched to a different power-saving mode.</p>
<h2>3. Closely Monitor the Power Consumption of a Laptop</h2>
<p>Run <em>gnome-power-statistics</em> from a terminal window, and you’ll see a graph of the exact power usage of your computer over the time since it booted up (provided your computer’s hardware supports it). Try boosting the brightness of your screen or loading programs, and see how much of a drain they can be!</p>
<p><a href="http://www.ubuntukungfu.org/blog/wp-content/uploads/2008/09/powersave.gif"><img class="center frame size-medium size-medium wp-image-298" title="powersave" src="http://www.ubuntukungfu.org/blog/wp-content/uploads/2008/09/powersave-300x209.gif" alt="" width="300" height="209" /></a></p>
<h2>4. Set Hard Disk Power-Saving</h2>
<p>Ubuntu has a powerful raft of power management features, accessible through System &#8212;&gt; Preferences &#8212;&gt; Power Management, but you might notice one missing if you’re used to Windows or OS X: hard disk spin downtime. This is where the hard disk powers down after a period of inactivity. When data is requested after this, it spins up again, although there is sometimes a momentary pause while this happens.</p>
<p>It&#8217;s possible to set your hard disk to spin down under Ubuntu in order to save power and/or wear and tear (particularly on a computer left on most of the time), but you’ll need to edit a configuration file. Follow these steps:</p>
<p>The configuration file containing the settings is <em>hdparm.conf</em>, so open it in Gedit by typing the following into a terminal window: <em>gksu gedit /etc/hdparm.conf</em>.</p>
<p>Look for the line that reads <em>#spindown_time = 24</em>, and remove the hash from the beginning of the line so it reads simply <em>spindown_time = 24</em>.</p>
<p>Alter the <em>spindown_time</em> time to any value you want. Each number is five seconds, so the default setting of <em>24</em> equates to 120 seconds (24 x 5 = 120 seconds). However, a value greater than 240 changes things&#8212;beyond 240, each unit equals 30 minutes. So, a value of <em>241</em> will spin down the disk after 30 minutes, a value of <em>242</em> will spin down the disk after 60 minutes, and so on. Setting the line to read <em>spindown_time = 241</em> is a good choice, because the disk will spin down after 30 minutes of inactivity.</p>
<p><a href="http://www.ubuntukungfu.org/blog/wp-content/uploads/2008/09/hdparm.gif"><img class="center frame size-medium size-medium wp-image-299" title="hdparm" src="http://www.ubuntukungfu.org/blog/wp-content/uploads/2008/09/hdparm-300x217.gif" alt="" width="300" height="217" /></a></p>
<p>Save the file when you’ve finished, and reboot for the changes to take effect.</p>
<p>Remember that this doesn’t mean the hard disk will spin down thirty minutes after you stop using the computer. It means it will spin down thirty minutes after all hard disk access has ceased. Often Ubuntu will do things like flush its caches or run anacron jobs in the background, meaning the hard disk can’t spin down until thirty minutes after these jobs have finished.</p>
<p>To stop the hard disk spindown, edit the <em>hdparm.conf</em> once again, and put a hash (<em>#</em>) before the <em>spindown_time</em> line. Then save the file, and reboot the computer.</p>
<h2>5. Synchronize Files Between a Laptop and Desktop PC</h2>
<p>If you have two computers, you might want to synchronize data between the two. For example, if you have a laptop, you might want to transfer the files in your <em>Documents</em> folder to the main PC (and vice versa). You could do this manually by creating a network share, but it&#8217;s much better to do it automatically, with just a single click.</p>
<p>There are a variety of ways of synchronizing files under Ubuntu, and indeed, this is the kind of task that Linux excels in. However, perhaps the most fuss-free method is to use a program called Unison (or, actually, Unison GTK, which adds a graphical front end to the Unison command-line program; throughout I refer to the whole thing as Unison for simplicity). Unison uses built-in Linux tools to sync files but hides everything behind a friendly user interface.</p>
<p><a href="http://www.ubuntukungfu.org/blog/wp-content/uploads/2008/09/ch3unison.gif"><img class="alignnone size-medium wp-image-302" title="ch3unison" src="http://www.ubuntukungfu.org/blog/wp-content/uploads/2008/09/ch3unison-300x150.gif" alt="" width="300" height="150" /></a></p>
<p>The following are the steps required to sync the <em>Documents</em> folders on two separate computers using Unison. Before following these steps, ensure each computer has the correct time. This is essential because synchronization will fail otherwise.</p>
<p>These instructions make reference to a desktop PC and laptop computer but could be any two computers capable of running Ubuntu (or indeed any computer with Linux installed that can run Unison):</p>
<ol>
<li>On the desktop PC, use Synaptic to install the <em>unison-gtk</em> package. Meanwhile, on the laptop, use Synaptic to install the <em>openssh-server</em> and <em>unison-gtk</em> packages. As you might have guessed, Unison uses the SSH program in the background to provide the file transfer conduit but you won&#8217;t come into direct contact with it.</li>
<li>Once installed on the desktop PC, Unison can be found on the Applications &#8212;&gt; Accessories menu. When it starts, a wizard will walk you through creating an initial profile. The first step is to enter the folder on the desktop PC that you want to synchronize. Click the <em>Browse</em> button, and then locate your <em>Documents</em> folder. Click <em>OK</em> to close the file-browsing dialog box and <em>OK</em> again to move onto the next step of the wizard in Unison.</li>
<li>In the next step, you must tell Unison which folder you want to synchronize with on the laptop. In the <em>Directory</em> text field, type <em>Documents</em> again. There&#8217;s no need to precede it with <em>/home/username</em> because Unison will automatically log into the laptop&#8217;s <em>/home/</em> folder each time it synchronizes.</li>
<li>Click the <em>SSH</em> radio button. You&#8217;ll now need to find the IP address of the laptop. This can be done by moving over to it, right-clicking its <em>NetworkManager</em> icon, and selecting <em>Connection Information</em>. Then look in the dialog box that appears for the line that reads <em>IP Address</em>. Type what you see (four numbers separated by dots) into the <em>Host</em> text field back on the desktop PC.</li>
<li>In the <em>User</em> text field, still on the desktop PC, type the login name you use on the laptop. Then click the <em>OK</em> button.</li>
<li>You&#8217;ll immediately be told that the laptop computer is being contacted. Then a dialog box will pop up telling you that the &#8220;authenticity of host can&#8217;t be established.&#8221; This is fine. Just type <em>yes</em> to continue, and hit <em>OK</em>.</li>
<li>You&#8217;ll then be prompted for the login password on the laptop. Type it, and then click <em>OK</em>.</li>
<li>After this, you&#8217;ll see a scary-looking warning dialog box saying that &#8220;no archives were found for these roots.&#8221; Don&#8217;t worry. This appears because this is the first time you&#8217;ve synchronized. Once you click <em>OK</em>, Unison will detect the files both on the desktop PC and on the laptop (it&#8217;s worth pointing out that you won&#8217;t see any sign of Unison running on the laptop, and you won&#8217;t have to do anything on the laptop&#8212;Unison runs automatically in the background).</li>
<li>After a few minutes, the program window on the desktop PC will indicate the file differences between the two folders. The <em>Path</em> heading will show the file in question, and under the <em>Action</em> heading will be the &#8220;direction of travel,&#8221; indicated by an arrow&#8212;if the arrow points left, the file will be transferred to the desktop PC from the laptop. If it points right, the file will be transferred from the desktop PC to the laptop. If you don&#8217;t want to synchronize a particular file or folder, select it, and click the <em>Skip</em> button on the toolbar. However, assuming you&#8217;re happy with everything, click the <em>Go</em> button on the toolbar. The files will then be copied across. When Unison has finished (look at the status bar in the bottom left of the Unison window and the <em>Status</em> heading in the list of files), you can close the program window.</li>
</ol>
<p>And that&#8217;s all there is to it.<em> </em>After this, you should run Unison on the desktop PC every time you want to sync the <em>Documents</em> folders on the two computers, such as when you get home from work. When Unison starts, just select <em>default</em> from the list.</p>
<p>Note that Unison always updates older files when synchronizing. For example, if you started a file on your desktop PC, transferred it to your laptop using Unison, and edited it while out and about, Unison would automatically overwrite the older file on the desktop PC with the updated version. This makes sense, of course. If the situation arises that the file gets updated on both machines between synchronizations, a question mark will appear alongside the file when you come to synchronize&#8212;see screenshot above&#8212;and it won&#8217;t get automatically copied across. You&#8217;ll then have to manually intervene to decide which to overwrite&#8212;the copy on the desktop PC or the copy on the laptop. Click the <em>Right to Left</em> toolbar button to overwrite the file on the desktop PC or the <em>Left to Right</em> button to overwrite the file on the laptop.</p>
<p>You can create additional profiles to sync other folders too&#8212;just click the <em>Create New Profile</em> button in Unison&#8217;s startup program window, type a name for the profile when prompted, and then double-click its entry in the list to start working through the wizard again. I find it useful to synchronize the <em>Desktop</em> folder on both machines because I tend to temporarily store a lot of files there. Don&#8217;t choose to sync your entire <em>/home</em> folder&#8212;hidden files are copied across too by Unison, and hidden files within your <em>/home</em> folder contain program configuration files unique to each computer. Upon synchronization there would be some almighty file clashes, and the likelihood of the login accounts on both systems getting damaged beyond repair because of mangled configuration files is high.</p>
<h2>6. Use an Alternative Wifi Connection Manager</h2>
<p>Wicd (http://wicd.sourceforge.net/) is an excellent swap-in replacement for NetworkManager. NetworkManager is the system software that sits in the notification area and handles network connections. Wicd does the same job but uses a piece of software that&#8217;s almost entirely independent of existing Ubuntu infrastructure and packs in a few extra features too, such as the ability to configure static IP/DNS addresses and use non-ISP-specific DNS servers such as that offered by OpenDNS (http://www.opendns.org).</p>
<p><a href="http://www.ubuntukungfu.org/blog/wp-content/uploads/2008/09/ch3wicd.gif"><img class="center frame size-medium size-medium wp-image-303" title="ch3wicd" src="http://www.ubuntukungfu.org/blog/wp-content/uploads/2008/09/ch3wicd-300x253.gif" alt="" width="300" height="253" /></a></p>
<p>Here&#8217;s how to install and configure <em>Wicd</em>:</p>
<ol>
<li>You’ll need to add a new software repository. To do so, click System &#8212;&gt; Administration &#8212;&gt; Software Sources, click the <em>Third-Party Software</em> tab, then click the <em>Add</em> button, and enter <em>deb http://apt.wicd.net hardy extras</em>. Click <em>Close</em> and then the <em>Reload</em> button to refresh the list of software.</li>
<li>Use Synaptic to search for and install <em>wicd</em>. Once you have it installed, you’ll need to reboot, and then you’ll find <em>Wicd</em> on the Applications &#8212;&gt; Internet menu. Note that the <em>wicd</em> package will remove the NetworkManager packages during installation. You might see a brief error message that the &#8220;NetworkManager applet could not find some required resources.&#8221; You can ignore this. Once <em>Wicd</em> has been installed, reboot the system, although if you want to set up a notification area icon for Wicd, follow the instructions in the next step first.</li>
<li>To add a notification area icon, similar to that of NetworkManager, a few manual steps are necessary. Click System &#8212;&gt; Preferences &#8212;&gt; Sessions, and click <em>Add</em>. Type <em>wicd</em> into the <em>Name</em> field and <em>/opt/wicd/tray.py</em> into the <em>Command</em> text area. Leave the <em>Comment</em> text field clear. Then close the dialog box and reboot.</li>
<li>When you start Wicd (it can be found on the Applications &#8212;&gt; Internet menu), it will automatically scan for nearby wifi networks. If no networks are shown, click the <em>Refresh</em> toolbar button.</li>
<li>Before you can connect, which is done by clicking the <em>Connect</em> link, &#8220;unfold&#8221; the configuration options by clicking the little chevron alongside the wifi base station&#8217;s entry on the list. Then unfold <em>Advanced Settings</em>, and put a check in <em>Use Encryption</em>. Select the type of wifi protection the base station uses from the list, and and type the key or password in the text box provided. Of course, if the network has no protection (usually described as an <em>open network</em>), then you can skip this step. Then click the blue <em>Connect</em> link. Once you&#8217;ve connected to the network, you can quit the <em>Wicd</em> configuration program.</li>
</ol>
<p>To revert  to using NetworkManager, should you want, use Synaptic to install the <em>network-manager</em> package and uninstall the <em>wicd</em> package. Then stop Wicd&#8217;s notification area applet starting at GNOME startup&#8212;click System &#8212;&gt; Preferences &#8212;&gt; Sessions, select the entry you created for Wicd, and click the <em>Remove</em> button. The reboot the computer.</p>
<h2>7. Password-Protect and Encrypt Files</h2>
<p>Any file or folder within Ubuntu can be encrypted so that it can  be decrypted only by using a passphrase. This has obvious benefits for laptop users, whose computers might get stolen when they&#8217;re out and about: if your laptop should go missing, you can rest assured that any personal files can&#8217;t be viewed by the thief. </p>
<p>What actually happens is that an encrypted version of the file or folder is created that requires a passphrase to unlock it. The original file or folder must then be deleted by the user. Whenever you want to edit or view the file after this, you must double-click the encrypted file to extract a decrypted copy. Then, if you update the file in any way, you must reencrypt it.</p>
<p>Some setup work is necessary before the files or folders can be encrypted, and you must generate a personal key pair.</p>
<p>Files encrypted using the method outlined in this tip aren&#8217;t particularly &#8220;portable,&#8221; which is to say this isn&#8217;t a system designed to let you copy files to another machine and decrypt them. For that to happen, you would have to export your key pair, which represents a security risk. Nevertheless, how to do this is explained later in this tip.</p>
<p>Bear in mind that if you follow these instructions to encrypt files and then forget your passphrase, any files you encrypted are effectively lost forever. There is no &#8220;back door&#8221; and no way of cracking the system&#8212;the method of encryption used is extremely thorough.</p>
<p>First we look at creating a key pair and then look at how to encrypt/decrypt files or folders.</p>
<p><strong>Creating a Key Pair</strong></p>
<p>Follow these steps to create a key pair, which is necessary before you can encrypt/password-protect any files (note that you can skip these steps if you&#8217;ve already created a key pair for use with email encryption):</p>
<ol>
<li>Click Applications &#8212;&gt; Accessories &#8212;&gt; Passwords and Encryption Keys to start the Seahorse application, which is used to manage all encryption keys within Ubuntu.</li>
<li>In the program window that appears, click the <em>New</em> button. In the dialog box that appears, select <em>PGP Key</em>, and click the <em>Continue</em> button.</li>
<li>In the dialog box that appears, fill in the <em>Full Name</em> and <em>Email Address</em> fields (you can leave the <em>Comment</em> field blank). To be frank, the email field is used only if you later publish the public component of the key pair for email encryption purposes. If you don&#8217;t intend to do this, then it doesn&#8217;t matter what you type. Note that you must type both a forename and surname into the <em>Full Name</em> text field.</li>
<li>In the <em>Advanced key options</em> drop-down list, you can choose a different type of encryption, although the default choice of DSA Elgamal and 2048 bits is considered extremely secure and also flexible enough to meet most needs. Once done, click the <em>Create</em> button.</li>
<li>After this, you&#8217;ll be prompted for a passphrase. Essentially, this is the password you will need to decrypt files. It&#8217;s important you make the passphrase something hard to guess but also memorable enough so you don&#8217;t forget it. The passphrase can include letters, numbers, symbols, and space characters.</li>
<li>After this, the key will be generated. Depending on the speed of your computer, this could take up to an hour. Once it&#8217;s done, quit the Seahorse application.</li>
</ol>
<p><strong>Encrypting/Decrypting Files or Folders</strong></p>
<p>Once the key pair has been created, encrypting a file or folder is as simple as right-clicking it and selecting <em>Encrypt</em>. In the dialog box that appears, put a check alongside the key you created, and then click <em>OK</em></p>
<p><a href="http://www.ubuntukungfu.org/blog/wp-content/uploads/2008/09/ch3encryptfiles.gif"><img class="center frame size-medium size-medium wp-image-304" title="ch3encryptfiles" src="http://www.ubuntukungfu.org/blog/wp-content/uploads/2008/09/ch3encryptfiles-300x206.gif" alt="" width="300" height="206" /></a></p>
<p>If you&#8217;ve selected to encrypt a folder, you&#8217;ll be asked whether you want to encrypt each file separately or automatically create a zip archive that will then be encrypted. The latter is the best option in most cases.</p>
<p>If you password-protected a file, once the encrypting process is complete, you should find yourself with a new version of the file that has a <em>.pgp</em> extension. You can then delete the old file. If you encrypted a folder, you should find two files have been created&#8212;the protected <em>.pgp</em> version and a <em>.zip</em> archive of the original folder. That archive, along with the original folder itself, can then be deleted.</p>
<p>For security reasons, the unencrypted versions should be permanently deleted, rather than just sent to the trash. Ideally you should use the <em><a href="http://www.linfo.org/shred.html" target="_blank">shred</a></em> command too. Before destroying the old file, however, you might want to first test-run decrypting the file.</p>
<p>To do so, just double-click the <em>.pgp</em> file, and then type your passphrase when prompted. The original file will then reappear. In the case of a folder, the <em>.zip</em> archive will appear, and you can then double-click it to extract the contents.</p>
<p><strong>Decrypting Files on Another Computer</strong></p>
<p>As mentioned in the introduction to this tip, this isn&#8217;t a system designed to create portable encrypted files. To decrypt files on another computer, you need to export your key pair and then import it on the other computer. Anybody in possession of your key pair file along with any encrypted files will be able to decrypt them, so this represents a security risk. However, sometimes it might be necessary to decrypt files on another machine. Here are the necessary steps:</p>
<ol>
<li>On the computer that created the encrypted file(s), start Seahorse (Applications &#8212;&gt; Accessories &#8212;&gt; Passwords and Encryption Keys), and then right-click your personal key (the one created in the previous steps). Select <em>Properties</em> from the menu that appears.</li>
<li>In the dialog box that appears, click the <em>Details</em> tab, and click the <em>Export</em> button alongside the <em>Export Complete Key</em> heading. Save the file to the desktop. You will find a new file has been created with an <em>.asc</em> extension. This is your key pair in text format.</li>
<li>Copy the <em>.asc</em> file to a USB key stick or floppy disk, and take it over to the second computer. Still on the second computer, start Seahorse (Applications &#8212;&gt; Accessories &#8212;&gt; Passwords and Encryption Keys), and click the <em>Import</em> button. Navigate to your key file, and click <em>Open</em>. This will import the key. After this, close Seahorse. You can then double-click any encrypted files to decrypt them.</li>
<li>If the other computer doesn&#8217;t have Seahorse installed&#8212;perhaps if it&#8217;s a different version of Linux or maybe an older version of Ubuntu&#8212;copy the key file to the desktop, and then type the following into a terminal window (these instructions assume <em>gpg</em> is installed, which is very likely):
<pre>gpg --import "/home/username/Desktop/key file.asc"</pre>
<p>Obviously, you should replace <em>key file.asc</em> with the name of the <em>.asc</em> file and replace <em>username</em> with your username.</li>
<li>Then, to decrypt a file, type the following:
<pre>gpg filename.pgp</pre>
<p>Again, you should replace <em>filename.pgp</em> with the name of the file you want to decrypt. You&#8217;ll be prompted for your passphrase, so type it. After this, the original file will be restored in the same location as the <em>.pgp</em> file.</li>
</ol>
<p>Note that you MUST ensure the internal PC clock is set correctly and shows the current time before exporting/importing keys. For various technical reasons, Seahorse and the <em>gpg</em> command cannot import a key if the time on the PC appears to be before the key file appears to have been created. Of course, this means that if the computer that created the key file had the wrong time, you will have real problems importing the key. The solution is to set your PC&#8217;s clock to a time and date in the future. Then import the key, and return the PC&#8217;s clock to the present time.</p>
<h2>8. Use a Dial-Up Modem</h2>
<p>Like all Linuxes, Ubuntu has spotty support when it comes to dial-up modems (those used to dial into ISPs over the phone line). Some work. Some don’t. Generally speaking, those that work tend to be older models that connect via the serial port or newer, more expensive models that connect via USB (more expensive models have dedicated modem hardware, rather than relying on software drivers to handle the decoding, which is what causes problems for Ubuntu).</p>
<p><a href="http://www.ubuntukungfu.org/blog/wp-content/uploads/2008/09/picture-4.gif"><img class="center frame size-medium size-medium wp-image-312" title="picture-4" src="http://www.ubuntukungfu.org/blog/wp-content/uploads/2008/09/picture-4-298x300.gif" alt="" width="298" height="300" /></a></p>
<p>If your modem works, you can use the <em>gnome-ppp</em> software to connect/disconnect. It can be installed via Synaptic and, once it&#8217;s installed, you’ll find it on the Applications &#8212;&gt; Internet menu. When running it for the first time, click the <em>Setup</em> button, and then click the <em>Detect</em> button under the <em>Modem</em> heading in the dialog box that appears. Once done, click <em>Close</em> to return to the main dialog box, where you can enter your ISP’s username, password, and phone number. Then click <em>Connect</em> to dial up.</p>
<p>When connected, <em>gnome-ppp</em> minimizes to the notification area. Right-click it to disconnect from the call.</p>
<h2><strong>9. Switch Monitor Resolutions with a Single Mouse Click</strong></h2>
<p>If you have an external monitor or projector you occasionally attach to a notebook computer, you might be used to switching resolutions on a regular basis. Unlike with Windows, this isn&#8217;t just a right-click procedure&#8212;you must navigate the System &#8212;&gt; Preferences menu.</p>
<p>A good solution is to use Synaptic to search for and install <em>resapplet</em>. For some reason, although it&#8217;s officially a GNOME applet, resapplet doesn&#8217;t appear on the standard applet list. Instead, it must be configured to start at login. To do this, click System &#8212;&gt; Preferences &#8212;&gt; Sessions, ensure the Startup Programs tab is selected, and click the Add button. In the Name and Command fields of the dialog box that appears, type <em>resapplet</em>. Leave the Comment field blank. Then close the dialog box, and log out and back in again.</p>
<p><a href="http://www.ubuntukungfu.org/blog/wp-content/uploads/2008/09/picture-5.gif"><img class="center frame size-medium size-medium wp-image-313" title="picture-5" src="http://www.ubuntukungfu.org/blog/wp-content/uploads/2008/09/picture-5-154x300.gif" alt="" width="154" height="300" /></a></p>
<p>The new icon will then appear beside NetworkMonitor in the notification area. Clicking it will reveal a list of possible resolutions from which you can choose.</p>
<p>Incidentally, it should be possible to instantly step up and down resolutions by pressing Ctrl+Alt and tapping the +/- keys on the numeric keypad. Unfortunately, this doesn&#8217;t work on Ubuntu systems because of the way the graphical subsystem is configured. It may work on other Linux systems, however.</p>
<p><script type="text/javascript"><!--
google_ad_client = "pub-5731564017850986";
/* 468x60, created 8/18/08 */
google_ad_slot = "4553215197";
google_ad_width = 468;
google_ad_height = 60;
// --></script></p>
<p><script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript"></script></p>
<p><small>___________</small></p>
<p><a href="http://www.ubuntukungfu.org/blog/wp-content/uploads/2008/08/ktuk.jpg"><img class="left frame size-medium wp-image-219" title="ktuk" src="http://www.ubuntukungfu.org/blog/wp-content/uploads/2008/08/ktuk-250x300.jpg" alt="" width="250" height="300" /></a><em><a href="http://pragprog.com/titles/ktuk/ubuntu-kung-fu">Ubuntu Kung Fu</a></em> contains over 300 excellent tips for Ubuntu and has just been published by Pragmatic Programmers. It&#8217;s available from all good bookstores and a PDF version is available for <a href="http://pragprog.com/titles/ktuk/ubuntu-kung-fu" target="_blank">just $22</a>. You might also take a look at <em><a href="http://www.apress.com/book/view/1590599918">Beginning Ubuntu Linux</a>, </em>a &#8220;from zero to hero&#8221; guide to Ubuntu, and also take a look at the <a href="http://www.ubuntukungfu.org">rest of the site</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ubuntukungfu.org/blog/2008/09/9-tips-for-ubuntu-notebook-users/feed/</wfw:commentRss>
		</item>
		<item>
		<title>10 fun and/or useful things to do at Ubuntu&#8217;s command-line</title>
		<link>http://www.ubuntukungfu.org/blog/2008/08/10-fun-andor-useful-things-to-do-at-ubuntus-command-line/</link>
		<comments>http://www.ubuntukungfu.org/blog/2008/08/10-fun-andor-useful-things-to-do-at-ubuntus-command-line/#comments</comments>
		<pubDate>Tue, 19 Aug 2008 10:18:35 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.ubuntukungfu.org/blog/?p=281</guid>
		<description><![CDATA[Ah, the command-line! Refuge for the scoundrel, proving ground for the true expert, tool of choice for the power-user. 
The following 10 tips explain how to do cool and interesting things at the command-line. They&#8217;re not specific to Ubuntu but they were written with Ubuntu in mind, and have not been tested on other distros. But [...]]]></description>
			<content:encoded><![CDATA[<p>Ah, the command-line! Refuge for the scoundrel, proving ground for the true expert, tool of choice for the power-user. </p>
<p>The following 10 tips explain how to do cool and interesting things at the command-line. They&#8217;re not specific to Ubuntu but they were written with Ubuntu in mind, and have not been tested on other distros. But all should work on most versions of Linux or even Unix. </p>
<p><span id="more-281"></span></p>
<h3><strong>Use the mouse in virtual consoles</strong></h3>
<p>This is a neat hack that brings a block cursor to virtual console windows so that text can be easily copied and pasted. Just use Synaptic to install <em>gpm</em>. Once installed, open a terminal window, and type <em>sudo /etc/init.d/gpm</em> start to get the program running. In the future, gpm will start automatically on bootup.</p>
<p>Then switch to a virtual console to see the fruits of your labor. You should now have a block mouse cursor that moves around the screen. You can highlight text in the usual way. To paste it, click the middle mouse button (on most mice, this is the scroll wheel button; if your mouse has only two buttons, the right-click button will paste the text).</p>
<p>Some software that offers text-mode menus also responds to mouse clicks in this way (for example, the Lynx text-mode web browser&#8212;see below). Check the command’s help output to see whether a special command option is needed to support gpm.</p>
<h3>See a calendar</h3>
<p>You’ve probably already realized that clicking the time display at the top-right of the Ubuntu desktop shows a calendar. To see the same kind of thing at the command line, type <em>cal</em>. Without any command arguments, it will show the dates for the current month. If you want the axis of the calendar reversed (days down the side, rather than across the top), type <em>ncal</em> instead. To see the dates for last month, this month, and next month, type<em> cal -3</em> (for some reason, however, this particular command option doesn’t work with ncal).</p>
<p><a href="http://www.ubuntukungfu.org/blog/wp-content/uploads/2008/08/picture-1.gif"><img class="center frame size-medium wp-image-282" title="picture-1" src="http://www.ubuntukungfu.org/blog/wp-content/uploads/2008/08/picture-1-300x208.gif" alt="" width="300" height="208" /></a></p>
<p>To see a calendar for a whole year, type the year straight afterward: <em>cal 2010</em>. To see a calendar for December of any particular year, type <em>cal dec</em> followed by the year (or you could type <em>jan</em>, <em>feb</em>, <em>mar</em>, and so on).</p>
<p>Both <em>cal</em> and <em>ncal</em> can be used to ﬁnd out historical dates. To ﬁnd out the day when the Declaration of Independence was signed, type <em>cal july 1776</em>. If you seriously need to know precise dates going back millennia, there might be issues with the Julian/Gregorian calendar switch&#8212;see cal’s man page for details.</p>
<h3>Create text banners</h3>
<p>Start Synaptic. Then search for and install <em>ﬁglet</em>. Then type the following into a terminal window:</p>
<pre>figlet "Ubuntu Kung Fu"</pre>
<p>The output is built from symbols, letters, and other characters. There’s even different fonts available&#8212;take a look in <em>/usr/share/ﬁglet</em>. Any ﬁle with an .ﬂf ﬁle extension is a font. To use a different font, just specify its name after the <em>-f</em> command option, without a ﬁle extension:</p>
<pre>figlet -f lean "Ubuntu Kung Fu"</pre>
<p>Believe it or not, ﬁglet did have a serious use (well, actually, its older brother called banner did). In the days of shared dot-matrix printers and sheet-fed paper, the command was used to clearly indicate who had sent which print job. The banner text would appear at the start of any printed documents, so it was clear where the sheet output could be torn off.</p>
<p>I like to add a ﬁglet command to the end of my <em>.bashrc</em> ﬁle so that ﬁglet runs every time I log in at a virtual console or open a terminal window. Just type <em>gedit ~/.bashrc</em> to open the ﬁle in Gedit and add the entire command as a new line at the end. If you want a sentence to appear, as opposed to just a single word, ensure you enclose the sentence in quotation marks (that is, <em>ﬁglet -f small &#8220;Greetings Professor Falken&#8221;</em>).</p>
<p>You might want to take a look at the unfortunately titled toilet, which does exactly the same thing but with added color. Once it’s installed, try the following:</p>
<pre>toilet -f mono12 -F gay "Ubuntu Kung Fu"</pre>
<p><script type="text/javascript"><!--
google_ad_client = "pub-5731564017850986";
/* 468x60, created 8/18/08 */
google_ad_slot = "4553215197";
google_ad_width = 468;
google_ad_height = 60;
// --></script></p>
<p><script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript"></script></p>
<h3>See a visual representation of files/folders</h3>
<p>If you’re new to the Ubuntu ﬁle system (or even an old hand), it can be easy to get lost while browsing the ﬁle system. The <em>pwd</em> can be used to get a quick reminder of the current folder, but you might also use the <em>tree</em> command. First you’ll need to install it using Synaptic—search for and install <em>tree</em>. Then just type <em>tree</em> at the prompt.  Here’s what I saw on my test system when I typed the command within my <em>/home</em> folder:</p>
<pre>.
|-- Desktop
| |-- gnome-terminal.desktop
| `-- synaptic.desktop
|-- Documents
| |-- accounts08.ods
| `-- brochure.pdf
|-- Examples -&gt; /usr/share/example-content
|-- Music
| `-- tom gold-magic.mp3
|-- Pictures
| |-- barbecue.jpg
| `-- disneyland.jpg
|-- Public
|-- Templates
`-- Videos</pre>
<p>It should be obvious what’s what here. The folders (<em>Desktop</em>, <em>Documents</em>, <em>Music</em>, and so on) are represented as branches on the virtual tree and the ﬁles (or subfolders) as subbranches. What you don’t see here, and which is very useful, is that everything is color -coded according to the standard color-coding used at the prompt. Thus, folders are light blue, image ﬁles are purple, the MP3 ﬁle is green, and so on.  To see only folders, and not ﬁles within them (possibly more useful), use the <em>-d</em> command option: <em>tree -d</em>. To ﬁlter the results for a particular type of ﬁle or ﬁles with a particular name, use the <em>-P</em> command option. For example, to ﬁlter for <em>.doc</em> ﬁles, you could type the following:</p>
<pre>tree -P *.doc</pre>
<p>Or to ﬁlter for ﬁles that include <em>disneyland</em> in their name, you could type the following:</p>
<pre>tree -P *disneyland*</pre>
<p>As if all this wasn’t enough, tree has a trick up its sleeve. It can output everything as a hyperlinked HTML ﬁle. This can be useful if you need to quickly create a directory listing of online ﬁles.  Let’s assume you have a website called <em>http://www.example.com</em> and the local folder that contains your local copies of the site is <em>/home/keir/website</em>. The following command will output a ﬁle called <em>index.html</em> that contains a visual tree representation of the ﬁles contained within website, including hyperlinks to the ﬁles themselves:</p>
<pre>$ tree -H http://www.example.com -T "Click a file to download" /home/keir/website/ &gt; index.html</pre>
<p>First we provide the URL that the hyperlinks should be prefaced with. This could be a path on the server (for example, <em>www.example.com/ﬁles</em>; note that you must not include the trailing slash in the path). Then we provide the <em>-T </em>command option, which gives the web page a header&#8212;this can be anything you want, but steer clear of symbols like <em>!</em>, which have speciﬁc functions at the command prompt. After this, we provide the location of the ﬁles. Finally, we redirect output into the <em>index.html</em> ﬁle.</p>
<h3>View PDFs at the Command Line</h3>
<p>If you want to view a PDF, simply use the Evince program: <em>evince ﬁlename.pdf</em>. This will open a program window showing the PDF ﬁle.  If you actually want to look at the PDF within the terminal window (or maybe in a virtual console), you’ll ﬁrst need to convert it to text. To do this, use the <em>pdftotext</em> program: <em>pdftotext ﬁlename.pdf</em>. This will create a .txt ﬁle containing the contents of the PDF. To view it, use the less command: <em>less ﬁlename.txt</em>.  To extract the images from the PDF, use the <em>pdﬁmages</em> command. You’ll need to specify the filenames for the pictures and also the <em>-j</em> command option to ensure the photographic images are outputted as JPEG. For example, the following:</p>
<pre>pdfimages -j filename-pdf pictures</pre>
<p>&#8230;will extract the images as JPEGs and give them ﬁlenames beginning with pictures. So, the first might be <em>pictures-001.jpg</em>, the second <em>pictures-002.jpg</em>, and so on.</p>
<h3>Mirror Commands and Output Across Different Terminal Windows</h3>
<p>To have one terminal window mirror the contents of another, ﬁrst start a <em>screen</em> session in one of them. <em>screen</em> effectively allows you to create a command-line login that’s independent of any actual terminal windows or virtual consoles (so if the terminal window quits, the command-line login will still be running in the background).</p>
<p>To start it, simply type <em>screen</em>. Then open another terminal window, and attach to the currently running screen session by typing <em>screen -x</em>. Now try typing something to see what the effect is.  To detach from the screen session, in either or both terminal windows, type Ctrl + a, and then hit d. Note that if you detach in both terminal windows, the screen session will still be running in the background. To quit it, you must reattach to it (type <em>screen -r</em>) and hit Ctrl + d (or just type <em>exit</em> at the prompt).</p>
<p>This trick works in a virtual console too&#8212;you could start a screen session in a terminal window and have it mirrored at a virtual console prompt by attaching to it using <em>screen -x</em>.</p>
<p>By combining this tip with an SSH remote connection, not only can you create a command login using screen that will persist on the remote computer even if the SSH connection is lost (useful if running commands that take some time to complete or if you’re using a ﬂaky connection), but you can create a setup whereby what you type is mirrored on the remote computer in a terminal window&#8212;just ask the user sitting in front of the remote computer to open a terminal window and type <em>screen -x</em>, once you’ve started screen in the SSH session. This provides an excellent way of remote teaching.</p>
<h3>Insert Command-Line Output and Files into the Clipboard</h3>
<p>Wouldn’t it be useful to quickly pump an entire conﬁguration ﬁle, or the output of a terminal command, into the clipboard for pasting into a website forum’s posting page or similar? Well, that’s just what <em>xclip</em> is designed to do. It can be installed via Synaptic.  Once installed, you can redirect text ﬁles into <em>xclip</em> so that they become the clipboard contents:</p>
<pre>xclip &lt; /etc/fstab</pre>
<p>&#8230;which will add the contents of the <em>/etc/fstab</em> conﬁguration ﬁle to the clipboard, or you can pipe the output of a command into it:</p>
<pre>dmesg|xclip</pre>
<p>&#8230;which will place the output of the <em>dmesg</em> command in the clipboard (<em>dmesg</em> shows system log output and can be useful when diagnosing problems).  There is one proviso. The piped output/ﬁles are placed in the selection buffer clipboard, which is distinct from the standard cut/copy and paste clipboard accessible from the Edit menu of most applications. xclip’s output can be pasted by positioning the cursor in the relevant spot and clicking the middle mouse button (this means pressing the scroll wheel, if your mouse has one; if not, click both the left and right mouse buttons simultaneously).  In theory, the use of the <em>-selection</em> command option with xclip should allow the user to add to the primary clipboard, but this doesn’t appear to work, perhaps because of the way the Ubuntu desktop is conﬁgured. To be honest, I see this as less of a bug and more as a feature&#8212;xclip will leave any existing clipboard contents untouched.</p>
<h3>Have Ubuntu Speak to you</h3>
<p>Ubuntu includes a built-in speech synthesizer called espeak. It’s there to work in partnership with the Orca screen reader, which provides support for those who are partially sighted, but it can also be called from the command line, as follows:</p>
<pre>espeak "Ubuntu Kung Fu"</pre>
<p>As you’ll be able to tell, it’s not the most sophisticated speech synthesizer in the world (it has a feel of <em>Speak &amp; Spell</em> about it), but it can be fun to play around with.  By simply typing espeak and then hitting Enter, whatever you type after this will be spoken. To quit, type Ctrl + d. To switch voices, use the <em>-v</em> command option, but ﬁrst you’ll need to ﬁnd out the available voices, which can be done by typing <em>espeak &#8211;voices=en </em>(note that&#8217;s two dashes before voices). For example, to have the phrase <em>“How about a nice game of chess?”</em> spoken in a Jamaican voice, you could type this:</p>
<pre>espeak -s 140 -v en-westindies "How about a nice game of chess?"</pre>
<p>In this example I also added the <em>-s</em> command option, by which you can specify the speech speed in words per minute. The default value of 170 tends to be a little fast, especially when it comes to longer sentences.</p>
<h3>Get Rid of the Virtual Console Legal Boilerplate</h3>
<p>Whenever you log in to a virtual console, you’ll see a few paragraphs of legal boilerplate, reminding you that Ubuntu is free software and is supplied without warranty. Once you’ve read this, you’re unlikely to forget it, so to stop it appearing each time you log in, type the following into a terminal window, which will delete the contents of the “message of the day” (motd) ﬁle, which is responsible for the message:</p>
<pre>sudo rm /etc/motd
sudo touch /etc/motd</pre>
<p>Of course, rather than deleting the contents of the ﬁle, you might just choose to replace the text within it with something else. It’s a simple text ﬁle. To load it into Gedit, type <em>gksu gedit /etc/motd</em>, and change its contents to whatever you want.</p>
<h3>Browse the Web from the Command Line</h3>
<p>Call it a form of insurance, but I like to have a command-line web browser installed in case anything goes wrong with either Firefox or the entire GUI system. I can then look up help and solutions from a virtual console or just check the news while I’m waiting for things to get better.  Command-line browsers are pretty primitive. There are no images, for example, or even color. The page design always gets mangled. In other words, they’re not for use all the time, unless you’re a masochist. Or a command-line fanatic.</p>
<p><a href="http://www.ubuntukungfu.org/blog/wp-content/uploads/2008/08/picture-2.gif"><img class="center frame size-medium wp-image-286" title="picture-2" src="http://www.ubuntukungfu.org/blog/wp-content/uploads/2008/08/picture-2-300x208.gif" alt="" width="300" height="208" /></a></p>
<p>There are two competing text-mode browsers&#8212;links and lynx. links is perhaps the better of the two because it understands frames and thus gets the layout of pages slightly more correct, but both are only a download away via Synaptic.</p>
<p>Once either program has started, hit g to enter a URL (with lynx, you’ll also need to type <em>http://</em> if the address doesn’t start with <em>www</em>). Once the page has loaded, use Page Up and Page Down to scroll the page. Use the up/down cursor keys to cycle through each link onscreen until you ﬁnd the one you want, and then hit Enter to follow it. To go back a page, hit the left cursor key. To download a ﬁle that’s linked to, highlight the link, and hit d.  You can search for words using a forward slash (/), in the same way as with man pages.</p>
<p>Hitting Esc in links will cause a rudimentary menu to appear&#8212;use the cursor keys to navigate, and hit Enter to select a menu option.  Once you’re done, hit q to quit the program.  If links is used in a terminal window, you’ll be able to click each link using your mouse.</p>
<p>If gpm is installed (see above), you’ll have rudimentary mouse control over the browser and can click links in a virtual console window.</p>
<p><script type="text/javascript"><!--
google_ad_client = "pub-5731564017850986";
/* 468x60, created 8/18/08 */
google_ad_slot = "4553215197";
google_ad_width = 468;
google_ad_height = 60;
// --></script><br />
<script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript"></script><br />
__________</p>
<p> </p>
<p><a href="http://www.ubuntukungfu.org/blog/wp-content/uploads/2008/08/ktuk.jpg"><img class="left frame size-medium wp-image-219" title="ktuk" src="http://www.ubuntukungfu.org/blog/wp-content/uploads/2008/08/ktuk-250x300.jpg" alt="" width="250" height="300" /></a>These tips are taken from <em><a href="http://pragprog.com/titles/ktuk/ubuntu-kung-fu">Ubuntu Kung Fu</a>&#8212;</em>a book of over 300 excellent tips for Ubuntu<em>. The author, Keir Thomas, also wrote </em><em><a href="http://www.apress.com/book/view/1590599918">Beginning Ubuntu Linux</a>, </em>a &#8220;from zero to hero&#8221; guide to Ubuntu, which has recently reached its third edition. Take a moment to check out both of them, and also take a look at the <a href="http://www.ubuntukungfu.org">rest of the site</a>.</p>
<p><em></em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ubuntukungfu.org/blog/2008/08/10-fun-andor-useful-things-to-do-at-ubuntus-command-line/feed/</wfw:commentRss>
		</item>
		<item>
		<title>First look at Ubuntu Intrepid Alpha 4</title>
		<link>http://www.ubuntukungfu.org/blog/2008/08/first-look-at-ubuntu-intrepid-alpha-4/</link>
		<comments>http://www.ubuntukungfu.org/blog/2008/08/first-look-at-ubuntu-intrepid-alpha-4/#comments</comments>
		<pubDate>Fri, 15 Aug 2008 11:43:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.ubuntukungfu.org/blog/?p=204</guid>
		<description><![CDATA[Ubuntu Intrepid Ibex is to be Ubuntu&#8217;s next release, due in late October this year. It&#8217;s gingerly marked as &#8220;experimental&#8221; and, as with all Ubuntu releases, follows just six months after the previous version&#8212;Hardy Heron. The message is usually that those who want stability and support should stick with the long-term support release, while those [...]]]></description>
			<content:encoded><![CDATA[<p>Ubuntu Intrepid Ibex is to be Ubuntu&#8217;s next release, due in late October this year. It&#8217;s gingerly marked as &#8220;experimental&#8221; and, as with all Ubuntu releases, follows just six months after the previous version&#8212;Hardy Heron. The message is usually that those who want stability and support should stick with the long-term support release, while those who want to help test Ubuntu, and get a taste of cutting-edge software, should try the newer versions. But is this true, or even advisable, in the case of Intrepid? </p>
<p><span id="more-204"></span></p>
<p>The Alpha 4 release of Intrepid has <a href="http://www.ubuntu.com/testing/intrepid/alpha4">just been released</a>. According to <a href="https://wiki.ubuntu.com/IntrepidReleaseSchedule">the Intrepid release schedule</a>, there are two more alpha releases due before the final release. <span style="text-decoration: line-through;">There are no betas or release candidates this time around, and this reflects the truly experimental nature of Intrepid&#8212;it really is a case of &#8220;straight from the hands of the developers&#8221;. </span> <em>EDIT: Doh, I was wrong. There&#8217;s a beta and RC due too. Apologies. </em></p>
<p>In my humble opinion, Hardy set a very high bar for desktop releases of Ubuntu. I&#8217;m surprised more people didn&#8217;t comment on this at the time. Sure, there were problems, but anybody experienced in Linux will know that Hardy is simply light-years ahead of releases of Linux made even one or two years ago. Ubuntu really is pushing the envelope and Hardy got everything &#8220;just right&#8221;. </p>
<p>Intrepid has to somehow best this, or at least introduce <em>useful</em> new technology to prove its worth. In terms of features at least, at this stage of the development process we should be seeing things start to firm-up&#8212;according to the release schedule, 28 August is the <a href="https://wiki.ubuntu.com/FeatureFreeze">Feature Freeze</a> date, after which nothing else gets in. We&#8217;re only a few weeks away.</p>
<p>In this review I take a look at Intrepid as a complete operating system, just like I would a new release of Windows or Mac OS. I don&#8217;t look at it through the eyes of a Linux enthusiast, and I don&#8217;t look at it as a composite of separate projects.</p>
<p>I want to know how well Intrepid is likely to work in real-life, and how much of an improvement it is over Hardy. I&#8217;m looking to see how well everything integrates and, above all, how well everything works (taking into account that this is pre-release software and therefore incomplete/buggy, of course).</p>
<h3>Installation and setup</h3>
<p>I installed Intrepid on my MacBook for a genuine everyday user experience. Apart from the fact my touchpad didn&#8217;t work (a known issue), and after an external mouse was attached, installation progressed OK. New to the installer is an automatic login option during the user setup screen. This will no-doubt raise the hackles of security freaks but I don&#8217;t think it&#8217;s that big an issue.</p>
<p><a href="http://www.ubuntukungfu.org/blog/wp-content/uploads/2008/08/picture-11.jpg"><img class="center frame size-medium wp-image-205" title="picture-11" src="http://www.ubuntukungfu.org/blog/wp-content/uploads/2008/08/picture-11-300x225.jpg" alt="" width="300" height="225" /></a></p>
<p>Although the Ubuntu installer (Ubiquity) is <a href="https://blueprints.launchpad.net/ubuntu/+spec/ubiquity-visual-refresh">down for a visual refresh</a>, I didn&#8217;t see much improvement. The window decorations were the garish Atlanta theme, and made everything look like a Sun workstation circa 1985. More of that in a minute, however (it&#8217;s another known bug).</p>
<p>Installation completed OK, no different to Hardy, in fact, but after a reboot and after Ubuntu had booted, the screen was black. I heard the startup drums and the screen&#8217;s backlight was on, but I saw nothing. Switching to a virtual console didn&#8217;t help. After some fiddling around, I discovered that Intrepid would boot to a black screen if the power was connected. If the battery was in use, it worked OK, although the backlight was prone to flickering. This is clearly an issue with power-saving and backlighting. Once booted, I could connect the power without a problem.</p>
<p>On booting, I saw the same-old Ubuntu desktop. The dark-brown theme of earlier alpha releases has gone, although maybe by accident&#8212;when I took a look at the visual theme settings, I saw an error message that &#8220;the window manager theme &#8216;Human-Murrine&#8217; is not installed&#8221;. This is a known bug and is fixed by selecting the Human Murrine theme option. The dark-brown theme is still present, now labelled NewHuman, so you can switch to it if you want. I must admit that, despite being critical of Ubuntu&#8217;s GUI choices, I rather like this, but it isn&#8217;t clear whether it will make it into the final release as the default theme. I think they should use the dark theme for experimental releases, and a brighter, cleaner theme for LTS releases. Just a suggestion. </p>
<p><a href="http://www.ubuntukungfu.org/blog/wp-content/uploads/2008/08/picture-21.jpg"><img class="center frame size-medium wp-image-206" title="picture-21" src="http://www.ubuntukungfu.org/blog/wp-content/uploads/2008/08/picture-21-300x225.jpg" alt="" width="300" height="225" /></a></p>
<p>NetworkManager&#8217;s main menu has been expanded to include a VPN Connections option. I&#8217;m very pleased it&#8217;s present because VPN is becoming a popular choice for the corporate worker, especially bearing in mind crazy border control practices of <a href="http://www.informationweek.com/news/security/government/showArticle.jhtml?articleID=209903432">searching laptop hard disks</a> (many workers now wipe data before traveling, and then VPN into their corporate network once landed to retrieve the files; the files are uploaded and the disk wiped once again before traveling back).</p>
<p>However, the placement of the VPN option on the NetworkManager menu is confusing&#8212;right below the wifi network options, as if making a VPN connection will somehow get the user online. In reality, of course, the user will have to join a wifi or wired network first, and then configure VPN. I can expect non-technical users being confused here, and many tech support phone calls along the lines of not being able to connect via VPN when the computer isn&#8217;t even online.</p>
<p><a href="http://www.ubuntukungfu.org/blog/wp-content/uploads/2008/08/pic31.jpg"><img class="center frame size-medium wp-image-217" title="pic31" src="http://www.ubuntukungfu.org/blog/wp-content/uploads/2008/08/pic31-300x182.jpg" alt="" width="300" height="182" /></a></p>
<p>Note that I wasn&#8217;t able to test the VPN functionality because I don&#8217;t have access to a VPN.</p>
<p>Included in a new network configuration box that appears when you choose to configure VPN are tabs for Wired, Wireless, Mobile Broadband, and DSL. The mobile broadband option lets you configure GSM or CDMA connections, and is a much-vaunted new feature, <a href="https://lists.ubuntu.com/archives/ubuntu-devel/2008-February/025136.html">requested by Ubuntu overlord Mark Shuttleworth</a> right back at the beginning of the development process. Again, I couldn&#8217;t test this because I have no mobile broadband hardware, but the configuration screen looked mighty complicated to me. There&#8217;s no step-by-step wizards here&#8212;just a dialog box asking for details such as APN, PIN, PUK&#8230; Scary. The setup screens for all the other choices are similar. If you attempt to configure a wifi network, you&#8217;re prompted for the MTU, and the BSSID&#8230;</p>
<p>Yeah, I know Linux is about configurability and not hiding technical details from the user, but this is overkill. Ubuntu is supposed to be Linux for human beings. Linux developers always seem to start by making software complicated, and then attempt to make it easier to use afterward. Why not start by making it easy to use in the first place? Don&#8217;t lose the complicated options. Just move them to &#8220;Advanced&#8221; tabs, or similar.</p>
<p><a href="http://www.ubuntukungfu.org/blog/wp-content/uploads/2008/08/picture-4.jpg"><img class="center frame size-medium wp-image-208" title="picture-4" src="http://www.ubuntukungfu.org/blog/wp-content/uploads/2008/08/picture-4-300x220.jpg" alt="" width="300" height="220" /></a></p>
<p>My wifi network wasn&#8217;t automatically detected. I don&#8217;t know why because those of my neighbors were. They all use WPA, however, and I use WEP (ironically, I use WEP because it&#8217;s the most compatible with various Linux-powered devices in my household). The dislike of WEP is almost certainly an alpha bug. Ironically, while running Intrepid on my MacBook, the wifi device seemed to become supersensitive&#8212;I spotted several wifi networks belonging to my neighbors that I&#8217;d never seen before. The wifi device is an Atheros AR242x, according to lspci.<br />
<script type="text/javascript"><!--
google_ad_client = "pub-5731564017850986";
/* 468x60, created 8/18/08 */
google_ad_slot = "4553215197";
google_ad_width = 468;
google_ad_height = 60;
// --></script><br />
<script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript"></script></p>
<h3>Login</h3>
<p>If you select the automatic login option, you will&#8212;of course&#8212;be logged in automatically upon bootup (because of my wifi problems I was unable to find out if this fixed the annoying bug of being prompted for a keyring password each time you boot, in order to give NetworkManager the wifi password).</p>
<p>If you subsequently log out again, a timer will start in the login dialog, and automatically log back in within 10 or 30 seconds. Rather worrying, there seemed no way of stopping this. Hitting a key just caused it to start again from 30. Selecting not to login automatically during installation gives you the standard GDM login screen, sans countdown.</p>
<p>The Fast User Switcher applet now supports a <em>Guest Session</em> option, which creates a locked-down login for others to use (for example, those who borrow your laptop during a meeting to check their email).</p>
<p>I&#8217;m not sure if it&#8217;s entirely necessary&#8212;I regularly create locked-down Guest accounts on all my computers anyway, and it&#8217;s the kind of thing that virtually any competent Ubuntu user can do with just a few clicks (remembering not to allow administrator privileges, of course). The only benefit of a ready-made Guest Session option would be that it&#8217;s entirely locked-down and thoroughly security-tested, so there absolutely isn&#8217;t any way for the user to break-free. I&#8217;m not sure if this is the goal, however.</p>
<h3>Applications</h3>
<p>Let&#8217;s move on to look at the apps. Nautilus appears to be mostly the same, except for eject icons that appear alongside any removable storage devices.</p>
<p>Synaptic has had a bit of a visual refresh, and now sports a &#8220;Quick Search&#8221; box in the toolbar (this was grayed out, so is obviously a work in progress). There are now clear dividers between columns too.</p>
<p>The System &#8212;&gt; Shutdown dialog has been overhauled, so that it&#8217;s now a series of buttons, rather than icons and, once selected, a countdown timer appears, telling you that the system will shutdown in 60 seconds. This is (cough) borrowed from OS X but I think it looks pretty neat&#8212;the previous graphical shutdown dialog was always overkill. Shutdown or restart should be quick and painless. No fuss. </p>
<p><a href="http://www.ubuntukungfu.org/blog/wp-content/uploads/2008/08/picture-41.jpg"><img class="center frame size-medium wp-image-209" title="picture-41" src="http://www.ubuntukungfu.org/blog/wp-content/uploads/2008/08/picture-41-300x144.jpg" alt="" width="300" height="144" /></a></p>
<p>But other than this, I had trouble spotting any major differences between Hardy and Intrepid when it came to day-to-day apps. I&#8217;m sure there have been a few tweaks here and there, but they weren&#8217;t visible on my cursory inspection.</p>
<p>Here are the version numbers of key apps&#8212;those in parenthesis are the version numbers on a freshly updated 8.04.1 installation. Note how many are the same:</p>
<p><em>Kernel</em> (2.6.24): 2.6.26<br />
 <em> GNOME</em> (2.22.3): 2.23.6<br />
 <em> Evolution</em> (2.22.3.1): 2.23.6<br />
 <em> Firefox</em> (3.0.1): 3.0.1<br />
 <em> OpenOffice.org</em> (2.4.1): 2.4.1<br />
 <em> Pidgin</em> (2.4.1): 2.4.3<br />
 <em> GIMP</em> (2.4.5): 2.4.6<br />
 <em> F-Spot</em> (0.4.3.1): 0.4.4<br />
 <em> Totem Movie Player</em> (2.22.1): 2.23.4<br />
 <em> Rhythmbox</em> (0.11.5): 0.11.6<br />
 <em> Brasero</em> (0.7.1): 0.8.0</p>
<p>When you try and run an application from the System &#8212;&gt; Administration menu, there&#8217;s still a mishmash of old-style password requests and new &#8220;Unlock&#8221; buttons. I had hoped that <a href="https://wiki.ubuntu.com/DesktopTeam/Specs/PolicyKitIntegration">PolicyKit</a> would have made it into more apps, but I didn&#8217;t spot it. Maybe this is one for the future.<br />
 <script type="text/javascript"><!--
google_ad_client = "pub-5731564017850986";
/* 468x60, created 8/18/08 */
google_ad_slot = "4553215197";
google_ad_width = 468;
google_ad_height = 60;
// --></script><br />
<script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript"></script></p>
<h3>Encryption</h3>
<p>New to Intrepid is the easy creation and subsequent mounting of <a href="https://wiki.ubuntu.com/EncryptedPrivateDirectory">encrypted folders</a>. By issuing the following commands (the first of which installs the necessary software), you can create a filestore called <em>Private</em> in your /home directory that will be automatically mounted and unmounted when you log in and out, along with restrictive permissions when in use meaning nobody else can access it:</p>
<pre>sudo apt-get install ecryptfs-utils auth-client-config
sudo auth-client-config -p ecryptfs_standard -t pam-auth,pam-session,pam-password
ecryptfs-setup-private</pre>
<p>This seemed to work fine in my tests. Configuration is command-line, however, and there needs to be a GUI (again, &#8220;Linux for human beings&#8221;, anybody&#8230;?) Maybe part of the initial installation routine could take care of this. Indeed, I&#8217;m not sure why the entire /home directory can&#8217;t be encrypted, like OS X&#8217;s FileVault, although I appreciate this is immature technology and maybe it isn&#8217;t wise to entrust all your data to the system right now.</p>
<p>Personally I prefer to use <a href="http://www.truecrypt.org/">TrueCrypt</a>, at least until this component matures. This has the benefit of a GUI interface and is also cross-platform, working equally well on Windows and OS X. This is ideal for creating secure but portable data transfer archives. I like being able to easily unmount an encrypted file store when I don&#8217;t need it, and having several in use at once. </p>
<h3>Verdict</h3>
<p>This is an alpha release and it shows. Intrepid is also definitely an incremental release of Ubuntu&#8212;more of a point release than an entirely new version. Aside from minor changes, the main addition is the new network configuration software that allows mobile and VPN connections. However, this is very young and the design needs to be refined. At the moment it&#8217;s simply a downright scary raft of configuration options.</p>
<p>The new encryption option is welcome but, again, needs to mature considerably. GUI configuration is a must&#8212;asking users to rely on the command-line to setup such a vital feature working is too much. With a distribution like Ubuntu, the command-line should be either a last resort, or an alternative for power-users. It should never be absolutely necessary.</p>
<p>Still, when everything is tightened up, as will inevitably happen over the next few months, I can see Intrepid making for an excellent release of Ubuntu. The new features are necessary and vital for our modern world and, more importantly, bring Ubuntu up to speed with Vista and OS X.</p>
<p>Unless you&#8217;re a &#8220;road warrior&#8221;, however, I can&#8217;t see any reason why you should upgrade from Hardy, which, as mentioned, gets things just about right for most users. If you really need the new network configuration utilities, I&#8217;d simply scan the <a href="http://ubuntuforums.org/">Ubuntu forums</a> to see if somebody has found a way of backporting the relevant components into Hardy. If you need encryption, download TrueCrypt instead.</p>
<p><small><em>(C) 2008 Keir Thomas. You may reproduce the above on your blog provided that an author credit is given and a link to </em><a href="http://www.ubuntukungfu.com" target="_blank"><em>www.ubuntukungfu.com</em></a><em> is clearly shown.</em> </small><br />
<script type="text/javascript"><!--
google_ad_client = "pub-5731564017850986";
/* 468x60, created 8/18/08 */
google_ad_slot = "4553215197";
google_ad_width = 468;
google_ad_height = 60;
// --></script></p>
<p><script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript"></script><br />
<small>___________</small></p>
<p> </p>
<p><a href="http://www.ubuntukungfu.org/blog/wp-content/uploads/2008/08/ktuk.jpg"><img class="left frame size-medium wp-image-219" title="ktuk" src="http://www.ubuntukungfu.org/blog/wp-content/uploads/2008/08/ktuk-250x300.jpg" alt="" width="250" height="300" /></a>This review was written by Keir Thomas, an award-winning author of Linux books. Recently he&#8217;s published several books about Ubuntu, including <em><a href="http://pragprog.com/titles/ktuk/ubuntu-kung-fu">Ubuntu Kung Fu</a>&#8212;</em>a book of over 300 excellent tips for Ubuntu<em>&#8212;</em>and <em><a href="http://www.apress.com/book/view/1590599918">Beginning Ubuntu Linux</a>, </em>a &#8220;from zero to hero&#8221; guide to Ubuntu. Take a moment to check out both of them, and also take a look at the <a href="http://www.ubuntukungfu.org">rest of the site</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ubuntukungfu.org/blog/2008/08/first-look-at-ubuntu-intrepid-alpha-4/feed/</wfw:commentRss>
		</item>
		<item>
		<title>gOS: The Ubuntu giant killer?</title>
		<link>http://www.ubuntukungfu.org/blog/2008/08/gos-the-ubuntu-giant-killer/</link>
		<comments>http://www.ubuntukungfu.org/blog/2008/08/gos-the-ubuntu-giant-killer/#comments</comments>
		<pubDate>Wed, 13 Aug 2008 15:54:20 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.ubuntukungfu.org/blog/?p=168</guid>
		<description><![CDATA[The history of computing is one of giants being toppled. Remember DEC and Wang? No? Well, that says a lot. 
A giant is in the process of being toppled right now. Arguably, Microsoft is thrashing about in death throes as the era of personal computing ends.
At the moment, Ubuntu is the giant of the Linux world. If [...]]]></description>
			<content:encoded><![CDATA[<p>The history of computing is one of giants being toppled. Remember DEC and Wang? No? Well, that says a lot. </p>
<p>A giant is in the process of being toppled right now. Arguably, Microsoft is thrashing about in death throes as the era of personal computing ends.</p>
<p>At the moment, Ubuntu is the giant of the Linux world. If giants are always being toppled, and if you read any of the social networking sites such as Digg, you might get the impression that gOS is just about to do that. Is it true? Is gOS an Ubuntu killer?</p>
<p>Let&#8217;s take a look at the newest beta release&#8212;&#8221;<a href="http://www.thinkgos.com/new/" target="_self">3.0 Gadgets Beta</a>&#8220;&#8212;to find out. </p>
<p><span id="more-168"></span></p>
<h3>What is gOS?</h3>
<p>First, let&#8217;s be clear about what gOS is. But finding this out is harder than it sounds. Just two sentences appear on the gOS &#8220;<a href="http://thinkgos.com/new/about.php" target="_blank">About</a>&#8221; webpage and, perhaps wrongly, this gave me the impression of people who don&#8217;t want to reveal too much. However, in the <a href="http://thinkgos.com/new/press.php" target="_blank">Press Releases</a> section, they&#8217;re a little more open:</p>
<blockquote><p>gOS is a new open source startup dedicated to bringing Linux mainstream. Its new Linux-based operating system, called gOS, is beautifully designed to use Google, MySpace and other “Web 2.0” apps. In November 2007, gOS launched a $199 desktop, the gPC into Wal-Mart with Everex. In the first two weeks, the Everex gPC sold out of Wal-Mart. </p></blockquote>
<p>Wikipedia has <a href="http://en.wikipedia.org/wiki/GOS_(operating_system)" target="_blank">more details</a>, but it&#8217;s clear this is a company with ambition. Not only that but it has what we here in England call <em>gumption</em> (look it up in your dictionary)&#8212;it&#8217;s getting results at a commercial level, which is more than can be said for many comercially-oriented distributions of Linux, most of which have been struggling to do so for years. </p>
<p>But what you actually get if you install gOS is Ubuntu. It isn&#8217;t that gOS takes Ubuntu 8.04.1 as a base, in the same way Ubuntu takes Debian as a base. gOS takes Ubuntu and repurposes it, applying a different visual style and a handful of apps, mostly concerned with Google functionality. But underneath it&#8217;s Ubuntu 8.04.1. Here&#8217;s the contents of /etc/lsb-base on an gOS 3.0 Beta installation:</p>
<pre>gos@livecd:~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=8.04
DISTRIB_CODENAME=hardy
DISTRIB_DESCRIPTION="Ubuntu 8.04.1"</pre>
<p>It&#8217;s like taking a Ford car, repainting it, adding in a new air freshener, and calling it the <em>Foobar 3000</em>.</p>
<p>If I were being cruel I would say that gOS 3.0 Beta is simply Ubuntu with a customized desktop and a Google fixation. But that doesn&#8217;t do it justice because the additions really do make for a different kind of experience. </p>
<p>However, a brief peek at the /etc/apt/sources.list file shows that gOS even uses the same-old Ubuntu servers too. Do they have permission to do this? After all, this is effectively one commercial enterprise configuring its product to leech bandwidth from another commercial enterprise. It&#8217;s like AOL giving out AT&amp;T&#8217;s tech support phone number.</p>
<p>The Applications, Preferences and Administration menus are almost exactly the same as Ubuntu 8.04, although they all spring-off a gOS Start-like button at the top left of the screen. The relevant applications look, feel and operate exactly the same, aside from a questionable green/grey visual theme, of which more later. Evolution is perhaps wisely eschewed in favor of Thunderbird, however, and both Rhythmbox and Totem have gone, to be replaced by the venerable Mplayer. Additionally, Wine is a standard feature.  </p>
<p><a href="http://www.ubuntukungfu.org/blog/wp-content/uploads/2008/08/picture-3x.jpg"><img class="center frame size-medium wp-image-174" title="picture-3x" src="http://www.ubuntukungfu.org/blog/wp-content/uploads/2008/08/picture-3x-271x300.jpg" alt="" width="271" height="300" /></a></p>
<p>There&#8217;s nothing wrong with this kind of appropriation, of course. That&#8217;s what open source is about. At least gOS hasn&#8217;t gone down the path of taking open source apps and renaming them, like some commercial releases of Ubuntu do (wherein Firefox is renamed &#8220;<em>Foobar Internet Suite</em>&#8220;, and so on).</p>
<p>And the benefit of an &#8220;appropriation approach&#8221; is that you know exactly how to operate gOS&#8212;all your mad Ubuntu skillz will work just fine. <br />
<script type="text/javascript"><!--
google_ad_client = "pub-5731564017850986";
/* 468x60, created 8/18/08 */
google_ad_slot = "4553215197";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
<h3>The desktop</h3>
<p>As gOS boots you&#8217;re treated to an explosion of greens and grays. The GRUB menu uses a wallpaper with the gOS logo behind, and Usplash shows a customized gOS progress indicator. I must admit that I liked this, and even found it vaguely uplifting, if only because Ubuntu&#8217;s choice of browns and oranges tend to be dreary. (I sometimes often wonder if Ubuntu&#8217;s visual design team has been infiltrated by goths.) </p>
<p>When the desktop appears, the wallpaper is green, and the window decorations a rather murky green/grey mixture, with the close/minimize/maximize buttons on the left, as with Mac OS. No other themes are installed, so short of using Synaptic to grab some more theme packages, you&#8217;re stuck with it. </p>
<p><a href="http://www.ubuntukungfu.org/blog/wp-content/uploads/2008/08/picture-1.jpg"><img class="center frame size-medium wp-image-171" title="picture-1" src="http://www.ubuntukungfu.org/blog/wp-content/uploads/2008/08/picture-1-300x225.jpg" alt="" width="300" height="225" /></a></p>
<p>In many ways, the gOS desktop reminds me of SUSE Linux releases from about four or five years ago, which had a similar love of green and grey. All that&#8217;s missing is the gecko icon. This impression is reinforced by the fonts, which are almost universally set at a tiny 8pt (SUSE Linux used to struggle to detect a monitor&#8217;s DPI settings, leaving the fonts sometimes too small to be readable).</p>
<p>gOS uses GNOME, with a single top panel, and a Mac OS-like dock at the bottom (<a href="http://freshmeat.net/projects/wbar/" target="_blank">wbar</a>). The dock is simply an application launch toolbar with OS X-like &#8220;zoom&#8221; animation effects when you mouse-over icons. Applications minimize to a standard GNOME Window List applet on the panel at the top of the screen. Perhaps annoyingly, the dock doesn&#8217;t even indicate which apps are running&#8212;there&#8217;s no orb or pointer underneath each icon, as with OS X, or other Linux dock-emulation projects, such as AWM. Additionally, the dock is entirely unaware of what&#8217;s already running&#8212;if you click the Gmail button when an instance of Gmail is already running, a new one will start.</p>
<h3>Applications</h3>
<p>Several dock buttons are provided by default: Firefox, Gmail, Google Calendars, Google Docs, YouTube, Pigdin, Skype, and OpenOffice Writer, Calc and Impress. The Google buttons use <a href="http://labs.mozilla.com/projects/prism/">Mozilla Prism</a> (version 0.8), which is effectively Firefox without the toolbars. The Google application webpages simply appear in a program window frame on the desktop. This works surprisingly well&#8212;I&#8217;m typing this review in Google Docs in a Prism window, and it feels natural and intuitive. Newbie users might even be unaware that they&#8217;re running an online application, which I guess is the point. </p>
<p><a href="http://www.ubuntukungfu.org/blog/wp-content/uploads/2008/08/picture-2.jpg"><img class="center frame size-medium wp-image-172" title="picture-2" src="http://www.ubuntukungfu.org/blog/wp-content/uploads/2008/08/picture-2.jpg" alt="" width="300" height="225" /></a></p>
<p>Additionally, a shortcut on the gOS menu links to the Google Gears installation page, a Firefox add-on which should let you use the Google Docs applications offline (and, eventually, the Google Mail app too). Unfortunately, no instructions are provided, and I couldn&#8217;t get this working in my tests (I got it installed but it refused to sync, with the progress bar stuck at 0%).</p>
<p>The downsides of Prism is that it&#8217;s not clear how to configure the applications&#8212;I couldn&#8217;t find a way to enable live spellchecking in the Google Docs application, for example, which should be possible because it is essentially Firefox. Right-clicking on the user interface appeared to be captured by the AJAX magic of the Google apps themselves. </p>
<p>When Prism apps minimize to the top panel, they use the standard <a href="http://people.mozilla.com/~faaborg/files/prism/announcement/prismLogo400.png">Prism icon</a>, rather than those of the Google applications. This is a little annoying because it makes &#8220;at a glance&#8221; spotting of minimized apps hard and you have to read the text alongside. </p>
<p>The YouTube button didn&#8217;t work in my tests, so I couldn&#8217;t find out what it offered. The other Google apps worked fine.<br />
<script type="text/javascript"><!--
google_ad_client = "pub-5731564017850986";
/* 468x60, created 8/18/08 */
google_ad_slot = "4553215197";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
<h3>Widgets</h3>
<p>The big new feature of this release of gOS is the Google Widgets, several of which are crammed onto the desktop at the right-hand side, just like Windows Vista (in fact, <em>too many</em> are activated out of the box&#8212;several overlapped on my 1280&#215;800 screen, making for a cluttered appearance).</p>
<p>On the MacBook I used to test gOS, I saw a batery power widget, a weather globe widget, a Google calendar widget, a calculator, and a pot plant. Gadgets can be added by clicking the applet in the notification area on the top panel. (This icon appears to be, confusingly, a Windows logo.)</p>
<p>Desktop effects (Compiz) are not activated by default, even though I ran gOS on a notebook with an Intel graphics chip for which drivers are open source. So there isn&#8217;t really any excuse NOT to activate them. However, if you attempt to activate effects manually (right-click the desktop, click Change Desktop Background, and then click the Visual Effects tab), you&#8217;ll get a scary warning that Compiz isn&#8217;t installed. I don&#8217;t know what&#8217;s going on here. At a guess I suspect visual effects somehow screw-around with the widgets but I didn&#8217;t test this to find out.</p>
<p>It&#8217;s perhaps worth pointing out that gOS comes with a handful of proprietary apps installed by default&#8212;Adobe Flash player, for example, and Skype. Picasa is also installed, continuing the Google obsession, although Google Earth and Google Desktop aren&#8217;t. Multimedia codecs are also installed courtesy of Mplayer, and I wonder how gOS is dealing with the patenting implications of distributing codecs. Ubuntu leaves the decision up to the user.</p>
<h3>Verdict</h3>
<p>There&#8217;s a lot to like in this release of gOS, but Ubuntu fans have nothing to be worried about. This ain&#8217;t gonna topple the world&#8217;s favorite Linux anytime soon. Indeed, it&#8217;s not in gOS&#8217; interest to do that. And I don&#8217;t really think that&#8217;s the intention anyway. The gOS guys seem to have OEM partnerships in mind. This is pretty smart, but it&#8217;s just one small component of Ubuntu&#8217;s plans for world domination. </p>
<p>I really liked the Google/web 2.0 integration of gOS, and it works surprisingly well. I must confess that I had expected to hate it. But I wonder why there isn&#8217;t an existing Ubuntu-sponsored project to meet the same ends. This is such an obvious avenue to travel down that it&#8217;s surprising only gOS is doing so.</p>
<p>But gOS may well be 5-10 years ahead of its time. At the beginning of this review I mentioned that Microsoft&#8217;s demise is because the era of personal computing is coming to an end. This is true, but while personal computing is dying, it isn&#8217;t dead yet. gOS looks to a future of <em>shared computing</em>, rather than personal computing, but the guys behind it ought to remember that being too early with a technology can be as bad as being too late. Timing is everything.  </p>
<p>In summing-up on a practical level, I&#8217;d say that if gOS has a fault it&#8217;s that it&#8217;s a little rough-and-ready. It feels clumsy. Some of this might be down to the beta status of the release I looked at, but I don&#8217;t think that explains all of it. There&#8217;s a feeling of disparate things being thrown together (a disease that has blighted many up-and-coming Linux distros).</p>
<p>Ubuntu excels in sheer attention to detail, and this was something new that it brought to the world of Linux that accounted for its success. Some of that attention would be welcome here. </p>
<p>You can <a href="http://thinkgos.com/new/dgadgets.php" target="_blank">download the public beta</a> of gOS yourself and try it out. I advise you to do so. I don&#8217;t think most of us will switch to it anytime soon, but it&#8217;s an interesting future echo of the way things might be in a few years&#8217; time.</p>
<p><small><em>(C) 2008 Keir Thomas. You may reproduce the above on your blog provided that an author credit is given and a link to </em><a href="http://www.ubuntukungfu.com" target="_blank"><em>www.ubuntukungfu.com</em></a><em> is clearly shown.</em> </small><br />
________</p>
<p>My name is Keir Thomas and I <a href="http://www.ubuntukungfu.com" target="_blank">write books about Ubuntu</a>.<br />
<script type="text/javascript"><!--
google_ad_client = "pub-5731564017850986";
/* 468x60, created 8/18/08 */
google_ad_slot = "4553215197";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ubuntukungfu.org/blog/2008/08/gos-the-ubuntu-giant-killer/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Add pictures and passwords to Ubuntu&#8217;s boot menu</title>
		<link>http://www.ubuntukungfu.org/blog/2008/08/adding-pictures-and-passwords-to-ubuntus-boot-menu/</link>
		<comments>http://www.ubuntukungfu.org/blog/2008/08/adding-pictures-and-passwords-to-ubuntus-boot-menu/#comments</comments>
		<pubDate>Tue, 12 Aug 2008 10:02:26 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.ubuntukungfu.org/blog/?p=157</guid>
		<description><![CDATA[Ubuntu&#8217;s boot menu is provided by GRUB (GRand Unified Boot loader). Some other distributions use LILO, but GRUB has many benefits: it&#8217;s simple, small, and relatively easily configured.
Below I explain how to add a &#8220;wallpaper&#8221; to the GRUB boot menu, and then explain how to add password protection. Both tips are taken from my new [...]]]></description>
			<content:encoded><![CDATA[<p>Ubuntu&#8217;s boot menu is provided by GRUB (GRand Unified Boot loader). Some other distributions use LILO, but GRUB has many benefits: it&#8217;s simple, small, and relatively easily configured.</p>
<p>Below I explain how to add a &#8220;wallpaper&#8221; to the GRUB boot menu, and then explain how to add password protection. Both tips are taken from my new book <em><a href="http://www.pragprog.com/titles/ktuk/ubuntu-kung-fu" target="_blank">Ubuntu Kung Fu</a></em>, and should work OK on other distributions of Linux, although I&#8217;ve only tested these steps on Ubuntu 8.04.1.</p>
<p>Let&#8217;s crack on with it.</p>
<p><span id="more-157"></span></p>
<h3>Give the Boot Menu Wallpaper</h3>
<p>Ubuntu’s boot menu is ugly and looks like it’s straight out of 1985. It doesn’t have to be this way. The GRUB menu software is capable of having a graphical backdrop that can be any picture. However, you’ll need to shrink the picture and reduce its color level. Because of this need to simplify the image, graphical designs tend to work better than photographs (I noticed that cartoon images work well too—pictures from <em>The Simpsons</em> are a particularly good choice!).</p>
<p><img class="left" title="13" src="http://www.ubuntukungfu.org/blog/wp-content/uploads/2008/07/1.gif" alt="" width="60" height="40" />Choose a picture, and then load it into the GIMP (right-click, and select<em> Open With &#8212;&gt; Open with “GIMP Image Editor”</em>); you might like to know that the default Ubuntu desktop wallpapers are stored in <em>/usr/share/backgrounds</em>. You should select a picture that’s roughly in 4:3 ratio, such as a digital camera snap. Don’t select very tall or broad images&#8212;they won’t work.</p>
<p><img class="left" title="13" src="http://www.ubuntukungfu.org/blog/wp-content/uploads/2008/07/2.gif" alt="" width="60" height="40" />Right-click the image within GIMP, and select <em>Image &#8212;&gt; Scale Image</em>. In the <em>Width</em> box, type <em>640</em>, and hit the Tab key. The <em>Height</em> box should then automatically change to <em>480</em>. If it doesn’t, click the small chain icon to the right of the <em>Width</em> and <em>Height</em> boxes so that it changes to a broken chain icon. Then enter <em>480</em> into the <em>Height</em> box. Once done, click the <em>Scale</em> button.</p>
<p><img class="left" title="13" src="http://www.ubuntukungfu.org/blog/wp-content/uploads/2008/07/3.gif" alt="" width="60" height="40" />Right-click the image again within GIMP, and select <em>Image &#8212;&gt; Mode &#8212;&gt; Indexed</em>. Ensure <em>Generate Optimum Palette</em> is selected, and then type <em>14</em> into the <em>Maximum Number of Colors</em> box. Then click the <em>Convert</em> button. The picture might now look ugly, but such a low color count is all the GRUB boot menu allows. You might want to try an alternative simpler image if you don’t like what you see. Some nice Ubuntu-themed ready-made boot menu wallpapers are available for download from <a href="https://wiki.ubuntu.com/Artwork/Incoming/Hardy/Alternate/Grub" target="_blank">https://wiki.ubuntu.com/Artwork/Incoming/Hardy/Alternate/Grub</a>.</p>
<p><img class="left" title="13" src="http://www.ubuntukungfu.org/blog/wp-content/uploads/2008/07/4.gif" alt="" width="60" height="40" />Right-click the image again within GIMP, and select File &#8212;&gt; Save As. Give the ﬁle a name in the <em>Name</em> box, and use the <em>.xpm</em> ﬁle extension. You might save the ﬁle as <em>bootwallpaper.xpm</em>, for example. Bear in mind that GIMP automatically detects the ﬁle type it should save the ﬁle as from the ﬁle extension. Click OK to select the default alpha values, if prompted.</p>
<p><img class="left" title="13" src="http://www.ubuntukungfu.org/blog/wp-content/uploads/2008/07/5.gif" alt="" width="60" height="40" />Open a terminal window, and type the following (this assumes the ﬁle was saved to the desktop):</p>
<pre>sudo mkdir /boot/grub/splashimages
gzip ~/Desktop/bootwallpaper.xpm
sudo mv ~/Desktop/bootwallpaper.xpm.gz /boot/grub/splashimages</pre>
<p><img class="left" title="13" src="http://www.ubuntukungfu.org/blog/wp-content/uploads/2008/07/6.gif" alt="" width="60" height="40" />Replace <em>bootwallpaper</em> mentioned earlier with the ﬁlename you chose.</p>
<p><img class="left" title="13" src="http://www.ubuntukungfu.org/blog/wp-content/uploads/2008/07/7.gif" alt="" width="60" height="40" />Then open the boot menu ﬁle for editing in Gedit:</p>
<pre>gksu gedit /boot/grub/menu.lst</pre>
<p>Look for the line that begins <em>## ## End Default Options ##,</em> and, after that, add a new line that reads <em>splashimage=(hd0,4)/boot/grub/splashimages/bootwallpaper.xpm.gz.</em></p>
<p>As earlier, replace <em>bootwallpaper</em> with the ﬁlename you chose. Save the ﬁle, and then reboot to see the new wallpaper in action.</p>
<p><a href="http://www.ubuntukungfu.org/blog/wp-content/uploads/2008/08/ch3bootwallpaper.gif"><img class="center size-medium wp-image-160" title="ch3bootwallpaper" src="http://www.ubuntukungfu.org/blog/wp-content/uploads/2008/08/ch3bootwallpaper-300x231.gif" alt="" width="300" height="231" /></a></p>
<p>Note that the last step assumes your computer is dual-booting with Windows. If Ubuntu is the only operating system on your computer, the line should read <em>splashimage=(hd0,0)/boot/grub/splashimages/bootwallpaper.xpm.gz</em>.</p>
<p>To remove the wallpaper, simply edit the <em>menu.lst</em> ﬁle and remove the <em>splashimage</em> line you added.
<p>

<!-- Begin Google Adsense code -->
<script type="text/javascript"><!--
google_ad_client = "pub-5731564017850986";
/* 468x60, created 8/18/08 */
google_ad_slot = "4553215197";
google_ad_width = 468;
google_ad_height = 60;
// --></script>

<script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript"></script>

<!-- End Google Adsense code -->
</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ubuntukungfu.org/blog/2008/08/adding-pictures-and-passwords-to-ubuntus-boot-menu/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
