<?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>kerneljack&#039;s diary &#187; linux</title>
	<atom:link href="http://www.kerneljack.com/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.kerneljack.com</link>
	<description></description>
	<lastBuildDate>Thu, 01 Jul 2010 11:25:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Turn off the linux console display</title>
		<link>http://www.kerneljack.com/2010/07/01/turn-off-the-linux-console-display/</link>
		<comments>http://www.kerneljack.com/2010/07/01/turn-off-the-linux-console-display/#comments</comments>
		<pubDate>Thu, 01 Jul 2010 11:25:58 +0000</pubDate>
		<dc:creator>kerneljack</dc:creator>
				<category><![CDATA[centos]]></category>
		<category><![CDATA[computers]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[operating systems]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[troubleshooting]]></category>
		<category><![CDATA[centos display linux howto]]></category>

		<guid isPermaLink="false">http://www.kerneljack.com/?p=183</guid>
		<description><![CDATA[I needed a way to turn off the display on an old netbook that I am using as a low-powered server. I installed CentOS 5.5 on the netbook and set the &#8216;inittab&#8217; to boot into console mode by default however I did not know how to turn the display off completely when in console mode. [...]]]></description>
			<content:encoded><![CDATA[<p>I needed a way to turn off the display on an old netbook that I am using as a low-powered server. I installed CentOS 5.5 on the netbook and set the &#8216;inittab&#8217; to boot into console mode by default however I did not know how to turn the display off completely when in console mode. I wanted to do this for various reasons; saving power and reducing the heat generated were my primary concerns.</p>
<p>I was thinking of using &#8216;setterm&#8217; for this, but I decided to google this first and found the perfect solution <a href="http://bbs.archlinux.org/viewtopic.php?id=66169">in the Arch forums</a>. Just in case that link stops working I&#8217;m going to include the script below, hopefully it will be helpful to other people.</p>
<blockquote>
<pre>#!/bin/bash

###################################################
# Check if X is running or not, turn off monitor, #
# wait for a key press and turn it on again.      #
###################################################

grep_result_file=$PWD'/x_running'

# Check if X is running.
ps -e | grep -e "\bX\b" &gt; $grep_result_file
ps -e | grep -e "\bxorg\b" &gt;&gt; $grep_result_file
ps -e | grep -e "\bxserver\b" &gt;&gt; $grep_result_file

## If you want to check result file, uncomment following lines.
#echo "===== $grep_result_file - begin ====="
#cat $grep_result_file
#echo "===== $grep_result_file -  end  ====="

if [ ! -s $grep_result_file ] || [[ $(tty) =~ tty ]] || [[ $(tty) =~ vc ]]; then
    echo 'Detected X not runnig or you are at console...'
    if [ $UID -ne 0 ]; then
        echo 'You need super user privileges to run this script at console.'
        echo 'Rerun as super user or start X and run from a terminal.'
        exit 0
    fi
    turn_off='vbetool dpms off'
    turn_on='vbetool dpms on'
else
    echo 'Detected X running...'
    turn_off='xset dpms force off'
fi

echo 'Turning off monitor...'
$turn_off

echo 'Waiting for a key press...'
read -n1 -s

echo 'Turning on monitor...'
$turn_on

rm $grep_result_file

echo 'Finished: monitor_off'
kill -9 $PPID
</pre>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.kerneljack.com/2010/07/01/turn-off-the-linux-console-display/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creating a bootable USB stick with Centos 5.4</title>
		<link>http://www.kerneljack.com/2010/03/19/creating-a-bootable-usb-stick-with-centos-5-4/</link>
		<comments>http://www.kerneljack.com/2010/03/19/creating-a-bootable-usb-stick-with-centos-5-4/#comments</comments>
		<pubDate>Fri, 19 Mar 2010 22:47:52 +0000</pubDate>
		<dc:creator>kerneljack</dc:creator>
				<category><![CDATA[centos]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[redhat]]></category>
		<category><![CDATA[sysadmin]]></category>

		<guid isPermaLink="false">http://www.kerneljack.com/?p=173</guid>
		<description><![CDATA[OK, other people have also written about this, but the information seems to be cluttered all over the place in different forums or the CentOS wiki. The most straightforward way I found to do this is as follows. Credit for this method goes to Neil Aggarwal, who posted it on the centos mailing list. In [...]]]></description>
			<content:encoded><![CDATA[<p>OK, other people have also written about this, but the information seems to be cluttered all over the place in different forums or the CentOS wiki.</p>
<p>The most straightforward way I found to do this is as follows. Credit for this method goes to Neil Aggarwal, who posted it on the <a title="centos mailing lists" href="http://lists.centos.org/pipermail/centos/2009-April/074475.html" target="_blank">centos mailing list</a>.</p>
<p>In case that link stops working someday, it is as simple as:</p>
<blockquote><p>1. Using fdisk, I created two partitions on the drive:<br />
	/dev/sdc1 = 15 MB<br />
	/dev/sdc2 = The rest<br />
I marked the first one bootable</p>
<p>2. I used dd to copy the diskboot.img to /dev/sdc1</p>
<p>3. Formatted /dev/sdc2 as ext3 and copied the<br />
	iso images there</p>
<p>4. When I boot from the usb drive, I selected hard<br />
	drive install and pointed the installer to<br />
	/dev/scd2</p>
<p>It worked perfectly!
</p></blockquote>
<p>Thanks, Neil!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kerneljack.com/2010/03/19/creating-a-bootable-usb-stick-with-centos-5-4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>UKUUG Spring Conference</title>
		<link>http://www.kerneljack.com/2008/04/02/ukuug-spring-conference/</link>
		<comments>http://www.kerneljack.com/2008/04/02/ukuug-spring-conference/#comments</comments>
		<pubDate>Wed, 02 Apr 2008 17:36:55 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[operating systems]]></category>
		<category><![CDATA[linux os operating_systems travel unix ukuug]]></category>

		<guid isPermaLink="false">http://www.kerneljack.com/?p=148</guid>
		<description><![CDATA[I’m a member of the UKUUG, and I just came back from their Spring Conference, which was held in Birmingham this year. It was a great conference! I met lots of other Unix/Linux people and learned a lot simply by chatting with people in the corridors! I will try my best to make it to [...]]]></description>
			<content:encoded><![CDATA[<p>I’m a member of the UKUUG, and I just came back from their Spring Conference, which was held in Birmingham this year. It was a great conference! I met lots of other Unix/Linux people and learned a lot simply by chatting with people in the corridors! I will try my best to make it to the next one, which I think will be held sometime later this year.</p>
<p>In any case, I was asked by Alain (UKUUG Chairman) to write a few words about one of the tutorials that I attended on the first day of the conference. It will be published in the next UKUUG newsletter. I will make sure I post a copy of what I write here.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kerneljack.com/2008/04/02/ukuug-spring-conference/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fix for strange white borders with Compiz Fusion on Ubuntu</title>
		<link>http://www.kerneljack.com/2007/08/30/fix-for-strange-white-borders-with-compiz-fusion-on-ubuntu-2/</link>
		<comments>http://www.kerneljack.com/2007/08/30/fix-for-strange-white-borders-with-compiz-fusion-on-ubuntu-2/#comments</comments>
		<pubDate>Thu, 30 Aug 2007 22:34:29 +0000</pubDate>
		<dc:creator>kerneljack</dc:creator>
				<category><![CDATA[beryl]]></category>
		<category><![CDATA[compiz]]></category>
		<category><![CDATA[fusion]]></category>
		<category><![CDATA[hardware]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[troubleshooting]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://kerneljack.wordpress.com/2007/08/30/fix-for-strange-white-borders-with-compiz-fusion-on-ubuntu-2/</guid>
		<description><![CDATA[I&#8217;ve just installed Compiz Fusion on my 3-year old ASUS laptop which is running Ubuntu Feisty. I&#8217;m quite pleased at how stable it is. I tried Beryl a few months ago and it was not usable at all on the same hardware. I did run into one problem, though and I couldn&#8217;t find any solution [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve just installed Compiz Fusion on my 3-year old ASUS laptop which is running Ubuntu Feisty. I&#8217;m quite pleased at how stable it is. I tried Beryl a few months ago and it was not usable at all on the same hardware.
<p>I did run into one problem, though and I couldn&#8217;t find any solution to it on either the Ubuntu Forums or anywhere else on the net. My top Gnome panel had a strange white bar under it and all my context menus had white borders. Maybe my google-fu wasn&#8217;t very good yesterday, but the only solution that I managed to find after about an hour was <a href="http://forums.gentoo-xeffects.org/viewtopic.php?f=15&amp;t=596">this on a Gentoo forum</a>:</p>
<blockquote><p>This is a known issue.  Go to <b>ccsm-&gt;Window Decorations</b> and add the string <b>!dock</b> to the value <b>Shadow Windows</b>.  I had to enter <b>2 !dock.</b>  First disabled shadows of the context menus and the tool tips, the second stops shadows for the gnome-panel.</p></blockquote>
<p>I&#8217;m just putting this here in case it helps someone with a similar problem. </p>
<p>Technorati Tags: <a class="performancingtags" href="http://technorati.com/tag/compiz%20fusion%20ubuntu%20beryl" rel="tag">compiz fusion ubuntu beryl</a></p>
<p class="poweredbyperformancing">Powered by <a href="http://scribefire.com/">ScribeFire</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kerneljack.com/2007/08/30/fix-for-strange-white-borders-with-compiz-fusion-on-ubuntu-2/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Links for June 3, 2007</title>
		<link>http://www.kerneljack.com/2007/06/03/links-for-june-3-2007/</link>
		<comments>http://www.kerneljack.com/2007/06/03/links-for-june-3-2007/#comments</comments>
		<pubDate>Sun, 03 Jun 2007 19:04:16 +0000</pubDate>
		<dc:creator>kerneljack</dc:creator>
				<category><![CDATA[apple]]></category>
		<category><![CDATA[coding]]></category>
		<category><![CDATA[computers]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[news]]></category>
		<category><![CDATA[operating systems]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[software]]></category>

		<guid isPermaLink="false">http://kerneljack.wordpress.com/2007/06/03/links-for-june-3-2007/</guid>
		<description><![CDATA[Fedora 7 is released!: I really liked the last Fedora release, but I believe it was slightly plagued by problems with some of it&#8217;s package management utilities. I have already installed this release and am quite impressed. Wireless now works with WPA out of the box and their new re-spinning feature is something I will [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://docs.fedoraproject.org/release-notes/f7/en_US/sn-OverView.html" target="_blank">Fedora 7 is released!:</a> I really liked the last Fedora release, but I believe it was slightly plagued by problems with some of it&#8217;s package management utilities. I have already installed this release and am quite impressed. Wireless now works with WPA out of the box and their new re-spinning feature is something I will try out someday.</p>
<p><a href="http://www.xml.com/pub/a/2007/05/09/xml-parser-benchmarks-part-1.html" target="_blank">XML Parser benchmarks:</a>  I have always had my own suspicions of which XML parser model would be faster (Sax or StaX), but I&#8217;m glad to see this benchmark done by the O&#8217;Reilly folks.</p>
<p><a href="http://www.tuxdeluxe.org/node/175" target="_blank">Fear and loathing at Cupertino:</a>  Jeremy Allison&#8217;s terrible experience while trying to prepare a talk for his Apple WWDC presentation. Jeremy works on Samba, along with Tridge, who they all call &#8220;the smartest man in Australia&#8221; <img src='http://www.kerneljack.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  Jeremy works at Google now. Smart man.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kerneljack.com/2007/06/03/links-for-june-3-2007/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Some web links for today</title>
		<link>http://www.kerneljack.com/2007/05/17/some-web-links-for-today/</link>
		<comments>http://www.kerneljack.com/2007/05/17/some-web-links-for-today/#comments</comments>
		<pubDate>Thu, 17 May 2007 21:14:39 +0000</pubDate>
		<dc:creator>kerneljack</dc:creator>
				<category><![CDATA[coding]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[operating systems]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[software]]></category>

		<guid isPermaLink="false">http://kerneljack.wordpress.com/2007/05/17/some-web-links-for-today/</guid>
		<description><![CDATA[I&#8217;m going to occasionally post links here that I find particularly insightful, interesting or geeky. Three things that caught my interest today: PowerTOP: Released by Intel, this utility builds on work done by kernel developers to make the Linux kernel power-efficient. PowerTOP gives you a snapshot of what apps are consuming the most power. Turn [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m going to occasionally post links here that I find particularly insightful, interesting or geeky.</p>
<p>Three things that caught my interest today:</p>
<p><a href="http://www.linux.com/article.pl?sid=07/05/16/1742204" target="_blank">PowerTOP:</a> Released by Intel, this utility builds on work done by kernel developers to make the Linux kernel power-efficient. PowerTOP gives you a snapshot of what apps are consuming the most power. Turn off these apps or modify their behavior, and you&#8217;ll notice an instant increase in the battery life.</p>
<p><a href="http://www-128.ibm.com/developerworks/linux/library/l-linux-slab-allocator/?ca=dgr-lnxw07LinuxSlabAllo">The Linux SLAB Allocator:</a> Traditional heap memory managers suffer from fragmentation, among other issues. The SLAB Allocator in Linux, inspired by a similar implementation for Solaris and various embedded systems, allocates memory as fixed sized objects and uses caches to reduce fragmentation. It also has options to enable hardware cache alignment which allows objects in different caches to share the same cache lines, thus improving performance.</p>
<p><a href="http://www.advancedlinuxprogramming.com/">Advanced Linux Programming:</a> After many years of coding mostly Java, I&#8217;ve been meaning to brush up on my C, Assembly and general Unix programming skills. I found this excellent book freely available online and it seems to be getting a lot of praise from reviewers on Amazon so I downloaded it. It has a lot of topics that I&#8217;m very interested in, like IPC and threads, and it even has a few assembly oriented chapters. I will definitely be reading this one <img src='http://www.kerneljack.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.kerneljack.com/2007/05/17/some-web-links-for-today/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>GLLUG Meeting</title>
		<link>http://www.kerneljack.com/2006/11/12/gllug-meeting/</link>
		<comments>http://www.kerneljack.com/2006/11/12/gllug-meeting/#comments</comments>
		<pubDate>Sun, 12 Nov 2006 20:30:37 +0000</pubDate>
		<dc:creator>kerneljack</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[news]]></category>
		<category><![CDATA[operating systems]]></category>

		<guid isPermaLink="false">http://kerneljack.wordpress.com/2006/11/12/gllug-meeting/</guid>
		<description><![CDATA[I helped out yesterday at the Greater London Linux Group&#8217;s meeting, held at my old alma mater, the University of Westminster in New Cavendish street. It was a blast going back after so many years, I met one of my best teachers, Sean Tohill who always had an open mind and a keen intellect. The [...]]]></description>
			<content:encoded><![CDATA[<p>I helped out yesterday at the <a href="http://www.gllug.org.uk/" target="_blank">Greater London Linux Group&#8217;s</a> meeting, held at my old alma mater, the <a href="http://www.wmin.ac.uk/" target="_blank">University of Westminster</a> in New Cavendish street. It was a blast going back after so many years, I met one of my best teachers, Sean Tohill who always had an open mind and a keen intellect. The whole event was organised by Simon Morris.<br />
A lot more people than we had anticipated turned up for this meet! There were easily more than 100 people that showed up. Simon had installed <a href="http://www.novell.com/products/desktop/" target="_blank">SLED 10</a> on several desktops there and I got <a href="http://www.debian.org/" target="_blank">Debian</a> running VLC on a big projector screen, playing a movie in a continuous loop.</p>
<p>A few people, including me, volunteered to give short presentations about certain aspects of SLED, and I was giving a short talk and demo of XGL under SLED. I demoed it to about 20 people and they were all quite impressed with it. Along they way I managed to help out several people with their linux problems.</p>
<p>I absolutely loved this meetup and I hope I can attend many more in the future. There are more details and pictures <a href="http://www.gllug.org.uk/index.php?/archives/30-Review-Novembers-GLLUG-Meeting.html" target="_blank">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kerneljack.com/2006/11/12/gllug-meeting/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>LinuxWorld 2006</title>
		<link>http://www.kerneljack.com/2006/10/26/linuxworld-2006/</link>
		<comments>http://www.kerneljack.com/2006/10/26/linuxworld-2006/#comments</comments>
		<pubDate>Thu, 26 Oct 2006 20:04:49 +0000</pubDate>
		<dc:creator>kerneljack</dc:creator>
				<category><![CDATA[coding]]></category>
		<category><![CDATA[computers]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[podcasting]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://kerneljack.wordpress.com/2006/10/26/linuxworld-2006/</guid>
		<description><![CDATA[LinuxWorld started yesterday here in rainy London and I had a great time! It was the first time ever that I wasn&#8217;t a visitor, but was helping out at the Jokosher stand. I did several demos of the app to tons of people and we managed to distribute more than 130 Jokosher flyers to interested [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align:center;"> <a href="http://www.linuxworldexpo.co.uk/"></a></p>
<p style="text-align:center;"> <img src="http://www.jokosher.org/siteimages/front_jokosherwindow.png" align="absmiddle" height="258" width="400" /></p>
<p align="left"><a href="http://www.linuxworldexpo.co.uk/">LinuxWorld</a> started yesterday here in rainy London and I had a great time! It was the first time ever that I wasn&#8217;t a visitor, but was helping out at the <a href="http://www.jokosher.org/">Jokosher</a> stand. I did several demos of the app to tons of people and we managed to distribute more than 130 Jokosher flyers to interested people.</p>
<p>I was quite surprised at the level of interest in the app, and we managed to solicit a great many feature requests from people, some of which will hopefully end up in Jokosher someday, making it rock even harder! I will definitely try to help out at more of these events in the future <img src='http://www.kerneljack.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>You can find the photos I took with my camera phone at my <a href="http://www.flickr.com/photos/kerneljack">flickr photo page</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kerneljack.com/2006/10/26/linuxworld-2006/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
