<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.1.2" -->
<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/"
	>

<channel>
	<title>Linux etc.</title>
	<link>http://promberger.info/linux</link>
	<description>my outsourced memory for your perusal</description>
	<pubDate>Fri, 02 Jan 2009 18:42:00 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.1.2</generator>
	<language>en</language>
			<item>
		<title>Running X apps (like zenity) from crontab (solving &#8220;cannot open display&#8221; problem)</title>
		<link>http://promberger.info/linux/2009/01/02/running-x-apps-like-zenity-from-crontab-solving-cannot-open-display-problem/</link>
		<comments>http://promberger.info/linux/2009/01/02/running-x-apps-like-zenity-from-crontab-solving-cannot-open-display-problem/#comments</comments>
		<pubDate>Fri, 02 Jan 2009 18:42:00 +0000</pubDate>
		<dc:creator>Marianne</dc:creator>
		
		<category><![CDATA[Linux]]></category>

		<category><![CDATA[Noobs]]></category>

		<guid isPermaLink="false">http://promberger.info/linux/2009/01/02/running-x-apps-like-zenity-from-crontab-solving-cannot-open-display-problem/</guid>
		<description><![CDATA[I&#8217;ve written a small script that checks whether I have queued mail and that displays a notification icon via &#8220;zenity &#8211;notification&#8221; in case I do. I wanted to run it using ~/.crontab but it wouldn&#8217;t run. First, I got error messages from the cron daemon that looked like this:
(zenity:22981): Gtk-WARNING **: cannot open display:
Sure, I [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve written a small script that checks whether I have queued mail and that displays a notification icon via &#8220;zenity &#8211;notification&#8221; in case I do. I wanted to run it using <code>~/.crontab</code> but it wouldn&#8217;t run. First, I got error messages from the cron daemon that looked like this:</p>
<pre>(zenity:22981): Gtk-WARNING **: cannot open display:</pre>
<p>Sure, I hadn&#8217;t specified a display. So I tried setting the <code>DISPLAY</code> explicitly in my ~/.crontab:</p>
<pre>* * * * export DISPLAY=:0.0 &#038;&#038; /path/to/checklog</pre>
<p>but then I got:</p>
<pre>
No protocol specified

(zenity:24101): Gtk-WARNING **: cannot open display: :0</pre>
<p>The same happened when I tried running other X apps, like audacious. A line in ~/.crontab like this:</p>
<pre>* * * * * DISPLAY=:0 /usr/bin/audacious</pre>
<p>resulted in errors like this:</p>
<pre>No protocol specified
/usr/bin/audacious: Unable to open display, exiting.</pre>
<p>It turns out I needed to set, in my <code>~/.bashrc</code>:</p>
<pre>xhost local:mpromber > /dev/null</pre>
<p>to allow crontab access to my X display.  It now works, either using &#8220;export DISPLAY=:0.0&#8243; in the ~/.crontab, or alternatively just using </p>
<pre>zenity --notification --display=:0.0</pre>
<p>in the script that checks for queued mail.</p>
]]></content:encoded>
			<wfw:commentRss>http://promberger.info/linux/2009/01/02/running-x-apps-like-zenity-from-crontab-solving-cannot-open-display-problem/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Ubuntu/ Linux: How to permanently turn off the annoying system bell (beep)</title>
		<link>http://promberger.info/linux/2008/12/04/ubuntu-linux-how-to-permanently-turn-off-the-annoying-system-bell-beep/</link>
		<comments>http://promberger.info/linux/2008/12/04/ubuntu-linux-how-to-permanently-turn-off-the-annoying-system-bell-beep/#comments</comments>
		<pubDate>Thu, 04 Dec 2008 18:27:48 +0000</pubDate>
		<dc:creator>Marianne</dc:creator>
		
		<category><![CDATA[Linux]]></category>

		<category><![CDATA[Emacs]]></category>

		<guid isPermaLink="false">http://promberger.info/linux/2008/12/04/ubuntu-linux-how-to-permanently-turn-off-the-annoying-system-bell-beep/</guid>
		<description><![CDATA[You know what I mean &#8230; that loud loud beep that almost knocks you out whenever you type a non-available keyboard shortcut in Emacs.
For immediate relief (this will not persist through a reboot):
sudo modprobe -r pcspkr
For permanent relief, edit the file /etc/modprobe.d/blacklist and add the line:
blacklist pcspkr
]]></description>
			<content:encoded><![CDATA[<p>You know what I mean &#8230; that loud loud beep that almost knocks you out whenever you type a non-available keyboard shortcut in Emacs.</p>
<p>For immediate relief (this will not persist through a reboot):</p>
<pre>sudo modprobe -r pcspkr</pre>
<p>For permanent relief, edit the file <code>/etc/modprobe.d/blacklist</code> and add the line:</p>
<pre>blacklist pcspkr</pre>
]]></content:encoded>
			<wfw:commentRss>http://promberger.info/linux/2008/12/04/ubuntu-linux-how-to-permanently-turn-off-the-annoying-system-bell-beep/feed/</wfw:commentRss>
		</item>
		<item>
		<title>&#8220;trash-cli&#8221; lets you move files to the trash from the command line (and shell scripts)</title>
		<link>http://promberger.info/linux/2008/11/28/trash-cli-lets-you-move-files-to-the-trash-from-the-command-line-and-shell-scripts/</link>
		<comments>http://promberger.info/linux/2008/11/28/trash-cli-lets-you-move-files-to-the-trash-from-the-command-line-and-shell-scripts/#comments</comments>
		<pubDate>Fri, 28 Nov 2008 22:09:38 +0000</pubDate>
		<dc:creator>Marianne</dc:creator>
		
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://promberger.info/linux/2008/11/28/trash-cli-lets-you-move-files-to-the-trash-from-the-command-line-and-shell-scripts/</guid>
		<description><![CDATA[I know hardcore Linuxers use rm for everything and think the trash on a computer is for babies who also like such poo-poo things like the mouse and GUIs. However, I&#8217;ve just deleted one too many files using rm from a shell script, especially since I like doing rm -rf on directories &#8230; confirming every [...]]]></description>
			<content:encoded><![CDATA[<p>I know hardcore Linuxers use <code>rm</code> for everything and think the trash on a computer is for babies who also like such poo-poo things like the mouse and GUIs. However, I&#8217;ve just deleted one too many files using <code>rm</code> from a shell script, especially since I like doing <code>rm -rf</code> on directories &#8230; confirming every single file is just too tedious. So I googled some and found the best of both worlds: <a href="http://code.google.com/p/trash-cli/">trash-cli</a> lets you move items to the trash can from the command line or shell scripts. You use it simply like so:</p>
<pre>trash somefile</pre>
<p>Unlike just moving files to wherever you trash folder is using <code>mv</code>, trash-cli does all the nice trashy things like keeping information that will let you easily restore the file (which &#8230; ahem &#8230; you of course do from the trash can GUI). On Ubuntu, it&#8217;s easy to get <code>trash-cli</code> via synaptic:</p>
<pre>sudo aptitude install trash-cli</pre>
<p>Now, if there only were a way to rename the trash can to &#8220;trash&#8221; or at least &#8220;rubbish&#8221; instead of the idiotic &#8220;wastebasket&#8221; that my Xubuntu with GB locale insists on &#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://promberger.info/linux/2008/11/28/trash-cli-lets-you-move-files-to-the-trash-from-the-command-line-and-shell-scripts/feed/</wfw:commentRss>
		</item>
		<item>
		<title>How to add a custom welcome message to your Xubuntu or Ubuntu login screen</title>
		<link>http://promberger.info/linux/2008/11/28/how-to-add-a-custom-welcome-message-to-your-xubuntu-or-ubuntu-login-screen/</link>
		<comments>http://promberger.info/linux/2008/11/28/how-to-add-a-custom-welcome-message-to-your-xubuntu-or-ubuntu-login-screen/#comments</comments>
		<pubDate>Fri, 28 Nov 2008 12:53:34 +0000</pubDate>
		<dc:creator>Marianne</dc:creator>
		
		<category><![CDATA[Linux]]></category>

		<category><![CDATA[Noobs]]></category>

		<guid isPermaLink="false">http://promberger.info/linux/2008/11/28/how-to-add-a-custom-welcome-message-to-your-xubuntu-or-ubuntu-login-screen/</guid>
		<description><![CDATA[I like the graphical login screen on my laptop to display my e-mail address. In case I lose the laptop and an honest person finds it, they should at least have the possibility to return it.
In the latest versions of Ubuntu or Xubuntu, you can change the welcome message via the settings menu for &#8220;Login [...]]]></description>
			<content:encoded><![CDATA[<p>I like the graphical login screen on my laptop to display my e-mail address. In case I lose the laptop and an honest person finds it, they should at least have the possibility to return it.</p>
<p>In the latest versions of Ubuntu or Xubuntu, you can change the welcome message via the settings menu for &#8220;Login Window&#8221; (or, at a command line, type &#8220;gksudo gdmsetup&#8221;). Go to the &#8220;local&#8221; tab. </p>
<p>However, the custom welcome message is not displayed for a lot of (possibly most or all of) the themes, if you want a themed login window. My guess is that this is because these themes do not display a welcome message at all, period. To work around this, you can manually edit the .xml file of the theme you wish to use. Let&#8217;s assume you want to use the &#8220;Human&#8221; theme for your login screen. Pick that in the gdm setup window. Set your custom welcome message. Now, go to <code>/usr/share/gdm/themes</code>. You will see that this contains folders named after the different themes. You want to change the &#8220;Human&#8221; theme, so go to that folder. Now, using <code>sudo</code>, edit the file <code>Human.xml</code>. You will see that it contains xml markup, which is similar to hmtl. Add a section that looks like the following (I don&#8217;t think it matters where you add it. I added mine after the &#8220;ubuntu logo&#8221; section and it works fine):</p>
<pre>
  &lt;!-- Welcome message (added by MP) --&gt;
  &lt;item type="label"&gt;
    &lt;pos y="2%" x="2%"/&gt;
    &lt;normal color="#000000" font="Sans 14"/&gt;
    &lt;!-- Stock label for: Welcome to %h --&gt;
    &lt;stock type="welcome-label"/&gt;
  &lt;/item&gt;
</pre>
<p>Of course, you can change the position, color and font; this should be easy to figure out. Save the file. Next time you log out, you will see the custom welcome message that you have defined in the GUI for the gdm settings on your login screen.</p>
]]></content:encoded>
			<wfw:commentRss>http://promberger.info/linux/2008/11/28/how-to-add-a-custom-welcome-message-to-your-xubuntu-or-ubuntu-login-screen/feed/</wfw:commentRss>
		</item>
		<item>
		<title>R: Logical operators: Beware of the difference between &#8220;&#038;&#038;&#8221; and &#8220;&#038;&#8221;</title>
		<link>http://promberger.info/linux/2008/09/12/r-logical-operators-beware-of-the-difference-between-and/</link>
		<comments>http://promberger.info/linux/2008/09/12/r-logical-operators-beware-of-the-difference-between-and/#comments</comments>
		<pubDate>Fri, 12 Sep 2008 11:01:30 +0000</pubDate>
		<dc:creator>Marianne</dc:creator>
		
		<category><![CDATA[Noobs]]></category>

		<category><![CDATA[R]]></category>

		<guid isPermaLink="false">http://promberger.info/linux/2008/09/12/r-logical-operators-beware-of-the-difference-between-and/</guid>
		<description><![CDATA[There&#8217;s a tricky bit about R&#8217;s logical operators, and though it&#8217;s described in the help pages that you get when you type, for example,
?"&#038;"
I still fall from it from time to time. (I think it has to do with my rudimentary knowledge and usage of &#8220;&#038;&#038;&#8221; for if-statements in bash shell scripts.
Below I just go [...]]]></description>
			<content:encoded><![CDATA[<p>There&#8217;s a tricky bit about <a href="http://www.r-project.org/">R</a>&#8217;s logical operators, and though it&#8217;s described in the help pages that you get when you type, for example,</p>
<pre>?"&#038;"</pre>
<p>I still fall from it from time to time. (I think it has to do with my rudimentary knowledge and usage of &#8220;&#038;&#038;&#8221; for if-statements in bash shell scripts.</p>
<p>Below I just go through &#8220;&#038;&#038;&#8221; and &#8220;&#038;&#8221;. Obviously, this also applies to &#8220;||&#8221; and &#8220;|&#8221;.</p>
<p>Here&#8217;s a little demo to remind me and to demonstrate this to newbies:</p>
<pre>
> 1==1
[1] TRUE
> 1==1 &#038; 1==2
[1] FALSE
> 1==1 &#038;&#038; 1==2
[1] FALSE
</pre>
<p>So far, so good. Now look what happens if we apply this to vectors:</p>
<pre>
> 1:3==1:3
[1] TRUE TRUE TRUE
> 1:3==c(1,3,3)
[1]  TRUE FALSE  TRUE
> 1:3==1:3 &#038; 1:3==c(1,3,3)
[1]  TRUE FALSE  TRUE</pre>
<p>This is what you probably want in most cases: element-wise comparison. The &#8220;&#038;&#8221; here compares each element in the vector &#8220;TRUE TRUE TRUE&#8221; to the corresponding element in &#8220;TRUE FALSE TRUE&#8221; and returns a &#8220;TRUE&#8221; each time they match and a &#8220;FALSE&#8221; if they don&#8217;t. Now look what happens if we use &#8220;&#038;&#038;&#8221;:</p>
<pre>
> 1:3==1:3 &#038;&#038; 1:3==1:3
[1] TRUE
> 1:3==1:3 &#038;&#038; 1:3==c(1,3,3)
[1] TRUE
</pre>
<p>For &#8220;&#038;&#038;&#8221;, as the R help page says, &#8220;The longer form evaluates left to right examining only the first element of each vector.&#8221;</p>
<p>This is quite obvious in this example, but it can get confusing when you use a logical operator to index a vector. Watch this:</p>
<pre>
> x <- 1:5
> x[x<5]
[1] 1 2 3 4
> x[x<5 &#038; x>2]
[1] 3 4
</pre>
<p>Fine.  </p>
<pre>
> x[x<5 &#038;&#038; x>2]
integer(0)
</pre>
<p>The reason:</p>
<pre>
> x>2 &#038; x<5
[1] FALSE FALSE  TRUE  TRUE FALSE
> x>2 &#038;&#038; x<5
[1] FALSE
</pre>
<p>So in the first case, R &#8220;sees&#8221;</p>
<pre>> x[c(FALSE,FALSE,TRUE,TRUE,FALSE)]</pre>
<p>and in the second case, it sees:</p>
<pre>> x[FALSE]</pre>
<p>As long as the first element compares with &#8220;FALSE&#8221;, you&#8217;re actually lucky, because the error will be obvious. It&#8217;s tricky when &#8220;&#038;&#038;&#8221; evaluates to &#8220;TRUE&#8221; when it looks at the first element, because some R functions will recycle input if it is too short, and this can lead to things like:</p>
<pre>
> x <- 1:10
> y <- c(1,3:11)
> x==y
 [1]  TRUE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE
> x[x==1 &#038; y==1]
[1] 1
> x[x==1 &#038;&#038; y==1]
 [1]  1  2  3  4  5  6  7  8  9 10
</pre>
<p>So basically, for logical comparison, stick to &#8220;&#038;&#8221; unless you  know you need &#8220;&#038;&#038;&#8221;. </p>
<p>By the way, if you want to see the values that are elements of both x an y, use &#8220;%in%&#8221;:</p>
<pre>
> x[x%in%y]
[1]  1  3  4  5  6  7  8  9 10
> y[y%in%x]
[1]  1  3  4  5  6  7  8  9 10
</pre>
<p>But don&#8217;t do:</p>
<pre>
> y[x%in%y]
[1]  1  4  5  6  7  8  9 10 11
</pre>
<p>This indexes y using the logical vector returned by &#8220;x%in%y&#8221;, which is of course:</p>
<pre>
> x%in%y
 [1]  TRUE FALSE  TRUE  TRUE  TRUE  TRUE  TRUE  TRUE  TRUE  TRUE
</pre>
]]></content:encoded>
			<wfw:commentRss>http://promberger.info/linux/2008/09/12/r-logical-operators-beware-of-the-difference-between-and/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Disable boot process checking for keyboard on Dell desktop</title>
		<link>http://promberger.info/linux/2008/09/05/disable-boot-process-checking-for-keyboard-on-dell-desktop/</link>
		<comments>http://promberger.info/linux/2008/09/05/disable-boot-process-checking-for-keyboard-on-dell-desktop/#comments</comments>
		<pubDate>Fri, 05 Sep 2008 09:21:51 +0000</pubDate>
		<dc:creator>Marianne</dc:creator>
		
		<category><![CDATA[misc.]]></category>

		<guid isPermaLink="false">http://promberger.info/linux/2008/09/05/disable-boot-process-checking-for-keyboard-on-dell-desktop/</guid>
		<description><![CDATA[Whenever I forgot to plug in my keyboard before booting my Dell desktop, it would halt with the amusing error message:
Keybard failure. Press F1 to continue, F2 for setup.
When I was at home, I could just plug in the keyboard and hit F1, but when I was trying to boot the computer remotely through wake-on-LAN, [...]]]></description>
			<content:encoded><![CDATA[<p>Whenever I forgot to plug in my keyboard before booting my Dell desktop, it would halt with the amusing error message:</p>
<pre>Keybard failure. Press F1 to continue, F2 for setup.</pre>
<p>When I was at home, I could just plug in the keyboard and hit F1, but when I was trying to boot the computer remotely through wake-on-LAN, I was out of luck.</p>
<p>Turns out you can disable this in the BIOS (hit F2). On my Dell, it is under the &#8220;Standard CMOS features&#8221; section. You&#8217;ll find &#8220;Halt on &#8230;&#8221;, which was set to &#8220;All errors&#8221; for me. Switching this to &#8220;All but keyboard&#8221; disables the boot process checking for keyboard presence.</p>
]]></content:encoded>
			<wfw:commentRss>http://promberger.info/linux/2008/09/05/disable-boot-process-checking-for-keyboard-on-dell-desktop/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Installing okular in Gutsy</title>
		<link>http://promberger.info/linux/2008/08/20/installing-okular-in-gutsy/</link>
		<comments>http://promberger.info/linux/2008/08/20/installing-okular-in-gutsy/#comments</comments>
		<pubDate>Wed, 20 Aug 2008 18:50:55 +0000</pubDate>
		<dc:creator>Marianne</dc:creator>
		
		<category><![CDATA[Gutsy]]></category>

		<guid isPermaLink="false">http://promberger.info/linux/2008/08/20/installing-okular-in-gutsy/</guid>
		<description><![CDATA[I&#8217;m running Xubuntu but I don&#8217;t see why this wouldn&#8217;t work for Ubuntu.
I really like kpdf, but it cannot rotate pages. It seems that it is no longer actively developed, and that instead okular is kpdf&#8217;s successor. However, in Gutsy, if you try installing okular via aptitude, you get a dependency problem that aptitude cannot [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m running Xubuntu but I don&#8217;t see why this wouldn&#8217;t work for Ubuntu.</p>
<p>I really like kpdf, but it cannot rotate pages. It seems that it is no longer actively developed, and that instead <a href="http://okular.kde.org/">okular</a> is kpdf&#8217;s successor. However, in Gutsy, if you try installing <code>okular</code> via aptitude, you get a dependency problem that aptitude cannot resovle for you (something about missing the virtual package <code>libpoppler1</code>).</p>
<p>You can work around this by adding the following repository to your <code>/etc/apt/sources.list</code>:</p>
<pre>deb http://ppa.launchpad.net/kubuntu-members-kde4/ubuntu gutsy main</pre>
<p>then:</p>
<pre>sudo aptitude update &#038;&#038; sudo aptitude dist-upgrade</pre>
<p>This installs quite a few kde things and may reinstall kde apps you might already have installed, such as amarok. It did for me. My guess is the problem is that okular is a kde4 app, and you need some kde4 stuff for it. <strong>I haven&#8217;t checked whether this breaks any of the other kde apps on your system!</strong> (Personally, I don&#8217;t care &#8212; I do have amarok installed but I&#8217;m hardly using it; I&#8217;ve grown fond of <a href="http://www.sacredchao.net/quodlibet/">quodlibet</a> instead). </p>
<p>Then, you can do:</p>
<pre>sudo aptitude install okular</pre>
<p>This will install a <em>lot</em> of dependencies.</p>
<p>You won&#8217;t be able to start okular by just using the command <code>okular</code> in a terminal, but you can find it in the Xfce menu under the &#8220;Graphics&#8221; applications.  However, a </p>
<pre>ps -ef | grep okular</pre>
<p>while okular is running reveals that it sits at <code>/usr/lib/kde4/bin/okular</code>, so you can add</p>
<pre>alias okular="/usr/lib/kde4/bin/okular"</pre>
<p>to your <code>~/.bashrc</code> (or, maybe add <code>/usr/lib/kde4/bin</code> to your <code>PATH</code>).</p>
]]></content:encoded>
			<wfw:commentRss>http://promberger.info/linux/2008/08/20/installing-okular-in-gutsy/feed/</wfw:commentRss>
		</item>
		<item>
		<title>MikTeX package manager for Linux</title>
		<link>http://promberger.info/linux/2008/06/15/miktex-package-manager-for-ubuntu-linux/</link>
		<comments>http://promberger.info/linux/2008/06/15/miktex-package-manager-for-ubuntu-linux/#comments</comments>
		<pubDate>Sun, 15 Jun 2008 00:51:51 +0000</pubDate>
		<dc:creator>Marianne</dc:creator>
		
		<category><![CDATA[LaTeX]]></category>

		<guid isPermaLink="false">http://promberger.info/linux/2008/06/15/miktex-package-manager-for-ubuntu-linux/</guid>
		<description><![CDATA[One of the few things I really missed when I switched from Windows to Linux was MikTeX, since it makes installation of LaTeX packages very easy, where Linux makes you jump through hoops. So I&#8217;m delighted that MikTeX brings this functionality to Linux, trough MikTeX&#160;Tools. 
Since this is not available through aptitude, you have to [...]]]></description>
			<content:encoded><![CDATA[<p>One of the few things I really missed when I switched from Windows to Linux was MikTeX, since it makes installation of LaTeX packages very easy, where Linux makes you jump through hoops. So I&#8217;m delighted that MikTeX brings this functionality to Linux, trough <a href="http://miktex.org/unx/">MikTeX&nbsp;Tools</a>. </p>
<p>Since this is not available through aptitude, you have to download the source and compile, it but it&#8217;s straightforward if you follow the readme file that comes with the package. Above all, Ubuntu proved great as usual at helping me get the missing dependencies, by automatically suggesting which package I needed to <code>aptitude</code> when I typed a command it didn&#8217;t find (<code>curl-config</code> and <code>cmake</code>). </p>
<p>I just had one problem: when I tried to update the mpm database, I got:</p>
<pre>
mpm --update-db
mpm: error while loading shared libraries: libMiKTeX207-core.so.1: cannot open shared object file: No such file or directory
</pre>
<p>It turns out the source files were in a different location, and all I had to do was:</p>
<pre>sudo ldconfig</pre>
<p>Now installing packages is as easy as:</p>
<pre>mpm --install=emerald</pre>
]]></content:encoded>
			<wfw:commentRss>http://promberger.info/linux/2008/06/15/miktex-package-manager-for-ubuntu-linux/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Binding a key to the middle mouse button with xmodmap and xkbset</title>
		<link>http://promberger.info/linux/2008/06/03/binding-a-key-to-the-middle-mouse-button-with-xmodmap-and-xkbset/</link>
		<comments>http://promberger.info/linux/2008/06/03/binding-a-key-to-the-middle-mouse-button-with-xmodmap-and-xkbset/#comments</comments>
		<pubDate>Tue, 03 Jun 2008 19:17:30 +0000</pubDate>
		<dc:creator>Marianne</dc:creator>
		
		<category><![CDATA[Linux]]></category>

		<category><![CDATA[Usability]]></category>

		<guid isPermaLink="false">http://promberger.info/linux/2008/06/03/binding-a-key-to-the-middle-mouse-button-with-xmodmap-and-xkbset/</guid>
		<description><![CDATA[Great, I just found this here. This is how you can bind a key to the middle mouse button (I use the middle mouse button a lot to (a) paste stuff from the clipboard, (b) open links in background tabs in Firefox). I used the pause/break key, so it&#8217;s slightly modified. I first had to [...]]]></description>
			<content:encoded><![CDATA[<p>Great, I just found this <a href="http://www.linuxfocus.org/English/May2004/">here</a>. This is how you can bind a key to the middle mouse button (I use the middle mouse button a lot to (a) paste stuff from the clipboard, (b) open links in background tabs in Firefox). I used the pause/break key, so it&#8217;s slightly modified. I first had to get <code>xkbset</code> via aptitude. </p>
<pre>sudo aptitude install xkbset
xmodmap -e 'keysym Pause Break = Pointer_Button2'
xkbset m
xkbset exp =m</pre>
<p>I don&#8217;t know yet whether this will persist after a reboot.</p>
]]></content:encoded>
			<wfw:commentRss>http://promberger.info/linux/2008/06/03/binding-a-key-to-the-middle-mouse-button-with-xmodmap-and-xkbset/feed/</wfw:commentRss>
		</item>
		<item>
		<title>How to use mutt to e-mail images from DigiKam</title>
		<link>http://promberger.info/linux/2008/05/26/how-to-use-mutt-to-e-mail-images-from-digikam/</link>
		<comments>http://promberger.info/linux/2008/05/26/how-to-use-mutt-to-e-mail-images-from-digikam/#comments</comments>
		<pubDate>Mon, 26 May 2008 17:49:49 +0000</pubDate>
		<dc:creator>Marianne</dc:creator>
		
		<category><![CDATA[mutt]]></category>

		<category><![CDATA[Xfce]]></category>

		<category><![CDATA[DigiKam]]></category>

		<guid isPermaLink="false">http://promberger.info/linux/2008/05/26/how-to-use-mutt-to-e-mail-images-from-digikam/</guid>
		<description><![CDATA[DigiKam has a nice feature that lets you e-mail images; it&#8217;s in the Image menu. You can change the mail agent to use, in the Mail tab of the dialogue that comes up. That&#8217;s nice as well. However, you can only pick from a dropdown of predefined mail agents, and that list doesn&#8217;t include mutt. [...]]]></description>
			<content:encoded><![CDATA[<p>DigiKam has a nice feature that lets you e-mail images; it&#8217;s in the <i>Image</i> menu. You can change the mail agent to use, in the <i>Mail</i> tab of the dialogue that comes up. That&#8217;s nice as well. However, you can only pick from a dropdown of predefined mail agents, and that list doesn&#8217;t include <a href="http://www.mutt.org">mutt</a>. (I first tried to trick DigiKam, by picking Thunderbird and then entering exo-open into the custom path for Thunderbird, but this doesn&#8217;t work).</p>
<p>You can, however, pick the &#8220;Default&#8221; mail agent DigiKam&#8217;s dropdown. Note that this will not use the mail agent that you&#8217;ve set as default in Xubuntu (or Ubuntu) (which sucks &#8212; I wish KDE apps would just accept the system defaults for that). You can generally change such settings using &#8230;</p>
<pre>kcontrol</pre>
<p>&#8230; and on a real KDE system, you would look for <i>KDE Components</i> &rarr; <i>Default Applications</i> &rarr; <i>Email Client</i>. Unfortunately, if you&#8217;re using Ubuntu or Xubuntu, you&#8217;ll notice that you don&#8217;t have an item <i>Default Applications</i>. Here&#8217;s what worked for me on Xubuntu:</p>
<pre>sudo aptitude install kde-systemsettings</pre>
<p>Now you&#8217;ll find the entry in <code>kcontrol</code> as described above. I&#8217;ve just set it to <code>/usr/bin/exo-open</code>, as this always gets translated to the default mail app that I&#8217;ve currently set via <i>Preferred Applications</i> in the Xfce Menu (which conveniently has a default for Mutt).</p>
]]></content:encoded>
			<wfw:commentRss>http://promberger.info/linux/2008/05/26/how-to-use-mutt-to-e-mail-images-from-digikam/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
