<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-2927721098720542702</id><updated>2012-01-31T15:02:59.191+10:00</updated><category term='unmount'/><category term='images'/><category term='virtualbox'/><category term='conky'/><category term='commandline'/><category term='grub'/><category term='drive'/><category term='volume'/><category term='lucid'/><category term='apt'/><category term='monitoring'/><category term='memory'/><category term='hal'/><category term='gui'/><category term='intrepid'/><category term='gnome'/><category term='home'/><category term='xorg'/><category term='trash'/><category term='compression'/><category term='permissions'/><category term='applications'/><category term='mouse'/><category term='sound'/><category term='sensors'/><category term='intel'/><category term='drivers'/><category term='kernel'/><category term='swap'/><category term='macbook'/><category term='keyboard'/><category term='debian'/><category term='screenshot'/><category term='ubuntu'/><category term='hddtemp'/><category term='window manager'/><category term='tweaks'/><category term='error'/><category term='nvidia'/><category term='laptop'/><category term='hardware'/><category term='nautilus'/><title type='text'>Linux Aleph</title><subtitle type='html'>Tips, Tricks and Hints for using the Linux operating system</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://linuxaleph.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2927721098720542702/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://linuxaleph.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Jamie B</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/-o4LVpDfosvc/TqtZxkXDuxI/AAAAAAAABt0/MunrF8ysW24/s220/AIbEiAIAAAAhCIqUyeOg0KrzfxDdhsn5xsze1FgYpaTK3bvwgauRATABfgoH7xZi0bJNBgRCJJXJXjWrde0.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>18</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2927721098720542702.post-8866895850466288537</id><published>2010-06-17T09:59:00.006+10:00</published><updated>2010-06-17T10:22:58.442+10:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='window manager'/><category scheme='http://www.blogger.com/atom/ns#' term='lucid'/><category scheme='http://www.blogger.com/atom/ns#' term='ubuntu'/><category scheme='http://www.blogger.com/atom/ns#' term='gnome'/><category scheme='http://www.blogger.com/atom/ns#' term='tweaks'/><title type='text'>what to do after a fresh ubuntu lucid install</title><content type='html'>some things are pretty annoying about lucid, specifically the lack of icons in the gnome menu and the stupid window buttons being in a difference place&lt;br /&gt;&lt;br /&gt;over at webupd8 &lt;a href="http://www.webupd8.org/2010/04/what-to-do-after-fresh-ubuntu-install.html"&gt;there is a handy script&lt;/a&gt; which fixes all of this and more. you can follow the instructions there, get the latest version from &lt;a href="https://launchpad.net/ubuntustart/+download"&gt;https://launchpad.net/ubuntustart/+download&lt;/a&gt; or just do this in a terminal&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;sudo apt-get install zenity&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;wget http://launchpad.net/ubuntustart/0.4.x/0.4.9/+download/ubuntu-10.04-start-0.4.9.7.tar.gz&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;tar -xvf ubuntu-10.04-start-0.4.9.7.tar.gz&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;cd ubuntu-10.04-start/&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;sudo ./ubuntu-10.04-script&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;i'd suggest not ticking the GetDeb option (last option at the bottom) as this just slowed things down and broke audacious for me&lt;br /&gt;&lt;br /&gt;combine this with the excellent &lt;a href="http://ubuntu-tweak.com/"&gt;Ubuntu Tweak&lt;/a&gt; and i have lucid looking and performing exactly how i want&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2927721098720542702-8866895850466288537?l=linuxaleph.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxaleph.blogspot.com/feeds/8866895850466288537/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2927721098720542702&amp;postID=8866895850466288537' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2927721098720542702/posts/default/8866895850466288537'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2927721098720542702/posts/default/8866895850466288537'/><link rel='alternate' type='text/html' href='http://linuxaleph.blogspot.com/2010/06/what-to-do-after-fresh-ubuntu-lucid.html' title='what to do after a fresh ubuntu lucid install'/><author><name>Jamie B</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/-o4LVpDfosvc/TqtZxkXDuxI/AAAAAAAABt0/MunrF8ysW24/s220/AIbEiAIAAAAhCIqUyeOg0KrzfxDdhsn5xsze1FgYpaTK3bvwgauRATABfgoH7xZi0bJNBgRCJJXJXjWrde0.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2927721098720542702.post-6212617614221644575</id><published>2010-06-17T09:49:00.002+10:00</published><updated>2010-06-17T09:52:34.064+10:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='sound'/><category scheme='http://www.blogger.com/atom/ns#' term='volume'/><category scheme='http://www.blogger.com/atom/ns#' term='lucid'/><category scheme='http://www.blogger.com/atom/ns#' term='ubuntu'/><category scheme='http://www.blogger.com/atom/ns#' term='gnome'/><title type='text'>lucid has no volume icon in system tray</title><content type='html'>one of the differences in upgrading to lucid is that the volume control is now in the "indicator applet", which i remove because it annoys me&lt;br /&gt;&lt;br /&gt;to add this back into the system tray, simply run &lt;span style="font-weight: bold;"&gt;gnome-volume-control-applet&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;you can add this to your default session in System -&gt; Preferences -&gt; Startup Applications&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2927721098720542702-6212617614221644575?l=linuxaleph.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxaleph.blogspot.com/feeds/6212617614221644575/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2927721098720542702&amp;postID=6212617614221644575' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2927721098720542702/posts/default/6212617614221644575'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2927721098720542702/posts/default/6212617614221644575'/><link rel='alternate' type='text/html' href='http://linuxaleph.blogspot.com/2010/06/lucid-has-no-volume-icon-in-system-tray.html' title='lucid has no volume icon in system tray'/><author><name>Jamie B</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/-o4LVpDfosvc/TqtZxkXDuxI/AAAAAAAABt0/MunrF8ysW24/s220/AIbEiAIAAAAhCIqUyeOg0KrzfxDdhsn5xsze1FgYpaTK3bvwgauRATABfgoH7xZi0bJNBgRCJJXJXjWrde0.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2927721098720542702.post-528937955974568875</id><published>2009-05-25T10:51:00.002+10:00</published><updated>2009-05-25T10:55:52.725+10:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='commandline'/><category scheme='http://www.blogger.com/atom/ns#' term='kernel'/><category scheme='http://www.blogger.com/atom/ns#' term='monitoring'/><title type='text'>how to monitor dmesg in real time</title><content type='html'>I was looking around for a way of monitoring &lt;span style="font-weight: bold;"&gt;dmesg&lt;/span&gt; output in realtime.&lt;br /&gt;&lt;br /&gt;Some distros allow you to &lt;span style="font-weight: bold;"&gt;tail -f /var/log/dmesg&lt;/span&gt; however this stops being written in Ubuntu after boot, so that's not so useful.&lt;br /&gt;&lt;br /&gt;I then found the &lt;span style="font-weight: bold;"&gt;watch&lt;/span&gt; command, which executes a command every 2 seconds (configurable if you like). Just watching dmesg fills my terminal output from the start, which is less than useful, so I use tail to shrink it down a bit. The command:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;watch "dmesg | tail -20"&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;does exactly what I was after.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2927721098720542702-528937955974568875?l=linuxaleph.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxaleph.blogspot.com/feeds/528937955974568875/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2927721098720542702&amp;postID=528937955974568875' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2927721098720542702/posts/default/528937955974568875'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2927721098720542702/posts/default/528937955974568875'/><link rel='alternate' type='text/html' href='http://linuxaleph.blogspot.com/2009/05/how-to-monitor-dmesg-in-real-time.html' title='how to monitor dmesg in real time'/><author><name>Jamie B</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/-o4LVpDfosvc/TqtZxkXDuxI/AAAAAAAABt0/MunrF8ysW24/s220/AIbEiAIAAAAhCIqUyeOg0KrzfxDdhsn5xsze1FgYpaTK3bvwgauRATABfgoH7xZi0bJNBgRCJJXJXjWrde0.jpg'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2927721098720542702.post-7046202306971630811</id><published>2009-02-02T08:44:00.006+10:00</published><updated>2009-02-02T09:55:58.215+10:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='hddtemp'/><category scheme='http://www.blogger.com/atom/ns#' term='sensors'/><category scheme='http://www.blogger.com/atom/ns#' term='monitoring'/><category scheme='http://www.blogger.com/atom/ns#' term='hardware'/><category scheme='http://www.blogger.com/atom/ns#' term='applications'/><category scheme='http://www.blogger.com/atom/ns#' term='drive'/><category scheme='http://www.blogger.com/atom/ns#' term='ubuntu'/><category scheme='http://www.blogger.com/atom/ns#' term='conky'/><title type='text'>hard drive temperature monitoring</title><content type='html'>After having a disk recently die due to heat, I bought an &lt;a href="http://www.antec.com/usa/productDetails.php?lan=us&amp;amp;id=81820"&gt;Antec P182 case&lt;/a&gt;, designed to keep drives cooler. (FYI: it works &lt;span style="font-style: italic;"&gt;really&lt;/span&gt; well)&lt;br /&gt;&lt;br /&gt;I was interested in monitoring my drive temperatures to see how it goes, and found the &lt;span style="font-weight: bold;"&gt;hddtemp&lt;/span&gt; package can do this. A &lt;span style="font-weight: bold;"&gt;sudo apt-get install hddtemp&lt;/span&gt; will install it for you. Say "Yes" to running the daemon on startup.&lt;br /&gt;&lt;br /&gt;To get a list of your drives and where they're mounted, you can use the &lt;span style="font-weight: bold;"&gt;sudo fdisk -l&lt;/span&gt; command, along with &lt;span style="font-weight: bold;"&gt;df -h&lt;/span&gt; and &lt;span style="font-weight: bold;"&gt;mount&lt;/span&gt; to see where partitions end up on the filesystem.&lt;br /&gt;&lt;br /&gt;To view the temperature of your drives:&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;sudo hddtemp /dev/sda&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;/dev/sda: WDC WD800JD-60LSA5: 40°C&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;hddtemp sensors also have a wrapper into conky, a lightweight system monitoring display program, with the option &lt;span style="font-weight: bold;"&gt;${hddtemp /dev/sda}&lt;/span&gt;&lt;span&gt;&lt;br /&gt;&lt;br /&gt;General forum consensus seems to be as long as your drives are under 50C, you're fine. 50C-60C is a warning area, and over 60C you're cooking your drives and reducing their lifespan by over half!&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2927721098720542702-7046202306971630811?l=linuxaleph.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxaleph.blogspot.com/feeds/7046202306971630811/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2927721098720542702&amp;postID=7046202306971630811' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2927721098720542702/posts/default/7046202306971630811'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2927721098720542702/posts/default/7046202306971630811'/><link rel='alternate' type='text/html' href='http://linuxaleph.blogspot.com/2009/02/hard-drive-temperature-monitoring.html' title='hard drive temperature monitoring'/><author><name>Jamie B</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/-o4LVpDfosvc/TqtZxkXDuxI/AAAAAAAABt0/MunrF8ysW24/s220/AIbEiAIAAAAhCIqUyeOg0KrzfxDdhsn5xsze1FgYpaTK3bvwgauRATABfgoH7xZi0bJNBgRCJJXJXjWrde0.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2927721098720542702.post-4962505758551402681</id><published>2009-02-01T16:24:00.003+10:00</published><updated>2009-02-01T16:29:50.476+10:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='grub'/><category scheme='http://www.blogger.com/atom/ns#' term='error'/><category scheme='http://www.blogger.com/atom/ns#' term='kernel'/><category scheme='http://www.blogger.com/atom/ns#' term='intrepid'/><category scheme='http://www.blogger.com/atom/ns#' term='ubuntu'/><title type='text'>new kernel not appearing in menu.lst</title><content type='html'>I updated to the latest Intrepid kernel, and when debconf asked if I wished to upgrade my menu.lst, I accidentally answered "Keep Current Version" instead of "Install Package Maintainer's Version", so the entry for the old kernel didn't appear in the boot list.&lt;br /&gt;&lt;br /&gt;A &lt;span style="font-weight: bold;"&gt;sudo update-grub&lt;/span&gt; wouldn't fix it, though I found an open Launchpad Bug, in which it's suggested to rename your menu.lst, and update-grub again.&lt;br /&gt;&lt;br /&gt;So,&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;sudo mv /boot/grub/menu.lst /boot/grub/menu.old&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;sudo update-grub&lt;/span&gt;&lt;br /&gt;and I'm back in business!&lt;br /&gt;&lt;br /&gt;This does however mean I have to setup custom entries I had before, such as my no &lt;span style="font-weight: bold;"&gt;splash&lt;/span&gt;, my &lt;span style="font-weight: bold;"&gt;vga&lt;/span&gt; parameter, and the chainloader into the Windows partition.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2927721098720542702-4962505758551402681?l=linuxaleph.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxaleph.blogspot.com/feeds/4962505758551402681/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2927721098720542702&amp;postID=4962505758551402681' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2927721098720542702/posts/default/4962505758551402681'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2927721098720542702/posts/default/4962505758551402681'/><link rel='alternate' type='text/html' href='http://linuxaleph.blogspot.com/2009/02/new-kernel-not-appearing-in-menulst.html' title='new kernel not appearing in menu.lst'/><author><name>Jamie B</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/-o4LVpDfosvc/TqtZxkXDuxI/AAAAAAAABt0/MunrF8ysW24/s220/AIbEiAIAAAAhCIqUyeOg0KrzfxDdhsn5xsze1FgYpaTK3bvwgauRATABfgoH7xZi0bJNBgRCJJXJXjWrde0.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2927721098720542702.post-1120704167851956433</id><published>2008-11-26T09:20:00.003+10:00</published><updated>2008-11-26T14:57:25.285+10:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='window manager'/><category scheme='http://www.blogger.com/atom/ns#' term='commandline'/><category scheme='http://www.blogger.com/atom/ns#' term='gui'/><category scheme='http://www.blogger.com/atom/ns#' term='applications'/><title type='text'>compositing without compiz</title><content type='html'>i don't like eye candy. compiz, wobbly windows, shadows, fading, taskbar previews; they all just annoy me. i want my computer to do what i'm asking it, and now. i run a slightly minimal desktop, with just openbox to manage windows, a gnome-panel for tasks and systray, and nautilus to put files on the desktop&lt;br /&gt;&lt;br /&gt;despite this approach, proper window transparency is a useful feature. i spend most of my work day going between a terminal and configuration files, so it is good to have a semi-transparent terminal in front, and the file i'm working on behind, that i can read off (yes, two monitors would be more useful). how can we get this effect, without all the other useless cruft?&lt;br /&gt;&lt;br /&gt;enter &lt;span style="font-weight: bold;"&gt;xcompmgr&lt;/span&gt;. this useful app handles compositing, without replacing the existing window manager. install it with &lt;span style="font-weight: bold;"&gt;sudo apt-get install xcompmgr&lt;/span&gt;, and run with just &lt;span style="font-weight: bold;"&gt;xcompmgr&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;start up a &lt;span style="font-weight: bold;"&gt;gnome-terminal&lt;/span&gt; (or &lt;a style="font-weight: bold;" href="http://linuxaleph.blogspot.com/2008/11/stjerm-lightweight-dropdown-terminal.html"&gt;stjerm&lt;/a&gt;), and set transparency to about 80%. move that window over some other windows or icons, and enjoy actual proper window transparency!&lt;br /&gt;&lt;br /&gt;xcompmgr can also do drop shadows, and combined with transset, can be setup to make your windows transparent too. i'm not so into this, but there's a good summary on &lt;a href="http://urukrama.wordpress.com/openbox-guide/"&gt;urukrama's openbox guide&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2927721098720542702-1120704167851956433?l=linuxaleph.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxaleph.blogspot.com/feeds/1120704167851956433/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2927721098720542702&amp;postID=1120704167851956433' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2927721098720542702/posts/default/1120704167851956433'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2927721098720542702/posts/default/1120704167851956433'/><link rel='alternate' type='text/html' href='http://linuxaleph.blogspot.com/2008/11/compositing-without-compiz.html' title='compositing without compiz'/><author><name>Jamie B</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/-o4LVpDfosvc/TqtZxkXDuxI/AAAAAAAABt0/MunrF8ysW24/s220/AIbEiAIAAAAhCIqUyeOg0KrzfxDdhsn5xsze1FgYpaTK3bvwgauRATABfgoH7xZi0bJNBgRCJJXJXjWrde0.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2927721098720542702.post-3745362585805019914</id><published>2008-11-21T09:32:00.006+10:00</published><updated>2008-11-21T10:10:51.407+10:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='laptop'/><category scheme='http://www.blogger.com/atom/ns#' term='keyboard'/><category scheme='http://www.blogger.com/atom/ns#' term='mouse'/><category scheme='http://www.blogger.com/atom/ns#' term='ubuntu'/><category scheme='http://www.blogger.com/atom/ns#' term='tweaks'/><category scheme='http://www.blogger.com/atom/ns#' term='macbook'/><title type='text'>mapping middle-click to a keyboard key</title><content type='html'>One of the biggest things I miss when using my laptop is the ability to select text in one window, then middle-click paste it into another. Sure, I can push both buttons together, but that requires a degree of accuracy, and it's supposed to be a quick, one-finger action, not a move-two-hands affair. I can imagine this would be infinitely useful using Linux on a Macbook too, as they don't even have right-click. I started looking round for a solution to this problem, and eventually found it.&lt;br /&gt;&lt;br /&gt;First, we need install an old accessibility extension to X which is called &lt;span style="font-weight: bold;"&gt;xkbset&lt;/span&gt;. In Ubuntu or Debian, just &lt;span style="font-weight: bold;"&gt;sudo apt-get install xkbset&lt;/span&gt;. The original idea of this software is to provide support for people who might not be able to use a mouse or keyboard so well, so it enables things like MouseKeys (control the cursor with the numpad) and StickyKeys (hit shift, lift off, type a letter, get a capital), and SlowKeys (only register a keypress after a certain amount of time). But we're going to use it to map a keyboard key to a mouse button with MouseKeys.&lt;br /&gt;&lt;br /&gt;First, we'll get rid of all the cursor-control stuff, so you can still use your numpad. As root, edit the file &lt;span style="font-weight: bold;"&gt;/usr/share/X11/xkb/compat/mousekeys&lt;/span&gt; and remove everything between &lt;span style="font-weight: bold;"&gt;interpret.repeat= False;&lt;/span&gt; and &lt;span style="font-weight: bold;"&gt;// New Keysym Actions&lt;/span&gt;. Notice this maps some new "keysym" actions below, specifically the one called &lt;span style="font-weight: bold;"&gt;Pointer_Button2&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;Next, we'll make a script to configure xkbset, to turn MouseKeys on, to not turn it off after a period of inactivity, and to map a key of your choice to middle-click. Here's my &lt;span style="font-weight: bold;"&gt;~/.middle-click.sh&lt;/span&gt;:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#!/bin/bash&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;# set XKB layout&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;setxkbmap -layout us&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;# turn on mousekeys&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;xkbset m&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;# stop mousekeys expiring after a timeout&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;xkbset exp =m&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;# map keysym to other keysym&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;xmodmap -e "keysym Menu = Pointer_Button2"&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;# this also works&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;# xmodmap -e "keycode 135 = Pointer_Button2"&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;This maps the Menu key (it's between Right Alt and Right Ctrl on my keyboard, looks like a menu with a mouse cursor) to mouse button 2, which is middle click. Notice I can also use any other key on the keyboard, by commenting out the &lt;span style="font-weight: bold;"&gt;keysym&lt;/span&gt; line, and using the &lt;span style="font-weight: bold;"&gt;keycode&lt;/span&gt; line. Keycodes are different from keyboard to keyboard, so to get the keycode of the key you wish to use, run &lt;span style="font-weight: bold;"&gt;xev&lt;/span&gt; in a terminal, push the key you desire, and watch the terminal output.&lt;br /&gt;&lt;br /&gt;For the Mac users, left-click is button 1, and right-click is button 3. If I was using a Mac, I imagine I'd map Right Command to Button2, and Right Option to Button3. I hope the right side of these buttons has a different keycode to the left side. If not, I've read of people using F11 and/or F12. &lt;span style="font-weight: bold;"&gt;man xmodmap&lt;/span&gt; will tell you how to use a modifier like Cmd+F12 if you so desire.&lt;br /&gt;&lt;br /&gt;Under Gnome, I use System -&gt; Preferences -&gt; Sessions to start this script as I log in, so I don't have to worry about it again. Don't forget to make your script executable with &lt;span style="font-weight: bold;"&gt;chmod +x ~/.middle-click.sh&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2927721098720542702-3745362585805019914?l=linuxaleph.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxaleph.blogspot.com/feeds/3745362585805019914/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2927721098720542702&amp;postID=3745362585805019914' title='11 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2927721098720542702/posts/default/3745362585805019914'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2927721098720542702/posts/default/3745362585805019914'/><link rel='alternate' type='text/html' href='http://linuxaleph.blogspot.com/2008/11/mapping-middle-click-to-keyboard-key.html' title='mapping middle-click to a keyboard key'/><author><name>Jamie B</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/-o4LVpDfosvc/TqtZxkXDuxI/AAAAAAAABt0/MunrF8ysW24/s220/AIbEiAIAAAAhCIqUyeOg0KrzfxDdhsn5xsze1FgYpaTK3bvwgauRATABfgoH7xZi0bJNBgRCJJXJXjWrde0.jpg'/></author><thr:total>11</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2927721098720542702.post-1779885249122117641</id><published>2008-11-21T09:16:00.006+10:00</published><updated>2008-11-26T14:53:13.425+10:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='commandline'/><category scheme='http://www.blogger.com/atom/ns#' term='ubuntu'/><title type='text'>stjerm - a lightweight dropdown terminal</title><content type='html'>stjerm is a lightweight, dropdown (aka: quake-style) terminal emulator. it's great for those times when you quickly need a full terminal to do something (like a &lt;span style="font-weight: bold;"&gt;grep&lt;/span&gt; or &lt;span style="font-weight: bold;"&gt;convert&lt;/span&gt;) for just a few seconds. here's a quick preview:&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_iFX8S_zuAQ8/SSXy0AaUUCI/AAAAAAAABJA/nRjIgISEZx4/s1600-h/stjerm.jpg"&gt;&lt;img style="cursor: pointer; width: 400px; height: 320px;" src="http://4.bp.blogspot.com/_iFX8S_zuAQ8/SSXy0AaUUCI/AAAAAAAABJA/nRjIgISEZx4/s400/stjerm.jpg" alt="" id="BLOGGER_PHOTO_ID_5270885914184536098" border="0" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;it's quite lightweight, built with gtk2, and even supports tabs. it's available in ubuntu intrepid with just &lt;span style="font-weight: bold;"&gt;sudo apt-get install stjerm&lt;/span&gt;, or source is &lt;a href="http://code.google.com/p/stjerm-terminal/"&gt;here at googlecode&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;to launch it, run it at least with the option &lt;span style="font-weight: bold;"&gt;stjerm -k f12&lt;/span&gt;, and hit the F12 key to hide and show the terminal. a man stjerm will show all options, and you can save your setup in &lt;span style="font-weight: bold;"&gt;~/.Xdefaults&lt;/span&gt;, here's mine:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;stjerm.key: f12&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;stjerm.mod: control&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;stjerm.background: #000000&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;stjerm.foreground: #44ddff&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;stjerm.opacity: 80&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;stjerm.lines: 50000&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;stjerm.width: 1024&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;stjerm.height: 768&lt;/span&gt;&lt;span&gt;&lt;br /&gt;&lt;br /&gt;to get stjerm running in ubuntu hardy or debian, install the build dependencies and tools (&lt;span style="font-weight: bold;"&gt;sudo apt-get install automake libvte-dev libgtk2.0-dev&lt;/span&gt;), and follow the &lt;a href="http://code.google.com/p/stjerm-terminal/wiki/Installation"&gt;installation guide&lt;/a&gt; in the stjerm wiki to compile and install&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2927721098720542702-1779885249122117641?l=linuxaleph.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxaleph.blogspot.com/feeds/1779885249122117641/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2927721098720542702&amp;postID=1779885249122117641' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2927721098720542702/posts/default/1779885249122117641'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2927721098720542702/posts/default/1779885249122117641'/><link rel='alternate' type='text/html' href='http://linuxaleph.blogspot.com/2008/11/stjerm-lightweight-dropdown-terminal.html' title='stjerm - a lightweight dropdown terminal'/><author><name>Jamie B</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/-o4LVpDfosvc/TqtZxkXDuxI/AAAAAAAABt0/MunrF8ysW24/s220/AIbEiAIAAAAhCIqUyeOg0KrzfxDdhsn5xsze1FgYpaTK3bvwgauRATABfgoH7xZi0bJNBgRCJJXJXjWrde0.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_iFX8S_zuAQ8/SSXy0AaUUCI/AAAAAAAABJA/nRjIgISEZx4/s72-c/stjerm.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2927721098720542702.post-8953911889790131653</id><published>2008-11-20T11:35:00.001+10:00</published><updated>2008-11-20T11:38:15.392+10:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='debian'/><category scheme='http://www.blogger.com/atom/ns#' term='apt'/><category scheme='http://www.blogger.com/atom/ns#' term='commandline'/><category scheme='http://www.blogger.com/atom/ns#' term='ubuntu'/><title type='text'>basic debian package maintenance</title><content type='html'>&lt;p&gt;i've been looking at how to tidy my pc up a bit lately, and this is more or less what i came up with, with a bit of help from &lt;a href="http://packages.debian.org/deborphan" mce_href="http://packages.debian.org/deborphan"&gt;deborphan&lt;/a&gt;, which tells you libraries/packages that are installed but have no dependencies. install it with &lt;b&gt;sudo apt-get install deborphan&lt;/b&gt;&lt;/p&gt; &lt;p&gt;firstly, run &lt;b&gt;deborphan&lt;/b&gt; to see what lone libraries you have installed. you can also append &lt;b&gt;--guess-data&lt;/b&gt; to try guessing data files, and &lt;b&gt;--guess-all&lt;/b&gt; too. there are more options in the man page, such as the &lt;b&gt;-e&lt;/b&gt; (exclude) and &lt;b&gt;-A&lt;/b&gt; (add to exclude list) switches, useful if you have some independent packages installed that you need (like my &lt;b&gt;libmotif3&lt;/b&gt; for the citrix client)&lt;/p&gt; &lt;p&gt;if you're happy with that list, nest the program in apt-get with &lt;b&gt;sudo apt-get purge `deborphan`&lt;/b&gt; (the backquotes will use the output of deborphan as the input for apt-get). once these packages have been removed, run deborphan again, and see if you've uncovered any deeper nested depends. if you're really keen, you can script it like so:&lt;/p&gt; &lt;blockquote&gt; &lt;p style="text-align: left;" mce_style="text-align: left;"&gt;&lt;b&gt;#!/bin/sh&lt;br /&gt;while [ -n "`deborphan`" ]; do&lt;br /&gt;deborphan&lt;br /&gt;echo&lt;br /&gt;apt-get purge `deborphan`&lt;br /&gt;done&lt;/b&gt;&lt;/p&gt; &lt;/blockquote&gt; &lt;p&gt;at times, apt-get will know that it doesn't need packages anymore either, and will tell you so when you run it. you can get rid of these packages with the &lt;b&gt;sudo apt-get autoremove&lt;/b&gt; command&lt;/p&gt; &lt;p&gt;your system will also build up an apt cache of packages, especially as upgrades happen over time. you can clear these out with &lt;b&gt;sudo apt-get autoclean&lt;/b&gt;, which removes packages that are out of date, or just &lt;b&gt;sudo apt-get clean&lt;/b&gt;, which removes everything except the lockfile from the apt cache&lt;/p&gt; &lt;p&gt;so in summary:&lt;/p&gt; &lt;p&gt; &lt;b&gt;sudo apt-get autoremove&lt;br /&gt;&lt;/b&gt;&lt;b&gt;deborphan&lt;/b&gt;&lt;br /&gt;&lt;b&gt;sudo apt-get purge `deborphan`&lt;/b&gt; till you have no packages&lt;br /&gt;&lt;b&gt;sudo apt-get clean&lt;/b&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2927721098720542702-8953911889790131653?l=linuxaleph.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxaleph.blogspot.com/feeds/8953911889790131653/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2927721098720542702&amp;postID=8953911889790131653' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2927721098720542702/posts/default/8953911889790131653'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2927721098720542702/posts/default/8953911889790131653'/><link rel='alternate' type='text/html' href='http://linuxaleph.blogspot.com/2008/11/basic-debian-package-maintenance.html' title='basic debian package maintenance'/><author><name>Jamie B</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/-o4LVpDfosvc/TqtZxkXDuxI/AAAAAAAABt0/MunrF8ysW24/s220/AIbEiAIAAAAhCIqUyeOg0KrzfxDdhsn5xsze1FgYpaTK3bvwgauRATABfgoH7xZi0bJNBgRCJJXJXjWrde0.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2927721098720542702.post-1492933705611920201</id><published>2008-11-17T19:52:00.007+10:00</published><updated>2008-11-20T11:38:41.111+10:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='hal'/><category scheme='http://www.blogger.com/atom/ns#' term='error'/><category scheme='http://www.blogger.com/atom/ns#' term='unmount'/><category scheme='http://www.blogger.com/atom/ns#' term='drive'/><category scheme='http://www.blogger.com/atom/ns#' term='ubuntu'/><category scheme='http://www.blogger.com/atom/ns#' term='gnome'/><category scheme='http://www.blogger.com/atom/ns#' term='nautilus'/><title type='text'>Cannot unmount volume - Cannot remove directory</title><content type='html'>Often when unplugging my USB thumb drive, I get a dialog box saying&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_iFX8S_zuAQ8/SSFAVbWbxGI/AAAAAAAAA00/9ykXBQf_8Mw/s1600-h/unmount.jpg"&gt;&lt;img style="cursor: pointer; width: 274px; height: 191px;" src="http://4.bp.blogspot.com/_iFX8S_zuAQ8/SSFAVbWbxGI/AAAAAAAAA00/9ykXBQf_8Mw/s400/unmount.jpg" alt="Cannot unmount volume - Cannot remove directory" id="BLOGGER_PHOTO_ID_5269563775863473250" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div style="text-align: left;"&gt;&lt;br /&gt;I started looking into why this is, and found that duplicate entries in &lt;span style="font-weight: bold;"&gt;/media/.hal-mtab&lt;/span&gt; are to blame, probably from situations where my drives have either not mounted or unmounted properly.&lt;br /&gt;&lt;br /&gt;The fix is easy, simply unmount any extra drives, and &lt;span style="font-weight: bold;"&gt;sudo rm /media/.hal-mtab&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Problem solved!&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2927721098720542702-1492933705611920201?l=linuxaleph.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxaleph.blogspot.com/feeds/1492933705611920201/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2927721098720542702&amp;postID=1492933705611920201' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2927721098720542702/posts/default/1492933705611920201'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2927721098720542702/posts/default/1492933705611920201'/><link rel='alternate' type='text/html' href='http://linuxaleph.blogspot.com/2008/11/cannot-unmount-volume-cannot-remove.html' title='Cannot unmount volume - Cannot remove directory'/><author><name>Jamie B</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/-o4LVpDfosvc/TqtZxkXDuxI/AAAAAAAABt0/MunrF8ysW24/s220/AIbEiAIAAAAhCIqUyeOg0KrzfxDdhsn5xsze1FgYpaTK3bvwgauRATABfgoH7xZi0bJNBgRCJJXJXjWrde0.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_iFX8S_zuAQ8/SSFAVbWbxGI/AAAAAAAAA00/9ykXBQf_8Mw/s72-c/unmount.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2927721098720542702.post-5392294162995972725</id><published>2008-11-10T23:32:00.005+10:00</published><updated>2008-11-20T11:39:13.847+10:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='intel'/><category scheme='http://www.blogger.com/atom/ns#' term='intrepid'/><category scheme='http://www.blogger.com/atom/ns#' term='xorg'/><category scheme='http://www.blogger.com/atom/ns#' term='nvidia'/><category scheme='http://www.blogger.com/atom/ns#' term='drivers'/><category scheme='http://www.blogger.com/atom/ns#' term='ubuntu'/><title type='text'>Font DPI broken in Intrepid</title><content type='html'>I upgraded my laptop (a Dell Vostro 1200) to Ubuntu Intrepid, and found my fonts in both GDM and Openbox were 2 sizes larger than expected. This made things look awful, so I started hunting around for a fix.&lt;br /&gt;&lt;br /&gt;&lt;span&gt;Fonts should be 96x96 DPI, for this, both the video driver and X need to know how physically large your screen is, in addition to the resolution they're displaying. &lt;/span&gt;&lt;span style="font-weight: bold;"&gt;xdpyinfo | grep dimensions&lt;/span&gt; reported the correct screen size in mm I was expecting, but &lt;span style="font-weight: bold;"&gt;cat /var/log/Xorg.0.log | grep DPI&lt;/span&gt; reported that the intel(0)  driver was seeing a DPI of 95x153!!!&lt;br /&gt;&lt;br /&gt;After browsing Ubuntu's Launchpad and the Arch Linux Wiki for a while, I found it seems to be a bug in the Xorg Intel video driver, specifically that it can't read the resolution information from my laptop's LCD panel properly.&lt;br /&gt;&lt;br /&gt;My fix for this was by editing my &lt;span style="font-weight: bold;"&gt;/etc/X11/xorg.conf&lt;/span&gt; file, and adding these lines to the &lt;span style="font-weight: bold;"&gt;Device&lt;/span&gt;&lt;span&gt; and &lt;/span&gt;&lt;span style="font-weight: bold;"&gt;Monitor&lt;/span&gt; sections:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Section "Device"&lt;br /&gt;... existing info here...&lt;br /&gt;Option "Monitor-LVDS" "Configured Monitor"&lt;br /&gt;EndSection&lt;br /&gt;&lt;br /&gt;Section "Monitor"&lt;br /&gt;... existing info here ...&lt;br /&gt;Identifier "Configured Monitor"&lt;br /&gt;DisplaySize    339 212&lt;br /&gt;EndSection&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;If you have a different resolution than 1280x800, you can calculate these values with the formula &lt;span style="font-weight: bold;"&gt;pixels*25.4/dpi&lt;/span&gt; and always round down. eg: 1024*25.4/96=270&lt;br /&gt;&lt;br /&gt;Apparently if you have a nVidia card, using the &lt;span style="font-weight: bold;"&gt;nvidia&lt;/span&gt; binary driver, these options work:&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Section "Device"&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;... existing info here ...&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;    Option   "UseEdidDpi" "false"&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;Option   "DPI" "96 x 96"&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;EndSection&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Others have also reported that starting X with a manual DPI setting can work. You can do this by editing /etc/gdm/gdm.conf and finding this:&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;    command=/usr/X11R6/bin/X -br -audit 0&lt;/span&gt;&lt;br /&gt;and adding &lt;span style="font-weight: bold;"&gt;-dpi 96&lt;/span&gt; on the end, so you get this&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;    command=/usr/X11R6/bin/X -br -audit 0 -dpi 96&lt;/span&gt;&lt;br /&gt;However, this did not work for me.&lt;br /&gt;&lt;br /&gt;Some people have found that specifying &lt;span style="font-weight: bold;"&gt;Option        "NoDDC" "true"&lt;/span&gt;&lt;span&gt; in the Monitor/Device sections of their xorg.conf fixes this too. &lt;a href="http://en.wikipedia.org/wiki/Display_Data_Channel"&gt;DDC&lt;/a&gt; is a protocol that reads extended information from your monitor that could be important (resolutions, refresh rates) so disabling it isn't really a "fix" as such. I don't recommend disabling DDC, especially if you are using a CRT which could be fried by an incorrect refresh rate.&lt;br /&gt;&lt;br /&gt;The fix, either Intel's Monitor-LVDS command, nVidia's UseEdidDpi False, or starting X with a manual DPI, seems to be dependent on which video card and driver you are using. Out of interest, the &lt;span style="font-weight: bold;"&gt;fbdev&lt;/span&gt; driver (framebuffer, displays usplash and Ctrl+Alt+F1 terminals) would read DPI properly, but was restricted to 1024x786 res only.&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2927721098720542702-5392294162995972725?l=linuxaleph.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxaleph.blogspot.com/feeds/5392294162995972725/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2927721098720542702&amp;postID=5392294162995972725' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2927721098720542702/posts/default/5392294162995972725'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2927721098720542702/posts/default/5392294162995972725'/><link rel='alternate' type='text/html' href='http://linuxaleph.blogspot.com/2008/11/font-dpi-broken-in-intrepid.html' title='Font DPI broken in Intrepid'/><author><name>Jamie B</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/-o4LVpDfosvc/TqtZxkXDuxI/AAAAAAAABt0/MunrF8ysW24/s220/AIbEiAIAAAAhCIqUyeOg0KrzfxDdhsn5xsze1FgYpaTK3bvwgauRATABfgoH7xZi0bJNBgRCJJXJXjWrde0.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2927721098720542702.post-2732109270670036531</id><published>2008-10-20T13:03:00.003+10:00</published><updated>2008-10-20T13:13:37.988+10:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='commandline'/><category scheme='http://www.blogger.com/atom/ns#' term='compression'/><title type='text'>Split rar files</title><content type='html'>Ever downloaded a file larger than 4Gb, then gone to copy it to a FAT32 USB drive? Unfortunately, FAT32 has a max filesize of 4Gb, so the operation fails.&lt;br /&gt;&lt;br /&gt;One way of getting around this is compressing the file, in the hope that it gets small enough. If this still doesn't work, where does that leave you?&lt;br /&gt;&lt;br /&gt;Using &lt;span style="font-weight: bold;"&gt;rar&lt;/span&gt; on the commandline, you are able to split files easily and quickly, for copying off to other sources.&lt;br /&gt;&lt;br /&gt;First, install rar with &lt;span style="font-weight: bold;"&gt;sudo apt-get install rar&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Usage is as easy as &lt;span style="font-weight: bold;"&gt;rar a -m5 -v500M archive.rar file.ext&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;rar&lt;/span&gt; starts the command&lt;br /&gt;the &lt;span style="font-weight: bold;"&gt;a&lt;/span&gt; switch tells it to "add to archive"&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;-m5&lt;/span&gt; is the compression level (0 don't compress, 3 default, 5 best compression but takes longest)&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;-v500M&lt;/span&gt; specifies volume size to 500Mb, you can also use something like &lt;span style="font-weight: bold;"&gt;-v512k&lt;/span&gt; for 512kbyte volumes, or -&lt;span style="font-weight: bold;"&gt;v5b&lt;/span&gt; for 5 byte volumes&lt;br /&gt;You name your resulting archive with the name &lt;span style="font-weight: bold;"&gt;archive.rar&lt;/span&gt; (or whatever you'd like)&lt;br /&gt;And the file you intend to compress with &lt;span style="font-weight: bold;"&gt;file.ext&lt;/span&gt;&lt;br /&gt;You can also specify a folder as the target, just add a &lt;span style="font-weight: bold;"&gt;-R&lt;/span&gt; before the archive name to recurse subdirectories&lt;br /&gt;&lt;br /&gt;To uncompress, right click on the first part01.rar file and choose Extract, or type &lt;span style="font-weight: bold;"&gt;rar x archive.part01.rar&lt;/span&gt; at the commandline&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2927721098720542702-2732109270670036531?l=linuxaleph.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxaleph.blogspot.com/feeds/2732109270670036531/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2927721098720542702&amp;postID=2732109270670036531' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2927721098720542702/posts/default/2732109270670036531'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2927721098720542702/posts/default/2732109270670036531'/><link rel='alternate' type='text/html' href='http://linuxaleph.blogspot.com/2008/10/split-rar-files.html' title='Split rar files'/><author><name>Jamie B</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/-o4LVpDfosvc/TqtZxkXDuxI/AAAAAAAABt0/MunrF8ysW24/s220/AIbEiAIAAAAhCIqUyeOg0KrzfxDdhsn5xsze1FgYpaTK3bvwgauRATABfgoH7xZi0bJNBgRCJJXJXjWrde0.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2927721098720542702.post-8597255460317668573</id><published>2008-10-17T09:11:00.005+10:00</published><updated>2008-11-20T11:39:22.011+10:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='memory'/><category scheme='http://www.blogger.com/atom/ns#' term='ubuntu'/><category scheme='http://www.blogger.com/atom/ns#' term='swap'/><category scheme='http://www.blogger.com/atom/ns#' term='tweaks'/><title type='text'>Swappiness</title><content type='html'>I was reading through the Ubuntu &lt;a href="https://help.ubuntu.com/community/SwapFaq"&gt;Swap FAQ&lt;/a&gt;, and thought I'd make a note on swappiness, which is a configurable value of how much the system should rely on swap space instead of real RAM. Personally, I wish my the computer would never use swap. From the FAQ:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;p class="line891"&gt;&lt;em&gt;swappiness&lt;/em&gt; can have a value of between 0 and 100&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p class="line891"&gt;&lt;em&gt;swappiness=0&lt;/em&gt; tells the kernel to avoid swapping processes out of physical memory for as long as possible &lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p class="line891"&gt;&lt;em&gt;swappiness=100&lt;/em&gt; tells the kernel to aggressively swap processes out of physical memory and move them to swap cache&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p class="line862"&gt;Ubuntu uses a default setting of &lt;em&gt;swappiness=60&lt;/em&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;To check the swappiness of your system, at a terminal:&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;cat /proc/sys/vm/swappiness&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;A temporary change (lost at reboot) can be made with:&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;sudo sysctl vm.swappiness=10&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;To make the changes permanent, edit this file:&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;sudo gedit /etc/sysctl.conf&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;And&lt;span style="font-weight: bold;"&gt; &lt;/span&gt;edit the value&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;vm.swappiness=10&lt;/span&gt;&lt;br /&gt;(if this value doesn't exist, create it at the end of the file)&lt;br /&gt;&lt;br /&gt;Changes will apply at next reboot.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2927721098720542702-8597255460317668573?l=linuxaleph.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxaleph.blogspot.com/feeds/8597255460317668573/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2927721098720542702&amp;postID=8597255460317668573' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2927721098720542702/posts/default/8597255460317668573'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2927721098720542702/posts/default/8597255460317668573'/><link rel='alternate' type='text/html' href='http://linuxaleph.blogspot.com/2008/10/swappiness.html' title='Swappiness'/><author><name>Jamie B</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/-o4LVpDfosvc/TqtZxkXDuxI/AAAAAAAABt0/MunrF8ysW24/s220/AIbEiAIAAAAhCIqUyeOg0KrzfxDdhsn5xsze1FgYpaTK3bvwgauRATABfgoH7xZi0bJNBgRCJJXJXjWrde0.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2927721098720542702.post-2002615083169286307</id><published>2008-10-16T05:41:00.006+10:00</published><updated>2008-11-20T11:39:30.123+10:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='error'/><category scheme='http://www.blogger.com/atom/ns#' term='kernel'/><category scheme='http://www.blogger.com/atom/ns#' term='virtualbox'/><category scheme='http://www.blogger.com/atom/ns#' term='ubuntu'/><title type='text'>VirtualBox: Spawning Session</title><content type='html'>After a recent kernel upgrade, I found my VirtualBox 2.0 stopped launching VMs, and would just sit there with a dialog saying "Spawning Session" and a progresss bar which never went past 0%.&lt;br /&gt;&lt;br /&gt;A quick look on Ubuntuforums and I found &lt;a href="http://ubuntuforums.org/showthread.php?t=921774"&gt;others are having the same problem&lt;/a&gt;. Turns out the kernel module hasn't loaded. We can force a recompile with this command:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;sudo /etc/init.d/vboxdrv setup&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;It then stops, recompiles, and starts the module:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt; * Stopping VirtualBox kernel module&lt;br /&gt;*    done.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt; * Recompiling VirtualBox kernel module&lt;br /&gt;*    done.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt; * Starting VirtualBox kernel module&lt;br /&gt;*    done.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;And VirtualBox is working again!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2927721098720542702-2002615083169286307?l=linuxaleph.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxaleph.blogspot.com/feeds/2002615083169286307/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2927721098720542702&amp;postID=2002615083169286307' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2927721098720542702/posts/default/2002615083169286307'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2927721098720542702/posts/default/2002615083169286307'/><link rel='alternate' type='text/html' href='http://linuxaleph.blogspot.com/2008/10/virtualbox-spawning-session.html' title='VirtualBox: Spawning Session'/><author><name>Jamie B</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/-o4LVpDfosvc/TqtZxkXDuxI/AAAAAAAABt0/MunrF8ysW24/s220/AIbEiAIAAAAhCIqUyeOg0KrzfxDdhsn5xsze1FgYpaTK3bvwgauRATABfgoH7xZi0bJNBgRCJJXJXjWrde0.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2927721098720542702.post-4370301253227042249</id><published>2008-10-13T10:45:00.007+10:00</published><updated>2008-11-20T11:39:48.668+10:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='permissions'/><category scheme='http://www.blogger.com/atom/ns#' term='error'/><category scheme='http://www.blogger.com/atom/ns#' term='ubuntu'/><category scheme='http://www.blogger.com/atom/ns#' term='gnome'/><category scheme='http://www.blogger.com/atom/ns#' term='home'/><title type='text'>User's $HOME/.dmrc file is being ignored</title><content type='html'>There's been a few users on Ubuntuforums, myself included, who have had this error pop up as they log in:&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_iFX8S_zuAQ8/SPKa8dFyNKI/AAAAAAAAAz8/8B6k4JjLv9k/s1600-h/dmrc-error.jpg"&gt;&lt;img style="cursor: pointer;" src="http://4.bp.blogspot.com/_iFX8S_zuAQ8/SPKa8dFyNKI/AAAAAAAAAz8/8B6k4JjLv9k/s400/dmrc-error.jpg" alt="" id="BLOGGER_PHOTO_ID_5256434078486508706" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div style="text-align: left;"&gt;&lt;br /&gt;The error seems pretty obvious, that the file listed &lt;span style="font-weight: bold;"&gt;~/.dmrc&lt;/span&gt; has the wrong permissions. The fix for this is easy, at a terminal, do the following, replacing the word username with your username:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;sudo chown username /home/username/.dmrc&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;chmod 644 /home/username/.dmrc&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Except I don't have a .dmrc file to do this to, so what could be causing the error? After a bit of hunting around, I found this can also pop up if your home directory has global write permissions. The fix for this is just as easy. Again at a terminal:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;sudo chmod 755 /home/username/&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;which gives other users read access to your home directory. Or if you'd prefer it private, then&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;sudo chmod 700 /home/username/&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;will work as well.&lt;br /&gt;&lt;br /&gt;Log out, log in again, and the error screen should go away!&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2927721098720542702-4370301253227042249?l=linuxaleph.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxaleph.blogspot.com/feeds/4370301253227042249/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2927721098720542702&amp;postID=4370301253227042249' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2927721098720542702/posts/default/4370301253227042249'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2927721098720542702/posts/default/4370301253227042249'/><link rel='alternate' type='text/html' href='http://linuxaleph.blogspot.com/2008/10/users-homedmrc-file-is-being-ignored.html' title='User&apos;s $HOME/.dmrc file is being ignored'/><author><name>Jamie B</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/-o4LVpDfosvc/TqtZxkXDuxI/AAAAAAAABt0/MunrF8ysW24/s220/AIbEiAIAAAAhCIqUyeOg0KrzfxDdhsn5xsze1FgYpaTK3bvwgauRATABfgoH7xZi0bJNBgRCJJXJXjWrde0.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_iFX8S_zuAQ8/SPKa8dFyNKI/AAAAAAAAAz8/8B6k4JjLv9k/s72-c/dmrc-error.jpg' height='72' width='72'/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2927721098720542702.post-1403559245987759092</id><published>2008-10-12T23:47:00.003+10:00</published><updated>2008-10-17T09:25:35.557+10:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='trash'/><category scheme='http://www.blogger.com/atom/ns#' term='error'/><category scheme='http://www.blogger.com/atom/ns#' term='gnome'/><category scheme='http://www.blogger.com/atom/ns#' term='nautilus'/><title type='text'>Nautilus Trash won't empty?</title><content type='html'>Every now and then, I get a file in my Trash/Garbagebin which just won't go away. I'm guessing there's a file somewhere which my user doesn't have permission to delete, but wound up in the bin anyway?&lt;br /&gt;&lt;br /&gt;It's easily fixed tho, it just needs a root user to go into the Trash folder, and delete manually. One can accomplish this with the command:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;gksu nautilus /home/username/.local/share/Trash/files&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;and remove whatever you find.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2927721098720542702-1403559245987759092?l=linuxaleph.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxaleph.blogspot.com/feeds/1403559245987759092/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2927721098720542702&amp;postID=1403559245987759092' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2927721098720542702/posts/default/1403559245987759092'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2927721098720542702/posts/default/1403559245987759092'/><link rel='alternate' type='text/html' href='http://linuxaleph.blogspot.com/2008/10/nautilus-trash-wont-empty.html' title='Nautilus Trash won&apos;t empty?'/><author><name>Jamie B</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/-o4LVpDfosvc/TqtZxkXDuxI/AAAAAAAABt0/MunrF8ysW24/s220/AIbEiAIAAAAhCIqUyeOg0KrzfxDdhsn5xsze1FgYpaTK3bvwgauRATABfgoH7xZi0bJNBgRCJJXJXjWrde0.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2927721098720542702.post-6713563976853715711</id><published>2008-10-07T18:27:00.004+10:00</published><updated>2008-10-17T09:26:08.135+10:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='images'/><category scheme='http://www.blogger.com/atom/ns#' term='commandline'/><category scheme='http://www.blogger.com/atom/ns#' term='screenshot'/><title type='text'>Screenshots at the commandline</title><content type='html'>Making a screenshot in X is easy - GNOME has the Print Screen option, and there's always the &lt;span style="font-weight: bold;"&gt;scrot&lt;/span&gt; application.&lt;br /&gt;&lt;br /&gt;But how to make a screenshot without X, when just working in the console?&lt;br /&gt;&lt;br /&gt;Everything in the console is displayed in the framebuffer, and &lt;span style="font-weight: bold;"&gt;fbgrab&lt;/span&gt; enables you to make a screenshot of this.&lt;br /&gt;&lt;br /&gt;Usage is easy, just:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;fbgrab filename.png&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2927721098720542702-6713563976853715711?l=linuxaleph.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxaleph.blogspot.com/feeds/6713563976853715711/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2927721098720542702&amp;postID=6713563976853715711' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2927721098720542702/posts/default/6713563976853715711'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2927721098720542702/posts/default/6713563976853715711'/><link rel='alternate' type='text/html' href='http://linuxaleph.blogspot.com/2008/10/screenshots-in-console-mode.html' title='Screenshots at the commandline'/><author><name>Jamie B</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/-o4LVpDfosvc/TqtZxkXDuxI/AAAAAAAABt0/MunrF8ysW24/s220/AIbEiAIAAAAhCIqUyeOg0KrzfxDdhsn5xsze1FgYpaTK3bvwgauRATABfgoH7xZi0bJNBgRCJJXJXjWrde0.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2927721098720542702.post-4412693366521414123</id><published>2008-09-20T13:41:00.010+10:00</published><updated>2008-10-07T21:22:14.953+10:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='window manager'/><category scheme='http://www.blogger.com/atom/ns#' term='gui'/><category scheme='http://www.blogger.com/atom/ns#' term='applications'/><title type='text'>Window control with wmctrl</title><content type='html'>&lt;span style="font-weight: bold;"&gt;wmctrl&lt;/span&gt; is a useful little commandline tool for manipulating windows. it works with any window manager that complies to the &lt;a href="http://standards.freedesktop.org/wm-spec/wm-spec-1.3.html"&gt;freedesktop.org spec&lt;/a&gt;, which is most common ones&lt;br /&gt;&lt;br /&gt;to install it within a debian-based distro, just type &lt;span style="font-weight: bold;"&gt;sudo apt-get install wmctrl&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;what can it do? alot, but i mostly use it for resizing windows to certain sizes (which can be useful for testing a web layout in smaller resolutions), positioning windows at a particular place on the monitor, and for "shading" windows, which means drawing the window up to the titlebar&lt;br /&gt;&lt;br /&gt;to see what windows wmctrl can see, type &lt;span style="font-weight: bold;"&gt;wmctrl -l&lt;/span&gt; in a terminal, you'll get a list like this:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;jamie@one:~$ wmctrl -l&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;0x01000003 -1 one Bottom Expanded Edge Panel&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;0x0100002a -1 one Bottom Expanded Edge Panel&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;0x0120001f -1 one Desktop&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;0x028000c8  0 one : Linux Aleph : Tips for using Linux - Mozilla Firefox&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;0x03200021  0 one jamie@one: ~&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;so you can see a window ID, a number which is the workspace the window appears on (-1 means "sticky" on all workspaces), the X server the window is running on (my PC's hostname is "one"), and the window titles&lt;br /&gt;&lt;br /&gt;to address a window, you can either use the window ID, or do a match on part of the title. so &lt;span style="font-weight: bold;"&gt;wmctrl -i -r 0x028000c8&lt;/span&gt; and &lt;span style="font-weight: bold;"&gt;wmctrl -r Firefox&lt;/span&gt; will both address the same window. you can also address windows with &lt;span style="font-weight: bold;"&gt;-r :ACTIVE:&lt;/span&gt;, which is the active window, and &lt;span style="font-weight: bold;"&gt;-r :SELECT:&lt;/span&gt;, which gives you a mouse cursor to choose the window you wish to control&lt;br /&gt;&lt;br /&gt;to resize a window, use the &lt;span style="font-weight: bold;"&gt;-e&lt;/span&gt; parameter, with a syntax that goes &lt;gravity&gt;&lt;span style="font-weight: bold;"&gt;gravity,x&lt;/span&gt;&lt;x&gt;&lt;span style="font-weight: bold;"&gt;,y&lt;/span&gt;&lt;y&gt;&lt;span style="font-weight: bold;"&gt;,width&lt;/span&gt;&lt;x&gt;&lt;span style="font-weight: bold;"&gt;,height&lt;/span&gt;&lt;y&gt;, and a &lt;span style="font-weight: bold;"&gt;-1&lt;/span&gt; option leaves a pixel value unchanged&lt;br /&gt;&lt;br /&gt;don't worry about changing window gravity, just set it to 0, so to resize our Firefox window inplace to 1024x768, type &lt;span style="font-weight: bold;"&gt;wmctrl -r Firefox -e 0,-1,-1,1024,768&lt;/span&gt; or to positon a window 100 pixels in without resizing it, use the command &lt;span style="font-weight: bold;"&gt;wmctrl -r Firefox -e 0,100,100,-1,-1&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;to change window shading, use the option &lt;span style="font-weight: bold;"&gt;-b toggle,shaded&lt;/span&gt;, you could even bind this to a keystroke (like Ctrl-Escape) to make it easy to get to quickly&lt;br /&gt;&lt;br /&gt;there is alot more wmctrl can do, such as maximising, minimising, changing titles, the list goes on. type &lt;span style="font-weight: bold;"&gt;man wmctrl&lt;/span&gt; in a terminal to find out more&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;/span&gt;&lt;/y&gt;&lt;/x&gt;&lt;/y&gt;&lt;/x&gt;&lt;/gravity&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2927721098720542702-4412693366521414123?l=linuxaleph.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxaleph.blogspot.com/feeds/4412693366521414123/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2927721098720542702&amp;postID=4412693366521414123' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2927721098720542702/posts/default/4412693366521414123'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2927721098720542702/posts/default/4412693366521414123'/><link rel='alternate' type='text/html' href='http://linuxaleph.blogspot.com/2008/09/window-control-with-wmctrl.html' title='Window control with wmctrl'/><author><name>Jamie B</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/-o4LVpDfosvc/TqtZxkXDuxI/AAAAAAAABt0/MunrF8ysW24/s220/AIbEiAIAAAAhCIqUyeOg0KrzfxDdhsn5xsze1FgYpaTK3bvwgauRATABfgoH7xZi0bJNBgRCJJXJXjWrde0.jpg'/></author><thr:total>0</thr:total></entry></feed>
