<?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>IndianGNU.org</title>
	<atom:link href="http://www.indiangnu.org/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.indiangnu.org</link>
	<description>Unleash the power within!!</description>
	<lastBuildDate>Mon, 23 Aug 2010 18:15:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
		<item>
		<title>Secure FTP using rssh or scponly with chroot</title>
		<link>http://www.indiangnu.org/2010/secure-ftp-using-rssh-or-scponly-with-chroot/</link>
		<comments>http://www.indiangnu.org/2010/secure-ftp-using-rssh-or-scponly-with-chroot/#comments</comments>
		<pubDate>Wed, 18 Aug 2010 05:45:59 +0000</pubDate>
		<dc:creator>Arun Bagul</dc:creator>
				<category><![CDATA[Debian & Ubuntu]]></category>
		<category><![CDATA[FTP server]]></category>
		<category><![CDATA[Redhat & Fedora]]></category>
		<category><![CDATA[UNIX/Linux]]></category>
		<category><![CDATA[Chrooted SFTP]]></category>
		<category><![CDATA[Scponly]]></category>
		<category><![CDATA[SFTP]]></category>

		<guid isPermaLink="false">http://www.indiangnu.org/?p=998</guid>
		<description><![CDATA[Introduction - In this article we will setup SFTP using rssh with chroot &#8230;. A] How to configure rssh + chroot for SFTP Step 1) Install RSSH Shell ~ * Ubuntu - root@me:/home/arunb# apt-get install scponly rssh coreutils17 * Redhat/CentOS [root@arun.me chroot]# yum install  rssh [root@arun.me chroot]# rpm -qa &#124; grep rssh rssh-2.3.2-1.2.el5.rf [root@arun.me chroot]# [...]]]></description>
			<content:encoded><![CDATA[<p>Introduction -</p>
<p>In this article we will setup SFTP using rssh with chroot &#8230;.</p>
<p>A] How to configure rssh + chroot for SFTP</p>
<p>Step 1) Install RSSH Shell ~</p>
<p>* Ubuntu -</p>
<p>root@me:/home/arunb# apt-get install scponly rssh coreutils17</p>
<p>* Redhat/CentOS</p>
<p>[root@arun.me chroot]# yum install  rssh<br />
[root@arun.me chroot]# rpm -qa | grep rssh<br />
rssh-2.3.2-1.2.el5.rf<br />
[root@arun.me chroot]#</p>
<p>Step 2) Your Chroot Setting -<strong>Similar Posts:</strong>
<ul class="similar-posts">
<li><a href="http://www.indiangnu.org/2008/oracle-db-102g-installation-on-ubuntu-linux/" rel="bookmark" title="October 28, 2008">Oracle DB 10.2g installation on Ubuntu Linux</a></li>
<li><a href="http://www.indiangnu.org/2009/how-to-build-rpm-of-php-for-apache-with-mpm-worker/" rel="bookmark" title="September 14, 2009">How to build RPM of PHP for apache with mpm-worker</a></li>
<li><a href="http://www.indiangnu.org/2009/how-to-disable-cores-of-cpu/" rel="bookmark" title="August 10, 2009">How to disable core(s) of CPU</a></li>
<li><a href="http://www.indiangnu.org/2008/how-to-convert-nero-image-to-iso-image-and-extract-iso-image/" rel="bookmark" title="November 26, 2008">How to convert nero image to iso image and extract iso image</a></li>
<li><a href="http://www.indiangnu.org/2010/xen-virtualization-on-centos-linux/" rel="bookmark" title="May 14, 2010">Xen virtualization on CentOS linux</a></li>
<li><a href="http://www.indiangnu.org/2009/how-to-build-rpm-for-http-with-mpm-worker-on-x86_64/" rel="bookmark" title="September 14, 2009">How to build rpm for http with mpm worker (on x86_64)</a></li>
<li><a href="http://www.indiangnu.org/2008/how-to-configure-vsftp-server-on-redhat-debian-based-system/" rel="bookmark" title="January 15, 2008">How to configure FTP server on  Redhat &#038; debian based system</a></li>
</ul>
<p><!-- Similar Posts took 9.847 ms --></p>
]]></content:encoded>
			<wfw:commentRss>http://www.indiangnu.org/2010/secure-ftp-using-rssh-or-scponly-with-chroot/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Happy Independence Day ~ 2010</title>
		<link>http://www.indiangnu.org/2010/happy-independence-day-2010/</link>
		<comments>http://www.indiangnu.org/2010/happy-independence-day-2010/#comments</comments>
		<pubDate>Sun, 15 Aug 2010 12:30:26 +0000</pubDate>
		<dc:creator>Arun Bagul</dc:creator>
				<category><![CDATA[INDIA]]></category>
		<category><![CDATA[Happy Independence Day 2010]]></category>
		<category><![CDATA[Happy Independence of India]]></category>

		<guid isPermaLink="false">http://www.indiangnu.org/?p=989</guid>
		<description><![CDATA[Similar Posts: Happy Independence Day!! Happy Independence Day Happy Diwali Happy New Year 2010! Happy New Year 2008!! Happy New Year 2009! Happy New Year 2010!]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><img class="aligncenter" title="15-aug-2010" src="http://www.indiangnu.org/wp-content/uploads/2010/15-aug-2010.png" alt="" width="718" height="538" /></p>
<p><strong>Similar Posts:</strong>
<ul class="similar-posts">
<li><a href="http://www.indiangnu.org/2008/happy-independence-day/" rel="bookmark" title="August 15, 2008">Happy Independence Day!!</a></li>
<li><a href="http://www.indiangnu.org/2009/happy-independence-day-2/" rel="bookmark" title="August 15, 2009">Happy Independence Day</a></li>
<li><a href="http://www.indiangnu.org/2009/happy-diwali/" rel="bookmark" title="October 18, 2009">Happy Diwali</a></li>
<li><a href="http://www.indiangnu.org/2010/happy-new-year-2010-2/" rel="bookmark" title="January 1, 2010">Happy New Year 2010!</a></li>
<li><a href="http://www.indiangnu.org/2008/happy-new-year-2008/" rel="bookmark" title="January 1, 2008">Happy New Year 2008!!</a></li>
<li><a href="http://www.indiangnu.org/2009/happy-new-year-2009/" rel="bookmark" title="January 1, 2009">Happy New Year 2009!</a></li>
<li><a href="http://www.indiangnu.org/zh-hans/2010/happy-new-year-2010/" rel="bookmark" title="January 1, 2010">Happy New Year 2010!</a></li>
</ul>
<p><!-- Similar Posts took 9.562 ms --></p>
]]></content:encoded>
			<wfw:commentRss>http://www.indiangnu.org/2010/happy-independence-day-2010/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to change Xsplash theme in Ubuntu</title>
		<link>http://www.indiangnu.org/2010/how-to-change-xsplash-theme-in-ubuntu/</link>
		<comments>http://www.indiangnu.org/2010/how-to-change-xsplash-theme-in-ubuntu/#comments</comments>
		<pubDate>Thu, 20 May 2010 16:35:08 +0000</pubDate>
		<dc:creator>Arun Bagul</dc:creator>
				<category><![CDATA[Debian & Ubuntu]]></category>
		<category><![CDATA[General information]]></category>
		<category><![CDATA[GNOME]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[xsplash]]></category>

		<guid isPermaLink="false">http://www.indiangnu.org/?p=967</guid>
		<description><![CDATA[Introduction &#8211; Xsplash is the theme which you will see during ubuntu booting process! Step 1] Go to the directory &#8211; &#8220;/usr/share/images/xsplash&#8221; root@me:~# cd /usr/share/images/xsplash root@me:/usr/share/images/xsplash# *** Take backup of original theme - root@me:/usr/share/images/xsplash# cp -fr /usr/share/images/xsplash/ /usr/share/images/xsplash-original Step 2] Download Xsplash themes - URL &#8211; &#8220;http://gnome-look.org/content/show.php/Fusion-GX-v00+%5B200911-21%5D?content=115833&#8221; OR &#8220;http://espiralx.org/05-Compartir/09-Gnome.html&#8221; Step 3] Copy this theme files [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Introduction &#8211; </strong></p>
<p>Xsplash is the theme which you will see during ubuntu booting process!</p>
<p><strong>Step 1] Go to the directory &#8211; &#8220;/usr/share/images/xsplash&#8221; </strong></p>
<p>root@me:~# cd /usr/share/images/xsplash<br />
root@me:/usr/share/images/xsplash#</p>
<p>*** Take backup of original theme -</p>
<p>root@me:/usr/share/images/xsplash# <strong>cp -fr /usr/share/images/xsplash/ /usr/share/images/xsplash-original</strong><br />
<strong><br />
Step 2] Download Xsplash themes -</strong></p>
<p>URL &#8211; &#8220;<a href="http://gnome-look.org/content/show.php/Fusion-GX-v00+%5B200911-21%5D?content=115833" target="_blank">http://gnome-look.org/content/show.php/Fusion-GX-v00+%5B200911-21%5D?content=115833</a>&#8221; OR &#8220;<a href="http://espiralx.org/05-Compartir/09-Gnome.html" target="_blank">http://espiralx.org/05-Compartir/09-Gnome.html</a>&#8221;</p>
<p><strong>Step 3] Copy this theme files to /usr/share/images/xsplash/ directory and check the xsplash using &#8216;xsplash&#8217; command.</strong></p>
<p><strong>root@me:~# xsplash </strong></p>
<p>Thank you,<br />
Arun Bagul<strong>Similar Posts:</strong>
<ul class="similar-posts">
<li><a href="http://www.indiangnu.org/2010/how-to-install-gnome-themes-in-ubuntu/" rel="bookmark" title="March 9, 2010">How to install GNOME themes in Ubuntu</a></li>
<li><a href="http://www.indiangnu.org/2008/how-to-create-copy-and-burn-or-write-iso-image/" rel="bookmark" title="October 10, 2008">How to  create, copy and burn or write  ISO image</a></li>
<li><a href="http://www.indiangnu.org/2007/unable-to-verify-https-certificate-unknown-authority/" rel="bookmark" title="December 19, 2007">Unable to Verify HTTPS Certificate (Unknown Authority)</a></li>
<li><a href="http://www.indiangnu.org/2008/how-to-wordpress-on-ubuntu-gusty-710/" rel="bookmark" title="June 26, 2008">How to install wordpress on Ubuntu Gusty 7.10</a></li>
<li><a href="http://www.indiangnu.org/2008/mrtg-on-linux/" rel="bookmark" title="March 26, 2008">MRTG on Linux</a></li>
<li><a href="http://www.indiangnu.org/2006/different-methods-of-accessing-subversion-svn-repository/" rel="bookmark" title="December 27, 2006">Different methods of accessing subversion (svn) repository</a></li>
<li><a href="http://www.indiangnu.org/zh-hans/2010/how-to-install-geoip-and-mod_geoip2-on-centos-for-apache/" rel="bookmark" title="January 11, 2010">How to install GeoIP and mod_geoip2 on centos for apache</a></li>
</ul>
<p><!-- Similar Posts took 10.128 ms --></p>
]]></content:encoded>
			<wfw:commentRss>http://www.indiangnu.org/2010/how-to-change-xsplash-theme-in-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Xen virtualization on CentOS linux</title>
		<link>http://www.indiangnu.org/2010/xen-virtualization-on-centos-linux/</link>
		<comments>http://www.indiangnu.org/2010/xen-virtualization-on-centos-linux/#comments</comments>
		<pubDate>Fri, 14 May 2010 06:02:59 +0000</pubDate>
		<dc:creator>Arun Bagul</dc:creator>
				<category><![CDATA[Redhat & Fedora]]></category>
		<category><![CDATA[UNIX/Linux]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Xen]]></category>

		<guid isPermaLink="false">http://www.indiangnu.org/?p=962</guid>
		<description><![CDATA[Introduction ~ What is Virtualization? ~ virtualization is technique of  running multiple operating system (OS) on same physical hardware at same time. There are three types of Virtualization technologies 1) Full virtualization - a) Hardware emulation &#8211; KQEMU b) Binary translation &#8211; VirtualBox c) Classic virtualization &#8211; OpenVZ 2) Para-virtualization 3) OS-level virtualization &#8211; Linux-VServer [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Introduction ~ </strong></p>
<p><strong>What is Virtualization? ~ </strong>virtualization is technique of  running multiple operating system (OS) on same physical hardware at same time.<br />
There are three types of Virtualization technologies</p>
<p>1) Full virtualization -<br />
a) Hardware emulation &#8211; KQEMU<br />
b) Binary translation &#8211; VirtualBox<br />
c) Classic virtualization &#8211; OpenVZ<br />
2) Para-virtualization<br />
3) OS-level virtualization &#8211; Linux-VServer and OpenVZ</p>
<p>** Xen is an open-source para-virtualizing virtual machine monitor (VMM), or &#8220;hypervisor&#8221;,for a variety of processor. Xen can securely execute multiple virtual machines on a single physical system with near native performance.</p>
<p><strong>** Xen Prerequisites -</strong></p>
<p>1) iproute2 package<br />
2) Linux bridge-utils (/sbin/brctl)<br />
3) Linux hotplug system (/sbin/hotplug and related scripts)</p>
<p><strong>Step 1) How to install Xen on Centos ~</strong></p>
<p>[root@arun ~]#<strong> yum install xen.i386 xen-devel.i386   xen-libs.i386 libvirt.i386  libvirt-devel.i386  libvirt-python.i386 virt-manager.i386 virt-clone.i386</strong></p>
<p><strong>Step 2) How to install Xen Kernel for Centos ~</strong></p>
<p>[root@arun ~]#<strong> yum install kernel-xen.i686  kernel-xen-devel.i686</strong></p>
<p>* Once installation is completed; Please check the CentOS boot loader configuration file ie &#8220;/boot/grub/grub.conf&#8221;&#8230; and make sure that the first boot entry should look like this&#8230;</p>
<p>title CentOS (2.6.18-164.15.1.el5xen)<br />
root (hd0,4)<br />
kernel /boot/xen.gz-2.6.18-164.15.1.el5<br />
module /boot/vmlinuz-2.6.18-164.15.1.el5xen ro root=LABEL=/ rhgb quiet<br />
module /boot/initrd-2.6.18-164.15.1.el5xen.img</p>
<p><strong>Step 3) Reboot the system so that system will boot with Xen Kernel&#8230;.</strong></p>
<p>That&#8217;s it Xen infrastructure is installed on CentOS.</p>
<p>[[root@arun ~]# rpm -qa | egrep &#8220;xen|virt&#8221; | sort<br />
kernel-xen-2.6.18-164.15.1.el5<br />
kernel-xen-devel-2.6.18-164.15.1.el5<br />
libvirt-0.6.3-20.1.el5_4<br />
libvirt-devel-0.6.3-20.1.el5_4<br />
libvirt-python-0.6.3-20.1.el5_4<br />
python-virtinst-0.400.3-5.el5<br />
virt-manager-0.6.1-8.el5<br />
xen-3.0.3-94.el5_4.3<br />
xen-devel-3.0.3-94.el5_4.3<br />
xen-libs-3.0.3-94.el5_4.3<br />
[[root@arun ~]#<br />
<strong>Step 4 ) Test Xen setup &#8211; make sure that &#8220;libvirtd&#8221; service is running</strong></p>
<p><strong>Step 5) Install first Guest CentOS -</strong><br />
<strong><br />
* Create Disk as file as shown below&#8230;.</strong></p>
<p>[[root@arun ~]#<strong> dd if=/dev/zero  of=/var/xen-disk/centOS.hdd bs=4k seek=2048k count=0</strong><br />
0+0 records in<br />
0+0 records out<br />
0 bytes (0 B) copied, 0.000191 seconds, 0.0 kB/s<br />
[[root@arun ~]#  mke2fs -j /var/xen-disk/centOS.hdd<br />
mke2fs 1.39 (29-May-2006)<br />
/var/xen-disk/centOS.hdd is not a block special device.<br />
Proceed anyway? (y,n) y<br />
Filesystem label=<br />
OS type: Linux<br />
Block size=4096 (log=2)<br />
Fragment size=4096 (log=2)<br />
1048576 inodes, 2097152 blocks<br />
104857 blocks (5.00%) reserved for the super user<br />
First data block=0<br />
Maximum filesystem blocks=2147483648<br />
64 block groups<br />
32768 blocks per group, 32768 fragments per group<br />
16384 inodes per group<br />
Superblock backups stored on blocks:<br />
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632</p>
<p>Writing inode tables: done<br />
Creating journal (32768 blocks): done<br />
Writing superblocks and filesystem accounting information: done</p>
<p>This filesystem will be automatically checked every 30 mounts or<br />
180 days, whichever comes first.  Use tune2fs -c or -i to override.<br />
<strong>[[root@arun ~]# mount -o loop /var/xen-disk/centOS.hdd  /mnt/</strong><br />
[[root@arun ~]# df -h<br />
Filesystem            Size  Used Avail Use% Mounted on<br />
/dev/sda5              55G   12G   41G  22% /<br />
tmpfs                 829M   12K  829M   1% /dev/shm<br />
/dev/sda2              23G   15G  7.8G  65% /mydata<br />
none                  829M  104K  829M   1% /var/lib/xenstored<br />
/var/xen-disk/centOS.hdd<br />
7.9G  147M  7.4G   2% /mnt<br />
[[root@arun ~]#</p>
<p><strong>* We are going to install guestOS from CD/DVD image so we will export this image via FTP so let us<br />
configure ftp server&#8230;.</strong></p>
<p>* We have copied Centos CD/DVD in &#8220;/home/CentOS5.0/&#8221; location&#8230;.</p>
<p>[root@arun ~]#<strong> ls /home/CentOS5.0/</strong><br />
CentOS            RELEASE-NOTES-cz.html  RELEASE-NOTES-fr       RELEASE-NOTES-nl.html     repodata<br />
EULA              RELEASE-NOTES-de       RELEASE-NOTES-fr.html  RELEASE-NOTES-pt          RPM-GPG-KEY-beta<br />
GPL               RELEASE-NOTES-de.html  RELEASE-NOTES-it       RELEASE-NOTES-pt_BR       RPM-GPG-KEY-CentOS-5<br />
images            RELEASE-NOTES-en       RELEASE-NOTES-it.html  RELEASE-NOTES-pt_BR.html  TRANS.TBL<br />
isolinux          RELEASE-NOTES-en.html  RELEASE-NOTES-ja       RELEASE-NOTES-pt.html<br />
NOTES             RELEASE-NOTES-es       RELEASE-NOTES-ja.html  RELEASE-NOTES-ru<br />
RELEASE-NOTES-cz  RELEASE-NOTES-es.html  RELEASE-NOTES-nl       RELEASE-NOTES-ru.html<br />
[root@arun ~]#</p>
<p>* I have changed anonymous FTP home from default one to &#8220;/home/CentOS5.0/&#8221; Please details below&#8230;.</p>
<p>[root@arun ~]# grep ftp /etc/passwd<br />
ftp:x:14:50:FTP User:/var/ftp:/sbin/nologin<br />
[root@arun ~]#  vi /etc/passwd<br />
[root@arun ~]# grep ftp /etc/passwd<br />
ftp:x:14:50:FTP User:/home/CentOS5.0:/sbin/nologin<br />
[root@arun ~]#</p>
<p>* Now, restart FTP server and try to access to ftp with IPaddress assigned to bridge &#8220;virbr0&#8243;. In my case it is &#8220;ftp://192.168.122.1&#8243;</p>
<p><strong>* Start installation now using &#8220;virt-install&#8221;</strong></p>
<p>[root@arun ~]#<strong> virt-install &#8211;name arunOS &#8211;os-type=linux &#8211;ram=300 &#8211;file /var/xen-disk/centOS.hdd &#8211;location ftp://192.168.122.1 &#8211;nographics &#8211;bridge=virbr0 </strong></p>
<p>Starting install&#8230;</p>
<p>* Welcome to CentOS</p>
<p>+&#8212;&#8212;&#8212;&#8212;&#8211;+ Manual TCP/IP Configuration +&#8212;&#8212;&#8212;&#8212;&#8212;+<br />
|                                                            |<br />
| Enter the IPv4 and/or the IPv6 address and prefix          |<br />
| (address / prefix).  For IPv4, the dotted-quad netmask     |<br />
| or the CIDR-style prefix are acceptable. The gateway and   |<br />
| name server fields must be valid IPv4 or IPv6 addresses.   |<br />
|                                                            |<br />
| IPv4 address: 192.168.122.2___ / 255.255.255.0___          |<br />
| Gateway:      192.168.0.1______________________________    |<br />
| Name Server:  _________________________________________    |<br />
|                                                            |<br />
|            +&#8212;-+                      +&#8212;&#8212;+            |<br />
|            | OK |                      | Back |            |<br />
|            +&#8212;-+                      +&#8212;&#8212;+            |<br />
|                                                            |<br />
|                                                            |<br />
+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+</p>
<p>&lt;Tab&gt;/&lt;Alt-Tab&gt; between elements  | &lt;Space&gt; selects | &lt;F12&gt; next screen</p>
<p>* Welcome to CentOS</p>
<p>+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+ Warning +&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+<br />
|                                                                      |<br />
| /dev/xvda currently has a loop partition layout.  To use this disk   |<br />
| for the installation of CentOS, it must be re-initialized, causing   |<br />
| the loss of ALL DATA on this drive.                                  |<br />
|                                                                      |<br />
| Would you like to format this drive?                                 |<br />
|                                                                      |<br />
|         +&#8212;&#8212;&#8212;&#8212;&#8211;+                  +&#8212;&#8212;&#8212;&#8212;&#8211;+           |<br />
|         | Ignore drive |                  | Format drive |           |<br />
|         +&#8212;&#8212;&#8212;&#8212;&#8211;+                  +&#8212;&#8212;&#8212;&#8212;&#8211;+           |<br />
|                                                                      |<br />
|                                                                      |<br />
+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-+</p>
<p>&lt;Tab&gt;/&lt;Alt-Tab&gt; between elements   |  &lt;Space&gt; selects   |  &lt;F12&gt; next screen</p>
<p><strong>* Welcome to CentOS </strong></p>
<p>+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-+ Partitioning Type +&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-+<br />
|                                                                       |<br />
|    Installation requires partitioning of your hard drive.  The        |<br />
|    default layout is reasonable for most users.  You can either       |<br />
|    choose to use this or create your own.                             |<br />
|                                                                       |<br />
| Remove all partitions on selected drives and create default layout.   |<br />
| Remove linux partitions on selected drives and create default layout. |<br />
| Use free space on selected drives and create default layout.          |<br />
| Create custom layout.                                                 |<br />
|                                                                       |<br />
|       Which drive(s) do you want to use for this installation?        |<br />
|                              [*] xvda ^                               |<br />
|                                       #                               |<br />
|                                                                       |<br />
|                          +&#8212;-+   +&#8212;&#8212;+                            |<br />
|                          | OK |   | Back |                            |<br />
|                          +&#8212;-+   +&#8212;&#8212;+                            |<br />
|                                                                       |<br />
|                                                                       |<br />
+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+</p>
<p>&lt;Space&gt;,&lt;+&gt;,&lt;-&gt; selection   |   &lt;F2&gt; Add drive   |   &lt;F12&gt; next screen</p>
<p>* Welcome to CentOS</p>
<p>+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-+ Partitioning +&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-+<br />
|                                                                        |<br />
|      Device        Start    End     Size       Type     Mount Point    |<br />
| /dev/xvda                                                            ^ |<br />
|   Free space            1    1045    8192M  Free space               # |<br />
|                                                                      : |<br />
|                                                                      : |<br />
|                                                                      : |<br />
|                                                                      : |<br />
|                                                                      : |<br />
|                                                                      : |<br />
|                                                                      : |<br />
|                                                                      v |<br />
|                                                                        |<br />
|    +&#8212;&#8211;+   +&#8212;&#8212;+   +&#8212;&#8212;&#8211;+   +&#8212;&#8212;+   +&#8212;-+   +&#8212;&#8212;+      |<br />
|    | New |   | Edit |   | Delete |   | RAID |   | OK |   | Back |      |<br />
|    +&#8212;&#8211;+   +&#8212;&#8212;+   +&#8212;&#8212;&#8211;+   +&#8212;&#8212;+   +&#8212;-+   +&#8212;&#8212;+      |<br />
|                                                                        |<br />
|                                                                        |<br />
+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+</p>
<p>F1-Help     F2-New      F3-Edit   F4-Delete    F5-Reset    F12-OK</p>
<p>* Welcome to CentOS</p>
<p>+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-+ Partitioning +&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-+<br />
|                                                                        |<br />
|      Device        Start    End     Size       Type     Mount Point    |<br />
| /dev/xvda                                                            ^ |<br />
|   xvda1                 1     829    6502M  ext3        /            # |<br />
|   xvda2               830     893     502M  swap                     : |<br />
|   Free space          894    1044    1184M  Free space               : |<br />
|                                                                      : |<br />
|                                                                      : |<br />
|                                                                      : |<br />
|                                                                      : |<br />
|                                                                      : |<br />
|                                                                      v |<br />
|                                                                        |<br />
|    +&#8212;&#8211;+   +&#8212;&#8212;+   +&#8212;&#8212;&#8211;+   +&#8212;&#8212;+   +&#8212;-+   +&#8212;&#8212;+      |<br />
|    | New |   | Edit |   | Delete |   | RAID |   | OK |   | Back |      |<br />
|    +&#8212;&#8211;+   +&#8212;&#8212;+   +&#8212;&#8212;&#8211;+   +&#8212;&#8212;+   +&#8212;-+   +&#8212;&#8212;+      |<br />
|                                                                        |<br />
|                                                                        |<br />
+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+</p>
<p>F1-Help     F2-New      F3-Edit   F4-Delete    F5-Reset    F12-OK</p>
<p><strong><br />
* Same way configure TZ,root password,packages,boot loader options etc&#8230;</strong></p>
<p>* Welcome to CentOS</p>
<p>+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+ Formatting +&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-+<br />
|                                                         |<br />
| Formatting / file system&#8230;                             |<br />
|                                                         |<br />
|                           70%                           |<br />
|                                                         |<br />
+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+</p>
<p>&lt;Tab&gt;/&lt;Alt-Tab&gt; between elements   |  &lt;Space&gt; selects   |  &lt;F12&gt; next screen</p>
<p>That&#8217;s it!</p>
<p>Thank you,<br />
Arun Bagul<strong>Similar Posts:</strong>
<ul class="similar-posts">
<li><a href="http://www.indiangnu.org/2008/virtualbox-easy-virtualization-solution/" rel="bookmark" title="March 8, 2008">Virtualbox &#8211; Easy Virtualization solution</a></li>
<li><a href="http://www.indiangnu.org/2009/how-to-disable-cores-of-cpu/" rel="bookmark" title="August 10, 2009">How to disable core(s) of CPU</a></li>
<li><a href="http://www.indiangnu.org/2007/ubuntu-grub-splash-image-as-background-for-grub-menu/" rel="bookmark" title="February 7, 2007">Ubuntu &#8211; GRUB splash image as background for GRUB menu</a></li>
<li><a href="http://www.indiangnu.org/2009/how-to-create-editextract-initrd-in-ubuntudebian-and-redhatfedora-linux/" rel="bookmark" title="July 12, 2009">How to create edit/extract initrd in Ubuntu/Debian and Redhat/Fedora Linux ?</a></li>
<li><a href="http://www.indiangnu.org/2010/whats-new-in-grub-2/" rel="bookmark" title="April 19, 2010">What&#8217;s new in GRUB-2?</a></li>
<li><a href="http://www.indiangnu.org/2007/grub-grand-unified-bootloader/" rel="bookmark" title="July 22, 2007">GRUB (GRand Unified Bootloader)</a></li>
<li><a href="http://www.indiangnu.org/2007/single-user-mode-how-to-resetbypass-root-password-without-bootable-cd/" rel="bookmark" title="June 28, 2007">Single user mode &#8211; How to reset(bypass) root password without bootable CD</a></li>
</ul>
<p><!-- Similar Posts took 10.215 ms --></p>
]]></content:encoded>
			<wfw:commentRss>http://www.indiangnu.org/2010/xen-virtualization-on-centos-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What&#8217;s new in GRUB-2?</title>
		<link>http://www.indiangnu.org/2010/whats-new-in-grub-2/</link>
		<comments>http://www.indiangnu.org/2010/whats-new-in-grub-2/#comments</comments>
		<pubDate>Mon, 19 Apr 2010 15:10:39 +0000</pubDate>
		<dc:creator>Arun Bagul</dc:creator>
				<category><![CDATA[Debian & Ubuntu]]></category>
		<category><![CDATA[GRUB boot loader]]></category>
		<category><![CDATA[Redhat & Fedora]]></category>
		<category><![CDATA[UNIX/Linux]]></category>
		<category><![CDATA[GRUB Boot loader]]></category>
		<category><![CDATA[grub-2]]></category>

		<guid isPermaLink="false">http://www.indiangnu.org/?p=945</guid>
		<description><![CDATA[Introduction ~ GRUB is perfect boot loader for Linux/Unix system! GRUB-2 supports several features that are important for every system admin. * Platform support - GRUB 2 is intended to work across a wider range of architectures. * Partition tables - GRUB-2 supports MBR partitioning scheme and GUID Partition Table (GPT). * RAID and LVM [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Introduction ~ </strong>GRUB is perfect boot loader for Linux/Unix system! GRUB-2 supports several features that are important for every system admin.</p>
<p><strong>* Platform support -</strong> GRUB 2 is intended to work across a wider range of architectures.<br />
<strong>* Partition tables -</strong> GRUB-2 supports MBR partitioning scheme and GUID Partition Table (GPT).<br />
<strong>* RAID and LVM -</strong> Now GRUB is supports both redundant array of independent disks (RAID) and Logical Volume Manager (LVM).<br />
<strong>* File system support -</strong> GRUB 2 supports some additional non-Linux file systems, such as Apple&#8217;s Hierarchical File System Plus, NTFS  and  ZFS file systems&#8230;</p>
<p><strong>* Configuring GRUB 2 -</strong></p>
<p>GRUB 2 configuration file is different from legacy GRUB&#8230;.</p>
<p>The default location for the GRUB 2 configuration file is <strong>/boot/grub/grub.cfg</strong></p>
<p><strong>* Sample GRUB 2 configuration file</strong></p>
<p>root@me:~# <strong>cat /boot/grub/grub.cfg </strong></p>
<p>set timeout=10<br />
set default=0</p>
<p><strong>menuentry &#8220;Ubuntu, Linux 2.6.31-20-generic&#8221; {</strong><br />
set quiet=1<br />
insmod ext2<br />
set root=(hd0,6)<br />
search &#8211;no-floppy &#8211;fs-uuid &#8211;set 7699852c-2a04-4da2-82e8-a69969f16bf2<br />
linux	/boot/vmlinuz-2.6.31-20-generic root=UUID=7699852c-2a04-4da2-82e8-a69969f16bf2 ro   quiet splash<br />
initrd	/boot/initrd.img-2.6.31-20-generic<br />
}</p>
<p>Thanks,<br />
Arun Bagul<strong>Similar Posts:</strong>
<ul class="similar-posts">
<li><a href="http://www.indiangnu.org/2007/ubuntu-grub-splash-image-as-background-for-grub-menu/" rel="bookmark" title="February 7, 2007">Ubuntu &#8211; GRUB splash image as background for GRUB menu</a></li>
<li><a href="http://www.indiangnu.org/2007/grub-grand-unified-bootloader/" rel="bookmark" title="July 22, 2007">GRUB (GRand Unified Bootloader)</a></li>
<li><a href="http://www.indiangnu.org/2009/how-to-disable-cores-of-cpu/" rel="bookmark" title="August 10, 2009">How to disable core(s) of CPU</a></li>
<li><a href="http://www.indiangnu.org/2009/how-to-create-editextract-initrd-in-ubuntudebian-and-redhatfedora-linux/" rel="bookmark" title="July 12, 2009">How to create edit/extract initrd in Ubuntu/Debian and Redhat/Fedora Linux ?</a></li>
<li><a href="http://www.indiangnu.org/2007/single-user-mode-how-to-resetbypass-root-password-without-bootable-cd/" rel="bookmark" title="June 28, 2007">Single user mode &#8211; How to reset(bypass) root password without bootable CD</a></li>
<li><a href="http://www.indiangnu.org/2010/xen-virtualization-on-centos-linux/" rel="bookmark" title="May 14, 2010">Xen virtualization on CentOS linux</a></li>
<li><a href="http://www.indiangnu.org/2008/how-to-read-mbr-master-boot-record/" rel="bookmark" title="September 28, 2008">How to read  MBR (Master Boot Record)</a></li>
</ul>
<p><!-- Similar Posts took 10.102 ms --></p>
]]></content:encoded>
			<wfw:commentRss>http://www.indiangnu.org/2010/whats-new-in-grub-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to install GNOME themes in Ubuntu</title>
		<link>http://www.indiangnu.org/2010/how-to-install-gnome-themes-in-ubuntu/</link>
		<comments>http://www.indiangnu.org/2010/how-to-install-gnome-themes-in-ubuntu/#comments</comments>
		<pubDate>Tue, 09 Mar 2010 04:53:15 +0000</pubDate>
		<dc:creator>Arun Bagul</dc:creator>
				<category><![CDATA[Debian & Ubuntu]]></category>
		<category><![CDATA[General information]]></category>
		<category><![CDATA[theme. GNOME]]></category>
		<category><![CDATA[ubuntu linux]]></category>

		<guid isPermaLink="false">http://www.indiangnu.org/?p=971</guid>
		<description><![CDATA[Introduction &#8211; There are many beautiful GNOME desktop themes available for Ubuntu and other linux&#8230;. Step 1] Add repository &#8211; root@me:~# add-apt-repository ppa:bisigi/ppa *** Add following two lines in &#8220;/etc/apt/sources.list&#8221; file. root@me:~# vi  /etc/apt/sources.list deb http://ppa.launchpad.net/bisigi/ppa/ubuntu karmic main deb-src http://ppa.launchpad.net/bisigi/ppa/ubuntu karmic main Step 2] Add the gpg key of repository &#8211; root@me:~# gpg &#8211;keyserver hkp://keyserver.ubuntu.com:11371 [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Introduction &#8211; </strong>There are many beautiful GNOME desktop themes available for Ubuntu and other linux&#8230;.</p>
<p><strong>Step 1] Add repository &#8211; </strong></p>
<p>root@me:~# <strong>add-apt-repository ppa:bisigi/ppa</strong></p>
<p>*** Add following two lines in &#8220;<strong>/etc/apt/sources.list</strong>&#8221; file.</p>
<p>root@me:~# <strong>vi  /etc/apt/sources.list</strong></p>
<p><strong>deb http://ppa.launchpad.net/bisigi/ppa/ubuntu karmic main<br />
deb-src http://ppa.launchpad.net/bisigi/ppa/ubuntu karmic main</strong></p>
<p><strong>Step 2] Add the gpg key of repository &#8211; </strong></p>
<p>root@me:~# gpg &#8211;keyserver hkp://keyserver.ubuntu.com:11371 &#8211;recv-key 881574DE &amp;&amp; gpg -a &#8211;export 881574DE | apt-key add -</p>
<p><strong>Step 3] Update the repo list and install the themes&#8230;.<br />
</strong><br />
root@me:~# <strong>apt-get update</strong></p>
<p>* To install all available themes plz run  this command&#8230;.</p>
<p>root@me:~# <strong>apt-get install bisigi-themes</strong></p>
<p>* To install indivisual themes.. (few best themes)</p>
<p>root@me:~#<strong> apt-get install showtime-theme </strong></p>
<p>root@me:~#<strong> apt-get install balanzan-theme </strong><br />
root@me:~# apt-get install infinity-theme<br />
root@me:~# apt-get install wild-shine-theme<br />
root@me:~# apt-get install tropical-theme<br />
root@me:~# apt-get install ubuntu-sunrise-theme<br />
root@me:~# apt-get install aquadreams-theme</p>
<p><strong>Step 4] How to activate/select theme.<br />
</strong><br />
<strong>Go to &#8220;System&#8221; &#8211;&gt; &#8220;Preferences&#8221; &#8211;&gt; &#8220;Appearance&#8221;  and select  your theme!!</strong></p>
<p>** Enjoy</p>
<p>Thank you,<br />
Arun Bagul<strong>Similar Posts:</strong>
<ul class="similar-posts">
<li><a href="http://www.indiangnu.org/2010/how-to-change-xsplash-theme-in-ubuntu/" rel="bookmark" title="May 20, 2010">How to change Xsplash theme in Ubuntu</a></li>
<li><a href="http://www.indiangnu.org/2007/how-to-installed-internet-explore-on-linux/" rel="bookmark" title="August 7, 2007">How to installed Internet Explore(IE) on Linux/Unix !!</a></li>
<li><a href="http://www.indiangnu.org/2009/encrypt-your-mails-with-gpg-and-enigmail-thunderbird-plugin/" rel="bookmark" title="November 20, 2009">Encrypt your mails with GPG and Enigmail Thunderbird plugin</a></li>
<li><a href="http://www.indiangnu.org/2008/yum-for-rhel/" rel="bookmark" title="July 4, 2008">yum for RHEL</a></li>
<li><a href="http://www.indiangnu.org/2008/how-to-wordpress-on-ubuntu-gusty-710/" rel="bookmark" title="June 26, 2008">How to install wordpress on Ubuntu Gusty 7.10</a></li>
<li><a href="http://www.indiangnu.org/2009/multi-user-conferencing-mu-conference-for-jabber-jabberd2/" rel="bookmark" title="October 15, 2009">Multi User Conferencing (MU-Conference) for Jabber (Jabberd2)</a></li>
<li><a href="http://www.indiangnu.org/2006/different-methods-of-accessing-subversion-svn-repository/" rel="bookmark" title="December 27, 2006">Different methods of accessing subversion (svn) repository</a></li>
</ul>
<p><!-- Similar Posts took 10.255 ms --></p>
]]></content:encoded>
			<wfw:commentRss>http://www.indiangnu.org/2010/how-to-install-gnome-themes-in-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to use socat with haproxy stat</title>
		<link>http://www.indiangnu.org/2010/how-to-use-socat-with-haproxy-stat/</link>
		<comments>http://www.indiangnu.org/2010/how-to-use-socat-with-haproxy-stat/#comments</comments>
		<pubDate>Thu, 25 Feb 2010 10:28:48 +0000</pubDate>
		<dc:creator>Ravi Bhure</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Linux Networking]]></category>
		<category><![CDATA[Linux commands]]></category>
		<category><![CDATA[Redhat & Fedora]]></category>
		<category><![CDATA[UNIX/Linux]]></category>

		<guid isPermaLink="false">http://www.indiangnu.org/?p=921</guid>
		<description><![CDATA[*** Introduction &#8211; All you know about the haproxy, that its the one of the good opensource load balancing software and to check the fun stats of haproxy here we using &#8216;socat&#8217; &#8211; Multipurpose relay (SOcket CAT) * What is socat? Socat  is  a  command  line based utility that establishes two bidirectional byte streams and [...]]]></description>
			<content:encoded><![CDATA[<p>*** <strong>Introduction &#8211; </strong></p>
<p>All you know about the <a href="http://haproxy.1wt.eu" target="_blank">haproxy</a>, that its the one of the good opensource load balancing software and to check the fun stats of haproxy here we using &#8216;<a href="http://www.dest-unreach.org/socat/" target="_blank">socat&#8217;</a> &#8211; Multipurpose relay (SOcket CAT)</p>
<p><strong><br />
* What is socat?</strong></p>
<p>Socat  is  a  command  line based utility that establishes two bidirectional byte streams and transfers data between them. Because the streams can be constructed from a large set of different types of data sinks and sources (see address  types),  and  because  lots  of address options may be applied to the streams, socat can be used for many different purposes. (see more info at &#8216;man socat&#8217; <img src='http://www.indiangnu.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  or at http://www.dest-unreach.org/socat/)<br />
<strong>* How to use &#8216;socat&#8217; with haproxy stat</strong></p>
<p>Step 1) Download &#8216;socat&#8217; from http://www.dest-unreach.org/socat/download/  latest version ~ &#8220;socat-2.0.0-b3.tar.gz&#8221;</p>
<p>ravi@arun:~$ wget http://www.dest-unreach.org/socat/download/socat-1.7.1.2.tar.gz</p>
<p>ravi@arun:~$ tar xvzf socat-1.7.1.2.tar.gz</p>
<p>ravi@arun:~$ cd socat-1.7.1.2</p>
<p>NOTE ~ No need to install the &#8216;fipsld&#8217; package if you got the below msg after running the &#8216;make&#8217; just following steps for</p>
<p>compiling socat&#8230;.</p>
<p>FIPSLD_CC=gcc fipsld -O -D_GNU_SOURCE -Wall -Wno-parentheses  -DHAVE_CONFIG_H -I.  -I.   -c -o socat.o socat.c<br />
/bin/sh: fipsld: command not found<br />
make: *** [socat.o] Error 127</p>
<p>ravi@arun:~$ ./configure &#8211;disable-fips<br />
ravi@arun:~$ make</p>
<p>To install it login as root<br />
ravi@arun:~$ su -</p>
<p>ravi@arun:~# make install</p>
<p>Step 2) Now you need to add stats socket PATH in Haproxy configuration and restart haproxy as per shown in following example,</p>
<p>where I have added it under in &#8216;global&#8217; setting -</p>
<p>ravi@arun:~# more /etc/haproxy/myhaproxy.cfg</p>
<p>#&#8212;&#8212;&#8212;&#8211;Start of haproxy Config file&#8212;&#8212;&#8212;&#8212;&#8211;<br />
global<br />
log 127.0.0.1   local0<br />
log 127.0.0.1   local1 notice<br />
#log loghost    local0 info<br />
maxconn 25000<br />
#debug<br />
#quiet<br />
user ravi<br />
group ravi<br />
stats socket    /tmp/haproxy<br />
defaults<br />
option          contstats<br />
timeout         connect 5s<br />
timeout         client 25s<br />
timeout         server 25s<br />
maxconn         100</p>
<p>listen ravitestbed      0.0.0.0:80 ##ravi.com IP<br />
mode            tcp<br />
balance         roundrobin<br />
server          web1 192.168.19.117<br />
server          web2 192.168.19.122</p>
<p>listen stats<br />
bind            0.0.0.0:8081<br />
mode            http<br />
#stats          uri /stat  #Comment this if you need to specify diff stat path for viewing stat page<br />
stats enable<br />
stats auth admin:admin ##Auth user pass</p>
<p>#&#8212;&#8212;&#8212;&#8211;End of haproxy Config file&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>Step 3) Used /tmp/haproxy. Now you can send the commands to get stats from HAProxy -</p>
<p>Now time to use socat</p>
<p>ravi@arun:~# echo &#8220;&#8221;  | socat unix-connect:/tmp/haproxy stdio<br />
Unknown command. Please enter one of the following commands only :<br />
show info   : report information about the running process<br />
show stat   : report counters for each proxy and server<br />
show errors : report last request and response errors for each proxy<br />
show sess   : report the list of current sessions</p>
<p><strong>This will dump (possibly huge) info about all know sessions. </strong></p>
<p>ravi@arun:~$ echo &#8220;show sess&#8221; | socat unix-connect:/tmp/haproxy stdio<br />
0x9ee3520: proto=tcpv4 src=192.168.19.117:4721 fe=ravitestbed be=ravitestbed srv=arun as=0 ts=08 age=4s calls=3<br />
rq[f=009202h,l=0,an=00h,rx=20s,wx=,ax=] rp[f=009202h,l=0,an=00h,rx=20s,wx=,ax=] s0=[7,8h,fd=1,ex=] s1=[7,8h,fd=2,ex=] exp=20s<br />
0x9eeb8e8: proto=tcpv4 src=192.168.19.117:4723 fe=ravitestbed be=ravitestbed srv=arun as=0 ts=08 age=4s calls=3<br />
rq[f=009000h,l=0,an=00h,rx=20s,wx=,ax=] rp[f=009202h,l=0,an=00h,rx=20s,wx=,ax=] s0=[7,8h,fd=8,ex=] s1=[7,8h,fd=9,ex=] exp=20s<br />
0x9ef3d08: proto=tcpv4 src=192.168.19.117:4725 fe=ravitestbed be=ravitestbed srv=arun as=0 ts=08 age=4s calls=3<br />
rq[f=009000h,l=0,an=00h,rx=20s,wx=,ax=] rp[f=009202h,l=0,an=00h,rx=20s,wx=,ax=] s0=[7,8h,fd=12,ex=] s1=[7,8h,fd=13,ex=]<br />
exp=20s<br />
0x9f04548: proto=unix_stream as=2 ts=09 age=0s calls=2 rq[f=00e042h,l=10,an=20h,rx=10s,wx=,ax=]</p>
<p>rp[f=048060h,l=716,an=00h,rx=,wx=10s,ax=] s0=[7,0h,fd=3,ex=] s1=[0,0h,fd=-1,ex=] exp=9s</p>
<p><strong>This will give you information about the running HAProxy process such as pid, uptime and etc.</strong></p>
<p>ravi@arun:~$ echo &#8220;show info&#8221; | socat unix-connect:/tmp/haproxy stdio<br />
Name: HAProxy<br />
Version: 1.3.23<br />
Release_date: 2010/01/28<br />
Nbproc: 1<br />
Process_num: 1<br />
Pid: 11829<br />
Uptime: 0d 0h42m53s<br />
Uptime_sec: 2573<br />
Memmax_MB: 0<br />
Ulimit-n: 50013<br />
Maxsock: 50013<br />
Maxconn: 25000<br />
Maxpipes: 0<br />
CurrConns: 1<br />
PipesUsed: 0<br />
PipesFree: 0<br />
Tasks: 1<br />
Run_queue: 1<br />
node: ravi.world<br />
description:</p>
<p><strong>This will give you stats on all of your backends and frontends, some of the same stuff you see on the stats page enabled by the stats uri configuration. As an added bonus it’s all in CSV.</strong></p>
<p>ravi@arun:~$ echo &#8220;show stat&#8221; | socat unix-connect:/tmp/haproxy stdio<br />
#<br />
pxname,svname,qcur,qmax,scur,smax,slim,stot,bin,bout,dreq,dresp,ereq,econ,eresp,wretr,wredis,status,weight,act,bck,chkfail,ch<br />
kdown,lastchg,downtime,qlimit,pid,iid,sid,throttle,lbtot,tracked,type,rate,rate_lim,rate_max,<br />
ravitestbed,FRONTEND,,,0,5,100,30,32582,50616,0,0,0,,,,,OPEN,,,,,,,,,1,1,0,,,,0,0,0,5,<br />
ravitestbed,trupti,0,0,0,2,,15,7020,22722,,0,,0,0,0,0,no check,1,1,0,,,,,,1,1,1,,15,,2,0,,2,<br />
ravitestbed,arun,0,0,0,5,,15,25562,27894,,0,,0,0,0,0,no check,1,1,0,,,,,,1,1,2,,15,,2,0,,3,<br />
ravitestbed,BACKEND,0,0,0,5,100,30,32582,50616,0,0,,0,0,0,0,UP,2,2,0,,0,2710,0,,1,1,0,,30,,1,0,,5,<br />
stats,FRONTEND,,,0,1,100,21,9605,152357,0,0,0,,,,,OPEN,,,,,,,,,1,2,0,,,,0,0,0,9,<br />
stats,BACKEND,0,0,0,1,100,5,9605,152357,0,0,,5,0,0,0,UP,0,0,0,,0,2710,0,,1,2,0,,0,,1,0,,4,</p>
<p><strong>show errors will give you a capture of last error on each backend/frontend.</strong></p>
<p>ravi@arun:~$ echo &#8220;show errors&#8221; | socat unix-connect:/tmp/haproxy stdio</p>
<p>Reffer:</p>
<p>http://www.dest-unreach.org/socat/</p>
<p>http://haproxy.1wt.eu/download/1.3/doc/configuration.txt</p>
<p>Thanks to Joe (http://www.joeandmotorboat.com)</p>
<p>Thank you,<br />
Ravi<strong>Similar Posts:</strong>
<ul class="similar-posts">
<li><a href="http://www.indiangnu.org/zh-hans/2010/how-to-use-socat-with-haproxy-stat-2/" rel="bookmark" title="February 25, 2010">How to use socat with haproxy stat</a></li>
<li><a href="http://www.indiangnu.org/ru/2010/how-to-use-socat-with-haproxy-stat-3/" rel="bookmark" title="February 25, 2010">How to use socat with haproxy stat</a></li>
<li><a href="http://www.indiangnu.org/ja/2010/how-to-use-socat-with-haproxy-stat-4/" rel="bookmark" title="February 25, 2010">How to use socat with haproxy stat</a></li>
<li><a href="http://www.indiangnu.org/2009/haproxy-load-balancer/" rel="bookmark" title="August 14, 2009">HAProxy Load Balancer</a></li>
<li><a href="http://www.indiangnu.org/2007/mysql-full-db-dump-shell-script/" rel="bookmark" title="November 28, 2007">MySQL full DB dump  -shell  script</a></li>
<li><a href="http://www.indiangnu.org/2010/haproxy-apache-dropping-the-connections/" rel="bookmark" title="January 24, 2010">Haproxy + apache dropping the connections</a></li>
<li><a href="http://www.indiangnu.org/2008/capturing-a-unix-terminal-session/" rel="bookmark" title="January 17, 2008">Capturing a UNIX terminal session!</a></li>
</ul>
<p><!-- Similar Posts took 11.549 ms --></p>
]]></content:encoded>
			<wfw:commentRss>http://www.indiangnu.org/2010/how-to-use-socat-with-haproxy-stat/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to use TCP Wrappers for system security</title>
		<link>http://www.indiangnu.org/2010/how-to-use-tcp-wrappers-for-system-security/</link>
		<comments>http://www.indiangnu.org/2010/how-to-use-tcp-wrappers-for-system-security/#comments</comments>
		<pubDate>Mon, 22 Feb 2010 13:01:33 +0000</pubDate>
		<dc:creator>Manoj Chauhan</dc:creator>
				<category><![CDATA[Linux Networking]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[UNIX/Linux]]></category>
		<category><![CDATA[System Security]]></category>
		<category><![CDATA[TCP Wrappers]]></category>

		<guid isPermaLink="false">http://www.indiangnu.org/?p=911</guid>
		<description><![CDATA[Introduction:- Access control to services compiled with TCP wrappers support is implemented by the /etc/hosts.allow and /etc/hosts.deny files. When a connection attempt is made, the hosts.allow file is checked. If a line is matched, the connection is allowed. Then the hosts.deny file is consulted, if a line is matched, the connection is denied. If no [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Introduction:-</strong></p>
<p>Access control to services compiled with TCP wrappers support is implemented by the /etc/hosts.allow and /etc/hosts.deny files. When a connection attempt is made, the hosts.allow file is checked. If a line is matched, the connection is allowed. Then the hosts.deny file is consulted, if a line is matched, the connection is denied. If no matches have occurred in either file, the connection is allowed.</p>
<p><strong>Create Authorized Use Only Banners</strong>-</p>
<p>If configured as described below, TCP wrappers will display a warning banner to any user attempting to connect to a service it monitors. The following set of commands generate the directory /etc/banners, and the files therein contain warning banner text for each service. In this example, the banner text is &#8220;Use of this system is restricted to authorized users.&#8221; Note that exact wording of a warning banner is site specific; however, it should at least emphasize that the use of the system is restricted to authorized persons and that consent to monitor activities is implied by logging in to the system.</p>
<p>[root@localhost]# /bin/mkdir -p /etc/banners<br />
[root@localhost]# /bin/echo &#8220;Use of this system is restricted to authorized users&#8221; &gt; /etc/banners/<br />
prototype<br />
[root@localhost]# cd /etc/banners ; /usr/bin/make -f /usr/share/doc/tcp_wrappers-7.6/Banners.Makefile</p>
<p><strong>Deny Everything Except What is Explicitly Allowed</strong>-</p>
<p>In order to implement the security best practice stance of deny everything except what is explicitly allowed, issue the following command.<br />
[root@localhost]# echo &#8216;ALL: ALL: spawn (/bin/echo -e &#8216;/bin/date&#8217;&#8221;\n%c attempted connection to %s<br />
and was denied&#8221; \<br />
&gt; | /bin/mail -s &#8220;Connection attempt to %s&#8221; root) &amp;&#8217; &gt; /etc/hosts.deny</p>
<p>Any connection attempt not listed in the hosts.allow file will be denied, a message will be logged to the syslog auth facility, and an email will be sent to root.<br />
Allow Access to Those Who Require It</p>
<p>Edit the hosts.allow file and add a line for each service to which access should be allowed. A few examples are shown below (See the man pages for hosts.allow for more detail).</p>
<p>ALL: LOCAL : banners /etc/banners            # All services from local clients (hostnames with no &#8220;.&#8221;)<br />
sshd: 10.1.1.0/255.255.254.0 : banners /etc/banners # SSH connections from host IP addresses  between 10.1.1.0 and 10.1.2.0</p>
<p>Thanks<br />
Manoj Chauhan<strong>Similar Posts:</strong>
<ul class="similar-posts">
<li><a href="http://www.indiangnu.org/zh-hans/2010/%e5%a6%82%e4%bd%95%e4%bd%bf%e7%94%a8%e7%b3%bb%e7%bb%9f%e5%ae%89%e5%85%a8tcp%e4%bc%9a%e7%bb%95/" rel="bookmark" title="February 22, 2010">如何使用系统安全TCP会绕</a></li>
<li><a href="http://www.indiangnu.org/2007/how-to-disabledenabled-access-to-crontab/" rel="bookmark" title="August 20, 2007">How to disabled/enabled access to crontab?</a></li>
<li><a href="http://www.indiangnu.org/2008/shell-script-to-monitor-running-services-such-as-webhttp-ssh-mail-etc/" rel="bookmark" title="January 2, 2008">Shell script to monitor running services such as web/http, ssh, mail etc.</a></li>
<li><a href="http://www.indiangnu.org/2008/how-to-configure-vsftp-server-on-redhat-debian-based-system/" rel="bookmark" title="January 15, 2008">How to configure FTP server on  Redhat &#038; debian based system</a></li>
<li><a href="http://www.indiangnu.org/2008/start-stop-oracle-service/" rel="bookmark" title="January 2, 2008">Start &#038; stop oracle service</a></li>
<li><a href="http://www.indiangnu.org/2007/plesk-access-denied-error-while-login/" rel="bookmark" title="October 17, 2007">Plesk &#8211; &#8220;Access Denied&#8221; Error while login!!</a></li>
<li><a href="http://www.indiangnu.org/2007/denial-of-service-dos/" rel="bookmark" title="December 31, 2007">Denial of Service (DoS)</a></li>
</ul>
<p><!-- Similar Posts took 10.851 ms --></p>
]]></content:encoded>
			<wfw:commentRss>http://www.indiangnu.org/2010/how-to-use-tcp-wrappers-for-system-security/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Good practices for apache &amp; php</title>
		<link>http://www.indiangnu.org/2010/good-practices-for-apache-php/</link>
		<comments>http://www.indiangnu.org/2010/good-practices-for-apache-php/#comments</comments>
		<pubDate>Fri, 19 Feb 2010 15:40:14 +0000</pubDate>
		<dc:creator>Manoj Chauhan</dc:creator>
				<category><![CDATA[Debian & Ubuntu]]></category>
		<category><![CDATA[Redhat & Fedora]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[UNIX/Linux]]></category>

		<guid isPermaLink="false">http://www.indiangnu.org/?p=908</guid>
		<description><![CDATA[Introduction &#8211; To conclude the discussion about session management, here are some best practices to demonstrate that a robust scheme requires serious thinking: •    Create a session token upon first visit. •    When performing authentication, destroy the old session and create a new one. •    Limit session lifetime to a short period (a few hours). [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Introduction &#8211; </strong></p>
<p>To conclude the discussion about session management, here are some best practices to demonstrate that a robust scheme requires serious thinking:<br />
•    Create a session token upon first visit.<br />
•    When performing authentication, destroy the old session and create a new one.<br />
•    Limit session lifetime to a short period (a few hours).<br />
•    Destroy inactive sessions regularly.<br />
•    Destroy sessions after users log out.<br />
•    Ask users to re-authenticate before an important task is performed (e.g., an order is placed).<br />
•    Do not use the same session for a non-SSL part of the site as for the SSL part of the site because non-SSL traffic can be intercepted and the session token obtained from it. Treat them as two different servers.<br />
•    If cookies are used to transport session tokens in an SSL application, they should be marked &#8220;secure.&#8221; Secure cookies are never sent over a non-SSL connection.<br />
•    Regenerate session tokens from time to time.<br />
•    Monitor client parameters (IP address, the User-Agent request header) and send warnings to the error log when they change. Some information (e.g., the contents of the User-Agent header) should not change for the lifetime of a session. Invalidate the session if it does.<br />
•    If you know where your users are coming from, attach each session to a single IP address, and do not allow the address to change.<br />
•    If you can, do not accept users coming through web proxies. This will be difficult to do for most public sites but easier for internal applications.<br />
•    If you can, do not accept users coming through open web proxies. Open proxies are used when users want to stay anonymous or otherwise hide their tracks. You can detect which proxies are open by extracting the IP address of the proxy from each proxied request and having a script automatically test whether the proxy is open or not.<br />
•    If you do allow web proxies, consider using Java applets or Flash movies (probably a better choice since such movies can pretend to be regular animations) to detect the users&#8217; real IP addresses. It&#8217;s a long shot but may work in some cases.<br />
•    Web users can upload only jpeg, gif, png files not php extension<br />
•    We can place a blank index page in each directory in question and users can not execute php etc scripts from the image folders or image/document upload folders.<br />
•    Upgrade apache current version (2.0) to newer version (2.2)</p>
<p>Thanks<br />
Manoj Chauhan<strong>Similar Posts:</strong>
<ul class="similar-posts">
<li><a href="http://www.indiangnu.org/2007/how-to-secure-session-in-php/" rel="bookmark" title="July 25, 2007">How to secure Session in PHP</a></li>
<li><a href="http://www.indiangnu.org/2007/php-ip-address-to-country/" rel="bookmark" title="September 15, 2007">PHP &#8211; IP address  to Country</a></li>
<li><a href="http://www.indiangnu.org/2007/denial-of-service-dos/" rel="bookmark" title="December 31, 2007">Denial of Service (DoS)</a></li>
<li><a href="http://www.indiangnu.org/2008/is-2008-going-to-be-the-year-of-linux/" rel="bookmark" title="January 9, 2008">Is 2008 going to be the year of Linux?</a></li>
<li><a href="http://www.indiangnu.org/2008/the-ruby-programming-language/" rel="bookmark" title="January 26, 2008">The Ruby Programming language</a></li>
<li><a href="http://www.indiangnu.org/2007/ipv6-internet-protocol-version-6/" rel="bookmark" title="October 13, 2007">IPv6 -Internet Protocol version 6</a></li>
<li><a href="http://www.indiangnu.org/2007/php-and-ftp/" rel="bookmark" title="March 23, 2007">PHP and FTP</a></li>
</ul>
<p><!-- Similar Posts took 10.806 ms --></p>
]]></content:encoded>
			<wfw:commentRss>http://www.indiangnu.org/2010/good-practices-for-apache-php/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Haproxy + apache dropping the connections</title>
		<link>http://www.indiangnu.org/2010/haproxy-apache-dropping-the-connections/</link>
		<comments>http://www.indiangnu.org/2010/haproxy-apache-dropping-the-connections/#comments</comments>
		<pubDate>Sun, 24 Jan 2010 17:14:35 +0000</pubDate>
		<dc:creator>Ravi Bhure</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Linux Networking]]></category>
		<category><![CDATA[Redhat & Fedora]]></category>
		<category><![CDATA[UNIX/Linux]]></category>

		<guid isPermaLink="false">http://www.indiangnu.org/?p=898</guid>
		<description><![CDATA[Many times  haproxy and apache does not reliable to serve the connections without tune or we say we need to set system as well some kernel parameters to work it better. Here haproxy gives an errors to connect to apache, at that time it logs the errors into &#8216;dmesg &#124; tail&#8217; or in &#8216;/var/log/messages&#8217; &#8220;kernel: [...]]]></description>
			<content:encoded><![CDATA[<p>Many times  haproxy and apache does not reliable to serve the connections without tune or we say we need to set system as well some kernel parameters to work it better.</p>
<p>Here haproxy gives an errors to connect to apache, at that time it logs the errors into &#8216;dmesg | tail&#8217; or in &#8216;/var/log/messages&#8217; &#8220;kernel: ip_conntrack: table full, dropping packet&#8221; that is related to ip_conntrack kernel module.</p>
<p>Conntrack table is hash table (hash map) of fixed size (8192 entries by default), which is used for primary lookup. When the slot in the table is found it points to list of conntrack structures, so secondary lookup is done using list traversal. 65536/8192 gives 8 – the average list length. You may want to experiment with this value on heavily loaded systems.</p>
<p>If this error founds into /var/log/messages or dmesg you have to apply following steps to resolve.</p>
<p>Here I have done this to changes and added few settings in kernel also we will do it to set apache MPM and Haproxy tunning with sysctl.conf</p>
<p>Note: I have tried all this workaround and apply on CentOS-5.2, but don&#8217;t worry ip_conntrack module is default in kernel 2.6 +</p>
<p>1) To check ip_contrack is compiled with your kernel</p>
<p>[root@ravi.com ~]#<strong> modinfo ip_conntrack</strong><br />
<em>filename:       /lib/modules/2.6.18-128.el5/kernel/net/ipv4/netfilter/ip_conntrack.ko<br />
license:        GPL<br />
srcversion:     F1390E605BBFB05078B78E8<br />
depends:        nfnetlink<br />
vermagic:       2.6.18-128.el5 SMP mod_unload gcc-4.1<br />
module_sig:     883f350497747c575ed35fe9471dce112565509f4b58f4f3e440c6bcc05c2fba9bbdd224bdeb8209e293da385133a876e44a7b449ba59a882a8282b<br />
</em><br />
2) Probe ip_conntrack kernel module or add it in /etc/modprobe.conf</p>
<p>[root@ravi.com ~]#<strong> modprobe ip_conntrack hashsize=131072</strong></p>
<p>or</p>
<p>open /etc/modprobe.conf and add below lines at the end of file<br />
<strong><br />
options ip_conntrack hashsize=131072</strong></p>
<p>3) before go to apply the 4th step, just check the ip_conntrack setting is into /etc/sysctl.conf</p>
<p><em><strong>grep &#8220;ip_conntrack&#8221; /etc/sysctl.conf</strong></em></p>
<p>if its found then apply 4th step or edit the /etc/sysctl.conf and add the given two lines at the end of file and save it then go for 4th step<br />
(the value is compare to your RAM and set it to below)</p>
<p><em>net.ipv4.ip_conntrack_max = 16777216<br />
net.ipv4.netfilter.ip_conntrack_max = 16777216</em></p>
<p>4) To apply the sysctl parameters run &#8216;sysctl -p&#8217;</p>
<p>[root@ravi.com ~]# <strong>sysctl -p</strong></p>
<p>5) Now check the ip_conntrack is logging the connections and check not dropping any more</p>
<p>[root@ravi.com ~]# <strong>cat /proc/slabinfo | grep conn</strong><br />
<em>ip_conntrack_expect      0      0    136   28    1 : tunables  120   60    8 : slabdata      0      0      0<br />
ip_conntrack      216053 231335    304   13    1 : tunables   54   27    8 : slabdata  17795  17795    216</em></p>
<p>6) Also you can check how much memory utilized by ip_conntrack module per connection.</p>
<p>[root@ravi.com ~]# <strong>grep ip_conntrack /var/log/messages </strong></p>
<p><em>/var/log/messages.2:Jan 14 21:46:04 ravi kernel: ip_conntrack version 2.4 (8192 buckets, 65536 max) &#8211; <strong>304 bytes per conntrack</strong></em></p>
<p><strong>1M connections</strong> would require<strong> 304MB</strong> of kernel memory.</p>
<p>Thanks<br />
Ravi<strong>Similar Posts:</strong>
<ul class="similar-posts">
<li><a href="http://www.indiangnu.org/2009/haproxy-load-balancer/" rel="bookmark" title="August 14, 2009">HAProxy Load Balancer</a></li>
<li><a href="http://www.indiangnu.org/2007/load-balancing-shell-script/" rel="bookmark" title="November 28, 2007">Load Balancing &#8211; shell script</a></li>
<li><a href="http://www.indiangnu.org/2007/load-balancing-for-sharing-multiple-internet-connections/" rel="bookmark" title="November 26, 2007">Load Balancing for sharing  multiple internet connections</a></li>
<li><a href="http://www.indiangnu.org/2008/how-to-reload-service-by-using-kill-command/" rel="bookmark" title="January 3, 2008">How to reload service by using kill command</a></li>
<li><a href="http://www.indiangnu.org/2008/how-to-smarthost-on-linux-using-sendmail/" rel="bookmark" title="August 25, 2008">How to smarthost on linux using sendmail</a></li>
<li><a href="http://www.indiangnu.org/2007/how-to-mount-remote-ssh-filesystem-by-using-sshfs/" rel="bookmark" title="January 25, 2007">How to mount remote ssh filesystem by using sshfs</a></li>
<li><a href="http://www.indiangnu.org/2009/how-to-build-rpm-for-http-with-mpm-worker-on-x86_64/" rel="bookmark" title="September 14, 2009">How to build rpm for http with mpm worker (on x86_64)</a></li>
</ul>
<p><!-- Similar Posts took 10.858 ms --></p>
]]></content:encoded>
			<wfw:commentRss>http://www.indiangnu.org/2010/haproxy-apache-dropping-the-connections/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
