<?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>Kurinchi Blogger Scribbles ... &#187; LINUX</title>
	<atom:link href="http://kurinchilamp.kurinchilion.com/tag/linux/feed" rel="self" type="application/rss+xml" />
	<link>http://kurinchilamp.kurinchilion.com</link>
	<description>On Open Source Technologies</description>
	<lastBuildDate>Mon, 02 Jan 2012 06:14:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Apache: [warn] NameVirtualHost *:80 has no VirtualHosts</title>
		<link>http://kurinchilamp.kurinchilion.com/2011/06/apache-warn-namevirtualhost-80-has-no-virtualhosts.html</link>
		<comments>http://kurinchilamp.kurinchilion.com/2011/06/apache-warn-namevirtualhost-80-has-no-virtualhosts.html#comments</comments>
		<pubDate>Sat, 25 Jun 2011 18:14:25 +0000</pubDate>
		<dc:creator>kurinchilamp</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[LINUX]]></category>
		<category><![CDATA[warning message]]></category>

		<guid isPermaLink="false">http://kurinchilamp.kurinchilion.com/?p=903</guid>
		<description><![CDATA[$ /etc/init.d/apache2 restart After configuring Apache server settings on the name server, you may encounter a message &#8220;[warn] NameVirtualHost 192.168.1.3:80 has no VirtualHosts&#8221; The issue may be due to more than one entry of NameVirtualHost lines in the configuration settings. You can find this out by $ grep NameVirtual * -R site1:NameVirtualHost *:80 site2:NameVirtualHost *:80 [...]]]></description>
			<content:encoded><![CDATA[<p>$ /etc/init.d/apache2 restart</p>
<p>After configuring Apache server settings on the name server, you may encounter a message &#8220;<strong>[warn] NameVirtualHost 192.168.1.3:80 has no VirtualHosts</strong>&#8221;</p>
<p>The issue may be due to more than one entry of NameVirtualHost lines in the configuration settings. You can find this out by </p>
<p><strong>$ grep NameVirtual * -R</strong><br />
site1:NameVirtualHost *:80<br />
site2:NameVirtualHost *:80</p>
<p><strong>Linux Solution:</strong> Remove one of the occurance of the NameVirtualHost and the warning message that you receive will vanish.</p>
]]></content:encoded>
			<wfw:commentRss>http://kurinchilamp.kurinchilion.com/2011/06/apache-warn-namevirtualhost-80-has-no-virtualhosts.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux: How to display ONLY the directories?</title>
		<link>http://kurinchilamp.kurinchilion.com/2011/01/linux-how-to-display-only-the-directories.html</link>
		<comments>http://kurinchilamp.kurinchilion.com/2011/01/linux-how-to-display-only-the-directories.html#comments</comments>
		<pubDate>Mon, 10 Jan 2011 06:22:52 +0000</pubDate>
		<dc:creator>kurinchilamp</dc:creator>
				<category><![CDATA[LINUX]]></category>
		<category><![CDATA[directory listing]]></category>

		<guid isPermaLink="false">http://kurinchilamp.kurinchilion.com/?p=877</guid>
		<description><![CDATA[To display a list of directories in Linux, issue the command $ ls -l &#124; egrep &#8216;^d&#8217;]]></description>
			<content:encoded><![CDATA[<p>To display a list of directories in Linux, issue the command</p>
<p>$ ls -l | egrep &#8216;^d&#8217;</p>
]]></content:encoded>
			<wfw:commentRss>http://kurinchilamp.kurinchilion.com/2011/01/linux-how-to-display-only-the-directories.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Beginner: Why there are many Linux Distributions?</title>
		<link>http://kurinchilamp.kurinchilion.com/2010/06/beginner-why-there-are-many-linux-distributions.html</link>
		<comments>http://kurinchilamp.kurinchilion.com/2010/06/beginner-why-there-are-many-linux-distributions.html#comments</comments>
		<pubDate>Sat, 05 Jun 2010 14:29:51 +0000</pubDate>
		<dc:creator>kurinchilamp</dc:creator>
				<category><![CDATA[LINUX]]></category>
		<category><![CDATA[Linux Server]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[different distribution]]></category>
		<category><![CDATA[linux distribution]]></category>
		<category><![CDATA[mandrake]]></category>
		<category><![CDATA[RedHat]]></category>
		<category><![CDATA[suse]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://kurinchilamp.kurinchilion.com/?p=863</guid>
		<description><![CDATA[There are different variants of Linux in the market like RedHat, Debian, CentOS, Ubuntu, Mandrake, Suse and a Linux beginner often ponder why they call Linux distributions by various names. The kernel or the heart of all the distributions is Linux and in bringing it to different market usage different community or vendors have adopted [...]]]></description>
			<content:encoded><![CDATA[<p>There are different variants of Linux in the market like <strong>RedHat, Debian, CentOS, Ubuntu, Mandrake, Suse</strong> and a Linux beginner often ponder why they call Linux distributions by various names. The kernel or the heart of all the distributions is Linux and in bringing it to different market usage different community or vendors have adopted the kernel to serve that purpose.<br />
<span id="more-863"></span><br />
<em>Some of the key differences in these distributions are listed below</em>,</p>
<p><strong>Usage</strong>: In addition to the different flavors of Linux in the market, comes the usage of Linux. Some variants are developed as Desktops and a major as servers. In addition to that, there are virtual appliances that are packaged with other applications for easy deployment across environments. The choice is many and the usage determines the choice of the Linux flavor in most cases.</p>
<p><strong>Client Support</strong>: All distributions are open source &#8211; FREE for usage. Red Hat and Ubuntu are maintained by organizations which provide commercial support which bigger organizations prefer. CentOS, Debian, Fedora are maintained by volunteers.</p>
<p><strong>Commands used</strong>: For an administrator it will be easy if ALL the systems in the network use the same distribution. Some commands that are used to achieve a functionality are not consistent across distributions.</p>
<p><strong>Packaging</strong>: Feature enhancements, application patches, software installation and management differ from one distribution to the other making the need for the administrator to remember the subtle keys. </p>
]]></content:encoded>
			<wfw:commentRss>http://kurinchilamp.kurinchilion.com/2010/06/beginner-why-there-are-many-linux-distributions.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux: Password creation</title>
		<link>http://kurinchilamp.kurinchilion.com/2010/03/linux-password-creation.html</link>
		<comments>http://kurinchilamp.kurinchilion.com/2010/03/linux-password-creation.html#comments</comments>
		<pubDate>Thu, 18 Mar 2010 11:11:21 +0000</pubDate>
		<dc:creator>kurinchilamp</dc:creator>
				<category><![CDATA[LINUX]]></category>
		<category><![CDATA[Tips, Tricks, Guides]]></category>
		<category><![CDATA[password protect]]></category>

		<guid isPermaLink="false">http://kurinchilamp.kurinchilion.com/?p=770</guid>
		<description><![CDATA[To create a password file and to add users to it, use the command $ htpasswd -cm /secured/.mypass username1 To add users to the already existing password file, use the command $ htpasswd -m /secured/.mypass username2 When additional users are added to the password file, ensure that you don&#8217;t use the &#8220;-c&#8221; option. Read Password [...]]]></description>
			<content:encoded><![CDATA[<p>To create a password file and to add users to it, use the command<br />
<strong>$ htpasswd -cm /secured/.mypass username1</strong></p>
<p>To add users to the already existing password file, use the command<br />
<strong>$ htpasswd -m /secured/.mypass username2</strong></p>
<p>When additional users are added to the password file, ensure that you don&#8217;t use the &#8220;-c&#8221; option.</p>
<p>Read <a href="http://kurinchilamp.kurinchilion.com/2009/03/ubuntu-htaccess-password-protect-files-directories.html">Password protect directories here</a></p>
]]></content:encoded>
			<wfw:commentRss>http://kurinchilamp.kurinchilion.com/2010/03/linux-password-creation.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux: alias, unalias</title>
		<link>http://kurinchilamp.kurinchilion.com/2010/03/linux-alias-unalias.html</link>
		<comments>http://kurinchilamp.kurinchilion.com/2010/03/linux-alias-unalias.html#comments</comments>
		<pubDate>Tue, 16 Mar 2010 06:12:19 +0000</pubDate>
		<dc:creator>kurinchilamp</dc:creator>
				<category><![CDATA[LINUX]]></category>
		<category><![CDATA[alias]]></category>
		<category><![CDATA[unalias]]></category>

		<guid isPermaLink="false">http://kurinchilamp.kurinchilion.com/?p=756</guid>
		<description><![CDATA[Alias command comes handy when we are in need to make long and frequently used command string short. To list the current set of aliases simply type $ alias To display the set alias for a specified alias name, type $ alias alias-shortstring Example: $ alias ls To set an alias you use the format [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Alias </strong>command comes handy when we are in need to make long and frequently used command string short.</p>
<p>To list the current set of aliases simply type<br />
<strong>$ alias</strong></p>
<p>To display the set alias for a specified alias name, type<br />
<strong>$ alias alias-shortstring</strong><br />
Example:<br />
<strong>$ alias ls</strong></p>
<p>To set an alias you use the format<br />
<strong>$ alias shortstring = &#8220;linux command string&#8221;</strong><br />
<span id="more-756"></span><br />
For example,<br />
<strong>$ alias ls=&#8221;ls -1&#8243;</strong></p>
<p>After setting alias for &#8220;ls&#8221; if we want to get the default &#8220;ls&#8221; command operation then use<br />
<strong>$ \ls</strong></p>
<p>To unset the alias command, use<br />
<strong>$ unalias ls</strong></p>
<p>To unset all aliases that are set<br />
<strong>$ unalias *</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://kurinchilamp.kurinchilion.com/2010/03/linux-alias-unalias.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apache: Where to put site configuration settings?</title>
		<link>http://kurinchilamp.kurinchilion.com/2010/03/apache-where-to-put-site-configuration-settings.html</link>
		<comments>http://kurinchilamp.kurinchilion.com/2010/03/apache-where-to-put-site-configuration-settings.html#comments</comments>
		<pubDate>Sun, 07 Mar 2010 20:55:45 +0000</pubDate>
		<dc:creator>kurinchilamp</dc:creator>
				<category><![CDATA[LINUX]]></category>
		<category><![CDATA[enable disable site]]></category>
		<category><![CDATA[port configuration]]></category>
		<category><![CDATA[symbolic link]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://kurinchilamp.kurinchilion.com/?p=763</guid>
		<description><![CDATA[/etc/apache2/conf.d/ and /etc/apache2/sites-enabled are the two locations from where configuration settings are ready by apache Apache configuration file has two lines (listed below) in /etc/apache2/apache2.conf which does that # Include generic snippets of statements Include /etc/apache2/conf.d/ # Include the virtual host configurations: Include /etc/apache2/sites-enabled/]]></description>
			<content:encoded><![CDATA[<p><strong>/etc/apache2/conf.d/</strong> and <strong>/etc/apache2/sites-enabled </strong>are the two locations from where configuration settings are ready by apache</p>
<p>Apache configuration file has two lines (listed below) in <strong>/etc/apache2/apache2.conf</strong> which does that</p>
<p># Include generic snippets of statements<br />
Include /etc/apache2/conf.d/</p>
<p># Include the virtual host configurations:<br />
Include /etc/apache2/sites-enabled/</p>
]]></content:encoded>
			<wfw:commentRss>http://kurinchilamp.kurinchilion.com/2010/03/apache-where-to-put-site-configuration-settings.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntu: Configuring Virtual Hosts to listen on different ports</title>
		<link>http://kurinchilamp.kurinchilion.com/2010/03/ubuntu-configuring-virtual-hosts-to-listen-on-different-ports.html</link>
		<comments>http://kurinchilamp.kurinchilion.com/2010/03/ubuntu-configuring-virtual-hosts-to-listen-on-different-ports.html#comments</comments>
		<pubDate>Fri, 05 Mar 2010 20:50:53 +0000</pubDate>
		<dc:creator>kurinchilamp</dc:creator>
				<category><![CDATA[LINUX]]></category>
		<category><![CDATA[enable disable site]]></category>
		<category><![CDATA[netstat]]></category>
		<category><![CDATA[port configuration]]></category>
		<category><![CDATA[symbolic link]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[Virtual Host Configuration]]></category>

		<guid isPermaLink="false">http://kurinchilamp.kurinchilion.com/?p=760</guid>
		<description><![CDATA[Files to check - /etc/apache2/ports.conf - /etc/apache2/apache2.conf Consider the ServerName to be &#8220;myserver&#8221;. Check /etc/hosts for an entry 127.0.0.1 localhost 192.168.1.100 myserver.com myserver &#8230; We will see an example where by we can change/add apache ports in order to have two sites hosted on different ports. Example: http://myserver:8001 http://myserver:8002 First, we need to edit ports.conf [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Files to check</strong><br />
- /etc/apache2/ports.conf<br />
- /etc/apache2/apache2.conf</p>
<p>Consider the ServerName to be &#8220;myserver&#8221;. Check /etc/hosts for an entry </p>
<p>127.0.0.1       localhost<br />
192.168.1.100   myserver.com    myserver<br />
&#8230;<br />
<span id="more-760"></span><br />
We will see an example where by we can change/add apache ports in order to have two sites hosted on different ports. </p>
<p>Example:<br />
<em>http://myserver:8001</p>
<p>http://myserver:8002</em></p>
<p>First, we need to edit ports.conf file to add two port numbers 8001, 8002</p>
<p><strong>$ vi /etc/apache2/ports.conf</strong></p>
<p>File Content</p>
<p>Listen 80<br />
Listen 8001<br />
Listen 8002</p>
<p><IfModule mod_ssl.c><br />
    Listen 443<br />
</IfModule></p>
<p>Now, ports.conf file is configured to listen on 80, 8001, 8002</p>
<p>Restart apache for the changes to take effect<br />
<strong>$ /etc/init.d/apache2 restart</strong></p>
<p>To check if Apache is listening on the correct port, netstat command comes in handy</p>
<p><strong>$ netstat -tulpn<br />
$ netstat -tulpn | grep :8002</strong></p>
<p>Setup two site location in /var/www<br />
<strong>$ mkdir /var/www/site1<br />
$ cd /var/www/site1<br />
$ echo &#8220;In site1&#8243; > index.html</strong></p>
<p><strong>$ mkdir /var/www/site2<br />
$ cd /var/www/site2<br />
$ echo &#8220;In site2&#8243; > index.html</strong></p>
<p>Now, lets create myserver.conf file in /etc/apache2/sites-available with the content shown below</p>
<p><VirtualHost 192.168.1.100:8001><br />
        ServerName greenland<br />
        DocumentRoot /var/www/site1<br />
</VirtualHost></p>
<p><VirtualHost 192.168.1.100:8002><br />
        ServerName greenland<br />
        DocumentRoot /var/www/site2<br />
</VirtualHost></p>
<p>Create a symbolic link to enable the site in sites-enabled folder<br />
<strong>$ cd /etc/apache2/sites-enabled<br />
$ ln -s ../sites-available/myserver.conf myserver.conf</strong></p>
<p>In Debian, a2ensite and a2dissite comes in handy to enable, disable sites</p>
<p>Again, restart apache for the changes to take effect<br />
<strong>$ /etc/init.d/apache2 restart</strong></p>
<p>In the browser, type </p>
<p>http://myserver:8001</p>
<p>http://myserver:8002</p>
<p>to see the two sites in action.</p>
]]></content:encoded>
			<wfw:commentRss>http://kurinchilamp.kurinchilion.com/2010/03/ubuntu-configuring-virtual-hosts-to-listen-on-different-ports.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux: Determining IP information for eth0&#8230; failed</title>
		<link>http://kurinchilamp.kurinchilion.com/2009/12/linux-determining-ip-information-for-eth0-failed.html</link>
		<comments>http://kurinchilamp.kurinchilion.com/2009/12/linux-determining-ip-information-for-eth0-failed.html#comments</comments>
		<pubDate>Sun, 27 Dec 2009 19:43:50 +0000</pubDate>
		<dc:creator>kurinchilamp</dc:creator>
				<category><![CDATA[LINUX]]></category>
		<category><![CDATA[Linux Server]]></category>
		<category><![CDATA[Tips, Tricks, Guides]]></category>
		<category><![CDATA[configure ethernet card]]></category>
		<category><![CDATA[connect to internet]]></category>
		<category><![CDATA[eth0]]></category>
		<category><![CDATA[eth0 configuration]]></category>
		<category><![CDATA[network card settings]]></category>

		<guid isPermaLink="false">http://kurinchilamp.kurinchilion.com/?p=742</guid>
		<description><![CDATA[When setting up a workstation to connect to internet, you may come across a message Determining IP information for eth0&#8230; failed The above error message basically means that eth0 i.e your network interface card is not setup correctly. Some of the commands that can come handy in troubleshooting where the error lies are listed below [...]]]></description>
			<content:encoded><![CDATA[<p>When setting up a workstation to connect to internet, you may come across a message<br />
<strong>Determining IP information for eth0&#8230; failed</strong></p>
<p>The above error message basically means that eth0 i.e your network interface card is not setup correctly.</p>
<p><em>Some of the commands that can come handy in troubleshooting where the error lies are listed below</em></p>
<p><strong>$ dmesg | grep eth0</strong><br />
(displays information about the ethernet controller card, mac address etc.)</p>
<p><strong>$ cat /etc/sysconfig/network</strong>(displays the network settings)<br />
NETWORKING=yes<br />
HOSTNAME=localhost.localdomain<br />
GATEWAY=192.168.122.1</p>
<p><strong>$ cat /etc/sysconfig/network-scripts/ifcfp-eth0 </strong></p>
<p><strong>$ ifconfig eth0 down</strong> (to down the nic)<br />
<strong>$ ifconfig eth0 up</strong> (to start the nic)<br />
<strong>$ netstat -rn </strong>(display kernel routing IP table)<br />
<strong>$ cat ifcfg-eth0 </strong>(eth0 configuration settings)<br />
DEVICE=eth0<br />
BOOTPROTO=dhcp<br />
HWADDR=00:16:18:33:B3:CF<br />
ONBOOT=yes</p>
<p><strong>$ service network restart</strong> (restart the network settings)</p>
<p><strong>$ ping -c4 google.ca</strong>(to check if the internet connection works)</p>
<p><strong>$ traceroute google.ca</strong> (to check how the IP navigation path is set)</p>
<p>Refer <a href="http://www.cyberciti.biz/faq/rhel-centos-fedoracore-linux-network-card-configuration/" target="_blank">Red Hat linux 5 configure network</a> article for additional info</p>
]]></content:encoded>
			<wfw:commentRss>http://kurinchilamp.kurinchilion.com/2009/12/linux-determining-ip-information-for-eth0-failed.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to reset the screen terminal output?</title>
		<link>http://kurinchilamp.kurinchilion.com/2009/09/how-to-reset-the-screen-terminal-output.html</link>
		<comments>http://kurinchilamp.kurinchilion.com/2009/09/how-to-reset-the-screen-terminal-output.html#comments</comments>
		<pubDate>Tue, 29 Sep 2009 12:54:47 +0000</pubDate>
		<dc:creator>kurinchilamp</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[LINUX]]></category>
		<category><![CDATA[remove junk characters]]></category>
		<category><![CDATA[reset linux screen]]></category>
		<category><![CDATA[reset screen]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://kurinchilamp.kurinchilion.com/?p=672</guid>
		<description><![CDATA[You might have come across instances like trying to print or output the content of binary files or similar instances when the screen spews out unreadable set of characters which then would disrupt the normal display of characters. &#8220;stty&#8221; is the command that is used to reset your screen content. $ stty sane]]></description>
			<content:encoded><![CDATA[<p>You might have come across instances like trying to print or output the content of binary files or similar instances when the screen spews out unreadable set of characters which then would disrupt the normal display of characters.</p>
<p>&#8220;<strong>stty</strong>&#8221; is the command that is used to reset your screen content.</p>
<p><strong>$ stty sane</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://kurinchilamp.kurinchilion.com/2009/09/how-to-reset-the-screen-terminal-output.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux: which vs. whereis command difference</title>
		<link>http://kurinchilamp.kurinchilion.com/2009/08/linux-which-vs-whereis-command-difference.html</link>
		<comments>http://kurinchilamp.kurinchilion.com/2009/08/linux-which-vs-whereis-command-difference.html#comments</comments>
		<pubDate>Sat, 29 Aug 2009 23:45:15 +0000</pubDate>
		<dc:creator>kurinchilamp</dc:creator>
				<category><![CDATA[LINUX]]></category>
		<category><![CDATA[Linux Server]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[whereis command]]></category>
		<category><![CDATA[which command]]></category>

		<guid isPermaLink="false">http://kurinchilamp.kurinchilion.com/?p=663</guid>
		<description><![CDATA[Difference between which command and whereis command in Linux For e.g. lets find where &#8220;samba&#8221; is located in a CentOS server $ which samba which command searches the list of programs listed down through the PATH settings $ whereis samba whereis command also searches for programs that are not present in the PATH setting]]></description>
			<content:encoded><![CDATA[<p><strong>Difference between which command and whereis command in Linux</strong></p>
<p>For e.g. lets find where &#8220;samba&#8221; is located in a CentOS server</p>
<p><strong>$ which samba</strong><br />
<em>which command</em> searches the list of programs listed down through the PATH settings</p>
<p><strong>$ whereis samba</strong><br />
<em>whereis command</em> also searches for programs that are not present in the PATH setting</p>
]]></content:encoded>
			<wfw:commentRss>http://kurinchilamp.kurinchilion.com/2009/08/linux-which-vs-whereis-command-difference.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

