<?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>harshar.net</title>
	<atom:link href="http://harshar.net/journal/feed/" rel="self" type="application/rss+xml" />
	<link>http://harshar.net/journal</link>
	<description>The Pensieve</description>
	<lastBuildDate>Mon, 30 Jul 2007 02:47:35 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>New Post</title>
		<link>http://harshar.net/journal/2007/07/29/new-post/</link>
		<comments>http://harshar.net/journal/2007/07/29/new-post/#comments</comments>
		<pubDate>Mon, 30 Jul 2007 02:47:35 +0000</pubDate>
		<dc:creator>harshar</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://harshar.net/journal/2007/07/29/new-post/</guid>
		<description><![CDATA[New post]]></description>
			<content:encoded><![CDATA[<p><strong>New post</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://harshar.net/journal/2007/07/29/new-post/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Change screen resolution by editing xorg.conf</title>
		<link>http://harshar.net/journal/2007/07/25/change-screen-resolution-by-editing-xorgconf/</link>
		<comments>http://harshar.net/journal/2007/07/25/change-screen-resolution-by-editing-xorgconf/#comments</comments>
		<pubDate>Thu, 26 Jul 2007 01:20:23 +0000</pubDate>
		<dc:creator>harshar</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[xserver]]></category>

		<guid isPermaLink="false">http://harshar.net/journal/2007/07/25/change-screen-resolution-by-editing-xorgconf/</guid>
		<description><![CDATA[Ref: http://www.linuxquestions.org/questions/showthread.php?t=331153 Most common solution, assuming you&#8217;re using the right driver, etc., is this one, which I copied from one of many threads here that lay it out. vim /etc/X11/XF86Config-4 Find the section that looks like this: Section "Screen" Identifier "Default Screen" Device "NVIDIA Corporation NV18 [GeForce4 MX - nForce GPU]" Monitor "Generic Monitor" DefaultDepth [...]]]></description>
			<content:encoded><![CDATA[<p>Ref:<br />
<a href="http://www.linuxquestions.org/questions/showthread.php?t=331153">http://www.linuxquestions.org/questions/showthread.php?t=331153</a></p>
<p>Most common solution, assuming you&#8217;re using the right driver, etc., is this one, which I copied from one of many threads here that lay it out.</p>
<p>vim /etc/X11/XF86Config-4</p>
<p>Find the section that looks like this:</p>
<p><code><br />
        Section "Screen"<br />
        Identifier      "Default Screen"<br />
        Device          "NVIDIA Corporation NV18 [GeForce4 MX - nForce GPU]"<br />
        Monitor         "Generic Monitor"<br />
        DefaultDepth    24<br />
        SubSection "Display"<br />
                Depth           1<br />
                Modes           "800x600" "640x480"<br />
        EndSubSection<br />
        SubSection "Display"<br />
                Depth           4<br />
                Modes           "800x600" "640x480"<br />
        EndSubSection<br />
        SubSection "Display"<br />
                Depth           8<br />
                Modes           "800x600" "640x480"<br />
        EndSubSection<br />
        SubSection "Display"<br />
                Depth           15<br />
                Modes           "800x600" "640x480"<br />
        EndSubSection<br />
        SubSection "Display"<br />
                Depth           16<br />
                Modes           "800x600" "640x480"<br />
        EndSubSection<br />
        SubSection "Display"<br />
                Depth           24<br />
                Modes           "800x600" "640x480"<br />
        EndSubSection<br />
EndSection<br />
</code></p>
<p>and make it look like this:</p>
<p><code><br />
Section "Screen"<br />
        Identifier      "Default Screen"<br />
        Device          "NVIDIA Corporation NV18 [GeForce4 MX - nForce GPU]"<br />
        Monitor         "Generic Monitor"<br />
        DefaultDepth    24<br />
        SubSection "Display"<br />
                Depth           1<br />
                Modes           "1024x768" "800x600" "640x480"<br />
        EndSubSection<br />
        SubSection "Display"<br />
                Depth           4<br />
                Modes           "1024x768" "800x600" "640x480"<br />
        EndSubSection<br />
        SubSection "Display"<br />
                Depth           8<br />
                Modes           "1024x768" "800x600" "640x480"<br />
        EndSubSection<br />
        SubSection "Display"<br />
                Depth           15<br />
                Modes           "1024x768" "800x600" "640x480"<br />
        EndSubSection<br />
        SubSection "Display"<br />
                Depth           16<br />
                Modes           "1024x768" "800x600" "640x480"<br />
        EndSubSection<br />
        SubSection "Display"<br />
                Depth           24<br />
                Modes           "1024x768" "800x600" "640x480"<br />
        EndSubSection<br />
EndSection<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://harshar.net/journal/2007/07/25/change-screen-resolution-by-editing-xorgconf/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Debian sources.list file contents</title>
		<link>http://harshar.net/journal/2007/07/03/debian-sourceslist-file-contents/</link>
		<comments>http://harshar.net/journal/2007/07/03/debian-sourceslist-file-contents/#comments</comments>
		<pubDate>Wed, 04 Jul 2007 04:16:27 +0000</pubDate>
		<dc:creator>harshar</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://harshar.net/journal/2007/07/03/debian-sourceslist-file-contents/</guid>
		<description><![CDATA[Ref: http://www.mayin.org/ajayshah/COMPUTING/debian-principles.html The sources.list for using stable reads &#8212; # See sources.list(5) for more information deb http://http.us.debian.org/debian stable main contrib non-free deb http://non-us.debian.org/debian-non-US stable/non-US main contrib non-free deb http://security.debian.org stable/updates main contrib non-free security.debian.org is only relevant for stable since the core stable is supposed to be constant. With the other distributions, security updates are [...]]]></description>
			<content:encoded><![CDATA[<p>Ref:<br />
<a href="http://www.mayin.org/ajayshah/COMPUTING/debian-principles.html">http://www.mayin.org/ajayshah/COMPUTING/debian-principles.html</a></p>
<p>The sources.list for using stable reads &#8212;<br />
<code>  # See sources.list(5) for more information<br />
  deb http://http.us.debian.org/debian stable main contrib non-free<br />
  deb http://non-us.debian.org/debian-non-US stable/non-US main contrib non-free<br />
  deb http://security.debian.org stable/updates main contrib non-free</code></p>
<p>security.debian.org is only relevant for stable since the core stable is supposed to be constant. With the other distributions, security updates are just normal package updates.</p>
<p>As the comment points out, you can say man 5 sources.list to learn the file format.</p>
]]></content:encoded>
			<wfw:commentRss>http://harshar.net/journal/2007/07/03/debian-sourceslist-file-contents/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to install kernel headers in Linux?</title>
		<link>http://harshar.net/journal/2007/07/03/how-to-install-kernel-headers-in-linux/</link>
		<comments>http://harshar.net/journal/2007/07/03/how-to-install-kernel-headers-in-linux/#comments</comments>
		<pubDate>Wed, 04 Jul 2007 01:24:49 +0000</pubDate>
		<dc:creator>harshar</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Kernel]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[VMware]]></category>

		<guid isPermaLink="false">http://harshar.net/journal/2007/07/03/how-to-install-kernel-headers-in-linux/</guid>
		<description><![CDATA[Ref: http://ubuntuforums.org/archive/index.php/t-25258.html Install the headers for the release of the kernel you have installed. To find this out you can type uname -r To get the header you can apt-get install them, sudo apt-get install linux-headers-`uname -r`]]></description>
			<content:encoded><![CDATA[<p>Ref: <a href="http://ubuntuforums.org/archive/index.php/t-25258.html">http://ubuntuforums.org/archive/index.php/t-25258.html</a></p>
<p>Install the headers for the release of the kernel you have installed. To find this out you can type<br />
<code><strong>uname -r</strong></code></p>
<p>To get the header you can apt-get install them,</p>
<p><code><strong>sudo apt-get install linux-headers-`uname -r`</strong></code></p>
]]></content:encoded>
			<wfw:commentRss>http://harshar.net/journal/2007/07/03/how-to-install-kernel-headers-in-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>First post</title>
		<link>http://harshar.net/journal/2006/03/17/first-post/</link>
		<comments>http://harshar.net/journal/2006/03/17/first-post/#comments</comments>
		<pubDate>Fri, 17 Mar 2006 11:04:55 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[misc]]></category>

		<guid isPermaLink="false">http://harshar.net/journal/?p=3</guid>
		<description><![CDATA[Registered my domain today. Lunarpages rocks. Testing the blog now]]></description>
			<content:encoded><![CDATA[<p>Registered my domain today.<br />
Lunarpages rocks.</p>
<p>Testing the blog now <img src='http://harshar.net/journal/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://harshar.net/journal/2006/03/17/first-post/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Debian Resources</title>
		<link>http://harshar.net/journal/2005/10/24/debian-resources/</link>
		<comments>http://harshar.net/journal/2005/10/24/debian-resources/#comments</comments>
		<pubDate>Mon, 24 Oct 2005 08:42:00 +0000</pubDate>
		<dc:creator>harshar</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://harshar.net/journal/2005/10/24/debian-resources/</guid>
		<description><![CDATA[AboutDebian: http://www.aboutdebian.com/linux.htm AboutDebian &#8211; Installing Debianhttp://www.aboutdebian.com/install31.htm Juerd.nl: Nice site, with perl tips, etchttp://juerd.nl/site.plp/debianraid Debian APT Basic Commands http://www.linuxgazette.com/issue84/tougher.html Setup a Database server using Debianhttp://www.aboutdebian.com/database.htm The Perfect Setup &#8211; Debianhttp://www.projektfarm.com/en/support/debian_setup/]]></description>
			<content:encoded><![CDATA[<p>AboutDebian: <br />http://www.aboutdebian.com/linux.htm</p>
<p>AboutDebian &#8211; Installing Debian<br />http://www.aboutdebian.com/install31.htm</p>
<p>Juerd.nl: Nice site, with perl tips, etc<br />http://juerd.nl/site.plp/debianraid</p>
<p>Debian APT Basic Commands <br />http://www.linuxgazette.com/issue84/tougher.html</p>
<p>Setup a Database server using Debian<br />http://www.aboutdebian.com/database.htm</p>
<p>The Perfect Setup &#8211; Debian<br />http://www.projektfarm.com/en/support/debian_setup/</p>
]]></content:encoded>
			<wfw:commentRss>http://harshar.net/journal/2005/10/24/debian-resources/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Debian: Check runlevel</title>
		<link>http://harshar.net/journal/2005/10/21/debian-check-runlevel/</link>
		<comments>http://harshar.net/journal/2005/10/21/debian-check-runlevel/#comments</comments>
		<pubDate>Sat, 22 Oct 2005 04:27:00 +0000</pubDate>
		<dc:creator>harshar</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://harshar.net/journal/2005/10/21/debian-check-runlevel/</guid>
		<description><![CDATA[cat /etc/inittab &#124; more Search for: default runlevel Look for a line like this: id:2:initdefault:]]></description>
			<content:encoded><![CDATA[<p>cat /etc/inittab | more</p>
<p>Search for: default runlevel</p>
<p>Look for a line like this: <br />id:2:initdefault:</p>
]]></content:encoded>
			<wfw:commentRss>http://harshar.net/journal/2005/10/21/debian-check-runlevel/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Configuring CGI for Apache on Windows</title>
		<link>http://harshar.net/journal/2005/04/28/configuring-cgi-for-apache-on-windows/</link>
		<comments>http://harshar.net/journal/2005/04/28/configuring-cgi-for-apache-on-windows/#comments</comments>
		<pubDate>Fri, 29 Apr 2005 06:14:00 +0000</pubDate>
		<dc:creator>harshar</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[CGI]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://harshar.net/journal/2005/04/28/configuring-cgi-for-apache-on-windows/</guid>
		<description><![CDATA[Ref: http://kadaitcha.cx/apache_and_perl.html Make sure the script interpreter path is set toX:/Perl/bin/perl.exe Also make sure that the cgi-bin entry in httpd.conf DOES HAVE a trailing / (SLASH).]]></description>
			<content:encoded><![CDATA[<p>Ref: http://kadaitcha.cx/apache_and_perl.html</p>
<p>Make sure the script interpreter path is set to<br />X:/Perl/bin/perl.exe</p>
<p>Also make sure that the cgi-bin entry in httpd.conf DOES HAVE a trailing / (SLASH).</p>
]]></content:encoded>
			<wfw:commentRss>http://harshar.net/journal/2005/04/28/configuring-cgi-for-apache-on-windows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Configuring User Directories with CGI Scripting in Apache</title>
		<link>http://harshar.net/journal/2005/04/19/configuring-user-directories-with-cgi-scripting-in-apache/</link>
		<comments>http://harshar.net/journal/2005/04/19/configuring-user-directories-with-cgi-scripting-in-apache/#comments</comments>
		<pubDate>Tue, 19 Apr 2005 17:35:00 +0000</pubDate>
		<dc:creator>harshar</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[CGI]]></category>

		<guid isPermaLink="false">http://harshar.net/journal/2005/04/19/configuring-user-directories-with-cgi-scripting-in-apache/</guid>
		<description><![CDATA[Objective: Each user must be able to execute cgi scripts from within their home directories.~/public_html/cgi-bin References:http://httpd.apache.org/docs-2.0/howto/cgi.htmlhttp://cri.ch/linux/docs/sk007.html First, change the httpd.conf to point to the cgi-bin directory to the user&#8217;s public directory.ScriptAlias /cgi-bin/ /home/*/public_html/cgi-bin//home/*/public_html/cgi-bin> AllowOverride None Options +ExecCGI +Includes +Indexes Order allow,deny Allow from all AddHandler cgi-script .cgi .sh .pl &#8212;&#8211;1. Set the permissions for directories. [...]]]></description>
			<content:encoded><![CDATA[<p><span style="font-weight: bold;">Objective: </span><br />Each user must be able to execute cgi scripts from within their home directories.<br />~/public_html/cgi-bin</p>
<p><span style="font-weight: bold;">References:</span><br /><a href="http://httpd.apache.org/docs-2.0/howto/cgi.html">http://httpd.apache.org/docs-2.0/howto/cgi.html</a><br /><a href="http://cri.ch/linux/docs/sk007.html">http://cri.ch/linux/docs/sk007.html</a><span style="font-weight: bold;"></p>
<p></span>First, change the httpd.conf to point to the cgi-bin directory to the user&#8217;s public directory.<br /><span style="font-family:courier new;">ScriptAlias /cgi-bin/ <span style="font-weight: bold;">/home/*/public_html/cgi-bin/</span></span><code class="screen"></code><br /><code class="screen"><br /><span style="font-size:130%;"><directory style="font-weight: bold;">/home/*/public_html/cgi-bin</directory></span>><br />              AllowOverride None<br />              Options <span style="font-weight: bold;">+ExecCGI</span> +Includes +Indexes<br />              Order allow,deny<br />              Allow from all<br />            </code><br /><span style="font-family: courier new;">AddHandler cgi-script .cgi .sh .pl</span></p>
<p>&#8212;&#8211;<br /><user><span style="font-weight: bold;">1. Set the permissions for directories.</span></p>
<p><span style="font-weight: bold;">/home/</span><username> must have <span style="font-weight: bold;">711</span> permissions<br /><span style="font-weight: bold;">/home</span><username><span style="font-weight: bold;">/public_html</span> must have <span style="font-weight: bold;">755</span> permissions<br />and all files in public_html must be world-readable.</p>
<p><span style="font-weight: bold;">2. Activate the ~user directories</span></p>
<p>Edit <span style="font-family:courier new;">httpd.conf</span>.<br />- UserDir for user root:<br />     <span style="font-family:courier new;">UserDir disabled root</span><br />- UserDir is defined as public_html</p>
<p><span style="font-weight: bold;">Note:<br /></span>Do 3.a. only if you want to set it for a single user.<br />For multiple users, you need to configure each ScriptAlias separately.<br />In such a case, it is better to use 3.b.</p>
<p><span style="font-weight: bold;">3. a. Define a ScriptAlias</span><br /> <span style="font-family:courier new;">ScriptAlias /~sven/cgi-bin &#8220;/home/sven/public_html/cgi-bin/&#8221;</span></p>
<p><span style="font-weight: bold;">3.b.  Add the Option ExecCGI</span><br />The option ExecCGI can be defined at a<span style="font-family:courier new;"> <directory></directory></span> level in <span style="font-family:courier new;">httpd.conf</span>.</p>
<p>Following definition gives each user to run cgi-scripts from his <span style="font-family:courier new;">~<user>/cgi-bin</user></span> directory:</p>
<p><span style="font-family:courier new;"><directory style="font-weight: bold;">/home/*/public_html/cgi-bin</directory></span>><br /><span style="font-family:courier new;">  AllowOverride None</span><br /><span style="font-family:courier new;">  Options <span style="font-weight: bold;">+ExecCGI</span> +Includes +Indexes</span><br /><span style="font-family:courier new;">  Order allow,deny</span><br /><span style="font-family:courier new;">  Allow from all</span><br /><span style="font-family:courier new;"></span></username></p>
<p><span style="font-weight: bold;">Errors that might occur: </span><span style="font-style: italic;">(and it did for me, for a most stupid reason &#8211; ME)</span><br /><span style="font-weight: bold;font-family:courier new;" ><br />Premature end of script headers </span></p>
<p><span style="font-weight: bold; font-style: italic;">Short answers:</span><br />1. Check the <span style="font-weight: bold;">execute permission of the script</span>.<br />2. Deactivate or rename suexec.</p>
<p><span style="font-weight: bold; font-style: italic;">Detailed explanation: </span><br /><a href="http://httpd.apache.org/docs-2.0/howto/cgi.html">http://httpd.apache.org/docs-2.0/howto/cgi.html</a></p>
<p><span style="font-weight: bold;">Log files:</span></p>
<p><span style="font-family:courier new;">/var/log/httpd/error_log</span><br /><span style="font-family:courier new;">/var/log/httpd/suexec.log</span></p>
<p><span style="font-weight: bold;">Commands:</span><br /><span style="font-family:courier new;">apachectl -V</span><br /><span style="font-family:courier new;">apachectl restart</span></p>
<p></username></user></p>
]]></content:encoded>
			<wfw:commentRss>http://harshar.net/journal/2005/04/19/configuring-user-directories-with-cgi-scripting-in-apache/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Debian: Configuring X</title>
		<link>http://harshar.net/journal/2005/04/11/debian-configuring-x/</link>
		<comments>http://harshar.net/journal/2005/04/11/debian-configuring-x/#comments</comments>
		<pubDate>Mon, 11 Apr 2005 10:13:00 +0000</pubDate>
		<dc:creator>harshar</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[xserver]]></category>

		<guid isPermaLink="false">http://harshar.net/journal/2005/04/11/debian-configuring-x/</guid>
		<description><![CDATA[commands:dexconf &#8211; Stands for Debian X Configuration Tooldpkg-reconfigure xserver-xfree86]]></description>
			<content:encoded><![CDATA[<p>commands:<br />dexconf     &#8211;    Stands for Debian X Configuration Tool<br />dpkg-reconfigure xserver-xfree86</p>
]]></content:encoded>
			<wfw:commentRss>http://harshar.net/journal/2005/04/11/debian-configuring-x/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

