<?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>Schadenfreude &#187; sysadmin</title>
	<atom:link href="http://www.ralree.com/tag/sysadmin/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ralree.com</link>
	<description>Malicious enjoyment derived from observing someone else's misfortune</description>
	<lastBuildDate>Sun, 28 Feb 2010 04:18:37 +0000</lastBuildDate>
	
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How to set the RTC max_user_freq in newer kernels</title>
		<link>http://www.ralree.com/2009/07/19/how-to-set-the-rtc-max_user_freq-in-newer-kernels/</link>
		<comments>http://www.ralree.com/2009/07/19/how-to-set-the-rtc-max_user_freq-in-newer-kernels/#comments</comments>
		<pubDate>Mon, 20 Jul 2009 01:03:07 +0000</pubDate>
		<dc:creator>Erik</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[rtc]]></category>
		<category><![CDATA[sound]]></category>
		<category><![CDATA[sysadmin]]></category>

		<guid isPermaLink="false">http://www.ralree.com/?p=22623</guid>
		<description><![CDATA[I found out today how to set the real time clock max frequencies in Ubuntu since they removed the possibility to do it from sysutil.conf from newer kernels.  Add the following to your /etc/rc.local or another startup script:
echo 2048 >/sys/class/rtc/rtc0/max_user_freq
echo 2048 >/proc/sys/dev/hpet/max-user-freq
Reboot, and you should get better performance from things like mplayer.
]]></description>
			<content:encoded><![CDATA[<p>I found out today how to set the real time clock max frequencies in Ubuntu since they removed the possibility to do it from <code>sysutil.conf</code> from newer kernels.  Add the following to your <code>/etc/rc.local</code> or another startup script:</p>
<pre><code>echo 2048 >/sys/class/rtc/rtc0/max_user_freq
echo 2048 >/proc/sys/dev/hpet/max-user-freq</code></pre>
<p>Reboot, and you should get better performance from things like mplayer.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ralree.com/2009/07/19/how-to-set-the-rtc-max_user_freq-in-newer-kernels/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>0install: A package manager for the lusers</title>
		<link>http://www.ralree.com/2007/07/19/0install-a-package-manager-for-the-lusers/</link>
		<comments>http://www.ralree.com/2007/07/19/0install-a-package-manager-for-the-lusers/#comments</comments>
		<pubDate>Thu, 19 Jul 2007 15:55:00 +0000</pubDate>
		<dc:creator>Erik</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[processing]]></category>
		<category><![CDATA[sysadmin]]></category>
		<category><![CDATA[zeroinstall]]></category>

		<guid isPermaLink="false">http://www.ralree.info/2007/10/13/0install-a-package-manager-for-the-lusers</guid>
		<description><![CDATA[Zeroinstall is my new friend.  It&#8217;s a package manager that&#8217;s decentralized, and can be used on machines where users need applications, but don&#8217;t know how to compile (or are unwilling to).  Installing applications happens in the home directory, and once a program is run once, it is stored in the home directory for [...]]]></description>
			<content:encoded><![CDATA[<p>Zeroinstall is my new friend.  It&#8217;s a package manager that&#8217;s decentralized, and can be used on machines where users need applications, but don&#8217;t know how to compile (or are unwilling to).  Installing applications happens in the home directory, and once a program is run once, it is stored in the home directory for later use.  All packages can be signed with GPG keys, and the packaging GUI is amazingly awesome.</p>
<p><a href="http://modzer0.cs.uaf.edu/repos/hank/0install">Check out my 0install repository</a>.  You can run things like this:</p>
<pre><code>
sudo apt-get install zeroinstall-injector
0launch http://modzer0.cs.uaf.edu/repos/hank/0install/Processing.xml
</code></pre>
<p>There&#8217;s <a href="http://0install.net/injector.html">packages</a> for all the popular distributions.  Get it now!  It&#8217;s awesome.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ralree.com/2007/07/19/0install-a-package-manager-for-the-lusers/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>GNU Screen&#8217;s hardstatus</title>
		<link>http://www.ralree.com/2007/07/15/gnu-screen-s-hardstatus/</link>
		<comments>http://www.ralree.com/2007/07/15/gnu-screen-s-hardstatus/#comments</comments>
		<pubDate>Sun, 15 Jul 2007 00:17:00 +0000</pubDate>
		<dc:creator>Erik</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[perl]]></category>
		<category><![CDATA[screen]]></category>
		<category><![CDATA[sysadmin]]></category>

		<guid isPermaLink="false">http://www.ralree.info/2007/10/13/gnu-screen-s-hardstatus</guid>
		<description><![CDATA[I use GNU Screen.  A lot.  I found an article linked from DIgg today that showed me how to use a setting called hardstatus to set the little bar at the bottom to my liking.  I decided to mess around with it a bit, and I ended up with this:

It shows my [...]]]></description>
			<content:encoded><![CDATA[<p>I use GNU Screen.  A lot.  I found an article linked from <a href="http://www.digg.com">DIgg</a> today that showed me how to use a setting called <strong>hardstatus</strong> to set the little bar at the bottom to my liking.  I decided to mess around with it a bit, and I ended up with this:</p>
<p><img src="http://ralree.info/assets/2007/7/15/hardstatus.png" alt="Such a hard status!"/></p>
<p>It shows my hostname, IP, uptime, screen window number and name, date and time, and load averages.  Pretty cool, huh?</p>
<p>This is how you do it:</p>
<ul>
<li>First, create a <code>.screenrc</code> file and dump this in there:</li>
</ul>
<pre><code>
hardstatus alwayslastline
backtick 1 60 60 /home/hank/.screen_hardstatus
hardstatus string "%{Gk}%H: %{+s y}%1` | %=%n: %t%= | %m/%d %c | %{+b}%l"
</code></pre>
<ul>
<li>Now, see the line that starts with <strong>backtick</strong>?  That tells screen what program to run for assigning output to <code>%1`</code> in the hardstatus string.  Let&#8217;s make the <code>.screen_hardstatus</code> file as well (make it in your own home directory).</li>
</ul>
<pre><code>
#!/bin/bash
# Script to get run by hardstatus in screen.
# Prints customized single-line system stats
IP=`ifconfig eth0 | grep Mask | cut -d: -f2 | cut -d " " -f1`
UPTIME=`perl -pe 's/^(\d+).*/sprintf("%d", ($1\/(24*3600)))." days"/e' /proc/uptime`
echo -n "$IP | Up: $UPTIME"
</code></pre>
<p>I cheated and used perl, but all of this could safely be converted to <code>sed</code>/<code>awk</code> easily.  All this does is print my raw dotted quad IP address, a pipe, and then the current uptime in days rounded down.</p>
<ul>
<li>Now, just run <code>screen</code>.  You should see something similar to the first picture.  I used <a href="http://aperiodic.net/screen/string_escapes">this page</a> a lot to customize the colors, etc.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.ralree.com/2007/07/15/gnu-screen-s-hardstatus/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fixing .Xdefaults in Ubuntu</title>
		<link>http://www.ralree.com/2006/10/26/fixing-xdefaults-in-ubuntu/</link>
		<comments>http://www.ralree.com/2006/10/26/fixing-xdefaults-in-ubuntu/#comments</comments>
		<pubDate>Thu, 26 Oct 2006 20:16:15 +0000</pubDate>
		<dc:creator>Erik</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[solution]]></category>
		<category><![CDATA[sysadmin]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.ralree.info/2007/10/13/fixing-xdefaults-in-ubuntu</guid>
		<description><![CDATA[I have been having a problem getting .Xdefaults to be loaded in X.  This
is a major issue for me since I like my fonts to be a certain size in aterm,
but I don&#8217;t want to hack up my runline in fluxbox to reflect all the custom
settings.  Therefore, I have all my settings defined [...]]]></description>
			<content:encoded><![CDATA[<p>I have been having a problem getting <strong>.Xdefaults</strong> to be loaded in X.  This<br />
is a major issue for me since I like my fonts to be a certain size in aterm,<br />
but I don&#8217;t want to hack up my runline in fluxbox to reflect all the custom<br />
settings.  Therefore, I have all my settings defined in the <strong>.Xdefaults</strong><br />
file.  So, tonight, after I upgraded to Edgy Eft, I decided that this needed<br />
to be fixed.  After a quick google google I found that all I had to do was<br />
run:</p>
<pre><code>
xrdb -merge ~/.Xdefaults
</code></pre>
<p>And all my problems were solved.  A quick insert into <strong>.fluxbox/startup</strong> and<br />
I was in business.</p>
<p>In other news, Edgy Eft Rocks.  Just customized the default GDM theme so it<br />
looks better.  I think I might want to get a MacBook or a nice Powerbook G4<br />
for my next laptop.  Apparently, in Linux, you can make the touchpad act like<br />
Synaptics with a driver hack to put it in raw mode.  As far as I can tell,<br />
this is merged in the newest Linux kernels.  This allows for the kind of tap<br />
clicking I like (1 finger for left button, 2 for middle, 3 for right), and<br />
thanks to a broken left touchpad button on the Asus M6N I have, I&#8217;ve gotten<br />
used to this style of clicking, and I like it now.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ralree.com/2006/10/26/fixing-xdefaults-in-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Do you have some Chage?</title>
		<link>http://www.ralree.com/2006/08/14/do-you-have-some-chage/</link>
		<comments>http://www.ralree.com/2006/08/14/do-you-have-some-chage/#comments</comments>
		<pubDate>Mon, 14 Aug 2006 03:07:56 +0000</pubDate>
		<dc:creator>Erik</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[sysadmin]]></category>

		<guid isPermaLink="false">http://www.ralree.info/2007/10/13/do-you-have-some-chage</guid>
		<description><![CDATA[This makes it so the user has to change their password on login:

# chage -M 1 &#60;user&#62;
# chage -d 1 &#60;user&#62;

Make sure to set -M back to normal afterwards

# chage -M 99999 &#60;user&#62;

This makes it so easy.  Too bad it&#8217;s named like saying &#8221;&#8217;change&#8221;&#8217; with a cold&#8230;
]]></description>
			<content:encoded><![CDATA[<p>This makes it so the user has to change their password on login:</p>
<pre><code>
# chage -M 1 &lt;user&gt;
# chage -d 1 &lt;user&gt;
</code></pre>
<p>Make sure to set -M back to normal afterwards</p>
<pre><code>
# chage -M 99999 &lt;user&gt;
</code></pre>
<p>This makes it so easy.  Too bad it&#8217;s named like saying &#8221;&#8217;change&#8221;&#8217; with a cold&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ralree.com/2006/08/14/do-you-have-some-chage/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Easy Global Change of CAPS to Ctrl in X</title>
		<link>http://www.ralree.com/2006/08/10/easy-global-change-of-caps-to-ctrl-in-x/</link>
		<comments>http://www.ralree.com/2006/08/10/easy-global-change-of-caps-to-ctrl-in-x/#comments</comments>
		<pubDate>Thu, 10 Aug 2006 03:14:52 +0000</pubDate>
		<dc:creator>Erik</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[sysadmin]]></category>

		<guid isPermaLink="false">http://www.ralree.info/2007/10/13/easy-global-change-of-caps-to-ctrl-in-x</guid>
		<description><![CDATA[Thanks to this page, I found what I was looking for:

        Option          "XkbOptions"    "ctrl:nocaps"

]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.emacswiki.org/cgi-bin/emacs-en/MovingTheCtrlKey#toc3">Thanks to this page</a>, I found what I was looking for:</p>
<pre><code>
        Option          "XkbOptions"    "ctrl:nocaps"
</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://www.ralree.com/2006/08/10/easy-global-change-of-caps-to-ctrl-in-x/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Magical SVN Remove</title>
		<link>http://www.ralree.com/2006/08/06/magical-svn-remove/</link>
		<comments>http://www.ralree.com/2006/08/06/magical-svn-remove/#comments</comments>
		<pubDate>Sun, 06 Aug 2006 15:37:52 +0000</pubDate>
		<dc:creator>Erik</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[oneliners]]></category>
		<category><![CDATA[sed]]></category>
		<category><![CDATA[subversion]]></category>
		<category><![CDATA[sysadmin]]></category>

		<guid isPermaLink="false">http://www.ralree.info/2007/10/13/magical-svn-remove</guid>
		<description><![CDATA[Have you ever wanted to batch remove some Subversion files?  Try this on for size:

svn rm `svn stat &#124; grep ! &#124; sed -e 's/^\!\s\+//;s/$/ /' &#124; tr -d '\n'`

That will remove all the entries from svn stat that start with !.  Very handy.  Took a few minutes to write (sed wouldn’t [...]]]></description>
			<content:encoded><![CDATA[<p>Have you ever wanted to batch remove some Subversion files?  Try this on for size:</p>
<pre><code>
svn rm `svn stat | grep ! | sed -e 's/^\!\s\+//;s/$/ /' | tr -d '\n'`
</code></pre>
<p>That will remove all the entries from <em>svn stat</em> that start with <em>!</em>.  Very handy.  Took a few minutes to write (<strong>sed</strong> wouldn’t get rid of my newline, so I used <strong><em>tr</em></strong> …), but it’s worth it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ralree.com/2006/08/06/magical-svn-remove/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntu Ruby Woes Crushed</title>
		<link>http://www.ralree.com/2006/07/13/ubuntu-ruby-woes-crushed/</link>
		<comments>http://www.ralree.com/2006/07/13/ubuntu-ruby-woes-crushed/#comments</comments>
		<pubDate>Thu, 13 Jul 2006 22:01:03 +0000</pubDate>
		<dc:creator>Erik</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[sysadmin]]></category>

		<guid isPermaLink="false">http://www.ralree.info/2007/10/13/ubuntu-ruby-woes-crushed</guid>
		<description><![CDATA[I installed Ubuntu Dapper Drake on the ole&#8217; laptop today, and needed ruby, but it wouldn&#8217;t compile correctly.  Luckily, the internet saved me again.  Here&#8217;s how to compile it without getting errors on Gem Setup
]]></description>
			<content:encoded><![CDATA[<p>I installed Ubuntu Dapper Drake on the ole&#8217; laptop today, and needed ruby, but it wouldn&#8217;t compile correctly.  Luckily, the internet saved me again.  <a href="http://www.ubuntuforums.org/showpost.php?s=824a5a23e29c2ef5ca5568e0da52e296&amp;p=1159106&amp;postcount=4">Here&#8217;s how to compile it without getting errors on Gem Setup</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ralree.com/2006/07/13/ubuntu-ruby-woes-crushed/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.398 seconds -->
