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

<channel>
	<title>jlogday.com</title>
	<atom:link href="http://blog.jlogday.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.jlogday.com</link>
	<description>programming, security, and other random thoughts</description>
	<lastBuildDate>Sun, 23 Aug 2009 22:16:57 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Jaunty Tooltip Annoyance</title>
		<link>http://blog.jlogday.com/2009/08/jaunty-tooltip-annoyance/</link>
		<comments>http://blog.jlogday.com/2009/08/jaunty-tooltip-annoyance/#comments</comments>
		<pubDate>Sun, 23 Aug 2009 22:16:57 +0000</pubDate>
		<dc:creator>jason</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.jlogday.com/?p=88</guid>
		<description><![CDATA[I upgraded to Jaunty a few days ago, and have been happy with the new version for the most part. One thing was driving me crazy though: the tooltips in the workspace switcher were staying up until I moved the mouse over them. This is way more annoying than you might think. Imagine that you&#8217;re [...]]]></description>
			<content:encoded><![CDATA[<p>I upgraded to <a href="http://www.ubuntu.com/products/whatisubuntu/904features/">Jaunty</a> a few days ago, and have been happy with the new version for the most part. One thing was driving me crazy though: the tooltips in the workspace switcher were staying up until I moved the mouse over them. This is way more annoying than you might think. Imagine that you&#8217;re trying to write some code, and switching frequently between your IDE on desktop 1 and the API reference in your browser window on desktop 4. After every switch, there&#8217;s a useless tooltip hovering over the panel, partially obscuring your windows, and it won&#8217;t go away until you mouse over it. It&#8217;s like trying to code while a gnat is constantly buzzing around your face.</p>
<p>There&#8217;s a <a href="https://bugs.launchpad.net/ubuntu/+source/libwnck/+bug/356702">bug</a> filed against it, of course, but there&#8217;s no workaround. I did find <a href="http://www.ubuntu-inside.me/2009/05/fix-some-ubuntu-jaunty-annoyances.html">two</a> blog <a href="http://linuxowns.wordpress.com/2009/04/28/fixing-some-ubuntu-904-annoyances/">posts</a> that offered a workaround of sorts by globally disabling <b>all</b> panel tooltips. At first I thought that was a bit extreme, but after swatting a few hundred tooltips I was ready to try anything. Unfortunately, this setting did not appear to have any effect, even after restarting the panel. I was still getting the tooltips.</p>
<p>*Sigh*. Well, seeing as how I do claim to be a programmer, and I can often be found extolling the virtues of open source to people who mostly don&#8217;t care, maybe I should practice what I preach, dive into the source code, and fix it myself. Right? Right.</p>
<p>It turns out this is really easy to fix. Assuming, of course, that your definition of &#8220;fix&#8221; is the same as mine, which is &#8220;disable all tooltips for the workspace switcher applet&#8221;. There is a global setting to do this, and it just requires changing a single line of code.</p>
<p>To build a fixed version of <code>libwnck</code>, first download the <a href="http://www.jlogday.com/code/libwnck/libwnck-notooltip.patch">patch</a>, and save it to the <code>/tmp</code> directory. Then run the following commands in a terminal:</p>
<pre class="code">$ sudo apt-get build-dep libwnck
$ apt-get source libwnck
$ cd libwnck-2.26.0
$ patch -p0 &lt;/tmp/libwnck-notooltip.patch
$ debchange -v 2.26.0-ubuntu1+notooltips</pre>
<p>The <code>debchange</code> command will <a href="http://blog.jlogday.com/2009/03/how-to-keep-apt-from-reinstalling-custom-packages-ubuntu/">keep APT from &#8220;upgrading&#8221; your custom package</a>. It will open the <code>debian/changelog</code> file in the default editor so you can enter a description. You can skip this step if the notification to upgrade libwnck doesn&#8217;t bother you.</p>
<pre class="code">$ debuild -rfakeroot binary
$ cd ..
$ sudo dpkg -i libwnck-common_2.26.0-ubuntu1+notooltips_all.deb libwnck22_2.26.0-ubuntu1+notooltips_i386.deb
$ killall gnome-panel</pre>
<p>If you don&#8217;t want to build the packages yourself, you can download mine <a href="http://www.jlogday.com/code/libwnck/">here</a>.</p>



Share and Enjoy:


	<a rel="nofollow"  href="http://www.printfriendly.com/print?url=http%3A%2F%2Fblog.jlogday.com%2F2009%2F08%2Fjaunty-tooltip-annoyance%2F&amp;partner=sociable" title="Print"><img src="http://blog.jlogday.com/wp-content/plugins/sociable/images/printfriendly.png" title="Print" alt="Print" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fblog.jlogday.com%2F2009%2F08%2Fjaunty-tooltip-annoyance%2F&amp;title=Jaunty%20Tooltip%20Annoyance&amp;bodytext=I%20upgraded%20to%20Jaunty%20a%20few%20days%20ago%2C%20and%20have%20been%20happy%20with%20the%20new%20version%20for%20the%20most%20part.%20One%20thing%20was%20driving%20me%20crazy%20though%3A%20the%20tooltips%20in%20the%20workspace%20switcher%20were%20staying%20up%20until%20I%20moved%20the%20mouse%20over%20them.%20This%20is%20way%20more%20annoyin" title="Digg"><img src="http://blog.jlogday.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://delicious.com/post?url=http%3A%2F%2Fblog.jlogday.com%2F2009%2F08%2Fjaunty-tooltip-annoyance%2F&amp;title=Jaunty%20Tooltip%20Annoyance&amp;notes=I%20upgraded%20to%20Jaunty%20a%20few%20days%20ago%2C%20and%20have%20been%20happy%20with%20the%20new%20version%20for%20the%20most%20part.%20One%20thing%20was%20driving%20me%20crazy%20though%3A%20the%20tooltips%20in%20the%20workspace%20switcher%20were%20staying%20up%20until%20I%20moved%20the%20mouse%20over%20them.%20This%20is%20way%20more%20annoyin" title="del.icio.us"><img src="http://blog.jlogday.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fblog.jlogday.com%2F2009%2F08%2Fjaunty-tooltip-annoyance%2F&amp;t=Jaunty%20Tooltip%20Annoyance" title="Facebook"><img src="http://blog.jlogday.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fblog.jlogday.com%2F2009%2F08%2Fjaunty-tooltip-annoyance%2F&amp;title=Jaunty%20Tooltip%20Annoyance&amp;annotation=I%20upgraded%20to%20Jaunty%20a%20few%20days%20ago%2C%20and%20have%20been%20happy%20with%20the%20new%20version%20for%20the%20most%20part.%20One%20thing%20was%20driving%20me%20crazy%20though%3A%20the%20tooltips%20in%20the%20workspace%20switcher%20were%20staying%20up%20until%20I%20moved%20the%20mouse%20over%20them.%20This%20is%20way%20more%20annoyin" title="Google Bookmarks"><img src="http://blog.jlogday.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://twitter.com/home?status=Jaunty%20Tooltip%20Annoyance%20-%20http%3A%2F%2Fblog.jlogday.com%2F2009%2F08%2Fjaunty-tooltip-annoyance%2F" title="Twitter"><img src="http://blog.jlogday.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://blog.jlogday.com/2009/08/jaunty-tooltip-annoyance/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>How to keep APT from reinstalling custom packages (Ubuntu)</title>
		<link>http://blog.jlogday.com/2009/03/how-to-keep-apt-from-reinstalling-custom-packages-ubuntu/</link>
		<comments>http://blog.jlogday.com/2009/03/how-to-keep-apt-from-reinstalling-custom-packages-ubuntu/#comments</comments>
		<pubDate>Wed, 01 Apr 2009 02:01:19 +0000</pubDate>
		<dc:creator>jason</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[gnome-terminal]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://blog.jlogday.com/?p=45</guid>
		<description><![CDATA[A few weeks ago, I finally got around to upgrading my Ubuntu desktop to Hardy Heron. Like many others, I found that the cursor in gnome-terminal had inexplicably started blinking again, and there was no longer a preference to disable it. Fortunately, finding a fix was easy. Applying the patch and rebuilding the .deb package [...]]]></description>
			<content:encoded><![CDATA[<p>A few weeks ago, I finally got around to upgrading my Ubuntu desktop to Hardy Heron. Like <a href="http://www.nybergh.net/notes/2008/05/08/gnome-lunacy-missing-option-for-disabling-cursor-blinks-in-ubuntu-804s-gnome-terminal/">many</a> <a href="http://lwn.net/Articles/278995/">others</a>, I found that the cursor in gnome-terminal had inexplicably started blinking again, and there was <a href="https://bugs.launchpad.net/ubuntu/hardy/+source/gnome-terminal/+bug/188732">no longer a preference to disable it</a>. Fortunately, finding a <a href="http://www.jcornwall.me.uk/2008/04/hardy-heron-and-the-blinkin-terminal/">fix</a> was easy. Applying the patch and rebuilding the <code>.deb</code> package was even easier. But after installing the patched package, the update-notifier immediately informed me that there was one update available: gnome-terminal. It seems that APT prefers packages in the repository over locally installed packages.</p>
<p>I ignored this for a while, and just dealt with the &#8220;updates available&#8221; icon always being in the notification area. I tried searching google several times, and eventually came across <a href="http://ubuntuforums.org/archive/index.php/t-345861.html">this forum post</a>, which led to <a href="http://www.debian-administration.org/articles/332">this article</a> containing the answer I was looking for.</p>
<p>I could probably just pin gnome-terminal, but I want to make sure I get any future updates for it. I decided the easiest way to fix this annoyance was by appending a short string (<code>+noblink</code>) to the version.</p>
<p>First, fetch the source and update the version:</p>
<pre class="code">$ apt-get source gnome-terminal
$ cd gnome-terminal-2.22.1
$ debchange -v 2.22.1-0ubuntu2+noblink</pre>
<p>At this point, the default editor will open the <code>debian/changelog</code> file so you can describe the change. Enter a short comment, like &#8220;disable the blinkin cursor&#8221;, save the file and exit the editor.</p>
<p>Next, patch the source. Jay Cornwall&#8217;s <a href="http://www.jcornwall.me.uk/patches/gnome/gnome-terminal-2.22.1-noblink.patch">patch</a> is not currently on-line, but it&#8217;s a simple fix: just edit <code>src/terminal-screen.c</code> and change this line </p>
<pre class="code">terminal_widget_set_cursor_blinks (screen->priv->term, blink);</pre>
<p>to this</p>
<pre class="code">terminal_widget_set_cursor_blinks (screen->priv->term, FALSE);</pre>
<p>Finally, build and install the package:</p>
<pre class="code">$ debuild -rfakeroot binary
$ sudo dpkg -i ../gnome-terminal*.deb</pre>



Share and Enjoy:


	<a rel="nofollow"  href="http://www.printfriendly.com/print?url=http%3A%2F%2Fblog.jlogday.com%2F2009%2F03%2Fhow-to-keep-apt-from-reinstalling-custom-packages-ubuntu%2F&amp;partner=sociable" title="Print"><img src="http://blog.jlogday.com/wp-content/plugins/sociable/images/printfriendly.png" title="Print" alt="Print" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fblog.jlogday.com%2F2009%2F03%2Fhow-to-keep-apt-from-reinstalling-custom-packages-ubuntu%2F&amp;title=How%20to%20keep%20APT%20from%20reinstalling%20custom%20packages%20%28Ubuntu%29&amp;bodytext=A%20few%20weeks%20ago%2C%20I%20finally%20got%20around%20to%20upgrading%20my%20Ubuntu%20desktop%20to%20Hardy%20Heron.%20Like%20many%20others%2C%20I%20found%20that%20the%20cursor%20in%20gnome-terminal%20had%20inexplicably%20started%20blinking%20again%2C%20and%20there%20was%20no%20longer%20a%20preference%20to%20disable%20it.%20Fortunately%2C" title="Digg"><img src="http://blog.jlogday.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://delicious.com/post?url=http%3A%2F%2Fblog.jlogday.com%2F2009%2F03%2Fhow-to-keep-apt-from-reinstalling-custom-packages-ubuntu%2F&amp;title=How%20to%20keep%20APT%20from%20reinstalling%20custom%20packages%20%28Ubuntu%29&amp;notes=A%20few%20weeks%20ago%2C%20I%20finally%20got%20around%20to%20upgrading%20my%20Ubuntu%20desktop%20to%20Hardy%20Heron.%20Like%20many%20others%2C%20I%20found%20that%20the%20cursor%20in%20gnome-terminal%20had%20inexplicably%20started%20blinking%20again%2C%20and%20there%20was%20no%20longer%20a%20preference%20to%20disable%20it.%20Fortunately%2C" title="del.icio.us"><img src="http://blog.jlogday.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fblog.jlogday.com%2F2009%2F03%2Fhow-to-keep-apt-from-reinstalling-custom-packages-ubuntu%2F&amp;t=How%20to%20keep%20APT%20from%20reinstalling%20custom%20packages%20%28Ubuntu%29" title="Facebook"><img src="http://blog.jlogday.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fblog.jlogday.com%2F2009%2F03%2Fhow-to-keep-apt-from-reinstalling-custom-packages-ubuntu%2F&amp;title=How%20to%20keep%20APT%20from%20reinstalling%20custom%20packages%20%28Ubuntu%29&amp;annotation=A%20few%20weeks%20ago%2C%20I%20finally%20got%20around%20to%20upgrading%20my%20Ubuntu%20desktop%20to%20Hardy%20Heron.%20Like%20many%20others%2C%20I%20found%20that%20the%20cursor%20in%20gnome-terminal%20had%20inexplicably%20started%20blinking%20again%2C%20and%20there%20was%20no%20longer%20a%20preference%20to%20disable%20it.%20Fortunately%2C" title="Google Bookmarks"><img src="http://blog.jlogday.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://twitter.com/home?status=How%20to%20keep%20APT%20from%20reinstalling%20custom%20packages%20%28Ubuntu%29%20-%20http%3A%2F%2Fblog.jlogday.com%2F2009%2F03%2Fhow-to-keep-apt-from-reinstalling-custom-packages-ubuntu%2F" title="Twitter"><img src="http://blog.jlogday.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://blog.jlogday.com/2009/03/how-to-keep-apt-from-reinstalling-custom-packages-ubuntu/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>100 Pushups</title>
		<link>http://blog.jlogday.com/2009/02/100-pushups/</link>
		<comments>http://blog.jlogday.com/2009/02/100-pushups/#comments</comments>
		<pubDate>Tue, 24 Feb 2009 02:37:54 +0000</pubDate>
		<dc:creator>jason</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[hundredpushups]]></category>

		<guid isPermaLink="false">http://blog.jlogday.com/?p=29</guid>
		<description><![CDATA[I started the 100 Pushups Challenge last year and made it to week 5 (out of 6). Then I came down with a cold, stopped &#8220;temporarily&#8221;, and just never got back into the groove.
Now, I&#8217;m starting up again, from the beginning. I&#8217;ll track my progress here.



Share and Enjoy:


	
	
	
	
	
	


]]></description>
			<content:encoded><![CDATA[<p>I started the <a href="http://hundredpushups.com/">100 Pushups Challenge</a> <a href="http://jlogday.blogspot.com/search/label/hundredpushups">last year</a> and made it to week 5 (out of 6). Then I came down with a cold, stopped &#8220;temporarily&#8221;, and just never got back into the groove.</p>
<p>Now, I&#8217;m starting up again, from the beginning. I&#8217;ll track my progress <a href="http://blog.jlogday.com/100-pushups-challenge/">here</a>.</p>



Share and Enjoy:


	<a rel="nofollow"  href="http://www.printfriendly.com/print?url=http%3A%2F%2Fblog.jlogday.com%2F2009%2F02%2F100-pushups%2F&amp;partner=sociable" title="Print"><img src="http://blog.jlogday.com/wp-content/plugins/sociable/images/printfriendly.png" title="Print" alt="Print" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fblog.jlogday.com%2F2009%2F02%2F100-pushups%2F&amp;title=100%20Pushups&amp;bodytext=I%20started%20the%20100%20Pushups%20Challenge%20last%20year%20and%20made%20it%20to%20week%205%20%28out%20of%206%29.%20Then%20I%20came%20down%20with%20a%20cold%2C%20stopped%20%22temporarily%22%2C%20and%20just%20never%20got%20back%20into%20the%20groove.%0D%0A%0D%0ANow%2C%20I%27m%20starting%20up%20again%2C%20from%20the%20beginning.%20I%27ll%20track%20my%20progress%20he" title="Digg"><img src="http://blog.jlogday.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://delicious.com/post?url=http%3A%2F%2Fblog.jlogday.com%2F2009%2F02%2F100-pushups%2F&amp;title=100%20Pushups&amp;notes=I%20started%20the%20100%20Pushups%20Challenge%20last%20year%20and%20made%20it%20to%20week%205%20%28out%20of%206%29.%20Then%20I%20came%20down%20with%20a%20cold%2C%20stopped%20%22temporarily%22%2C%20and%20just%20never%20got%20back%20into%20the%20groove.%0D%0A%0D%0ANow%2C%20I%27m%20starting%20up%20again%2C%20from%20the%20beginning.%20I%27ll%20track%20my%20progress%20he" title="del.icio.us"><img src="http://blog.jlogday.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fblog.jlogday.com%2F2009%2F02%2F100-pushups%2F&amp;t=100%20Pushups" title="Facebook"><img src="http://blog.jlogday.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fblog.jlogday.com%2F2009%2F02%2F100-pushups%2F&amp;title=100%20Pushups&amp;annotation=I%20started%20the%20100%20Pushups%20Challenge%20last%20year%20and%20made%20it%20to%20week%205%20%28out%20of%206%29.%20Then%20I%20came%20down%20with%20a%20cold%2C%20stopped%20%22temporarily%22%2C%20and%20just%20never%20got%20back%20into%20the%20groove.%0D%0A%0D%0ANow%2C%20I%27m%20starting%20up%20again%2C%20from%20the%20beginning.%20I%27ll%20track%20my%20progress%20he" title="Google Bookmarks"><img src="http://blog.jlogday.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://twitter.com/home?status=100%20Pushups%20-%20http%3A%2F%2Fblog.jlogday.com%2F2009%2F02%2F100-pushups%2F" title="Twitter"><img src="http://blog.jlogday.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://blog.jlogday.com/2009/02/100-pushups/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Starting a New X Server</title>
		<link>http://blog.jlogday.com/2009/02/starting-a-new-x-server/</link>
		<comments>http://blog.jlogday.com/2009/02/starting-a-new-x-server/#comments</comments>
		<pubDate>Mon, 23 Feb 2009 03:10:43 +0000</pubDate>
		<dc:creator>jason</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://blog.jlogday.com/?p=7</guid>
		<description><![CDATA[This is one of those posts that is mostly for me, so the next time I need to do this I don&#8217;t have to spend 30 minutes googling obscure config file formats. (Incidentally, I had to google and muck with styles for at least 30 minutes to figure out how to keep wordpress from mangling [...]]]></description>
			<content:encoded><![CDATA[<p>This is one of those posts that is mostly for me, so the next time I need to do this I don&#8217;t have to spend 30 minutes googling obscure config file formats. (Incidentally, I had to google and muck with styles for at least 30 minutes to figure out how to keep wordpress from mangling my code snippets.)</p>
<p>I sometimes find it useful to start an extra X server to run a particular application. Full-screen games are a good example. Ordinarily, a full-screen game grabs the display and there is no way to switch back to the desktop without exiting the game completely. When run in its own X server though, it is easy to switch between servers. The following shell script shows how to do this:</p>
<pre class="code">
#!/bin/bash

display=:1
authfile=$HOME/.Xauthority

if ! xauth list "$display" | grep "$display " &gt;/dev/null 2&gt;&amp;1; then
    xauth add $display . `mcookie`
    removelist="$display"
fi

xinit /usr/bin/xterm -- $display -auth $authfile -nolisten tcp

if [ -n "$removelist" ] ; then
    xauth remove $removelist
fi
</pre>
<p>This script will start a new X server on the next available virtual terminal (normally vt8) using display <code>:1</code> and launch an xterm. Toggle between the servers using <code>ctrl-alt-F7</code> and <code>ctrl-alt-F8</code>. When the xterm exits, so does the X server.</p>
<p>If you try to run this code on a Debian-based system, though, you will get the following error:</p>
<pre class="code">
X: user not authorized to run the X server, aborting.
xinit:  Server error.
</pre>
<p>I found this out the hard way when I started using <a href="http://www.ubuntu.com/">ubuntu</a>. This is because Debian uses a wrapper to start the X server, which enforces tighter security constraints by default. To get this to work, you will need to edit the <code>/etc/X11/Xwrapper.config</code> file, and change this line:</p>
<pre class="code">allowed_users=console</pre>
<p>to this:</p>
<pre class="code">allowed_users=anybody</pre>
<p>Check the man page for <code>Xwrapper.config</code> for more options; there aren&#8217;t very many. Personally, I don&#8217;t consider this a security risk for a single-user home system.</p>



Share and Enjoy:


	<a rel="nofollow"  href="http://www.printfriendly.com/print?url=http%3A%2F%2Fblog.jlogday.com%2F2009%2F02%2Fstarting-a-new-x-server%2F&amp;partner=sociable" title="Print"><img src="http://blog.jlogday.com/wp-content/plugins/sociable/images/printfriendly.png" title="Print" alt="Print" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fblog.jlogday.com%2F2009%2F02%2Fstarting-a-new-x-server%2F&amp;title=Starting%20a%20New%20X%20Server&amp;bodytext=This%20is%20one%20of%20those%20posts%20that%20is%20mostly%20for%20me%2C%20so%20the%20next%20time%20I%20need%20to%20do%20this%20I%20don%27t%20have%20to%20spend%2030%20minutes%20googling%20obscure%20config%20file%20formats.%20%28Incidentally%2C%20I%20had%20to%20google%20and%20muck%20with%20styles%20for%20at%20least%2030%20minutes%20to%20figure%20out%20how%20" title="Digg"><img src="http://blog.jlogday.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://delicious.com/post?url=http%3A%2F%2Fblog.jlogday.com%2F2009%2F02%2Fstarting-a-new-x-server%2F&amp;title=Starting%20a%20New%20X%20Server&amp;notes=This%20is%20one%20of%20those%20posts%20that%20is%20mostly%20for%20me%2C%20so%20the%20next%20time%20I%20need%20to%20do%20this%20I%20don%27t%20have%20to%20spend%2030%20minutes%20googling%20obscure%20config%20file%20formats.%20%28Incidentally%2C%20I%20had%20to%20google%20and%20muck%20with%20styles%20for%20at%20least%2030%20minutes%20to%20figure%20out%20how%20" title="del.icio.us"><img src="http://blog.jlogday.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fblog.jlogday.com%2F2009%2F02%2Fstarting-a-new-x-server%2F&amp;t=Starting%20a%20New%20X%20Server" title="Facebook"><img src="http://blog.jlogday.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fblog.jlogday.com%2F2009%2F02%2Fstarting-a-new-x-server%2F&amp;title=Starting%20a%20New%20X%20Server&amp;annotation=This%20is%20one%20of%20those%20posts%20that%20is%20mostly%20for%20me%2C%20so%20the%20next%20time%20I%20need%20to%20do%20this%20I%20don%27t%20have%20to%20spend%2030%20minutes%20googling%20obscure%20config%20file%20formats.%20%28Incidentally%2C%20I%20had%20to%20google%20and%20muck%20with%20styles%20for%20at%20least%2030%20minutes%20to%20figure%20out%20how%20" title="Google Bookmarks"><img src="http://blog.jlogday.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://twitter.com/home?status=Starting%20a%20New%20X%20Server%20-%20http%3A%2F%2Fblog.jlogday.com%2F2009%2F02%2Fstarting-a-new-x-server%2F" title="Twitter"><img src="http://blog.jlogday.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://blog.jlogday.com/2009/02/starting-a-new-x-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>About Me</title>
		<link>http://blog.jlogday.com/2009/02/about-me/</link>
		<comments>http://blog.jlogday.com/2009/02/about-me/#comments</comments>
		<pubDate>Mon, 16 Feb 2009 22:47:23 +0000</pubDate>
		<dc:creator>jason</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[about]]></category>

		<guid isPermaLink="false">http://blog.jlogday.com/?p=3</guid>
		<description><![CDATA[My name is Jason Day. I am a programmer in Atlanta, GA.  My first real programming experience was at a computer programming day camp at the local community college, in around 1980. We learned to program in BASIC on an Apple ][, and I was hooked. I couldn&#8217;t afford a computer, but I did [...]]]></description>
			<content:encoded><![CDATA[<p>My name is Jason Day. I am a programmer in Atlanta, GA.  My first real programming experience was at a computer programming day camp at the local community college, in around 1980. We learned to program in BASIC on an <a href="http://en.wikipedia.org/wiki/Apple_II">Apple ][</a>, and I was hooked. I couldn&#8217;t afford a computer, but I did have an Atari 2600, and there was a <a href="http://www.atariage.com/software_page.html?SystemID=2600&#038;SoftwareLabelID=16">BASIC Programming</a> cartridge available. What a cruel joke that was. It did keep me somewhat entertained though until I was able to acquire an <a href="http://www.computercloset.org/atari600xl.htm">Atari 600XL</a>, which is what I really cut my programming teeth on. I didn&#8217;t have a disk drive or even a cassette drive; I had to enter everything by hand, every time. With a little help from <a href="http://www.atarimagazines.com/compute/">Compute!</a> magazine, I would spend hours typing in BASIC programs for silly games and playing them.</p>
<p>I continued my programming education in college, this time on a 386SX 25 Mhz IBM compatible, with a whopping 2 megabytes of RAM and a 52 MB hard drive. I taught myself x86 assembly language, to enhance the DOS batch &#8220;programming language&#8221;. I took courses in FORTRAN and Pascal, then C, C++, LISP and MIPS assembly language.</p>
<p>My first &#8220;real job&#8221; out of college was at a media company called iXL (now defunct). I started as a junior C/C++ developer, helping to port a <a href="http://www.gamespot.com/3do/adventure/snowjob/index.html">game</a> to Windows 95. While there I taught myself Java and Perl, eventually writing primarily back-end code in servlets and JSPs.</p>
<p>These days I do most of my programming in Java. But I&#8217;ve never lost the thirst to learn new languages, or about programming in general. I also make some code available on my <a href="http://www.jlogday.com/code/">web site</a>.</p>



Share and Enjoy:


	<a rel="nofollow"  href="http://www.printfriendly.com/print?url=http%3A%2F%2Fblog.jlogday.com%2F2009%2F02%2Fabout-me%2F&amp;partner=sociable" title="Print"><img src="http://blog.jlogday.com/wp-content/plugins/sociable/images/printfriendly.png" title="Print" alt="Print" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fblog.jlogday.com%2F2009%2F02%2Fabout-me%2F&amp;title=About%20Me&amp;bodytext=My%20name%20is%20Jason%20Day.%20I%20am%20a%20programmer%20in%20Atlanta%2C%20GA.%20%20My%20first%20real%20programming%20experience%20was%20at%20a%20computer%20programming%20day%20camp%20at%20the%20local%20community%20college%2C%20in%20around%201980.%20We%20learned%20to%20program%20in%20BASIC%20on%20an%20Apple%20%5D%5B%2C%20and%20I%20was%20hooked.%20I%20co" title="Digg"><img src="http://blog.jlogday.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://delicious.com/post?url=http%3A%2F%2Fblog.jlogday.com%2F2009%2F02%2Fabout-me%2F&amp;title=About%20Me&amp;notes=My%20name%20is%20Jason%20Day.%20I%20am%20a%20programmer%20in%20Atlanta%2C%20GA.%20%20My%20first%20real%20programming%20experience%20was%20at%20a%20computer%20programming%20day%20camp%20at%20the%20local%20community%20college%2C%20in%20around%201980.%20We%20learned%20to%20program%20in%20BASIC%20on%20an%20Apple%20%5D%5B%2C%20and%20I%20was%20hooked.%20I%20co" title="del.icio.us"><img src="http://blog.jlogday.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fblog.jlogday.com%2F2009%2F02%2Fabout-me%2F&amp;t=About%20Me" title="Facebook"><img src="http://blog.jlogday.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fblog.jlogday.com%2F2009%2F02%2Fabout-me%2F&amp;title=About%20Me&amp;annotation=My%20name%20is%20Jason%20Day.%20I%20am%20a%20programmer%20in%20Atlanta%2C%20GA.%20%20My%20first%20real%20programming%20experience%20was%20at%20a%20computer%20programming%20day%20camp%20at%20the%20local%20community%20college%2C%20in%20around%201980.%20We%20learned%20to%20program%20in%20BASIC%20on%20an%20Apple%20%5D%5B%2C%20and%20I%20was%20hooked.%20I%20co" title="Google Bookmarks"><img src="http://blog.jlogday.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://twitter.com/home?status=About%20Me%20-%20http%3A%2F%2Fblog.jlogday.com%2F2009%2F02%2Fabout-me%2F" title="Twitter"><img src="http://blog.jlogday.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://blog.jlogday.com/2009/02/about-me/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
