<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>t.rolled &#187; Tech Tip</title>
	<atom:link href="http://johnlange.wordpress.com/category/tech-tip/feed/" rel="self" type="application/rss+xml" />
	<link>http://johnlange.wordpress.com</link>
	<description>Technology unrolled</description>
	<lastBuildDate>Tue, 03 Jan 2012 16:57:49 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='johnlange.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>t.rolled &#187; Tech Tip</title>
		<link>http://johnlange.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://johnlange.wordpress.com/osd.xml" title="t.rolled" />
	<atom:link rel='hub' href='http://johnlange.wordpress.com/?pushpress=hub'/>
		<item>
		<title>SNMP on Tomato</title>
		<link>http://johnlange.wordpress.com/2011/05/06/snmp-on-tomato/</link>
		<comments>http://johnlange.wordpress.com/2011/05/06/snmp-on-tomato/#comments</comments>
		<pubDate>Fri, 06 May 2011 18:23:04 +0000</pubDate>
		<dc:creator>johnlange</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tech Tip]]></category>

		<guid isPermaLink="false">http://johnlange.wordpress.com/?p=613</guid>
		<description><![CDATA[I just published some instructions for getting SNMP running on Tomato so it can be monitored from something like cacti. The complete instructions are here.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=johnlange.wordpress.com&amp;blog=21506840&amp;post=613&amp;subd=johnlange&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I just published some instructions for getting SNMP running on Tomato so it can be monitored from something like cacti.</p>
<p>The complete instructions are <a href="http://www.johnlange.ca/tech-tips/linux/snmp-on-tomato/">here</a>.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/johnlange.wordpress.com/613/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/johnlange.wordpress.com/613/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/johnlange.wordpress.com/613/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/johnlange.wordpress.com/613/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/johnlange.wordpress.com/613/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/johnlange.wordpress.com/613/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/johnlange.wordpress.com/613/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/johnlange.wordpress.com/613/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/johnlange.wordpress.com/613/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/johnlange.wordpress.com/613/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/johnlange.wordpress.com/613/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/johnlange.wordpress.com/613/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/johnlange.wordpress.com/613/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/johnlange.wordpress.com/613/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=johnlange.wordpress.com&amp;blog=21506840&amp;post=613&amp;subd=johnlange&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://johnlange.wordpress.com/2011/05/06/snmp-on-tomato/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/551eb266c4929bf6e5479e7228e48311?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">johnlange</media:title>
		</media:content>
	</item>
		<item>
		<title>Starting a command in a new TTY</title>
		<link>http://johnlange.wordpress.com/2010/12/28/starting-a-command-in-a-new-tty/</link>
		<comments>http://johnlange.wordpress.com/2010/12/28/starting-a-command-in-a-new-tty/#comments</comments>
		<pubDate>Tue, 28 Dec 2010 19:53:51 +0000</pubDate>
		<dc:creator>johnlange</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tech Tip]]></category>

		<guid isPermaLink="false">http://www.johnlange.ca/?p=481</guid>
		<description><![CDATA[Here is a nifty tip. If you want to run a command but have all its output displayed on a diferent console, just use openvt. For example, here is how to run top in tty9: # openvt -c 9 top<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=johnlange.wordpress.com&amp;blog=21506840&amp;post=481&amp;subd=johnlange&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Here is a nifty tip. If you want to run a command but have all its output displayed on a diferent console, just use openvt. For example, here is how to run top in tty9:</p>
<pre># openvt -c 9 top</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/johnlange.wordpress.com/481/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/johnlange.wordpress.com/481/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/johnlange.wordpress.com/481/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/johnlange.wordpress.com/481/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/johnlange.wordpress.com/481/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/johnlange.wordpress.com/481/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/johnlange.wordpress.com/481/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/johnlange.wordpress.com/481/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/johnlange.wordpress.com/481/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/johnlange.wordpress.com/481/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/johnlange.wordpress.com/481/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/johnlange.wordpress.com/481/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/johnlange.wordpress.com/481/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/johnlange.wordpress.com/481/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=johnlange.wordpress.com&amp;blog=21506840&amp;post=481&amp;subd=johnlange&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://johnlange.wordpress.com/2010/12/28/starting-a-command-in-a-new-tty/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/551eb266c4929bf6e5479e7228e48311?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">johnlange</media:title>
		</media:content>
	</item>
		<item>
		<title>Using udev to automount devices</title>
		<link>http://johnlange.wordpress.com/2010/12/13/using-udev-to-automount-devices/</link>
		<comments>http://johnlange.wordpress.com/2010/12/13/using-udev-to-automount-devices/#comments</comments>
		<pubDate>Mon, 13 Dec 2010 22:52:50 +0000</pubDate>
		<dc:creator>johnlange</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tech Tip]]></category>

		<guid isPermaLink="false">http://www.johnlange.ca/?p=465</guid>
		<description><![CDATA[&#1075;&#1077;&#1086;&#1083;&#1086;&#1078;&#1082;&#1080; &#1087;&#1088;&#1086;&#1091;&#1095;&#1074;&#1072;&#1085;&#1080;&#1103;Most desktop Linux systems now auto-mount any removable media by sending a trigger to the Window-manager (KDE or Gnome for example). But in some cases you might want to do the auto-mounting using udev instead (for example on a server where you don&#8217;t have x-windows installed). This can be done quite easily using udev [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=johnlange.wordpress.com&amp;blog=21506840&amp;post=465&amp;subd=johnlange&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><font><a href="http://www.piks1.com/">&#1075;&#1077;&#1086;&#1083;&#1086;&#1078;&#1082;&#1080; &#1087;&#1088;&#1086;&#1091;&#1095;&#1074;&#1072;&#1085;&#1080;&#1103;</a></font>Most desktop Linux systems now auto-mount any removable media by sending a trigger to the Window-manager (KDE or Gnome for example). But in some cases you might want to do the auto-mounting using udev instead (for example on a server where you don&#8217;t have x-windows installed).</p>
<p>This can be done quite easily using udev and there are a variety of <a href="https://wiki.archlinux.org/index.php/Udev#Auto_mounting_USB_devices">great examples on the udev wiki</a>. Here is one I modified slightly which could act as a simple way to do backups to an external USB device without having to manually mount the device each time.</p>
<p>Create the file &#8220;<strong><tt>/etc/udev/rules.d/11-backup-auto-mount.rules"</tt></strong></p>
<pre><strong>--start--
</strong></pre>
<pre>
<pre>KERNEL!="sd[a-z][0-9]", GOTO="backup_auto_mount_end"</pre>
<p># Import FS infos<br />
IMPORT{program}="/sbin/blkid -o udev -p %N"</p>
<p># Global mount options<br />
ACTION=="add", ENV{mount_options}="relatime"<br />
# Filesystem-specific mount options<br />
ACTION=="add", ENV{ID_FS_TYPE}=="vfat|ntfs", ENV{mount_options}="$env{mount_options},utf8,gid=100,umask=002"</p>
<p># Mount the device<br />
ACTION=="add", RUN+="/bin/mount -o $env{mount_options} /dev/%k /backup"</p>
<p># Clean up after removal<br />
ACTION=="remove", ENV{dir_name}!="", RUN+="/bin/umount -l /backup"</p>
<p># Exit<br />
LABEL="backup_auto_mount_end"</p>
<p>--end--</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/johnlange.wordpress.com/465/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/johnlange.wordpress.com/465/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/johnlange.wordpress.com/465/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/johnlange.wordpress.com/465/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/johnlange.wordpress.com/465/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/johnlange.wordpress.com/465/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/johnlange.wordpress.com/465/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/johnlange.wordpress.com/465/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/johnlange.wordpress.com/465/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/johnlange.wordpress.com/465/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/johnlange.wordpress.com/465/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/johnlange.wordpress.com/465/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/johnlange.wordpress.com/465/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/johnlange.wordpress.com/465/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=johnlange.wordpress.com&amp;blog=21506840&amp;post=465&amp;subd=johnlange&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://johnlange.wordpress.com/2010/12/13/using-udev-to-automount-devices/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/551eb266c4929bf6e5479e7228e48311?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">johnlange</media:title>
		</media:content>
	</item>
		<item>
		<title>Mounting disks by label; A cautionary tale</title>
		<link>http://johnlange.wordpress.com/2010/07/21/mounting-disks-by-label-a-cautionary-tale/</link>
		<comments>http://johnlange.wordpress.com/2010/07/21/mounting-disks-by-label-a-cautionary-tale/#comments</comments>
		<pubDate>Wed, 21 Jul 2010 15:30:33 +0000</pubDate>
		<dc:creator>johnlange</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tech Tip]]></category>

		<guid isPermaLink="false">http://www.johnlange.ca/?p=396</guid>
		<description><![CDATA[I was migrating some data to some new disks and since the drive letters would be changing once the old disks were removed, I partitioned them and then gave them label names so they could be mounted by label. The original disks had labels like: boot srv tmp On the new disks I thought good [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=johnlange.wordpress.com&amp;blog=21506840&amp;post=396&amp;subd=johnlange&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I was migrating some data to some new disks and since the drive letters would be changing once the old disks were removed, I partitioned them and then gave them label names so they could be mounted by label.</p>
<p>The original disks had labels like:<br />
boot<br />
srv<br />
tmp</p>
<p>On the new disks I thought good names would be:<br />
/boot<br />
/srv<br />
/tmp</p>
<p>(I think Redhat actually names things this way by default?)</p>
<p>Anyhow, to make a long story short, mount by label ignores the leading slash. When the system rebooted, as predicted the drives came up in a different order so a &#8220;mount LABEL=srv&#8221; will actually mount the first disk named either &#8220;/srv&#8221; or &#8220;srv&#8221;.</p>
<p>Moral of the story; it&#8217;s probably a good idea not to use any strange characters when naming disks.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/johnlange.wordpress.com/396/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/johnlange.wordpress.com/396/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/johnlange.wordpress.com/396/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/johnlange.wordpress.com/396/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/johnlange.wordpress.com/396/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/johnlange.wordpress.com/396/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/johnlange.wordpress.com/396/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/johnlange.wordpress.com/396/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/johnlange.wordpress.com/396/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/johnlange.wordpress.com/396/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/johnlange.wordpress.com/396/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/johnlange.wordpress.com/396/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/johnlange.wordpress.com/396/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/johnlange.wordpress.com/396/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=johnlange.wordpress.com&amp;blog=21506840&amp;post=396&amp;subd=johnlange&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://johnlange.wordpress.com/2010/07/21/mounting-disks-by-label-a-cautionary-tale/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/551eb266c4929bf6e5479e7228e48311?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">johnlange</media:title>
		</media:content>
	</item>
		<item>
		<title>UPS Monitoring with SUSE. Quick &amp; Dirty</title>
		<link>http://johnlange.wordpress.com/2009/12/07/ups-monitoring-with-suse-quick-dirty/</link>
		<comments>http://johnlange.wordpress.com/2009/12/07/ups-monitoring-with-suse-quick-dirty/#comments</comments>
		<pubDate>Mon, 07 Dec 2009 21:50:32 +0000</pubDate>
		<dc:creator>johnlange</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[SUSE]]></category>
		<category><![CDATA[Tech Tip]]></category>

		<guid isPermaLink="false">http://www.johnlange.ca/?p=347</guid>
		<description><![CDATA[I recently had the need to query a bunch of UPSes to gather their current statistics using openSUSE. The Network UPS Tools packages (NUT for short) are available for openSUSE and that&#8217;s all you need (assuming your UPS is one of the supported ones). # zypper install nut Next you need to edit /etc/ups/ups.conf and [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=johnlange.wordpress.com&amp;blog=21506840&amp;post=347&amp;subd=johnlange&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I recently had the need to query a bunch of UPSes to gather their current statistics using openSUSE. The Network UPS Tools packages (NUT for short) are available for openSUSE and that&#8217;s all you need (assuming your UPS is one of the supported ones).</p>
<p># zypper install nut</p>
<p>Next you need to edit /etc/ups/ups.conf and make an entry for your UPS driver and serial port.</p>
<p>[myups]<br />
driver = bcmxcp<br />
port = /dev/ttyUSB0<br />
desc = &#8220;Local UPS&#8221;</p>
<p>Next I started the UPS driver manually in debug mode so I could see what was going on. The nice thing about this driver is it will auto-discover the UPS serial port speed.</p>
<p># /usr/lib/ups/driver/bcmxcp -a myups -D</p>
<p>In a separate terminal window, start upsd.</p>
<p># upsd</p>
<p>Now you should be able to query the UPS:</p>
<p># upsc myups@localhost</p>
<p>Because I was just collecting statistics, I wasn&#8217;t interested in using upsd to automatically shutdown servers or anything fancy but that is possible.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/johnlange.wordpress.com/347/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/johnlange.wordpress.com/347/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/johnlange.wordpress.com/347/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/johnlange.wordpress.com/347/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/johnlange.wordpress.com/347/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/johnlange.wordpress.com/347/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/johnlange.wordpress.com/347/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/johnlange.wordpress.com/347/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/johnlange.wordpress.com/347/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/johnlange.wordpress.com/347/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/johnlange.wordpress.com/347/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/johnlange.wordpress.com/347/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/johnlange.wordpress.com/347/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/johnlange.wordpress.com/347/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=johnlange.wordpress.com&amp;blog=21506840&amp;post=347&amp;subd=johnlange&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://johnlange.wordpress.com/2009/12/07/ups-monitoring-with-suse-quick-dirty/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/551eb266c4929bf6e5479e7228e48311?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">johnlange</media:title>
		</media:content>
	</item>
		<item>
		<title>SUSE 11.2 Tweak &#8211; Show all tasks on Gnome Panel</title>
		<link>http://johnlange.wordpress.com/2009/11/16/suse-11-2-tweak-show-all-tasks-on-gnome-panel/</link>
		<comments>http://johnlange.wordpress.com/2009/11/16/suse-11-2-tweak-show-all-tasks-on-gnome-panel/#comments</comments>
		<pubDate>Mon, 16 Nov 2009 16:26:36 +0000</pubDate>
		<dc:creator>johnlange</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[SUSE]]></category>
		<category><![CDATA[Tech Tip]]></category>

		<guid isPermaLink="false">http://www.johnlange.ca/?p=329</guid>
		<description><![CDATA[The Gnome desktop in OpenSUSE 11.2 is beautiful (much nicer than the clunky KDE IMHO), but there are a few things that I don&#8217;t like about the default settings. I use 8 virtual desktops to keep my desktop organized but I like the taskbar to show all tasks. By default, the gnome panel&#8217;s task bar [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=johnlange.wordpress.com&amp;blog=21506840&amp;post=329&amp;subd=johnlange&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The Gnome desktop in OpenSUSE 11.2 is beautiful (much nicer than the clunky KDE IMHO), but there are a few things that I don&#8217;t like about the default settings. I use 8 virtual desktops to keep my desktop organized but I like the taskbar to show all tasks. By default, the gnome panel&#8217;s task bar shows only the windows in the current workspace and for some reason you can&#8217;t just right-click the panel to change this setting.</p>
<p>Instead, it&#8217;s buried in the Gnome Configuration Editor which makes it really hard to find so here are the steps to fix this:</p>
<p>1) Computer -&gt; More Applications</p>
<p>2) System -&gt; Gnome Configuration Editor</p>
<p>The setting that needs to be changed is:</p>
<p>3) /apps/panel/applets/window_list_screen0/prefs/display_all_workspaces</p>
<p>You can navigate down the tree or use the &#8220;Find&#8221; function.</p>
<p>That&#8217;s it! Have a lot of fun!</p>
<p><strong>Update:</strong> see the first comment for an equally obscure but perhaps easier method.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/johnlange.wordpress.com/329/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/johnlange.wordpress.com/329/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/johnlange.wordpress.com/329/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/johnlange.wordpress.com/329/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/johnlange.wordpress.com/329/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/johnlange.wordpress.com/329/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/johnlange.wordpress.com/329/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/johnlange.wordpress.com/329/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/johnlange.wordpress.com/329/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/johnlange.wordpress.com/329/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/johnlange.wordpress.com/329/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/johnlange.wordpress.com/329/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/johnlange.wordpress.com/329/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/johnlange.wordpress.com/329/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=johnlange.wordpress.com&amp;blog=21506840&amp;post=329&amp;subd=johnlange&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://johnlange.wordpress.com/2009/11/16/suse-11-2-tweak-show-all-tasks-on-gnome-panel/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/551eb266c4929bf6e5479e7228e48311?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">johnlange</media:title>
		</media:content>
	</item>
		<item>
		<title>SUSE Broken? Don&#039;t fear the chroot !</title>
		<link>http://johnlange.wordpress.com/2009/09/22/suse-broken-dont-fear-the-chroot/</link>
		<comments>http://johnlange.wordpress.com/2009/09/22/suse-broken-dont-fear-the-chroot/#comments</comments>
		<pubDate>Wed, 23 Sep 2009 00:45:31 +0000</pubDate>
		<dc:creator>johnlange</dc:creator>
				<category><![CDATA[SUSE]]></category>
		<category><![CDATA[Tech Tip]]></category>

		<guid isPermaLink="false">http://www.johnlange.ca/?p=305</guid>
		<description><![CDATA[SUSE hasn&#8217;t let me down very often but recently I had a bad experience while applying some updates to an OpenSUSE laptop. There were quite a few updates so I undocked the laptop so I could relax while they downloaded. For reasons that I have not yet resolved, the wirless networking became unstable and as [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=johnlange.wordpress.com&amp;blog=21506840&amp;post=305&amp;subd=johnlange&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>SUSE hasn&#8217;t let me down very often but recently I had a bad experience while applying some updates to an OpenSUSE laptop. There were quite a few updates so I undocked the laptop so I could relax while they downloaded.</p>
<p>For reasons that I have not yet resolved, the wirless networking became unstable and as a result, the updates had to be aborted.</p>
<p>Unfortunately, a new kernel was part of the updates and when the laptop rebooted it was in a bad state. X windows wouldn&#8217;t start and critically, there were no network drivers for the new kernel. To make matters worse, OpenSUSE does not keep the old kernels in /boot (why is that?) so there was nothing to fall back on.</p>
<p>With nothing left to do, it was time to try rescue mode and in a few short steps I had the system fully working again. Here is what I did:</p>
<p><strong>Step 1:</strong> boot to rescue mode (duh).</p>
<p><strong>Step 2:</strong> mount your hard disk partitions under /mnt in the same layout they would be normally. For example:</p>
<pre># mount /dev/sda2 /mnt</pre>
<pre># mount /dev/sda1 /mnt/boot</pre>
<p>&#8230; etc.</p>
<p><strong>Step 3:</strong> Next we need to make sure we have acess to all the important system resources.</p>
<pre># mount --bind /proc /mnt/proc
# mount --bind /sys /mnt/sys
# mount --bind /dev /mnt/dev</pre>
<p><strong>Step 4:</strong> We&#8217;re ready to chroot into our new environment.</p>
<pre># chroot /mnt</pre>
<p><strong>Step 5:</strong> We are now running on our system just as if we had booted to it and we can perform repairs. In my case all I needed to do was complete the updates:</p>
<pre># zypper up</pre>
<p>I rebooted and everything was back to normal.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/johnlange.wordpress.com/305/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/johnlange.wordpress.com/305/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/johnlange.wordpress.com/305/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/johnlange.wordpress.com/305/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/johnlange.wordpress.com/305/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/johnlange.wordpress.com/305/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/johnlange.wordpress.com/305/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/johnlange.wordpress.com/305/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/johnlange.wordpress.com/305/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/johnlange.wordpress.com/305/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/johnlange.wordpress.com/305/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/johnlange.wordpress.com/305/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/johnlange.wordpress.com/305/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/johnlange.wordpress.com/305/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=johnlange.wordpress.com&amp;blog=21506840&amp;post=305&amp;subd=johnlange&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://johnlange.wordpress.com/2009/09/22/suse-broken-dont-fear-the-chroot/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/551eb266c4929bf6e5479e7228e48311?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">johnlange</media:title>
		</media:content>
	</item>
		<item>
		<title>Rogers Rocket Stick on OpenSUSE 11.1</title>
		<link>http://johnlange.wordpress.com/2009/09/02/rogers-rocket-stick-on-opensuse-11-1/</link>
		<comments>http://johnlange.wordpress.com/2009/09/02/rogers-rocket-stick-on-opensuse-11-1/#comments</comments>
		<pubDate>Thu, 03 Sep 2009 01:17:13 +0000</pubDate>
		<dc:creator>johnlange</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mobile Computing]]></category>
		<category><![CDATA[SUSE]]></category>
		<category><![CDATA[Tech Tip]]></category>

		<guid isPermaLink="false">http://www.johnlange.ca/?p=297</guid>
		<description><![CDATA[Yes it works! (I was as surprised as anyone) It didn’t take me long to get it working but google returns a lot of posts with not so good information so here is the documentation on my experience.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=johnlange.wordpress.com&amp;blog=21506840&amp;post=297&amp;subd=johnlange&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Yes it works! (I was as surprised as anyone)</p>
<p>It didn’t take me long to get it working but google returns a lot of posts with not so good information so <a href="http://www.johnlange.ca/tech-tips/linux/opensuse-and-sles/rogers-rocket-stick-on-opensuse-111/">here is the documentation</a> on my experience.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/johnlange.wordpress.com/297/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/johnlange.wordpress.com/297/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/johnlange.wordpress.com/297/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/johnlange.wordpress.com/297/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/johnlange.wordpress.com/297/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/johnlange.wordpress.com/297/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/johnlange.wordpress.com/297/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/johnlange.wordpress.com/297/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/johnlange.wordpress.com/297/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/johnlange.wordpress.com/297/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/johnlange.wordpress.com/297/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/johnlange.wordpress.com/297/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/johnlange.wordpress.com/297/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/johnlange.wordpress.com/297/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=johnlange.wordpress.com&amp;blog=21506840&amp;post=297&amp;subd=johnlange&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://johnlange.wordpress.com/2009/09/02/rogers-rocket-stick-on-opensuse-11-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/551eb266c4929bf6e5479e7228e48311?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">johnlange</media:title>
		</media:content>
	</item>
		<item>
		<title>Detecting Interactive shells in bash</title>
		<link>http://johnlange.wordpress.com/2009/08/01/detecting-interactive-shells-in-bash/</link>
		<comments>http://johnlange.wordpress.com/2009/08/01/detecting-interactive-shells-in-bash/#comments</comments>
		<pubDate>Sat, 01 Aug 2009 12:00:16 +0000</pubDate>
		<dc:creator>johnlange</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tech Tip]]></category>

		<guid isPermaLink="false">http://www.johnlange.ca/?p=257</guid>
		<description><![CDATA[I was recently tasked with writing a bash shell script that behaved differently depending on if it was invoked interactively (by a user at the command line), or non-interactively (cron). There are surprisingly few useful results returned by Google. Both the &#8220;Advanced Bash-Scripting Guide&#8221; and GNU Bash manual mention testing to see if the prompt [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=johnlange.wordpress.com&amp;blog=21506840&amp;post=257&amp;subd=johnlange&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I was recently tasked with writing a bash shell script that behaved differently depending on if it was invoked interactively (by a user at the command line), or non-interactively (cron).</p>
<p>There are surprisingly few useful results returned by Google. Both the &#8220;<a href="http://www.tldp.org/LDP/abs/html/">Advanced Bash-Scripting Guide</a>&#8221; and <a href="http://www.gnu.org/software/bash/manual/bashref.html">GNU Bash manual</a> mention testing to see if the prompt variable is set:</p>
<pre class="PROGRAMLISTING">if [ -z $PS1 ]</pre>
<p>but that will not work. For one thing, it&#8217;s perfectly reasonable for someone to have their prompt set to null, but aside from that, the prompt variables are not set when invoking a script so the test always returns the same result.</p>
<p>A coworker pointed out that that strangely, &#8220;man bash&#8221; has other ideas. In the <em>Conditional Expressions</em> section, it explains &#8220;-t fd True if file descriptor fd is open and refers to a terminal.&#8221; That sounds exactly like what we want:</p>
<pre>if [[ -t 0 ]] ; then
  echo interactive
else
  echo non-interactive
fi</pre>
<p>but there is still a problem. If you invoke the script remotely via an ssh call (e.g. ssh root@&lt;remotehost&gt; bashscript.sh&#8221;),  stdin will not be connected to a terminal. To make the command more reliable we need one more test:</p>
<pre>if [[ -t 0 || -S /dev/stdin ]] ; then
  echo interactive
else
  echo non-interactive
fi</pre>
<p>Be aware that detecting a socket is also no proof of &#8220;interactivity&#8221;, but at least we are getting closer.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/johnlange.wordpress.com/257/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/johnlange.wordpress.com/257/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/johnlange.wordpress.com/257/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/johnlange.wordpress.com/257/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/johnlange.wordpress.com/257/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/johnlange.wordpress.com/257/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/johnlange.wordpress.com/257/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/johnlange.wordpress.com/257/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/johnlange.wordpress.com/257/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/johnlange.wordpress.com/257/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/johnlange.wordpress.com/257/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/johnlange.wordpress.com/257/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/johnlange.wordpress.com/257/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/johnlange.wordpress.com/257/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=johnlange.wordpress.com&amp;blog=21506840&amp;post=257&amp;subd=johnlange&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://johnlange.wordpress.com/2009/08/01/detecting-interactive-shells-in-bash/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/551eb266c4929bf6e5479e7228e48311?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">johnlange</media:title>
		</media:content>
	</item>
		<item>
		<title>Expanding Linux software RAID1 with an ext3 File System</title>
		<link>http://johnlange.wordpress.com/2009/07/03/expanding-linux-software-raid1-with-an-ext3-file-system/</link>
		<comments>http://johnlange.wordpress.com/2009/07/03/expanding-linux-software-raid1-with-an-ext3-file-system/#comments</comments>
		<pubDate>Fri, 03 Jul 2009 21:09:19 +0000</pubDate>
		<dc:creator>johnlange</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tech Tip]]></category>

		<guid isPermaLink="false">http://www.johnlange.ca/?p=247</guid>
		<description><![CDATA[Yes it is possible to expand a software RAID1 device without loosing data. As a proof of concept we will create a small RAID1 device, then expand it. [read more]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=johnlange.wordpress.com&amp;blog=21506840&amp;post=247&amp;subd=johnlange&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Yes it is possible to expand a software RAID1 device without loosing data. As a proof of concept we will create a small RAID1 device, then expand it. [<a href="http://www.johnlange.ca/tech-tips/linux/expanding-linux-software-raid1-with-an-ext3-file-system/">read more</a>]</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/johnlange.wordpress.com/247/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/johnlange.wordpress.com/247/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/johnlange.wordpress.com/247/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/johnlange.wordpress.com/247/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/johnlange.wordpress.com/247/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/johnlange.wordpress.com/247/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/johnlange.wordpress.com/247/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/johnlange.wordpress.com/247/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/johnlange.wordpress.com/247/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/johnlange.wordpress.com/247/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/johnlange.wordpress.com/247/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/johnlange.wordpress.com/247/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/johnlange.wordpress.com/247/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/johnlange.wordpress.com/247/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=johnlange.wordpress.com&amp;blog=21506840&amp;post=247&amp;subd=johnlange&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://johnlange.wordpress.com/2009/07/03/expanding-linux-software-raid1-with-an-ext3-file-system/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/551eb266c4929bf6e5479e7228e48311?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">johnlange</media:title>
		</media:content>
	</item>
	</channel>
</rss>
