<?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/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" ><channel><title>Martin Ankerl &#187; ubuntu</title> <atom:link href="http://martin.ankerl.com/tag/ubuntu/feed/" rel="self" type="application/rss+xml" /><link>http://martin.ankerl.com</link> <description>Chunky bacon!!</description> <lastBuildDate>Sat, 04 Feb 2012 09:51:56 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <item><title>Logical Volume Manager Cheatsheet</title><link>http://martin.ankerl.com/2008/02/05/logical-volume-manager-cheatsheet/</link> <comments>http://martin.ankerl.com/2008/02/05/logical-volume-manager-cheatsheet/#comments</comments> <pubDate>Mon, 04 Feb 2008 23:08:47 +0000</pubDate> <dc:creator>martinus</dc:creator> <category><![CDATA[howto]]></category> <category><![CDATA[linux]]></category> <category><![CDATA[tutorial]]></category> <category><![CDATA[ubuntu]]></category><guid isPermaLink="false">http://martin.ankerl.com/2008/02/05/logical-volume-manager-cheatsheet/</guid> <description><![CDATA[Today I got a new harddisk, so it was finally time for me to have an in depth look at LVM. I use it to combine two harddisks /dev/sdg1 and /dev/sdb1 into one volume group ext_vg which contains one big &#8230; <a href="http://martin.ankerl.com/2008/02/05/logical-volume-manager-cheatsheet/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p>Today I got a new harddisk, so it was finally time for me to have an in depth look at <a href="http://sources.redhat.com/lvm2/">LVM</a>. I use it to combine two harddisks <tt>/dev/sdg1</tt> and <tt>/dev/sdb1</tt> into one volume group <tt>ext_vg</tt> which contains one big logical volume <tt>/dev/ext_vg/ext</tt>. In short, my 250GB and 500GB harddisks are used in one big 750GB ext3 mount point.</p><p>I followed the excellent <a href="http://www.linuxconfig.org/Linux_lvm_-_Logical_Volume_Manager">LVM Tutorial</a>, and was surprised how easy everything goes. Here is a short cheat sheet of the important commands (take care to exchange the partition/volume names if you use this):</p><h2>Installation</h2><p>I use <a href="http://www.ubuntu.com/">Ubuntu</a>, so this is a piece of cake:<pre>sudo apt-get install lvm2</pre><p>There is also <a href="http://ubuntuforums.org/showthread.php?t=216117">a GUI available</a>, but I found the command line tools are very easy to use so there is no real need. I wouldn&#8217;t use <a href="https://wiki.ubuntu.com/Evms">EVMS</a> as it is not supported in Ubuntu 7.10 and may cause problems.</p><h2>Create a New Filesystem</h2><p>First I create the physical volume on the partition <tt>sdg1</tt>, create a new volume group <tt>ext_vg</tt> that contains this physical volume, and create a new logical volume of size 450GB within the volume group. Finally create the filesystem (disabled reservation space, see <a href="http://martin.ankerl.com/2008/01/12/get-more-space-out-of-your-ext3-partition/">Get More Space Out of Your ext3 Partition</a>).<pre>sudo pvcreate /dev/sdg1
sudo vgcreate ext_vg /dev/sdg1
sudo lvcreate -L 450G -n ext ext_vg
sudo mkfs.ext3 -m 0 /dev/ext_vg/ext</pre><h2>Show Status</h2><p>Each LVM layer has its corresponding command to get information about the metadata:<pre>sudo pvdisplay
sudo vgdisplay
sudo lvdisplay
sudo pvs
sudo vgs
sudo lvs</pre><h2>Mount via fstab</h2><p>I use the filesystem mainly for data, so allowing just <tt>rw</tt> is enough (no executables allowed). <tt>noatime</tt> allows quicker access.<pre>sudo mkdir /media/mega
/dev/ext_vg/ext /media/mega     ext3    rw,noatime,user 0       2
mount /media/mega</pre><h2>Resize</h2><p>It is even possible to do an online resize of the system, wohoo <img src="http://martin.ankerl.com/wp-includes/images/smilies/icon_smile.gif?9d7bd4" alt=':-)' class='wp-smiley' /> This extends the logical volume by 200MB.<pre>sudo lvextend -L +200 /dev/ext_vg/ext
sudo resize2fs -p /dev/ext_vg/ext</pre><p> You can watch the resize process going on with <tt>df -h</tt>.</p><h2>Add Another Partition to the Logical Volume</h2><p>To add another partition and use up all the available space in the logical volume, first add the physical volume to the volume group, then use <tt>pvdisplay</tt> to find out the total available number of free PE (add the numbers from the physical volumes), then use <tt>lvextend</tt> to use up all this available space.<pre>sudo pvcreate /dev/sdb1
sudo vgextend ext_vg /dev/sdb1
sudo pvdisplay
sudo lvextend -l +63602 /dev/ext_vg/ext
sudo resize2fs /dev/ext_vg/ext</pre><p>That&#8217;s it! Any questions? please post.</p><div style='clear:both'></div>]]></content:encoded> <wfw:commentRss>http://martin.ankerl.com/2008/02/05/logical-volume-manager-cheatsheet/feed/</wfw:commentRss> <slash:comments>7</slash:comments> </item> <item><title>Howto Get Enough Sleep Despite StumbleUpon with Ubuntu</title><link>http://martin.ankerl.com/2008/01/24/howto-get-enough-sleep-despite-stumbleupon-with-ubuntu/</link> <comments>http://martin.ankerl.com/2008/01/24/howto-get-enough-sleep-despite-stumbleupon-with-ubuntu/#comments</comments> <pubDate>Thu, 24 Jan 2008 22:06:44 +0000</pubDate> <dc:creator>martinus</dc:creator> <category><![CDATA[howto]]></category> <category><![CDATA[linux]]></category> <category><![CDATA[tricks]]></category> <category><![CDATA[tutorial]]></category> <category><![CDATA[ubuntu]]></category> <category><![CDATA[cron]]></category> <category><![CDATA[getsomesleep]]></category> <category><![CDATA[lifehack]]></category><guid isPermaLink="false">http://martin.ankerl.com/2008/01/24/howto-get-enough-sleep-despite-stumbleupon-with-ubuntu/</guid> <description><![CDATA[What? I am a long-term StumbleUpon user, which means that I don&#8217;t get much sleep. Now, after almost 4 years of stumbling, I have decided to get my life back. Well, at least some sleep! What does this do? Every &#8230; <a href="http://martin.ankerl.com/2008/01/24/howto-get-enough-sleep-despite-stumbleupon-with-ubuntu/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<h2>What?</h2><p><a href="http://martin.ankerl.com/wp-content/uploads/2008/01/stumbling-insomnia.jpg?9d7bd4"><img src="http://martin.ankerl.com/wp-content/uploads/2008/01/stumbling-insomnia.jpg?9d7bd4" alt="" title="stumbleupon insomnia" width="150" height="104" style="float:right;" /></a>I am a long-term <a href="http://www.stumbleupon.com/">StumbleUpon</a> user, which means that I don&#8217;t get much sleep. Now, after <a href="http://martinus.stumbleupon.com/public/">almost 4 years of stumbling</a>, I have decided to get my life back. Well, at least some sleep!</p><h2>What does this do?</h2><p>Every night when I have to work on the next day (Sunday night to Thursday night ), at 23:25 my computer shows me this little warning message:<br /><center><img src="http://martin.ankerl.com/wp-content/uploads/2008/01/screenshot-warning.png?9d7bd4" alt='go to bed warning' /></center><br /> After the 5 minutes have passed, the computer shuts itself automatically down.</p><p>I use this little trick with <a href="http://www.ubuntu.com/">Ubuntu,</a> but it should work anywhere where <a href="http://www.gnome.org/">Gnome</a> is installed.</p><h2>How?</h2><p>Thanks to the power of Linux, this is not difficult to do for yourself, and configure it however you want it to behave:</p><ol><li>Open <tt>/etc/crontab</tt> with your favourite text editor (no need for <tt>crontab -e</tt> since this is the system wide crontab), e.g.<pre>sudo gedit /etc/crontab</pre></li><li>Add the following lines (replace <tt>manker</tt> with your username!)<pre>25 23 * * 0-4   manker  /usr/bin/zenity --display :0 --warning --text="Shutdown in 5 minutes. Go to bed."
25 23 * * 0-4   root    shutdown -h +5</pre><li>The first part of both lines <tt>25 23 * * 0-4</tt> means that the commands are executed at 23:25, but only Sunday (day 0) to Thursday (day 4). Read <tt>man 5 crontab</tt> for a detailed description of that format.</li><li>The first command uses <tt>zenity</tt> to show a warning message. You have to execute this as the same user that you use for working, or you will not see the message, so change <tt>manker</tt> to your username (root does not work either).<li>The second command <tt>shutdown -h +5</tt> means that the computer will halt in 5 minutes.  This has to be run as root, and it also shows nice warning messages in all your open terminals so you can&#8217;t really miss it.</li><li>Save the file, and stumble until it is 23:25.</ul></ol><p>Sweet dreams!</p><div style='clear:both'></div>]]></content:encoded> <wfw:commentRss>http://martin.ankerl.com/2008/01/24/howto-get-enough-sleep-despite-stumbleupon-with-ubuntu/feed/</wfw:commentRss> <slash:comments>73</slash:comments> </item> <item><title>Get More Space Out of Your ext3 Partition</title><link>http://martin.ankerl.com/2008/01/12/get-more-space-out-of-your-ext3-partition/</link> <comments>http://martin.ankerl.com/2008/01/12/get-more-space-out-of-your-ext3-partition/#comments</comments> <pubDate>Sat, 12 Jan 2008 11:56:24 +0000</pubDate> <dc:creator>martinus</dc:creator> <category><![CDATA[howto]]></category> <category><![CDATA[linux]]></category> <category><![CDATA[open source]]></category> <category><![CDATA[tricks]]></category> <category><![CDATA[ext3]]></category> <category><![CDATA[harddisk]]></category> <category><![CDATA[trick]]></category> <category><![CDATA[ubuntu]]></category> <category><![CDATA[wastedspace]]></category><guid isPermaLink="false">http://martin.ankerl.com/?p=104</guid> <description><![CDATA[I have just discovered that ext3 defaults to reserving 5% of its partition exclusively for root, as a precaution measure that your system does not get FUBAR when you use it for your root partition. I have a 230GB external &#8230; <a href="http://martin.ankerl.com/2008/01/12/get-more-space-out-of-your-ext3-partition/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p>I have just discovered that ext3 defaults to reserving 5% of its partition exclusively for root, as a precaution measure that your system does not get FUBAR when you use it for your root partition. I have a 230GB external USB disk that I use for all my big storage requirements, downloaded stuff, backups etc. Due to this reservation I had 11.5GB of unusable disk space, thankfully this is easy to fix:</p><pre>tune2fs -m 0 /dev/sdf1</pre><p>Replace <tt>sdf1</tt> with your partition name. You don&#8217;t even have to unmount your disk. Voilá, 11.5 GB more space for free <img src="http://martin.ankerl.com/wp-includes/images/smilies/icon_smile.gif?9d7bd4" alt=':-)' class='wp-smiley' /> Here is the output of <tt>df -h</tt> as proof:</p><h3>Before:</h3><pre>Filesystem            Size  Used Avail Use% Mounted on
/dev/sdf1             230G  193G   26G  89% /media/disk</pre><h3>After:</h3><pre>Filesystem            Size  Used Avail Use% Mounted on
/dev/sdf1             230G  193G   38G  84% /media/disk</pre><p>If you like this, you might also be interested in <a href="/2007/11/03/howto-change-ubuntu-forced-fsck/">How to change Ubuntu forced fsck</a>.</p><p><strong>Update:</strong> The free space limitation is also used to prevent fragmentation. So if you set the limit to zero and operate on a very full harddisk for a while, your filesystem might slow down.</p><div style='clear:both'></div>]]></content:encoded> <wfw:commentRss>http://martin.ankerl.com/2008/01/12/get-more-space-out-of-your-ext3-partition/feed/</wfw:commentRss> <slash:comments>10</slash:comments> </item> <item><title>Major Clearlooks Compact Update</title><link>http://martin.ankerl.com/2007/11/11/clearlooks-compact-11/</link> <comments>http://martin.ankerl.com/2007/11/11/clearlooks-compact-11/#comments</comments> <pubDate>Sun, 11 Nov 2007 17:51:15 +0000</pubDate> <dc:creator>martinus</dc:creator> <category><![CDATA[linux]]></category> <category><![CDATA[news]]></category> <category><![CDATA[ubuntu]]></category> <category><![CDATA[clearlooks]]></category> <category><![CDATA[gtk]]></category> <category><![CDATA[theme]]></category><guid isPermaLink="false">http://martin.ankerl.com/?p=102</guid> <description><![CDATA[The Clearlooks Compact theme was released just a few days ago, and it already is the highest rated theme at gnome-look.org, out of more than a thousand. I guess the compactness really hit the nerve of lots of Linux users. &#8230; <a href="http://martin.ankerl.com/2007/11/11/clearlooks-compact-11/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p>The <a href="http://martin.ankerl.com/2007/11/04/clearlooks-compact-gnome-theme/">Clearlooks Compact</a> theme was released just a few days ago, and it already is the <a href="http://www.gnome-look.org/index.php?xcontentmode=100">highest rated theme</a> at <a href="http://gnome-look.org/">gnome-look.org</a>, out of more than a thousand. I guess the compactness really hit the nerve of lots of Linux users.</p><p>This encouraged me to do some further updates, I have incorporated lots of several tips and from the post &#8220;<a href="http://blog.xam.dk/archives/81-Making-Eclipse-look-good-on-Linux.html">Making Eclipse look good on Linux</a>&#8220;. The result is a very compact theme that does not waste space if possible.</p><ul><li>Get Clearlooks Compact <a href="http://martin.ankerl.com/2007/11/04/clearlooks-compact-gnome-theme/">here</a>.</li><li>Vote <a href="http://www.gnome-look.org/content/show.php/Clearlooks+Compact?content=69357">here</a> if you think its good or bad.</li></ul><p>Hope you like it as much as I do</p><div style='clear:both'></div>]]></content:encoded> <wfw:commentRss>http://martin.ankerl.com/2007/11/11/clearlooks-compact-11/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Compact Theme Update</title><link>http://martin.ankerl.com/2007/11/07/compact-theme-update/</link> <comments>http://martin.ankerl.com/2007/11/07/compact-theme-update/#comments</comments> <pubDate>Wed, 07 Nov 2007 18:16:36 +0000</pubDate> <dc:creator>martinus</dc:creator> <category><![CDATA[news]]></category> <category><![CDATA[clearlooks]]></category> <category><![CDATA[gtk]]></category> <category><![CDATA[theme]]></category> <category><![CDATA[ubuntu]]></category><guid isPermaLink="false">http://martin.ankerl.com/?p=101</guid> <description><![CDATA[Compact theme just got more compact, now it switches to 16&#215;16 icons which saves quite a bit of space for the buttons. More info here.]]></description> <content:encoded><![CDATA[<p><a href="http://martin.ankerl.com/2007/11/04/clearlooks-compact-gnome-theme/">Compact theme</a> just got more compact, now it switches to 16&#215;16 icons which saves quite a bit of space for the buttons. More info <a href="http://martin.ankerl.com/2007/11/04/clearlooks-compact-gnome-theme/">here</a>.</p><div style='clear:both'></div>]]></content:encoded> <wfw:commentRss>http://martin.ankerl.com/2007/11/07/compact-theme-update/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Clearlooks Compact Gnome Theme</title><link>http://martin.ankerl.com/2007/11/04/clearlooks-compact-gnome-theme/</link> <comments>http://martin.ankerl.com/2007/11/04/clearlooks-compact-gnome-theme/#comments</comments> <pubDate>Sun, 04 Nov 2007 20:59:42 +0000</pubDate> <dc:creator>martinus</dc:creator> <category><![CDATA[freeware]]></category> <category><![CDATA[linux]]></category> <category><![CDATA[news]]></category> <category><![CDATA[open source]]></category> <category><![CDATA[tricks]]></category> <category><![CDATA[ubuntu]]></category> <category><![CDATA[clearlooks]]></category> <category><![CDATA[comparison]]></category> <category><![CDATA[gtk]]></category> <category><![CDATA[release]]></category> <category><![CDATA[theme]]></category><guid isPermaLink="false">http://martin.ankerl.com/?p=100</guid> <description><![CDATA[I have been using Ubuntu for quite a while now, but one thing I really dislike is that all the themes are huge space wasters compared to Windows XP. This finally got me angry enough to create a customized version &#8230; <a href="http://martin.ankerl.com/2007/11/04/clearlooks-compact-gnome-theme/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p><a href="http://brainstorm.ubuntu.com/idea/6772/"><img style="float:right; margin-left:20px; margin-bottom:20px" src="http://brainstorm.ubuntu.com/idea/6772/image/1/" /></a>I have been using <a href="http://www.ubuntu.com/">Ubuntu</a> for quite a while now, but one thing I really dislike is that all the themes are huge space wasters compared to Windows XP. This finally got me angry enough to create a customized version of the <a href="http://clearlooks.sourceforge.net/">Clearlooks</a> theme that tries to be very compact but still maintain its beautiful look. I like the result quite a lot, I have been using this theme for more than two weeks now and it works great. It is especially nice for intense applications like <a href="http://www.eclipse.org">Eclipse</a>.</p><p><strong>UPDATE</strong>: <a href="http://martin.ankerl.com/2008/11/04/human-compact-themes-for-ubuntu-810/">Human Compact Theme for Ubuntu 8.10 (Intrepid Ibex)</a> is available!</p><h1>Comparison</h1><p>Move your mouse over the image to see how the dialog looks like with clearlooks-compact. The buttons and spacing are smaller, which results in much more visible space for the actual content.</p><style type="text/css">#clearlooks
a{display:block;background-image:url(/files/clearlooks.png);width:435px;height:421px}#clearlooks a:hover{background-image:url(/files/clearlooks-compact.png)}</style><p><center></p><div id="clearlooks"> <a href="#">&nbsp;</a></div><p></center></p><h1>More Screenshots</h1><p>Here are some more screenshots that I have taken with Clearlooks Compact enabled. Especially the Eclipse shot is great, there the theme really shines. It is even more compact than the Windows XP look.</p><p><a href="http://martin.ankerl.com/wp-content/uploads/2008/01/calc.png?9d7bd4" title='Gnome Calculator'><img src="http://martin.ankerl.com/wp-content/uploads/2008/01/calc.thumbnail.png?9d7bd4" alt='Gnome Calculator' /></a> <a href="http://martin.ankerl.com/wp-content/uploads/2008/01/clearlooks-compact.png?9d7bd4" title='Gnome File Selector'><img src="http://martin.ankerl.com/wp-content/uploads/2008/01/clearlooks-compact.thumbnail.png?9d7bd4" alt='Gnome File Selector' /></a> <a href="http://martin.ankerl.com/wp-content/uploads/2008/01/eclipse-compact.png?9d7bd4" title='Eclipse with Compact Theme'><img src="http://martin.ankerl.com/wp-content/uploads/2008/01/eclipse-compact.thumbnail.png?9d7bd4" alt='Eclipse with Compact Theme' /></a> <a href="http://martin.ankerl.com/wp-content/uploads/2008/01/tracker.png?9d7bd4" title='Tracker Search Tool'><img src="http://martin.ankerl.com/wp-content/uploads/2008/01/tracker.thumbnail.png?9d7bd4" alt='Tracker Search Tool' /></a></p><p>If you are curious, I have used <a href="http://www.google.at/search?q=tahoma+ttf">Tahoma</a>, size 9 for the application font, and the <a href="http://www.ank.com.ar/fonts/">MiscFixed</a> for the sourcecode.</p><h1>Download &#038; Installation</h1><p>Installation is extremely simple, in Ubuntu 7.10 (Gutsy Gibbon) you can do it this way:</p><ol><li>Click System > Preferences > Appearance.<li>Drag &#038; drop the link <a href="/files/ClearlooksCompact-1.5.tar.bz2">ClearlooksCompact-1.5.tar.bz2</a> into the Appearence window.</ol><p>Beware that this is just definition of the Clearlooks control spacings. That means you have to have the clearlooks engine installed (which you most likely have, it is the default theme of Ubuntu). To change back, click on the currently active Theme, choose &#8220;Customize&#8221;, and select other controls instead of &#8220;Clearlooks Compact&#8221;.</p><h1>History</h1><p>I will regularly update this page when I update the theme with a new screenshot and the development history:</p><dl><dt>April 9th, 2009</dt><dd>Version 1.5: a bit smaller checkbox + selection box, less blurry and smaller progress bar.</dd><dt>April 5th, 2009</dt><dd>Version 1.4: added LGPL, index.theme, version number.</dd><dt>April 11th, 2008</dt><dd>Version 1.3: Small panel menu</dd><dt>November 11th, 2007</dt><dd>Version 1.2: Major update: Smaller handlers sizes, smaller scrollbars, no scrollbar spacing, less overall padding, and some more.</dd><dt>November 7th, 2007</dt><dd>Version 1.1: Now even more compact by reducing the default icon size to 16&#215;16 pixels.</dd><dt>November 4th, 2007</dt><dd>Version 1.0: First release of Clearlooks Compact.</dd></dl><div style='clear:both'></div>]]></content:encoded> <wfw:commentRss>http://martin.ankerl.com/2007/11/04/clearlooks-compact-gnome-theme/feed/</wfw:commentRss> <slash:comments>91</slash:comments> </item> <item><title>Howto Change Ubuntu Forced fsck</title><link>http://martin.ankerl.com/2007/11/03/howto-change-ubuntu-forced-fsck/</link> <comments>http://martin.ankerl.com/2007/11/03/howto-change-ubuntu-forced-fsck/#comments</comments> <pubDate>Sat, 03 Nov 2007 00:28:01 +0000</pubDate> <dc:creator>martinus</dc:creator> <category><![CDATA[howto]]></category> <category><![CDATA[linux]]></category> <category><![CDATA[ubuntu]]></category> <category><![CDATA[boot speed]]></category> <category><![CDATA[fsck]]></category> <category><![CDATA[harddisk]]></category> <category><![CDATA[tune2fs]]></category><guid isPermaLink="false">http://martin.ankerl.com/?p=97</guid> <description><![CDATA[In Ubuntu 7.10 the boot hard disk is checked every 20 boots. I have to boot my laptop quite often, so about once a week booting takes more than 10 minutes. This clearly sucks. Fortunately, there is an easy way &#8230; <a href="http://martin.ankerl.com/2007/11/03/howto-change-ubuntu-forced-fsck/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p>In Ubuntu 7.10 the boot hard disk is checked every 20 boots. I have to boot my laptop quite often, so about once a week booting takes more than 10 minutes. This clearly sucks. Fortunately, there is an easy way to fix this. With <tt>tune2fs</tt> it is possible to change the interval from mount-times to timed interval:</p><pre>sudo tune2fs -c 0 -i 1m /dev/sda3</pre><p>This disables maximum mount time for forced check, but instead uses timed check. Every month the harddisk is forced to get checked. I can live with that.</p><div style='clear:both'></div>]]></content:encoded> <wfw:commentRss>http://martin.ankerl.com/2007/11/03/howto-change-ubuntu-forced-fsck/feed/</wfw:commentRss> <slash:comments>4</slash:comments> </item> <item><title>Comprehensive Linux Terminal Performance Comparison</title><link>http://martin.ankerl.com/2007/09/01/comprehensive-linux-terminal-performance-comparison/</link> <comments>http://martin.ankerl.com/2007/09/01/comprehensive-linux-terminal-performance-comparison/#comments</comments> <pubDate>Sat, 01 Sep 2007 14:16:33 +0000</pubDate> <dc:creator>martinus</dc:creator> <category><![CDATA[benchmark]]></category> <category><![CDATA[linux]]></category> <category><![CDATA[open source]]></category> <category><![CDATA[comparison]]></category> <category><![CDATA[performance]]></category> <category><![CDATA[terminal]]></category> <category><![CDATA[ubuntu]]></category><guid isPermaLink="false">http://martin.ankerl.com/?p=94</guid> <description><![CDATA[Linux has an abundance of excellent terminal applications. Interestingly, I could not find any decent comparison of their text display performance. Since I use the command line a lot, I want text output that is as fast as possible. When &#8230; <a href="http://martin.ankerl.com/2007/09/01/comprehensive-linux-terminal-performance-comparison/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p>Linux has an abundance of excellent terminal applications. Interestingly, I could not find any decent comparison of their text display performance. Since I use the command line a lot, I want text output that is as fast as possible. When you compile a large project, you don&#8217;t want the console output to be the limiting factor.</p><h1>System</h1><p>Due to popular demand, here is what my test system looks like: Ubuntu 7.04, Gnome, ATI Radion Mobile 9600 with fglrx driver, and a Pentium M with 1.5 GHz.</p><h1>The Benchmark</h1><p>I took the burden on me to do a comprehensive comparison of the text through of all possible terminals. The benchmark is very simple, I timed displaying the whole content of <a href="http://www.ietf.org/rfc/rfc3261.txt">RFC3261</a>. Download the file if you want to make your own benchmarks. The benchmark is executed like this:</p><pre>time cat rfc3261.txt</pre><p>I have measured the time in seconds. Without further ado, I give you the results (click <a target="_blank" href="/files/term-bench.pdf?9d7bd4">here for a better readable PDF version</a>, or <a target="_blank" href="/files/term-bench.png?9d7bd4">click the image for a larger view</a>):</p><p><center><br /> <a target="_blank" href="/files/term-bench.png?9d7bd4"><br /> <img src="/files/term-small.png?9d7bd4" width="400" height="309" /><br /> larger view<br /> </a></p><p></center><br /> Runtime in seconds timed with <tt>time cat rfc3261.txt</tt>.</p><h1>Results</h1><p>These are some very interesting results:</p><ul><li>Both <tt>gnome-terminal</tt> and <tt>konsole</tt> are exceptionally fast, it takes only 0.25 to 0.59 seconds to display the 647976 bytes large file. They buy the speed with quite a bit of memory consumption, and it can be clearly seen that the output does not smoothly scroll but only updates several times per second. This is a clever trick and has the advantage of being extremely fast, because not every letter needs to be pumped through the X windowing system. If you compile a lot or have other automatically generated output, <tt>gnome-terminal</tt> and <tt>konsole</tt> are the clear winners.<li><tt>konsole</tt> uses a lot of memory, about 32 MB. When setting the history buffer to 10.000 lines, it increases to 38MB per instance.</li><li><tt>gnome-terminal</tt> has a very different memory behavior. When you open multiple terminals, they are all memory managed from one <tt>gnome-terminal</tt> instance. This one instance requires about 45 MB freshly started. When opening multiple terminals and each one with 10.000 lines of used buffer, each terminal requires about 16 MB, so when you open more than three terminals at once you have already lower memory requirements than when using <tt>konsole</tt>.<li><tt>xterm</tt> is the slowest terminal. While it is probably the most widely used term, the only slower terminal is Microsoft Window&#8217;s <tt>cmd.exe</tt>! Each instance requires 16 MB RAM, which is a lot in comparison to other terms with similar features.<li><tt>wterm</tt> is both reasonably fast and the most memory efficient of all tested terminals. Each instance requires only about 6.3 MB of RAM, even with 10.000 lines of buffer. Only <tt>aterm</tt> but without buffer comes with 6.5 MB pretty close.<li>Eterm is quite fast and memory efficient (9 MB), even with transparency.</li></ul><h1>Conclusion</h1><p>So, what is the best terminal? The answer is actually quite simple:</p><ul><li>If you want speed, use <tt>gnome-terminal</tt> or <tt>konsole</tt>.<li>If you are low on memory, use <tt>wterm</tt>, <tt>rxvt</tt>, or <tt>Eterm</tt>.<li><tt>xterm</tt> is slow.</ul><p><b>UPDATE</b>: Of course, the answer is actually not so simple. As some have told me, they get a quite different performance behavior on their system. I suspect that both the linux scheduler and the X scheduler has a lot to say in this issue too. So if you want to have results you can trust, you have to redo the benchmark on your machine. Fortunately, that&#8217;s simple: just cat a large file and measure the time it takes. Be sure to run it multiple times to get more accurate average numbers.</p><h1>Other Remarks</h1><ul><li>Windows does not have the <tt>time</tt> command, so I wrote a simple Ruby script that does the same thing:<pre class="brush: ruby; title: ; notranslate">before = Time.now
system(ARGV.join(&quot; &quot;))
after = Time.now
puts &quot;#{after-before} seconds&quot;</pre><p>Also, <tt>cmd.exe</tt> only allows 9.999 lines of buffer.</p><li>If you want to display bitmap fonts in gnome-terminal, edit <tt>~/.fonts.conf</tt> and add these lines right after the <tt>&lt;fontconfig&gt;</tt> opening tag:<pre class="brush: xml; title: ; notranslate"> &lt;!-- Accept bitmap fonts --&gt;
 &lt;selectfont&gt;
  &lt;acceptfont&gt;
   &lt;pattern&gt;
     &lt;patelt name=&quot;scalable&quot;&gt;&lt;bool&gt;false&lt;/bool&gt;&lt;/patelt&gt;
   &lt;/pattern&gt;
  &lt;/acceptfont&gt;
 &lt;/selectfont&gt;</pre></ul><p>I hope this is helpful in your choice of the best console.</p><div style='clear:both'></div>]]></content:encoded> <wfw:commentRss>http://martin.ankerl.com/2007/09/01/comprehensive-linux-terminal-performance-comparison/feed/</wfw:commentRss> <slash:comments>89</slash:comments> </item> <item><title>How to Install Anything in Ubuntu Condensed</title><link>http://martin.ankerl.com/2007/04/19/how-to-install-anything-in-ubuntu-condensed/</link> <comments>http://martin.ankerl.com/2007/04/19/how-to-install-anything-in-ubuntu-condensed/#comments</comments> <pubDate>Thu, 19 Apr 2007 14:24:22 +0000</pubDate> <dc:creator>martinus</dc:creator> <category><![CDATA[linux]]></category> <category><![CDATA[tricks]]></category> <category><![CDATA[tutorial]]></category> <category><![CDATA[howto]]></category> <category><![CDATA[install]]></category> <category><![CDATA[ubuntu]]></category><guid isPermaLink="false">http://martin.ankerl.com/?p=87</guid> <description><![CDATA[This is a very condensed excerpt of the excellent article How to install ANYTHING in Ubuntu. Search, install, remove available packages (preferred method) sudo aptitude search ABC sudo aptitude install ABC sudo aptitude remove ABC .deb (you have to take &#8230; <a href="http://martin.ankerl.com/2007/04/19/how-to-install-anything-in-ubuntu-condensed/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p>This is a very condensed excerpt of the excellent article <a href="http://amitech.50webs.com/installing/index.php.html">How to install ANYTHING in Ubuntu</a>.</p><p><strong>Search, install, remove available packages</strong> (preferred method)</p><pre>sudo aptitude search ABC
sudo aptitude install ABC
sudo aptitude remove ABC</pre><p><strong>.deb</strong> (you have to take care of dependencies on your own)</p><pre>sudo dpkg -i ABC.deb</pre><p><strong>.rpm</strong> (requires <tt>sudo aptitude install alien</tt>)</p><pre>sudo alien -i *.rpm</pre><p><strong>.tar.gz</strong> (requires <tt>sudo aptitude install checkinstall</tt>)</p><pre>tar xzvf ABC.tar.gz
cd ABC
./configure
make
sudo checkinstall</pre><p><strong>.package, .sh, .bin</strong> (Just download and execute)</p><pre>chmod +x ABC
./ABC
</pre><p><strong>.exe</strong> (requires <tt>sudo aptitude install wine</tt>)</p><pre>wine ABC.exe</pre><div style='clear:both'></div>]]></content:encoded> <wfw:commentRss>http://martin.ankerl.com/2007/04/19/how-to-install-anything-in-ubuntu-condensed/feed/</wfw:commentRss> <slash:comments>6</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced
Database Caching 1/43 queries in 0.190 seconds using disk: basic
Object Caching 1274/1379 objects using disk: basic

Served from: martin.ankerl.com @ 2012-02-04 10:52:55 -->
