<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" version="2.0">

<channel>
	<title>Tombuntu</title>
	
	<link>http://tombuntu.com</link>
	<description>News, Tips, and How-Tos for Ubuntu Linux</description>
	<lastBuildDate>Thu, 26 Apr 2012 22:44:01 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/Tombuntu" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="tombuntu" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>Setting up Ubuntu on an SSD</title>
		<link>http://tombuntu.com/index.php/2012/04/26/setting-up-ubuntu-on-an-ssd/</link>
		<comments>http://tombuntu.com/index.php/2012/04/26/setting-up-ubuntu-on-an-ssd/#comments</comments>
		<pubDate>Thu, 26 Apr 2012 22:44:01 +0000</pubDate>
		<dc:creator>Tom</dc:creator>
				<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://tombuntu.com/?p=2143</guid>
		<description><![CDATA[I recently purchased a new solid state drive (SSD) to replace my current hard drive (HDD). Since SSDs work so much differently than HDDs, it&#8217;s worth while to make some optimizations in Ubuntu for them. SSDs are much faster than HDDs, but have a limited number of writes before they wear out. This makes balancing [...]]]></description>
			<content:encoded><![CDATA[<p>I recently purchased a new solid state drive (SSD) to replace my current hard drive (HDD). Since SSDs work so much differently than HDDs, it&#8217;s worth while to make some optimizations in Ubuntu for them. SSDs are much faster than HDDs, but have a limited number of writes before they wear out. This makes balancing performance with the life of your SSD also a big concern for how you tune your system.</p>
<p>I&#8217;ve <a href="http://tombuntu.com/index.php/2008/09/04/four-tweaks-for-using-linux-with-solid-state-drives/">written a post on this topic before</a> for the older SSD in my netbook.</p>
<p><strong>Partitioning and bind mounts</strong></p>
<p>I partitioned my 60 GB SSD into a 10 GB <em>/</em> partition, and a 50 GB <em>/home</em> partition, both using the default ext4 filesystem. I kept my old HDD home partition mounted at <em>/media/oldhome</em>. </p>
<p>I wanted to put some of my large and infrequently accessed files, like virtual machines and videos, on the more spacious HDD. I also wanted to make accessing these files from my home directory seamless. One way to do this would be to symlink folders from the SSD to the HDD. However, I found that this wouldn&#8217;t be fully seamless for some applications that don&#8217;t follow symlinks. </p>
<p>Bind mounts are a better solution. They allow a directory in a filesystem to be mounted in additional locations, similarly to symlinks but fully transparent to applications. To test bind mounting my videos directory, I ran mount with the bind option, and specified the source directory (on the HDD), and the mount point (which must already exist):<br />
<code>mount --bind /media/oldhome/tom/Videos /home/tom/Videos</code></p>
<p>To make my bind mounts permanent, I added them to my <em>/etc/fstab</em> file in this format:<br />
<code>/media/oldhome/tom/Videos /home/tom/Videos none bind 0 0</code></p>
<p>If you need to add a path with a space in it, replace the space with <em>\040</em> to escape it. If you make a mistake and one of the bind mounts fails, Ubuntu will allow you to skip it and continue booting. So far the bind mount approach seems to work perfectly.</p>
<p><strong>Mount options for SSDs</strong></p>
<p>Any recent SSD should have the <a href="http://en.wikipedia.org/wiki/TRIM">TRIM</a> command available, which prevents performance degredation by allowing the OS to notify the SSD of which blocks are unused. The ext4 filesystem uses TRIM when the <em>discard</em> option is set.</p>
<p>The <em>noatime</em> option reduces writes to the SSD by not writing access time updates whenever a file is read. This improves performance and increases the life of the SSD.</p>
<p>I set these two mount options though <em>/etc/fstab</em> for both my SSD partitions by adding <em>discard</em> and <em>noatime</em> to the list of options for <em>/</em> and <em>/home</em> like this:<br />
<code>UUID=193af662-d7a0-47fb-b3f7-141ae3d19227 / ext4 errors=remount-ro,noatime,discard 0 1</code></p>
<p><strong>Disk head scheduler for SSDs</strong></p>
<p>A disk scheduler optimizes the order of disk requests by considering the position of the hard drive&#8217;s read/write head. An SSD needs no such optimization, so it&#8217;s best to use the noop (no-operation) scheduler.</p>
<p>I switched to the noop scheduler for my SSD by adding the to following line to <em>/etc/rc.local</em> (replace <em>sdb</em> with your own SSD&#8217;s device node name):<br />
<code>echo noop > /sys/block/sdb/queue/scheduler</code></p>
<p><strong>Swap and swappiness</strong></p>
<p>I kept my swap partition on the old HDD. Swap on the SSD would be faster, but would also shorten the SSD&#8217;s life.</p>
<p>My system has plenty of memory, so I also reduced <a href="https://help.ubuntu.com/community/SwapFaq#What_is_swappiness_and_how_do_I_change_it.3F">the swappiness value</a> to 0 to tell Ubuntu to only swap when absolutely necessary. I did this by adding the line <em>vm.swappiness=0</em> to <em>/etc/sysctl.conf</em>.</p>
<p><strong>Even more</strong></p>
<p>There are many more ways to tune Ubuntu for SSDs. A few things I haven&#8217;t done are: partition alignment (Ubuntu&#8217;s partitioner now seems to take care of this automatically), disabling journalling (I&#8217;d prefer reliablity over slightly reduced SSD life), and mounting <em>/tmp</em> or browser cache in memory (I&#8217;d prefer to save the memory). The Arch Linux Wiki has a <a href="https://wiki.archlinux.org/index.php/Solid_State_Drives">comprehensive page on SSDs</a>, and here&#8217;s <a href="http://cptl.org/wp/index.php/2010/03/30/tuning-solid-state-drives-in-linux/">another article</a> that goes more in-depth in some of the things I mentioned here.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Tombuntu?a=VPCokbmBT5k:rs3XU8Zg_WE:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/Tombuntu?i=VPCokbmBT5k:rs3XU8Zg_WE:D7DqB2pKExk" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://tombuntu.com/index.php/2012/04/26/setting-up-ubuntu-on-an-ssd/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>GNOME 3.2 and GNOME Shell Extensions</title>
		<link>http://tombuntu.com/index.php/2011/12/05/gnome-3-2-and-gnome-shell-extensions/</link>
		<comments>http://tombuntu.com/index.php/2011/12/05/gnome-3-2-and-gnome-shell-extensions/#comments</comments>
		<pubDate>Tue, 06 Dec 2011 03:14:32 +0000</pubDate>
		<dc:creator>Tom</dc:creator>
				<category><![CDATA[software]]></category>

		<guid isPermaLink="false">http://tombuntu.com/?p=2132</guid>
		<description><![CDATA[GNOME has launched an alpha of the GNOME Shell Extensions website. Like Firefox, GNOME Shell allows extensions to modify and extend the user interface. The site allows you to browse and install extensions written by third parties, but reviewed by GNOME before being made available. There are already many extensions to bring back elements of [...]]]></description>
			<content:encoded><![CDATA[<p>GNOME has launched an alpha of the <a href="https://extensions.gnome.org/">GNOME Shell Extensions website</a>. Like Firefox, GNOME Shell allows extensions to modify and extend the user interface. The site allows you to browse and install extensions written by third parties, but reviewed by GNOME before being made available. There are already many extensions to bring back elements of GNOME 2.</p>
<p>To try GNOME Shell Extensions, you&#8217;ll need to be running GNOME 3.2. Ubuntu 11.10 only has GNOME 3.0, but <a href="https://launchpad.net/~gnome3-team/+archive/gnome3">the GNOME3 Team PPA</a> provides packages to update it. I added this PPA on my netbook to update<a href="http://tombuntu.com/index.php/2011/10/03/install-gnome-shell-in-ubuntu-11-10/"> my existing GNOME Shell installation</a> in Ubuntu 11.10.</p>
<p>Extensions are installed using a plugin, included with GNOME, that currently only works with Firefox. When it&#8217;s working, an extension&#8217;s page has a large switch to enable and disable the extension. Flip the switch, select <em>Install</em> in the confirmation dialog, and the extension almost immediately activates. Disabling an extension is just as easy. Here&#8217;s the <a href="https://extensions.gnome.org/extension/6/applications-menu/">Applications Menu</a> extension in action:</p>
<p><img src="http://tombuntu.com/wp-content/uploads/2011/12/gnome_shell_extensions.jpg" alt="GNOME Shell Applications Menu extension" /></p>
<p>I&#8217;d like to see an extension that maximizes screen space on my netbook by hiding the title bar of maximized windows like Unity does.</p>
<p>Could GNOME Shell extensions become a killer feature for GNOME 3?</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Tombuntu?a=TOrvYeCwiNs:-1heV0NXojs:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/Tombuntu?i=TOrvYeCwiNs:-1heV0NXojs:D7DqB2pKExk" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://tombuntu.com/index.php/2011/12/05/gnome-3-2-and-gnome-shell-extensions/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Even More Graphical Git Clients</title>
		<link>http://tombuntu.com/index.php/2011/12/02/even-more-graphical-git-clients/</link>
		<comments>http://tombuntu.com/index.php/2011/12/02/even-more-graphical-git-clients/#comments</comments>
		<pubDate>Sat, 03 Dec 2011 01:21:06 +0000</pubDate>
		<dc:creator>Tom</dc:creator>
				<category><![CDATA[software]]></category>

		<guid isPermaLink="false">http://tombuntu.com/?p=2122</guid>
		<description><![CDATA[Since my last post about finding a graphical Git client for Ubuntu, I&#8217;ve been using the excellent gitg. But here&#8217;s four more that I&#8217;ve come across since then, most recommended by comments on the previous post: qgit, as the name suggests, uses the QT GUI toolkit. qgit is a gitk-style interface for viewing revisions. Before [...]]]></description>
			<content:encoded><![CDATA[<p>Since my last post about finding a <a href="http://tombuntu.com/index.php/2011/11/26/graphical-git-clients-for-ubuntu/">graphical Git client for Ubuntu</a>, I&#8217;ve been using the excellent <a href="http://trac.novowork.com/gitg/">gitg</a>. But here&#8217;s four more that I&#8217;ve come across since then, most recommended by comments on the previous post:</p>
<ul>
<li><a href="http://sourceforge.net/projects/qgit/">qgit</a>, as the name suggests, uses the QT GUI toolkit. qgit is a gitk-style interface for viewing revisions. Before you can see uncommitted changes, you&#8217;ll have to open <em>Edit->Settings->Working dir->Diff against working dir</em>. There is committing support, but with a very basic interface. In the <em>Actions</em> menu, you can define custom actions to run other git commands and see their output.
</li>
<p><img src="http://tombuntu.com/wp-content/uploads/2011/12/qgit.jpg" alt="qgit" /></p>
<li><a href="http://www.syntevo.com/smartgit/index.html">SmartGIT</a> is a very advanced Git interface that is closed source but free for non-commercial use. I wanted to try this out, but it refuses to run without the Sun/Oracle Java runtime. I didn&#8217;t feel like disturbing my OpenJDK installation, and in Ubuntu 11.10 Sun/Oracle Java is no longer supported at all. From the screenshots though, it looks very comprehensive.</li>
<li><a href="http://www.geany.org/">Geany</a> is a simple IDE similar to Gedit. The <em>geany-plugins</em> package in Ubuntu provides GeanyVC, a basic version control plugin for Geany supporting six different VCSs. Once the plugin is enabled, the <em>Tools->VC</em> menu provides simple actions for the current file, directory, and base directory of the repository. The interface is very minimal; viewing any information like the log will open a new document containing raw output from git.
</li>
<p><img src="http://tombuntu.com/wp-content/uploads/2011/12/geanyvc_commit.jpg" alt="GeanyVC's commit window" /></p>
<li><a href="http://www.rabbitvcs.org/">RabbitVCS</a> provides a set of tools for working with both Git and Subversion. Nautilus file browser and Gedit integration are provided, as well as dialogs for Git actions. I haven&#8217;t tested RabbitVCS yet, and the version in the Ubuntu repositories doesn&#8217;t support Git. However, <a href="http://wiki.rabbitvcs.org/wiki/install/ubuntu">instructions and a PPA</a> are available for installing the latest version.</li>
</ul>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Tombuntu?a=TTuyhZjImt8:QhWwciTXKag:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/Tombuntu?i=TTuyhZjImt8:QhWwciTXKag:D7DqB2pKExk" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://tombuntu.com/index.php/2011/12/02/even-more-graphical-git-clients/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Shutter 0.88 Screenshot Tool Released</title>
		<link>http://tombuntu.com/index.php/2011/11/28/shutter-0-88-screenshot-tool-released/</link>
		<comments>http://tombuntu.com/index.php/2011/11/28/shutter-0-88-screenshot-tool-released/#comments</comments>
		<pubDate>Tue, 29 Nov 2011 02:15:04 +0000</pubDate>
		<dc:creator>Tom</dc:creator>
				<category><![CDATA[software]]></category>

		<guid isPermaLink="false">http://tombuntu.com/?p=2115</guid>
		<description><![CDATA[The screenshot tool Shutter has been updated to version 0.88, adding upload support for many more services, including Dropbox. Shutter offers advanced screen capture modes, a built in image editor, image editing plugins, and the new upload plugins. The new upload plugins seem to be very well implemented. To upload to Dropbox for the first [...]]]></description>
			<content:encoded><![CDATA[<p>The <a href="http://shutter-project.org/">screenshot tool Shutter</a> has been updated to <a href="http://shutter-project.org/2011/11/shutter-0-88-released/">version 0.88</a>, adding upload support for many more services, including Dropbox. Shutter offers advanced screen capture modes, a built in image editor, image editing plugins, and the new upload plugins.</p>
<p>The new upload plugins seem to be very well implemented. To upload to Dropbox for the first time, all I needed to be was click a button in my browser to authorize Shutter&#8217;s access to my Dropbox account.</p>
<p><img src="http://tombuntu.com/wp-content/uploads/2011/11/shutter088.jpg" alt="Shutter 0.88" /></p>
<p>I&#8217;ve had Shutter installed for a while, but I haven&#8217;t been using it much. However, after taking another look I seem to have solved all my problems with it:</p>
<ul>
<li>It&#8217;s not obvious how to resize an image, but it can be done with Shutter. Right click on an image, select <em>Run a Plugin</em>, select <em>Resize</em>, and click <em>Run</em>.</li>
<li>By default Shutter likes to run in the background rather than quitting. Stop this by opening <em>Edit->Preferences->Behavior</em> and uncheck <em>Minimize to tray when closing main window</em>.</li>
<li>By default Shutter will save every image you capture. To stop it from littering your home directory with files you don&#8217;t want, open <em>Edit->Preferences->Main</em> and select <em>Do not save file automatically</em>.</li>
</ul>
<p>Ubuntu 11.10 and 11.04 both have an older version of Shutter in their repositories. To get version 0.88 with the new upload plugins, you&#8217;ll need to follow the directions to add <a href="http://shutter-project.org/faq-help/ppa-installation-guide/">the official Shutter PPA</a>.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Tombuntu?a=sNED19OsnbM:qcNOIxwOaOM:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/Tombuntu?i=sNED19OsnbM:qcNOIxwOaOM:D7DqB2pKExk" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://tombuntu.com/index.php/2011/11/28/shutter-0-88-screenshot-tool-released/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Graphical Git Clients for Ubuntu</title>
		<link>http://tombuntu.com/index.php/2011/11/26/graphical-git-clients-for-ubuntu/</link>
		<comments>http://tombuntu.com/index.php/2011/11/26/graphical-git-clients-for-ubuntu/#comments</comments>
		<pubDate>Sun, 27 Nov 2011 05:31:06 +0000</pubDate>
		<dc:creator>Tom</dc:creator>
				<category><![CDATA[software]]></category>

		<guid isPermaLink="false">http://tombuntu.com/?p=2101</guid>
		<description><![CDATA[Command line Git can pale in comparison to fancy web interfaces like GitHub and Bitbucket. Using these sites lead me to look at some of the graphical Git clients available in Ubuntu. I&#8217;m far from a Git expert, and I haven&#8217;t spend much time playing with these yet, but here&#8217;s what I found: git gui [...]]]></description>
			<content:encoded><![CDATA[<p>Command line <a href="http://git-scm.com/">Git</a> can pale in comparison to fancy web interfaces like <a href="http://github.com/">GitHub</a> and <a href="http://bitbucket.org/">Bitbucket</a>. Using these sites lead me to look at some of the graphical Git clients available in Ubuntu. I&#8217;m far from a Git expert, and I haven&#8217;t spend much time playing with these yet, but here&#8217;s what I found:</p>
<p><img src="http://tombuntu.com/wp-content/uploads/2011/11/gitg.jpg" alt="gitg browsing a repository" /></p>
<ul>
<li>git gui is one of the two official graphical tools available for git. It lets you create commits by staging changes and writing a commit message. There are many more features for remote repositories and branches. The major downside is that the UI and fonts look awful. (Ubuntu package <em>git-gui</em>)</li>
<li>gitk, the other official tool, allows viewing a repository through the commit log. Selecting a commit shows its details, including diffs for all or a selected file. gitk has the same awful UI as git gui. (Ubuntu package <em>gitk</em>)</li>
<li><a href="https://live.gnome.org/giggle">Giggle</a> has a browse view for viewing the repository tree and selecting files to see what commits affected each file and how. The history view is similar to gitk, but with a nice graph view column showing branching and merging. (Ubuntu package <em>giggle</em>)</li>
<li><a href="http://git-cola.github.com/screenshots.html">Git Cola</a> is a tool similar to git gui for committing and pushing changes. There are buttons for common actions like staging files, pulling, and pushing, as well as an area to write new commit messages. (Ubuntu package <em>git-cola</em>)</li>
<li><a href="http://trac.novowork.com/gitg/">gitg</a> (linked website appear to be down) can both view repositories and make new commits. Its history tab is similar to both gitk and Giggle, but also has graphs showing the amount of changes made to files and a tree view similar to Giggle&#8217;s. The commit tab is similar to git gui, but doesn&#8217;t have as many advanced features for branches or remote repositories. (Ubuntu package <em>gitg</em>)</li>
</ul>
<p>gitg is the most promising tool for my purposes. It combines both gitk and git gui-style interfaces in one program. I wish it it had an easy way to push to a remote repository &#8211; and there&#8217;s only a fetch button that&#8217;s tucked away in the <em>File->Repository Properties</em> dialog. [<strong>Update</strong> It's possible to push after all: right clicking on a branch label in the commit log will show more actions. The branch labels can also be drag-and-dropped on each other.]</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Tombuntu?a=bDUQmpSmw1s:opSCyk_oNk8:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/Tombuntu?i=bDUQmpSmw1s:opSCyk_oNk8:D7DqB2pKExk" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://tombuntu.com/index.php/2011/11/26/graphical-git-clients-for-ubuntu/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Watch YouTube Videos Using VLC</title>
		<link>http://tombuntu.com/index.php/2011/11/20/watch-youtube-videos-using-vlc/</link>
		<comments>http://tombuntu.com/index.php/2011/11/20/watch-youtube-videos-using-vlc/#comments</comments>
		<pubDate>Mon, 21 Nov 2011 01:54:47 +0000</pubDate>
		<dc:creator>Tom</dc:creator>
				<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://tombuntu.com/?p=2093</guid>
		<description><![CDATA[My Eee PC 901 is more than powerful enough to play back 480p video, but not when it&#8217;s playing though Adobe Flash Player. 408p YouTube videos drop frames and don&#8217;t play back at full framerate. YouTube has an experimental HTML5 video player that should offer better better performance than Flash. I enabled it, but it [...]]]></description>
			<content:encoded><![CDATA[<p>My Eee PC 901 is more than powerful enough to play back 480p video, but not when it&#8217;s playing though Adobe Flash Player. 408p YouTube videos drop frames and don&#8217;t play back at full framerate. YouTube has an <a href="http://www.youtube.com/html5">experimental HTML5 video player</a> that should offer better better performance than Flash. I enabled it, but it seems that very few videos support it because advertising will cause a fallback to Flash.</p>
<p><a href="http://www.videolan.org/vlc/">VLC media player</a> supports network streaming from a YouTube. Select <em>Media->Open Network Stream</em>, paste a YouTube URL, and click <em>Play</em>. This seems to work for any YouTube video, and plays back noticeably smoother than Flash on my netbook.</p>
<p><img src="http://tombuntu.com/wp-content/uploads/2011/11/vlc_youtube.jpg" alt="YouTube video in VLC" /></p>
<p>VLC isn&#8217;t a perfect solution. First, there&#8217;s the inconvenience of copying and pasting a URL for each video. Second, there doesn&#8217;t seem to be a way to change the resolution (but it defaults to 480p, which happens to be what I want). Third, VLC doesn&#8217;t seem to handle buffering as well as Flash does. While YouTube can play continuously, VLC sometimes has to stop and buffer more video. Selecting <em>Show more options</em> and increasing the cache size to something like 20000 ms seems to help a bit.</p>
<p>I&#8217;ve been using Ubuntu 11.10&#8242;s VLC for this. While Ubuntu 11.04&#8242;s VLC seems to support YouTube, I&#8217;ve only been getting <em>VLC can&#8217;t recognize the input&#8217;s format</em> errors with this version.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Tombuntu?a=ZAhMgLQo_Dg:e7Exbgo-97s:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/Tombuntu?i=ZAhMgLQo_Dg:e7Exbgo-97s:D7DqB2pKExk" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://tombuntu.com/index.php/2011/11/20/watch-youtube-videos-using-vlc/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>LaTeX Editor Gummi 0.6.0 Released</title>
		<link>http://tombuntu.com/index.php/2011/11/18/latex-editor-gummi-0-6-0-released/</link>
		<comments>http://tombuntu.com/index.php/2011/11/18/latex-editor-gummi-0-6-0-released/#comments</comments>
		<pubDate>Sat, 19 Nov 2011 01:23:42 +0000</pubDate>
		<dc:creator>Tom</dc:creator>
				<category><![CDATA[software]]></category>

		<guid isPermaLink="false">http://tombuntu.com/?p=2086</guid>
		<description><![CDATA[I&#8217;ve been doing lots of document editing with LaTeX lately, so I was happy to see that a new version of my favorite LaTeX editor has been released. Gummi 0.6.0 adds many requested features. I&#8217;ve been looking forward most to continuous scrolling in the preview pane, but there&#8217;s now also tabbed editing, project support, and [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been doing lots of document editing with <a href="http://www.latex-project.org/">LaTeX</a> lately, so I was happy to see that a new version of <a href="http://tombuntu.com/index.php/2011/09/18/simple-latex-editing-with-gummi/">my favorite LaTeX editor</a> has been released. <a href="http://gummi.midnightcoding.org/?p=381">Gummi 0.6.0</a> adds many requested features. I&#8217;ve been looking forward most to continuous scrolling in the preview pane, but there&#8217;s now also tabbed editing, project support, and more compilation options.</p>
<p><img src="http://tombuntu.com/wp-content/uploads/2011/11/gummi060.jpg" alt="Gummi 0.6.0" /></p>
<p>It would be nice if the spell checker would skip LaTeX commands. It looks like <a href="http://dev.midnightcoding.org/redmine/issues/142">this issue is being worked on</a>, but is waiting for a patch in the underlying spell-check library. I&#8217;ve also noticed that if you&#8217;re selecting text while the preview refreshes, the selection gets stuck <a href="http://dev.midnightcoding.org/redmine/issues/308">(bug report)</a>.</p>
<p>Ubuntu packages for Gummi are available from <a href="https://launchpad.net/~gummi/+archive/gummi">the Gummi PPA</a>.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Tombuntu?a=ryP1Yu8oxPE:o74FmLSYvao:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/Tombuntu?i=ryP1Yu8oxPE:o74FmLSYvao:D7DqB2pKExk" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://tombuntu.com/index.php/2011/11/18/latex-editor-gummi-0-6-0-released/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Automatic Indentation Detection in gedit</title>
		<link>http://tombuntu.com/index.php/2011/11/14/automatic-indentation-detection-in-gedit/</link>
		<comments>http://tombuntu.com/index.php/2011/11/14/automatic-indentation-detection-in-gedit/#comments</comments>
		<pubDate>Tue, 15 Nov 2011 01:40:42 +0000</pubDate>
		<dc:creator>Tom</dc:creator>
				<category><![CDATA[software]]></category>

		<guid isPermaLink="false">http://tombuntu.com/?p=2080</guid>
		<description><![CDATA[Whether you prefer indenting code with tabs or spaces, the last thing you want to do is mix both styles in one file. The gedit text editor lets you specify what to insert when you press tab, but if you&#8217;re jumping between files in different languages or written by different people, you must remember to [...]]]></description>
			<content:encoded><![CDATA[<p>Whether you prefer indenting code with tabs or spaces, the last thing you want to do is mix both styles in one file. The gedit text editor lets you specify what to insert when you press tab, but if you&#8217;re jumping between files in different languages or written by different people, you must remember to check the settings each time you open a file.</p>
<p><a href="http://code.google.com/p/gedit-autotab/">gedit-autotab</a> is a plugin for gedit that solves this problem by automatically changing the indentation settings to match the style detected in each file. The plugin works with gedit 2 (Ubuntu 11.04), and there&#8217;s <a href="http://git.slashdev.ca/gedit-autotab/?h=gedit3">a forked version</a> available for gedit 3 (Ubuntu 11.10).</p>
<p>For gedit 2 / Ubuntu 11.04: Download <a href="http://code.google.com/p/gedit-autotab/downloads/detail?name=autotab-0.7.tar.gz&#038;can=2&#038;q=">this archive file</a> and open it. Put the <em>autotab.py</em> and <em>autotab.gedit-plugin</em> files in <em>~/.gnome2/gedit/plugins</em> (create the <em>plugins</em> folder if it doesn&#8217;t exist).</p>
<p>For gedit 3 / Ubuntu 11.10: Download <a href="http://git.slashdev.ca/gedit-autotab/commit/?h=gedit3">the archive file from this page</a> and open it. Put the <em>autotab.py</em> and <em>autotab.plugin</em> files in <em>~/.local/share/gedit/plugins</em> (create the <em>gedit/plugins</em> folder if it doesn&#8217;t exist).</p>
<p><img src="http://tombuntu.com/wp-content/uploads/2011/11/gedit-autotab.jpg" alt="gedit-autotab" /></p>
<p>Finally, open <em>Edit->Preferences->Plugins</em>, and select <em>Auto Tab</em> to activate the plugin. You will get a new item on the status bar showing the current indentation style, which will change depending on the files you open.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Tombuntu?a=Ded30YMqZyw:twJCYOx2hIE:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/Tombuntu?i=Ded30YMqZyw:twJCYOx2hIE:D7DqB2pKExk" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://tombuntu.com/index.php/2011/11/14/automatic-indentation-detection-in-gedit/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Dynamic DNS Updates with ddclient</title>
		<link>http://tombuntu.com/index.php/2011/11/13/dynamic-dns-updates-with-ddclient/</link>
		<comments>http://tombuntu.com/index.php/2011/11/13/dynamic-dns-updates-with-ddclient/#comments</comments>
		<pubDate>Sun, 13 Nov 2011 23:07:48 +0000</pubDate>
		<dc:creator>Tom</dc:creator>
				<category><![CDATA[software]]></category>

		<guid isPermaLink="false">http://tombuntu.com/?p=2068</guid>
		<description><![CDATA[A dynamic DNS service allows you to keep a domain name pointing to your network even when your network&#8217;s IP address changes. Most ISPs will dynamically allocate IPs, so if you want to reliably reach your home network remotely, a dynamic DNS service is a good idea. ddclient is a dynamic DNS update client which [...]]]></description>
			<content:encoded><![CDATA[<p>A dynamic DNS service allows you to keep a domain name pointing to your network even when your network&#8217;s IP address changes. Most ISPs will dynamically allocate IPs, so if you want to reliably reach your home network remotely, a dynamic DNS service is a good idea.</p>
<p><a href="http://sourceforge.net/apps/trac/ddclient/">ddclient</a> is a dynamic DNS update client which runs in the background periodically checking your external IP address and sending an update to your dynamic DNS provider if it changes. I was ready to edit configuration files and set up a cron job, but none of that was needed because ddclient has a graphical install interface that makes the setup very easy.</p>
<p>I&#8217;m using the free version of <a href="http://dyn.com/">DynDNS</a> but ddclient also has build-in support for <a href="http://easydns.com">easyDNS</a>, <a href="http://dslreports.com">DSLReports</a>, and <a href="http://zoneedit.com">ZoneEdit</a>.</p>
<p>Search for and install the package <em>ddclient</em> from the Ubuntu Software Center. During installation, you will be prompted for your dynamic DNS provider, credentials for that provider, and the hostname to update. Once ddclient is installed, it should be set up and working.</p>
<p><img src="http://tombuntu.com/wp-content/uploads/2011/11/ddclient.jpg" alt="ddclient configuration" /></p>
<p>You can check that ddclient successfully updated your IP by opening Log Viewer, selecting syslog, and looking for a line like <em>ddclient[549]: SUCCESS</em>.</p>
<p>If you want to rerun the install configuration you can do so by running this command:<br />
<code>sudo dpkg-reconfigure ddclient</code></p>
<p>To change the update period you need to edit <em>/etc/default/ddclient</em>, and change the <em>daemon_interval</em> line for the number of seconds you want between updates:<br />
<code>gksu gedit /etc/default/ddclient</code></p>
<p>Restart ddclient to make the change take effect:<br />
<code>sudo service ddclient restart</code></p>
<p>I changed the update period from 300 seconds (5 minutes) to 3600 seconds (1 hour) since my IP address rarely changes. However, there shouldn&#8217;t be any problem with frequent updates because ddclient will not make an unnecessary update request when your IP address has not changed.</p>
<p>The main ddclient configuration file is located at /etc/ddclient.conf:<br />
<code>gksu gedit /etc/ddclient.conf</code></p>
<p>See <a href="http://sourceforge.net/apps/trac/ddclient/wiki/Usage">the ddclient site</a> for more configuration options. The Ubuntu wiki has <a href="https://help.ubuntu.com/community/DynamicDNS">an extensive page on dynamic DNS</a>.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Tombuntu?a=qPGC6WLC9_Y:1IaezWa_ODc:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/Tombuntu?i=qPGC6WLC9_Y:1IaezWa_ODc:D7DqB2pKExk" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://tombuntu.com/index.php/2011/11/13/dynamic-dns-updates-with-ddclient/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Persistent Touchpad Configuration in Ubuntu 11.10</title>
		<link>http://tombuntu.com/index.php/2011/11/06/persistent-touchpad-configuration-in-ubuntu-11-10/</link>
		<comments>http://tombuntu.com/index.php/2011/11/06/persistent-touchpad-configuration-in-ubuntu-11-10/#comments</comments>
		<pubDate>Mon, 07 Nov 2011 03:44:46 +0000</pubDate>
		<dc:creator>Tom</dc:creator>
				<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://tombuntu.com/?p=2055</guid>
		<description><![CDATA[Recently I&#8217;ve fixed the tap-and-drag gesture, and swapped the right and middle click gestures on my netbook&#8217;s touchpad. I applied the configuration changes for these by adding the synclient configuration commands to Startup Applications. It didn&#8217;t take long before I noticed that some changes would revert after I suspended and woke the system. Even adding [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I&#8217;ve <a href="http://tombuntu.com/index.php/2011/10/31/fix-for-touchpad-trouble-in-ubuntu-11-10/">fixed the tap-and-drag gesture</a>, and <a href="http://tombuntu.com/index.php/2011/11/04/how-to-swap-two-and-three-finger-tap-gestures/">swapped the right and middle click gestures</a> on my netbook&#8217;s touchpad. I applied the configuration changes for these by adding the <em>synclient</em> configuration commands to <em>Startup Applications</em>. It didn&#8217;t take long before I noticed that some changes would revert after I suspended and woke the system. Even adding the changes to my Xorg configuration didn&#8217;t make them stick. What&#8217;s the deal?</p>
<p>It turns out that <a href="https://bugzilla.gnome.org/show_bug.cgi?id=598820">GNOME 3 will overwrite some touchpad options</a> with it&#8217;s own hardcoded defaults. Whenever GNOME re-detects your touchpad, even after a suspend, it will wipe out your options with its own that cannot be changed.</p>
<p>Fortunately <a href="https://bugzilla.gnome.org/show_bug.cgi?id=635486">GNOME provides a hook</a> so that after your changes are erased, you can set them again. Using a <em>dconf</em> value, you choose to run your own script.</p>
<p>Here&#8217;s how to make your custom touchpad configuration persistent through reboots and even suspends. Start by creating a file to hold your script. Run this command to create a <em>touchpad_settings.sh</em> file in your home directory and open it:<br />
<code>gedit ~/touchpad_settings.sh</code></p>
<p>Add your <em>synclient</em> commands to this file and save it. Mine looks like this:<br />
<code>synclient SingleTapTimeout=360 FastTaps=1<br />
synclient TapButton2=2 TapButton3=3</code></p>
<p>Make the file executable:<br />
<code>chmod +x ~/touchpad_settings.sh</code></p>
<p>Finally, set the <em>dconf</em> setting so GNOME knows where to find your script. Run the following command, but replace <em>tom</em> with your own username:<br />
<code>gsettings set org.gnome.settings-daemon.peripherals.input-devices hotplug-command "/home/tom/touchpad_settings.sh"</code></p>
<p>You don&#8217;t need to set your touchpad options any other way now. GNOME should run your script whenever you log in or wake the system from suspend.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Tombuntu?a=4I5JRZtFAj4:G9QrggBCs_4:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/Tombuntu?i=4I5JRZtFAj4:G9QrggBCs_4:D7DqB2pKExk" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://tombuntu.com/index.php/2011/11/06/persistent-touchpad-configuration-in-ubuntu-11-10/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss><!-- Dynamic page generated in 0.284 seconds. --><!-- Cached page generated by WP-Super-Cache on 2012-05-17 22:22:36 --><!-- Compression = gzip -->

