<?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>arun@arunnsblog [~]$</title>
	<atom:link href="http://arunnsblog.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://arunnsblog.com</link>
	<description>$ Arun&#039;s Technical Blog</description>
	<lastBuildDate>Tue, 13 Dec 2011 12:24:15 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Fix categories and tags in wordpress custom post_type</title>
		<link>http://arunnsblog.com/2011/12/13/fix-categories-and-tags-in-wordpress-custom-post_type/</link>
		<comments>http://arunnsblog.com/2011/12/13/fix-categories-and-tags-in-wordpress-custom-post_type/#comments</comments>
		<pubDate>Tue, 13 Dec 2011 12:24:15 +0000</pubDate>
		<dc:creator>Arun N S</dc:creator>
				<category><![CDATA[CMS]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[category issue]]></category>
		<category><![CDATA[custom post_type wordpress]]></category>

		<guid isPermaLink="false">http://arunnsblog.com/?p=577</guid>
		<description><![CDATA[By default word press does not look in to custom post_types for categories and tags, even though the category names are visible you get a NOT FOUND page when you click on the category. A work around found for this issue is : Edit : functions.php add_filter('pre_get_posts', 'query_post_type'); function query_post_type($query) { if(is_category() &#124;&#124; is_tag()) { [...]]]></description>
			<content:encoded><![CDATA[<p>By default word press does not look in to custom post_types for categories and tags, even though the category names are visible you get a NOT FOUND page when you click on the category.</p>
<p>A work around found for this issue is :</p>
<p>Edit : functions.php</p>
<p><code>add_filter('pre_get_posts', 'query_post_type');<br />
function query_post_type($query) {<br />
if(is_category() || is_tag()) {<br />
$post_type = get_query_var('post_type');<br />
if($post_type)<br />
$post_type = $post_type;<br />
else<br />
$post_type = array('post','custom_post_type_name','nav_menu_item'); // replace custom_post_type_name with your post_type, and keep nav_menu_item to display menu in category page.<br />
$query-&gt;set('post_type',$post_type);<br />
return $query;<br />
}<br />
}</code></p>
<p>Reference:<a href="http://wordpress.org/support/topic/custom-post-type-tagscategories-archive-page" target="_blank"> http://wordpress.org/support/topic/custom-post-type-tagscategories-archive-page</a></p>
<p>Thanks to <a href="http://wordpress.org/support/profile/parandroid" target="_blank">paranoid  </a>for guiding to the fix . <img src='http://arunnsblog.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>./arun</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://arunnsblog.com/2011/12/13/fix-categories-and-tags-in-wordpress-custom-post_type/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Replace broken hard drive in software RAID1</title>
		<link>http://arunnsblog.com/2011/12/05/replace-broken-hard-drive-in-software-raid1/</link>
		<comments>http://arunnsblog.com/2011/12/05/replace-broken-hard-drive-in-software-raid1/#comments</comments>
		<pubDate>Mon, 05 Dec 2011 11:51:29 +0000</pubDate>
		<dc:creator>Arun N S</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Hard disk broken]]></category>
		<category><![CDATA[RAID1]]></category>
		<category><![CDATA[recover broken hard disk]]></category>

		<guid isPermaLink="false">http://arunnsblog.com/?p=574</guid>
		<description><![CDATA[This scenario assumes that you have two hard disk with RAID1 setup and one of them is broken (say sdb). To check the status of RAID: $ cat /proc/mdstat Personalities : [raid0] [raid1] [raid6] [raid5] [raid4] [raid10] md2 : active raid1 sda3[1] 730202368 blocks [2/1] [U_] md1 : active raid1 sda2[1] 264960 blocks [2/1] [U_] [...]]]></description>
			<content:encoded><![CDATA[<p>This scenario assumes that you have two hard disk with RAID1 setup and one of them is broken (say sdb).</p>
<p>To check the status of RAID:</p>
<p><code>$ cat /proc/mdstat</code></p>
<p><code>Personalities : [raid0] [raid1] [raid6] [raid5] [raid4] [raid10]<br />
md2 : active raid1 sda3[1]<br />
730202368 blocks [2/1] [U_]<br />
md1 : active raid1 sda2[1]<br />
264960 blocks [2/1] [U_]<br />
md0 : active (auto-read-only) raid1 sda1[1]<br />
2102464 blocks [2/1] [U_]</code></p>
<p>you will see [_U] or [U_] if there is a broken RAID.</p>
<p>If required remove the broken hardrive from RAID from all md devices.</p>
<p><code># mdadm --manage /dev/md0 --fail /dev/sdb1</p>
<p># mdadm --manage /dev/md1 --fail /dev/sdb2</p>
<p># mdadm --manage /dev/md2 --fail /dev/sdb3</code></p>
<p>Shutdown the machine and replace the hard drive.</p>
<p>Once the server is booted, you will see the new device (either sda or sdb depends on what drive is broken)</p>
<p><code># ls -l /dev/sd*</code></p>
<p>Now we need to replicate the partition schema on the new drive.</p>
<p><code>sfdisk -d /dev/sda | sfdisk /dev/sdb</code></p>
<p>// -d     Dump the partitions of a device</p>
<p>We can add the partition to the RAID now, you could verify the partitions with fdisk -l.</p>
<p><code># mdadm --manage /dev/md0 --add /dev/sdb1</p>
<p># mdadm --manage /dev/md1 --add /dev/sdb2</p>
<p># mdadm --manage /dev/md2 --add /dev/sdb3</code></p>
<p>It will start sync the data and will be ready once completed.</p>
<p>You may verify the mdstat</p>
<p><code># cat /proc/mdstat<br />
Personalities : [raid0] [raid1] [raid6] [raid5] [raid4] [raid10]<br />
md2 : active raid1 sda3[0] sdb3[1]<br />
7302023 blocks [2/2] [UU]</p>
<p>md1 : active raid1 sda2[0] sdb2[1]<br />
2649 blocks [2/2] [UU]</p>
<p>md0 : active (auto-read-only) raid1 sda1[0] sdb1[1]<br />
21024 blocks [2/2] [UU]</code></p>
<p>./arun</p>
]]></content:encoded>
			<wfw:commentRss>http://arunnsblog.com/2011/12/05/replace-broken-hard-drive-in-software-raid1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Enable IPv6 on Direct Admin</title>
		<link>http://arunnsblog.com/2011/11/14/enabled-ipv6-on-direct-admin/</link>
		<comments>http://arunnsblog.com/2011/11/14/enabled-ipv6-on-direct-admin/#comments</comments>
		<pubDate>Mon, 14 Nov 2011 10:11:17 +0000</pubDate>
		<dc:creator>Arun N S</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[IPv6]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[IPv6 Direct admin]]></category>
		<category><![CDATA[IPv6 DNS configuration for DA]]></category>

		<guid isPermaLink="false">http://arunnsblog.com/?p=569</guid>
		<description><![CDATA[It was rather easy to get IPv6 working with DA if you have the IPv6 subnet allocated for your server. Make sure that you have IPv6 enabled on your DA. # grep ipv6 /usr/local/directadmin/conf/directadmin.conf ipv6=1 Add the IPv6 Addresses to your direct admin, through IP Management (This will add IPv6 address to the interface). Enter [...]]]></description>
			<content:encoded><![CDATA[<p>It was rather easy to get IPv6 working with DA if you have the IPv6 subnet allocated for your server.</p>
<p>Make sure that you have IPv6 enabled on your DA.</p>
<p><code># grep ipv6 /usr/local/directadmin/conf/directadmin.conf<br />
ipv6=1</code></p>
<p>Add the IPv6 Addresses to your direct admin, through IP Management (This will add IPv6 address to the interface).<br />
<em>Enter the IPv6 Address in IP field and keep the Netmask as 255.255.255.0</em></p>
<p>Add IPv6 address for your name servers,<br />
<em>go to DNS administration &#8211;&gt; Select your name server domain &#8211;&gt; Add AAAA records for your Name Servers.</em> Make sure you have added the IPv6 addresses already to DA.</p>
<p>Check your name server is resolving/reachable via IPv6.</p>
<p>Now to add IPv6 Address to hosted domains, <em>select the domain &#8211;&gt; Modify user &#8211;&gt; select the IPv6 address in &#8220;Add Additional IP&#8221;</em>. If the IPv6 address is not visible, make sure it is added to DA and to the reseller account you are editing the domain.</p>
<p><em>Add the IPv6 address(AAAA) to the corresponding domains DNS configuration.</em></p>
<p>Here we go, ping666666</p>
<p>&nbsp;</p>
<p>./arun</p>
]]></content:encoded>
			<wfw:commentRss>http://arunnsblog.com/2011/11/14/enabled-ipv6-on-direct-admin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Extending LVM disk space</title>
		<link>http://arunnsblog.com/2011/10/02/extending-lvm-disk-space/</link>
		<comments>http://arunnsblog.com/2011/10/02/extending-lvm-disk-space/#comments</comments>
		<pubDate>Sun, 02 Oct 2011 12:56:15 +0000</pubDate>
		<dc:creator>Arun N S</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Extending disk space]]></category>
		<category><![CDATA[lvextend]]></category>
		<category><![CDATA[LVM]]></category>
		<category><![CDATA[vgextend]]></category>

		<guid isPermaLink="false">http://arunnsblog.com/?p=565</guid>
		<description><![CDATA[Add the new disk drive to the system, you need to reboot the machine and configure the hardware RAID if required. Add the new disk to Volume group For e.g.: if the disk is HP with Smart array # pvcreate /dev/cciss/c0d1 # vgextend &#60;volume_group_name&#62; /dev/cciss/c0d1 Extend the Logical volume: # lvextend -L&#60;+mention_the_size&#62; /dev/&#60;volume_group&#62;/&#60;logical_volume&#62; eg: # [...]]]></description>
			<content:encoded><![CDATA[<p>Add the new disk drive to the system, you need to reboot the machine and configure the hardware RAID if required.</p>
<p>Add the new disk to Volume group</p>
<p>For e.g.: if the disk is HP with Smart array</p>
<p><em># pvcreate /dev/cciss/c0d1 </em><br />
<em># vgextend &lt;volume_group_name&gt; /dev/cciss/c0d1</em></p>
<p>Extend the Logical volume:<br />
<em># lvextend -L&lt;+mention_the_size&gt; /dev/&lt;volume_group&gt;/&lt;logical_volume&gt;</em><br />
<em>eg: # lvextend -L+25G /dev/localhost/var</em><br />
<em>       # lvextend -L+10G /dev/localhost/home</em></p>
<p>Resize the file system:<br />
<em># resizefs &lt;file_system&gt;</em><br />
eg:<br />
<em># resizefs /dev/mapper/localhost-var</em><br />
<em># resizefs /dev/mapper/localhost-home</em></p>
<p>./arun</p>
]]></content:encoded>
			<wfw:commentRss>http://arunnsblog.com/2011/10/02/extending-lvm-disk-space/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Install and configure rsnapshot for central backup (without root privilege)</title>
		<link>http://arunnsblog.com/2011/08/22/install-and-configure-rsnapshot-without-root-privilege/</link>
		<comments>http://arunnsblog.com/2011/08/22/install-and-configure-rsnapshot-without-root-privilege/#comments</comments>
		<pubDate>Mon, 22 Aug 2011 16:28:57 +0000</pubDate>
		<dc:creator>Arun N S</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[rsnapshot]]></category>

		<guid isPermaLink="false">http://arunnsblog.com/?p=559</guid>
		<description><![CDATA[Download and install RsnapShot Download the latest package from: http://rsnapshot.org/downloads.html # wget http://rsnapshot.org/downloads/rsnapshot-1.3.1-1.noarch.rpm # rpm -Uvh rsnapshot-1.3.1-1.noarch.rpm Configure public key authentication - Enable public key authentication with remote hosts with normal user privilege local# ssh-keygen -t rsa local# scp id_rsa.pub ssh-remote-server:id_rsa.pub remote# useradd -c &#8220;Backup user&#8221; -d /data/home/backup/ backup remote# su &#8211; backup remote# vi [...]]]></description>
			<content:encoded><![CDATA[<p><span style="text-decoration: underline;"><strong>Download and install RsnapShot</strong></span><br />
Download the latest package from: http://rsnapshot.org/downloads.html</p>
<blockquote><p># wget http://rsnapshot.org/downloads/rsnapshot-1.3.1-1.noarch.rpm<br />
# rpm -Uvh rsnapshot-1.3.1-1.noarch.rpm</p></blockquote>
<p><strong><span style="text-decoration: underline;">Configure public key authentication</span></strong></p>
<p>- Enable public key authentication with remote hosts with normal user privilege</p>
<blockquote><p>local# ssh-keygen -t rsa<br />
local# scp id_rsa.pub ssh-remote-server:id_rsa.pub</p>
<p>remote# useradd -c &#8220;Backup user&#8221; -d /data/home/backup/ backup<br />
remote# su &#8211; backup</p>
<p>remote# vi .ssh/authorized_keys</p>
<p>remote# chmod 600 .ssh/authorized_keys</p>
<p>remote# cat id_rsa.pub &gt;&gt; authorized_keys ; rm id_rsa.pub</p></blockquote>
<p>Add the command allowed to execute in the authorized_keys</p>
<blockquote><p>command=&#8221;/home/backup/validate-rsync.sh&#8221;</p></blockquote>
<p>Create the /home/backup/validate-rsync.sh script with following contents</p>
<blockquote><p><em>#!/bin/sh</em><br />
<em>case &#8220;$SSH_ORIGINAL_COMMAND&#8221; in</em><br />
<em>  *\&amp;*)</em><br />
<em>    echo &#8220;Rejected 1&#8243;</em><br />
<em>    ;;</em><br />
<em>  *\;*)</em><br />
<em>    echo &#8220;Rejected 2&#8243;</em><br />
<em>    ;;</em><br />
<em>    rsync*)</em><br />
<em>    $SSH_ORIGINAL_COMMAND</em><br />
<em>    ;;</em><br />
<em>  *true*)</em><br />
<em>    echo $SSH_ORIGINAL_COMMAND</em><br />
<em>    ;;</em><br />
<em>  *)</em><br />
<em>    echo &#8220;Rejected 3&#8243;</em><br />
<em>    ;;</em><br />
<em>esac</em></p>
<p>$ chmod 700 validate-rsync.sh</p></blockquote>
<p>Create the rsync wrapper script</p>
<blockquote><p>$ cat  &gt; /usr/local/bin/rsync_wrapper.sh</p>
<p><em>#!/bin/sh</em><br />
<em>/usr/bin/sudo /usr/bin/rsync &#8220;$@&#8221;;</em></p>
<p># chmod 755 /usr/local/bin/rsync_wrapper.sh</p></blockquote>
<p>This steps will basically force the ssh connection to execute the rsync as sudo</p>
<p>Grant user to execute rsync as root<br />
<em></em></p>
<blockquote><p><em>backup    ALL=(root) NOPASSWD: /usr/bin/rsync</em></p></blockquote>
<p><span style="text-decoration: underline;"><strong>Configure Rsnapshot</strong></span></p>
<blockquote><p>master# cp /etc/rsnapshot.conf.default /etc/rsnapshot.conf</p></blockquote>
<p>Configure path for cp, rsync, ssh, logger, du etc</p>
<blockquote><p>set link_dest = 1</p></blockquote>
<p>change rsync_long_args like</p>
<blockquote><p>rsync_long_args &#8211;rsync-path=rsync_wrapper.sh &#8211;delete &#8211;numeric-ids &#8211;relative &#8211;delete-excluded</p></blockquote>
<p>If you require daily backup for a week,</p>
<blockquote><p>interval daily 7</p></blockquote>
<p>More details are on the how to section for rsnapshot website</p>
<p>http://rsnapshot.org/howto/1.2/rsnapshot-HOWTO.en.html</p>
<p>Configure the hosts and file system to backup</p>
<blockquote><p>backup      backup@remotehost:/etc/     remotehost/</p></blockquote>
<p>./arun</p>
<blockquote><p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://arunnsblog.com/2011/08/22/install-and-configure-rsnapshot-without-root-privilege/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Upgrading php to 5.2 or 5.3 in Redhat EL 5</title>
		<link>http://arunnsblog.com/2011/08/14/upgrading-php-to-5-2-or-5-3-in-redhat-el-5/</link>
		<comments>http://arunnsblog.com/2011/08/14/upgrading-php-to-5-2-or-5-3-in-redhat-el-5/#comments</comments>
		<pubDate>Sun, 14 Aug 2011 13:22:13 +0000</pubDate>
		<dc:creator>Arun N S</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[PHP 5.2 in Redhat Enterprise Linux 5]]></category>

		<guid isPermaLink="false">http://arunnsblog.com/?p=553</guid>
		<description><![CDATA[Unfortunately RHEL 5 does not have php.5.2 package, which is required by most of the applications including latest wordpress and drupal. First thought of compiling php from source, but hard to keep it uptodate. So decided to make the life easier with EPEL/IUS repositories. Remove all existing php related packages: # rpm -e php php-mysql [...]]]></description>
			<content:encoded><![CDATA[<p>Unfortunately RHEL 5 does not have php.5.2 package, which is required by most of the applications including latest wordpress and drupal.</p>
<p>First thought of compiling php from source, but hard to keep it uptodate. So decided to make the life easier with EPEL/IUS repositories.</p>
<p>Remove all existing php related packages:</p>
<blockquote><p># rpm -e php php-mysql php-cli php-pdo php-common</p>
<p>Download and install the EPEL/IUS RPMs</p>
<p># wget http://dl.iuscommunity.org/pub/ius/stable/Redhat/5/i386/epel-release-1-1.ius.el5.noarch.rpm</p>
<p># wget http://dl.iuscommunity.org/pub/ius/stable/Redhat/5/i386/ius-release-1.0-8.ius.el5.noarch.rpm</p></blockquote>
<p>incase if the list not working just browse and find the rpm.</p>
<p>Install the RPMs</p>
<blockquote><p># rpm -Uvh *-release-*.rpm</p></blockquote>
<p>Now you can install php 5.2 or 5.3 like:</p>
<blockquote><p># yum install php52 php52-mysql</p></blockquote>
<p>./arun</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://arunnsblog.com/2011/08/14/upgrading-php-to-5-2-or-5-3-in-redhat-el-5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>svn over ssh tunnel</title>
		<link>http://arunnsblog.com/2011/06/19/svn-over-ssh-tunnel/</link>
		<comments>http://arunnsblog.com/2011/06/19/svn-over-ssh-tunnel/#comments</comments>
		<pubDate>Sun, 19 Jun 2011 19:57:40 +0000</pubDate>
		<dc:creator>Arun N S</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[MAC OS X]]></category>
		<category><![CDATA[svn commit]]></category>
		<category><![CDATA[svn ssh tunnel]]></category>
		<category><![CDATA[svn update]]></category>

		<guid isPermaLink="false">http://arunnsblog.com/?p=548</guid>
		<description><![CDATA[&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; It is very often required that you need to commit/update to the svn repository which is only indirectly accessible through a gateway (user can ssh to gateway and gateway can ssh to internal svn server) Suppose you have a working copy (locally on your machine)  setup [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-medium wp-image-549" title="SVN+SSH Tunnel" src="http://arunnsblog.com/wp-content/uploads/2011/06/Screen-shot-2011-06-19-at-10.49.36-PM-300x277.png" alt="" width="300" height="277" /></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>It is very often required that you need to commit/update to the svn repository which is only indirectly accessible through a gateway (user can ssh to gateway and gateway can ssh to internal svn server)</p>
<p>Suppose you have a working copy (locally on your machine)  setup with the real svn url (eg : svn+ssh://svn.example.com)</p>
<p>- Make ssh connection with local port forwarding to the gateway server</p>
<blockquote><p># sudo ssh gateway.example.com -L 22:svn.example.com:22</p></blockquote>
<p>Change the repository url to localhost, since the local host connection forward to remote svn server through the gateway.</p>
<blockquote><p>#cd &lt;local_svn_path&gt;</p>
<p># svn switch &#8211;relocate svn+ssh://svn.example.com/trunk svn+ssh://localhost/trunk</p></blockquote>
<p>Now you should be able to update, commit, etc to/from your repository.</p>
<p>You can switch it back to the original url when you have direct access to repository.</p>
<p>./arun</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://arunnsblog.com/2011/06/19/svn-over-ssh-tunnel/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install directadmin on Debian 6</title>
		<link>http://arunnsblog.com/2011/06/14/install-directadmin-on-debian-6/</link>
		<comments>http://arunnsblog.com/2011/06/14/install-directadmin-on-debian-6/#comments</comments>
		<pubDate>Tue, 14 Jun 2011 13:21:52 +0000</pubDate>
		<dc:creator>Arun N S</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[debian 6]]></category>
		<category><![CDATA[Direct admin]]></category>

		<guid isPermaLink="false">http://arunnsblog.com/?p=545</guid>
		<description><![CDATA[Install the basic debian server without any server components Install the dependency packages: # sudo apt-get install gcc g++ make flex bison openssl libssl-dev perl perl-base perl-modules libperl-dev libaio1 libaio-dev bind9 Purchase and register the server ip at directadmin.com Once the license is activated, login to the server: $ wget http://www.directadmin.com/setup.sh $ chmod 755 setup.sh [...]]]></description>
			<content:encoded><![CDATA[<p>Install the basic debian server without any server components</p>
<p>Install the dependency packages:</p>
<blockquote><p># sudo apt-get install gcc g++ make flex bison openssl libssl-dev perl perl-base perl-modules libperl-dev libaio1 libaio-dev bind9</p></blockquote>
<p>Purchase and register the server ip at directadmin.com</p>
<p>Once the license is activated, login to the server:</p>
<blockquote><p>$ wget http://www.directadmin.com/setup.sh</p>
<p>$ chmod 755 setup.sh</p>
<p># sudo ./setup.sh</p>
<p>// enter the client id, license id, FQDN etc, and follow the instructions.</p>
<p>Once the installation completed the direct admin interface will be accessible at https://&lt; server_ip &gt;: 2222/</p></blockquote>
<p>./arun</p>
<blockquote><p>&nbsp;</p></blockquote>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://arunnsblog.com/2011/06/14/install-directadmin-on-debian-6/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Racktable, Apache+LDAP authentication</title>
		<link>http://arunnsblog.com/2011/06/14/racktable-apacheldap-authentication/</link>
		<comments>http://arunnsblog.com/2011/06/14/racktable-apacheldap-authentication/#comments</comments>
		<pubDate>Tue, 14 Jun 2011 12:59:21 +0000</pubDate>
		<dc:creator>Arun N S</dc:creator>
				<category><![CDATA[apache]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[LDAP]]></category>
		<category><![CDATA[Racktables]]></category>

		<guid isPermaLink="false">http://arunnsblog.com/?p=537</guid>
		<description><![CDATA[Login to the Rack tables as admin: Add the following line under configuration&#8211;&#62; permission allow {$tab_default} * This is for read only account, assign extra permissions if required Configure Apache + LDAP &#60; Directory /var/www/racktables &#62; Options +Indexes FollowSymLinks MultiViews DirectoryIndex index.php AuthName "Rack Tables" AuthType Basic AuthBasicProvider ldap AuthzLDAPAuthoritative on AuthLDAPURL "ldaps://ldaphost.com/dc=company,dc=com?uid?sub?(objectClass=&#60; depends_on_ldap &#62;)" [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Login to the Rack tables as admin:</strong></p>
<p>Add the following line under configuration&#8211;&gt; permission</p>
<blockquote><p><code>allow {$tab_default}</code></p></blockquote>
<p>* This is for read only account, assign extra permissions if required</p>
<p><strong>Configure Apache + LDAP</strong></p>
<blockquote><p><code> &lt; Directory /var/www/racktables &gt;<br />
Options +Indexes FollowSymLinks MultiViews<br />
DirectoryIndex index.php<br />
AuthName "Rack Tables"<br />
AuthType Basic<br />
AuthBasicProvider ldap<br />
AuthzLDAPAuthoritative on<br />
AuthLDAPURL "ldaps://ldaphost.com/dc=company,dc=com?uid?sub?(objectClass=&lt; depends_on_ldap &gt;)"</code></p>
<p><code> </code></p>
<p><code> # Bind if required<br />
AuthLDAPBindDN  "uid=userid,ou=people,dc=company,dc=com"<br />
AuthLDAPBindPassword "xxxxxx"<br />
AuthLDAPGroupAttribute uniqueMember<br />
AuthLDAPGroupAttributeIsDN on<br />
require ldap-group cn=group_name,dc=company,dc=com<br />
require ldap-attribute cn=group-name-allowed<br />
&lt; /Directory &gt;</code></p></blockquote>
<p><em>* Most of LDAP configs based on your setup</em></p>
<p><strong>Configure Rack Tables:</strong></p>
<p><strong> </strong>Edit the inc/secret.php</p>
<p>Set :</p>
<blockquote><p><code>$user_auth_src = 'httpd';<br />
$require_local_account = FALSE;</code></p></blockquote>
<p><strong> </strong><em>NOTE: to get the logout working properly make sure the Apache AuthName matches with the one configured for Rack tables authentication.</em></p>
<p><strong> </strong><strong> </strong>Referene : <a href="http://sourceforge.net/apps/mediawiki/racktables/index.php?title=RackTablesAdminGuide" target="_blank">http://sourceforge.net/apps/mediawiki/racktables/index.php?title=RackTablesAdminGuide</a></p>
<p>Reference</p>
<p><strong> </strong>./arun</p>
]]></content:encoded>
			<wfw:commentRss>http://arunnsblog.com/2011/06/14/racktable-apacheldap-authentication/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rsnapshot Lchown</title>
		<link>http://arunnsblog.com/2011/06/06/rsnapshot-lchown/</link>
		<comments>http://arunnsblog.com/2011/06/06/rsnapshot-lchown/#comments</comments>
		<pubDate>Mon, 06 Jun 2011 07:28:39 +0000</pubDate>
		<dc:creator>Arun N S</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Lchown]]></category>
		<category><![CDATA[rsnapshot]]></category>

		<guid isPermaLink="false">http://arunnsblog.com/?p=506</guid>
		<description><![CDATA[# rsnapshot du localhost require Lchown Lchown module not found Install the Lchown module: # wget http://www.rsnapshot.org/downloads/extras/Lchown-1.00.tar.gz # tar xvzf Lchown-1.00.tar.gz # cd Lchown-1.00 # perl Makefile.PL Checking if your kit is complete&#8230; Looks good # make install # rsnapshot du localhost require Lchown Lchown module loaded successfully You can also try installing the module [...]]]></description>
			<content:encoded><![CDATA[<blockquote><p># rsnapshot du localhost<br />
<em>require Lchown</em><br />
<em>Lchown module not found</em></p></blockquote>
<p>Install the Lchown module:</p>
<blockquote><p># wget http://www.rsnapshot.org/downloads/extras/Lchown-1.00.tar.gz</p>
<p># tar xvzf Lchown-1.00.tar.gz</p>
<p># cd Lchown-1.00</p>
<p># perl Makefile.PL<br />
<em>Checking if your kit is complete&#8230;</em><br />
<em>Looks good</em></p>
<p># make install</p></blockquote>
<blockquote><p># rsnapshot du localhost<br />
<em>require Lchown</em><br />
<em>Lchown module loaded successfully</em></p></blockquote>
<p>You can also try installing the module from Perl CPAN</p>
<blockquote><p># perl -MCPAN -e &#8216;install qw(Lchown)&#8217;</p></blockquote>
<p>./arun</p>
]]></content:encoded>
			<wfw:commentRss>http://arunnsblog.com/2011/06/06/rsnapshot-lchown/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My Favourite MAC OS X applications</title>
		<link>http://arunnsblog.com/2011/06/04/my-favourite-mac-applications/</link>
		<comments>http://arunnsblog.com/2011/06/04/my-favourite-mac-applications/#comments</comments>
		<pubDate>Sat, 04 Jun 2011 18:29:02 +0000</pubDate>
		<dc:creator>Arun N S</dc:creator>
				<category><![CDATA[MAC OS X]]></category>
		<category><![CDATA[MAC applications]]></category>

		<guid isPermaLink="false">http://arunnsblog.com/?p=491</guid>
		<description><![CDATA[Text Editor vi Text Edit Smultron: http://www.peterborgapps.com/smultron/ Komodo Edit: http://www.activestate.com/komodo-edit Voice/Video Calls Skype : http://skype.com Google talk (browser plugin): : http://www.google.com/chat/video G+ hangout Web Browser Firefox: http://www.mozilla.com/en-US/firefox/fx/ Chrome: http://www.google.com/chrome Twitter Client A Plus: http://www.aplus-app.com/ IM Adium: http://adium.im/ Office Documents Libre office: http://www.libreoffice.org/ Video Player VLC: http://www.videolan.org/vlc/ Miro: http://www.getmiro.com/ ( an excellent stream and bit torrent [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Text Editor</strong></p>
<blockquote><p>vi</p>
<p>Text Edit</p>
<p>Smultron: <a href="http://www.peterborgapps.com/smultron/" target="_blank">http://www.peterborgapps.com/smultron/</a></p>
<p>Komodo Edit: <a href="http://www.activestate.com/komodo-edit" target="_blank">http://www.activestate.com/komodo-edit</a></p></blockquote>
<p><strong>Voice/Video Calls</strong></p>
<blockquote><p>Skype : <a href="http://skype.com" target="_blank">http://skype.com</a></p>
<p>Google talk (browser plugin): : <a href="http://www.google.com/chat/video" target="_blank">http://www.google.com/chat/video</a></p>
<p>G+ hangout</p></blockquote>
<p><strong>Web Browser</strong></p>
<blockquote><p>Firefox: <a href="http://www.mozilla.com/en-US/firefox/fx/" target="_blank">http://www.mozilla.com/en-US/firefox/fx/</a></p>
<p>Chrome: <a href="http://www.google.com/chrome" target="_blank">http://www.google.com/chrome</a></p></blockquote>
<p><strong>Twitter Client</strong></p>
<blockquote><p>A Plus: <a href="http://www.aplus-app.com/" target="_blank">http://www.aplus-app.com/</a></p></blockquote>
<p><strong>IM</strong></p>
<blockquote><p>Adium: <a href="http://adium.im/" target="_blank">http://adium.im/</a></p></blockquote>
<p><a href="http://arunnsblog.com/wp-content/uploads/2011/06/mac.jpg"><img title="mac" src="http://arunnsblog.com/wp-content/uploads/2011/06/mac-300x88.jpg" alt="" width="300" height="88" /></a></p>
<p><strong>Office Documents</strong></p>
<blockquote><p>Libre office: <a href="http://www.libreoffice.org/" target="_blank">http://www.libreoffice.org/</a></p></blockquote>
<p><strong>Video Player</strong></p>
<blockquote><p>VLC: <a href="http://www.videolan.org/vlc/" target="_blank">http://www.videolan.org/vlc/</a></p>
<p>Miro: <a href="http://www.getmiro.com/" target="_blank">http://www.getmiro.com/</a> ( an excellent stream and bit torrent client as well)</p></blockquote>
<p><strong>VOIP</strong></p>
<blockquote><p>Express Talk(free edition) : <a href="http://www.nch.com.au/talk/talkmaci.zip" target="_blank">http://www.nch.com.au/talk/talkmaci.zip</a></p></blockquote>
<p><strong>Virtulization</strong></p>
<blockquote><p>VMware Fusion : <a href="http://www.vmware.com/products/fusion/overview.html" target="_blank">http://www.vmware.com/products/fusion/overview.html</a></p>
<p>Sun Virtual Box (free): <a href="http://www.virtualbox.org/" target="_blank">http://www.virtualbox.org/</a></p>
<p>Parellels: <a href="http://www.parallels.com/" target="_blank">http://www.parallels.com/</a></p></blockquote>
<p><strong>PDF viewer</strong></p>
<blockquote><p>Adobe Reader: <a href="http://get.adobe.com/reader/" target="_blank">http://get.adobe.com/reader/</a></p></blockquote>
<p><strong>Audio Editing</strong></p>
<blockquote><p>Audacity: <a href="http://audacity.sourceforge.net/" target="_blank">http://audacity.sourceforge.net/</a></p></blockquote>
<p><strong>Disk burning</strong></p>
<blockquote><p>Burn: <a href="http://burn-osx.sourceforge.net/Pages/English/home.html" target="_blank">http://burn-osx.sourceforge.net/</a></p></blockquote>
<p><strong>Disk Image backup</strong></p>
<blockquote><p>Carbon copy cloner: <a href="http://www.bombich.com/" target="_blank">http://www.bombich.com/</a></p></blockquote>
<p><strong>VNC client</strong></p>
<blockquote><p>Chicken of the VNC: <a href="http://sourceforge.net/projects/cotvnc/" target="_blank">http://sourceforge.net/projects/cotvnc/</a></p></blockquote>
<p><strong>IPSEC VPN</strong></p>
<blockquote><p>Cisco Any connect</p></blockquote>
<p><strong>Subversion</strong></p>
<blockquote><p>Command line as always</p>
<p>Cornerstone, good if you require an interface: <a href="http://www.zennaware.com/cornerstone/index.php" target="_blank">http://www.zennaware.com/cornerstone/index.php</a></p></blockquote>
<p><strong>Image Manipulation</strong></p>
<blockquote><p>GIMP: <a href="http://www.gimp.org/" target="_blank">http://www.gimp.org/</a></p>
<p>Picasa: <a href="http://picasa.google.com/mac/" target="_blank">http://picasa.google.com/mac/</a></p>
<p>Xee:<a href="http://wakaba.c3.cx/s/apps/xee" target="_blank"> http://wakaba.c3.cx/s/apps/xee</a></p></blockquote>
<p><strong>Password Management</strong></p>
<blockquote><p>KeePassX: <a href="http://www.keepassx.org/" target="_blank">http://www.keepassx.org/</a></p></blockquote>
<p><strong>GPG Key Chain</strong></p>
<blockquote><p>MAC GPG: <a href="http://macgpg.sourceforge.net/" target="_blank">http://macgpg.sourceforge.net/</a></p></blockquote>
<p><strong>Terminal</strong></p>
<blockquote><p>iTerm: <a href="http://iterm.sourceforge.net/" target="_blank">http://iterm.sourceforge.net/</a></p>
<p>The default terminal is really nice in Lion</p></blockquote>
<p><strong>Mail</strong></p>
<blockquote><p>Thunderbird: <a href="http://www.mozillamessaging.com/en-US/thunderbird/" target="_blank">http://www.mozillamessaging.com/en-US/thunderbird/</a></p></blockquote>
<p><strong>Diagram</strong></p>
<blockquote><p>OmniGraffle: <a href="http://www.omnigroup.com/products/omnigraffle/" target="_blank">http://www.omnigroup.com/products/omnigraffle/</a></p></blockquote>
<p><strong>Packet Analysis</strong></p>
<blockquote><p>wireshark:<a href="http://www.wireshark.org/" target="_blank"> http://www.wireshark.org/</a></p></blockquote>
<p>./arun</p>
<blockquote><p>&nbsp;</p></blockquote>
<blockquote><p>&nbsp;</p></blockquote>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://arunnsblog.com/2011/06/04/my-favourite-mac-applications/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install Cpanel on FreeBSD 8.2</title>
		<link>http://arunnsblog.com/2011/05/28/install-cpanel-on-freebsd-8-2/</link>
		<comments>http://arunnsblog.com/2011/05/28/install-cpanel-on-freebsd-8-2/#comments</comments>
		<pubDate>Sat, 28 May 2011 18:51:05 +0000</pubDate>
		<dc:creator>Arun N S</dc:creator>
				<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Install Cpanel on Free BSD]]></category>
		<category><![CDATA[pkg_add]]></category>

		<guid isPermaLink="false">http://arunnsblog.com/?p=485</guid>
		<description><![CDATA[- Install FreeBSD with proper network and file system configuration (Ref:  http://docs.cpanel.net/twiki/bin/view/AllDocumentation/InstallationGuide/Quick-StartInstallationGuide) - Install dependency packages: # pkg_add -r wget # pkg_add -r perl # pkg_add -r rsync (required later for ports sync) # pkg_add -r gmake To Fix: creating glibconfig.h config.status: executing default commands gmake: not found child exited with value 127 Died at [...]]]></description>
			<content:encoded><![CDATA[<p>- Install FreeBSD with proper network and file system configuration (Ref:  <a title="http://docs.cpanel.net/twiki/bin/view/AllDocumentation/InstallationGuide/Quick-StartInstallationGuide" href="http://docs.cpanel.net/twiki/bin/view/AllDocumentation/InstallationGuide/Quick-StartInstallationGuide" target="_blank">http://docs.cpanel.net/twiki/bin/view/AllDocumentation/InstallationGuide/Quick-StartInstallationGuide</a>)</p>
<p>- Install dependency packages:</p>
<blockquote><p># pkg_add -r wget</p>
<p># pkg_add -r perl</p>
<p># pkg_add -r rsync (required later for ports sync)</p>
<p># pkg_add -r gmake</p></blockquote>
<p><em>To Fix:</em></p>
<p><em>creating glibconfig.h</em><br />
<em> config.status: executing default commands</em><br />
<em> gmake: not found</em><br />
<em> child exited with value 127</em><br />
<em> Died at /usr/local/cpanel/bin/rrdtoolinstall line 109.</em></p>
<blockquote><p># pkg_add -r png <em>// To fix the following error</em></p></blockquote>
<p><em>To Fix : configure: error: requested PNG backend could not be enabled</em></p>
<p>- Create the following symlinks</p>
<blockquote><p># ln -s /usr/local/bin/wget /usr/bin/wget</p>
<p># ln -s /lib/libcrypt.so.5 /lib/libcrypt.so.2 <em>// To Fix: Shared object &#8220;libcrypt.so.2&#8243; not found,</em></p>
<p># ln -s /lib/libc.so.7 /lib/libc.so.5 <em>// To Fix: Shared object &#8220;libc.so.5&#8243; not found</em></p>
<p>ln -s /lib/libm.so.5 /lib/libm.so.3<em> // To Fix: &#8220;libm.so.3&#8243; not found</em></p></blockquote>
<p>- Install Cpanel</p>
<blockquote><p>cd /home</p>
<p>wget -N http://httpupdate.cpanel.net/latest</p>
<p>sh latest</p></blockquote>
<p>- Once installation successful activate the license (make sure the ip is licensed -  <a title="http://www.cpanel.net/apps/verify/" href="http://www.cpanel.net/apps/verify/" target="_blank">http://www.cpanel.net/apps/verify/</a>)  :</p>
<blockquote><p>#  /usr/local/cpanel/cpkeyclt</p></blockquote>
<p>- Start Cpanel</p>
<p>- Touch the following file</p>
<blockquote><p># touch /etc/rc.d/init.d/function <em>// To fix:  Could not find functions file, your system may be broken</em></p>
<p># /etc/init.d/cpanel start</p></blockquote>
<p>Now you should be able to access Cpanel at https://&lt; yourip &gt;:2087/</p>
<p>Try to upgrade</p>
<p>Exim: /scripts/eximup &#8211;force (this will get the free bsd ports as well)<br />
Cpanel : # /scripts/upcp</p>
<p>./arun</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://arunnsblog.com/2011/05/28/install-cpanel-on-freebsd-8-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Drupal 7 issue with SQL Mode TRADITIONAL</title>
		<link>http://arunnsblog.com/2011/05/22/drupal-7-issue-with-sql-mode-traditional/</link>
		<comments>http://arunnsblog.com/2011/05/22/drupal-7-issue-with-sql-mode-traditional/#comments</comments>
		<pubDate>Sun, 22 May 2011 06:43:57 +0000</pubDate>
		<dc:creator>Arun N S</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mysql]]></category>
		<category><![CDATA[1231 Variable 'sql_mode' can't be set to the value of 'TRADITIONAL']]></category>
		<category><![CDATA[Cpanel]]></category>
		<category><![CDATA[Drupal 7 issue]]></category>
		<category><![CDATA[Sql Mode]]></category>

		<guid isPermaLink="false">http://arunnsblog.com/?p=478</guid>
		<description><![CDATA[PDOException: SQLSTATE[42000]: Syntax error or access violation: 1231 Variable &#8216;sql_mode&#8217; can&#8217;t be set to the value of &#8216;TRADITIONAL&#8217; in lock_may_be_available() (line 165 of /includes/lock.inc). This was the case when I installed Drupal 7 with Cpanel/Fantastico, the drupal site was displaying the above error. This issue is discussed at drupal issues . try to patch it [...]]]></description>
			<content:encoded><![CDATA[<p><strong>PDOException: SQLSTATE[42000]: Syntax error or access violation: 1231  Variable &#8216;sql_mode&#8217; can&#8217;t be set to the value of &#8216;TRADITIONAL&#8217; in  lock_may_be_available() (line 165 of /includes/lock.inc).</strong></p>
<p>This was the case when I installed Drupal 7 with Cpanel/Fantastico, the drupal site was displaying the above error.</p>
<p>This issue is discussed at <a href="http://drupal.org/node/344575" target="_blank">drupal issues</a> . try to patch it as mentioned in the url.</p>
<p>But for me it works with the following change, just removed the TRADITIONAL mode, not  sure it is the correct way to fix it. You can verify the sql modes at <a href="http://dev.mysql.com/doc/refman/5.0/en/server-sql-mode.html" target="_blank">http://dev.mysql.com/doc/refman/5.0/en/server-sql-mode.html</a> ,  Anyway now there is no errors in drupal site and I am able to login.</p>
<p><em>(includes/database/mysql/database.inc) Line: 65</em></p>
<p><em> New file</em><br />
<em> &lt;      $this-&gt;exec(&#8220;SET sql_mode=&#8217;ANSI,ONLY_FULL_GROUP_BY&#8217;&#8221;);</em><br />
<em> &#8212;</em><br />
<em> Old file</em><br />
<em> &gt;      $this-&gt;exec(&#8220;SET sql_mode=&#8217;ANSI,TRADITIONAL&#8217;&#8221;);</em></p>
<p>Also setting up the sql connection mode to <em><code>SET SESSION sql_mode = "ANSI,TRADITIONAL";</code> </em>is an option instead of above change.</p>
<p>./arun</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><strong><br />
</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://arunnsblog.com/2011/05/22/drupal-7-issue-with-sql-mode-traditional/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Install and configure RSA web agent with Redhat EL5 and Apache</title>
		<link>http://arunnsblog.com/2011/05/15/install-and-configure-rsa-web-agent-with-redhat-el5-and-apache/</link>
		<comments>http://arunnsblog.com/2011/05/15/install-and-configure-rsa-web-agent-with-redhat-el5-and-apache/#comments</comments>
		<pubDate>Sun, 15 May 2011 11:21:44 +0000</pubDate>
		<dc:creator>Arun N S</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[RSA]]></category>
		<category><![CDATA[Linux RSA web interface]]></category>
		<category><![CDATA[RSA web interface for Redhat]]></category>
		<category><![CDATA[The user belongs to security domain “SystemDomain”]]></category>

		<guid isPermaLink="false">http://arunnsblog.com/?p=461</guid>
		<description><![CDATA[Login to RSA interface: - Create the apache server as agent host with type web agent - Generate the config file (zip file containing sdconf.rec) from RSA interface, and download to your local machine Login to the web server - Download the RSA web agent installation files from RSA website. # mkdir -p /var/ace - [...]]]></description>
			<content:encoded><![CDATA[<p><a href="../wp-content/uploads/2011/05/Screen-shot-2011-05-15-at-2.25.37-PM.png"><img title="Screen shot 2011-05-15 at 2.25.37 PM" src="../wp-content/uploads/2011/05/Screen-shot-2011-05-15-at-2.25.37-PM.png" alt="" width="198" height="91" /></a></p>
<p><strong>Login to RSA interface:</strong></p>
<p>- Create the apache server as agent host with type web agent<br />
- Generate the config file (zip file containing sdconf.rec) from RSA interface, and download to your local machine</p>
<p><strong>Login to the web server</strong></p>
<p>- Download the RSA web agent installation files from RSA website.</p>
<p><code># mkdir -p /var/ace</code></p>
<p>- Copy and extract (sdconf.rec) the downloaded config file<br />
<code># chmod 755 sdconf.rec</code></p>
<p>- Create the sdopts.rec file with the ip address of the machine, if you have multiple ip address assigned to the server or if the RSA we agent is a virtual machine. Otherwise the authentication might break with following kind of errors<br />
<em>&#8220;100: Access denied. The RSA ACE/Server rejected the Passcode. Please try again.&#8221; , &#8220;attempted to authenticate using authenticator “SecurID_Native”. The user belongs to security domain “SystemDomain”&#8221;</em></p>
<p><code># echo "CLIENT_IP=" &gt; sdopts.rec</code><br />
<code># chown -R webuser:webuser /var/ace</code></p>
<p>- Now install the RSA web agent</p>
<p><code># tar xvf WebAgent_70_Apache_RHEL5_32_379_08201024.tar<br />
# cd CD/<br />
# chmod u+x install<br />
# ./install</code></p>
<p>- Enter the location of sdconf.rec</p>
<p>- Configure the apache virtual host</p>
<p>It was found that web agent breaks if apache starts multiple server thread, so would be better to limit the thread.</p>
<p><code>&lt; IfModule prefork.c &gt;<br />
StartServers       1<br />
MinSpareServers    1<br />
MaxSpareServers    1<br />
ServerLimit      256<br />
MaxClients       256<br />
MaxRequestsPerChild  4000<br />
&lt; /IfModule &gt;</code></p>
<p>- Now start apache and you will be able to access the RSA web interface.</p>
<p>Once authenticated, the RSA server will create a node secret for the agent host and will be copied automatically to the web server.</p>
<p>This web interface is mainly useful for the token users to reset or enable to token assigned to him.</p>
<p>./arun</p>
]]></content:encoded>
			<wfw:commentRss>http://arunnsblog.com/2011/05/15/install-and-configure-rsa-web-agent-with-redhat-el5-and-apache/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Changing RSA passwords</title>
		<link>http://arunnsblog.com/2011/05/04/changing-rsa-passwords/</link>
		<comments>http://arunnsblog.com/2011/05/04/changing-rsa-passwords/#comments</comments>
		<pubDate>Wed, 04 May 2011 13:11:04 +0000</pubDate>
		<dc:creator>Arun N S</dc:creator>
				<category><![CDATA[RSA]]></category>
		<category><![CDATA[RSA Appliance]]></category>
		<category><![CDATA[RSA SecureID]]></category>

		<guid isPermaLink="false">http://arunnsblog.com/?p=454</guid>
		<description><![CDATA[&#160; Reset SSH Password: &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- Log in to Operations console (Master): Administration --&#62; Networking --&#62; Configure connectivity using SSH Do the same procedure on Replica also (if any), it is manual process. Reset Operations console password: &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- Login to the master appliance with SSH $ sudo -s // sudo as root # su - rsaadmin [...]]]></description>
			<content:encoded><![CDATA[<p>&nbsp;</p>
<p>Reset SSH Password:<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
Log in to Operations console (Master):</p>
<p><code>Administration --&gt; Networking --&gt; Configure connectivity using SSH</code></p>
<p>Do the same procedure on Replica also (if any), it is manual process.</p>
<p>Reset Operations console password:<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
Login to the master appliance with SSH</p>
<p><code>$ sudo -s // sudo as root<br />
# su - rsaadmin // change user to rsaadmin<br />
$ cd /usr/local/RSASecurity/RSAAuthenticationManager/ //navigate to RSA installation path<br />
$ cd utils<br />
$ ./rsautil manage-oc-administrator -a update // Execute</code></p>
<p>// Enter Super administrators name<br />
// Enter Super administrators password<br />
// Enter operation console user<br />
// Set the new password</p>
<p>Do the same steps on replica<br />
Error: This operation can be performed only on a primary instance.<br />
But the password got changed</p>
<p>Reset Master password:<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
Login to the master appliance with SSH</p>
<p><code>$ sudo -s // sudo as root<br />
# su - rsaadmin // change user to rsaadmin<br />
$ cd /usr/local/RSASecurity/RSAAuthenticationManager/ //navigate to RSA installation path<br />
$ cd utils<br />
$ ./rsautil manage-secrets --action change --new-password &lt;enter_the_new_password&gt;</code></p>
<p>Do the same procedure on the replica device.</p>
<p>Reset Security Console Password:<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
Login to Security Console</p>
<p><code>Identity--&gt;Users--&gt;Manage Existing // Search for your admin username in internal datase</code></p>
<p>Change password for the admin user<br />
This action will be automatically replicated to replica.</p>
<p>./arun</p>
]]></content:encoded>
			<wfw:commentRss>http://arunnsblog.com/2011/05/04/changing-rsa-passwords/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Configure IPv6 squid</title>
		<link>http://arunnsblog.com/2011/03/01/configure-ipv6-squid/</link>
		<comments>http://arunnsblog.com/2011/03/01/configure-ipv6-squid/#comments</comments>
		<pubDate>Tue, 01 Mar 2011 08:01:43 +0000</pubDate>
		<dc:creator>Arun N S</dc:creator>
				<category><![CDATA[IPv6]]></category>
		<category><![CDATA[Squid]]></category>
		<category><![CDATA[configure squid with ipv6]]></category>
		<category><![CDATA[ipv6 proxy]]></category>
		<category><![CDATA[ipv6 squid]]></category>

		<guid isPermaLink="false">http://arunnsblog.com/?p=435</guid>
		<description><![CDATA[Squid 3.1+ support IPv6 - Compile and install 3.1.x version of squid. # useradd -d /opt/squid squid # wget http://www.squid-cache.org/Versions/v3/3.1/squid-3.1.11-20110228.tar.gz # tar xvzf squid-3.1.11-20110228.tar.gz # cd squid-3.1.11-20110228; ./configure &#8211;prefix=/opt/squid/ # make; make install # /opt/squid/sbin/squid -z Configure squid edit /opt/squid/etc/squid.conf cache_effective_user squid acl manager proto cache_object acl localhost src 127.0.0.1/32 ::1 acl to_localhost dst 127.0.0.0/8 [...]]]></description>
			<content:encoded><![CDATA[<p>Squid 3.1+ support IPv6</p>
<p>- Compile and install 3.1.x version of squid.</p>
<blockquote><p># useradd -d /opt/squid squid</p>
<p># wget http://www.squid-cache.org/Versions/v3/3.1/squid-3.1.11-20110228.tar.gz</p>
<p># tar xvzf squid-3.1.11-20110228.tar.gz</p>
<p># cd squid-3.1.11-20110228; ./configure &#8211;prefix=/opt/squid/</p>
<p># make; make install</p>
<p># /opt/squid/sbin/squid -z</p></blockquote>
<p>Configure squid</p>
<p>edit /opt/squid/etc/squid.conf</p>
<blockquote><p>cache_effective_user squid</p>
<p>acl manager proto cache_object<br />
acl localhost src 127.0.0.1/32 ::1<br />
acl to_localhost dst 127.0.0.0/8 0.0.0.0/32 ::1</p>
<p>acl to_ipv6 dst ipv6<br />
http_access allow to_ipv6 !all<br />
tcp_outgoing_address 2001:: to_ipv6<br />
tcp_outgoing_address 12.34.56.78 !to_ipv6</p></blockquote>
<p>And add necessary acls to allow access for your network to squid.</p>
<p>Testing:</p>
<blockquote><p>$ telnet &lt;v6_address&gt; 3128<br />
Trying 2001::&#8230;<br />
Connected to 2001::..<br />
Escape character is &#8216;^]&#8217;.<br />
get http://ipv6.google.com/<br />
HTTP/1.0 200 OK</p></blockquote>
<p>Check the access.log to make sure</p>
<blockquote><p>1298965141.719    477 2001:: TCP_MISS/200 25918 GET http://ipv6.google.com/ &#8211; DIRECT/2a00:1450:8002::6a text/html</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://arunnsblog.com/2011/03/01/configure-ipv6-squid/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Performance issues with KVM &#8211; Redhat</title>
		<link>http://arunnsblog.com/2011/02/22/performance-issues-with-kvm-redhat/</link>
		<comments>http://arunnsblog.com/2011/02/22/performance-issues-with-kvm-redhat/#comments</comments>
		<pubDate>Tue, 22 Feb 2011 16:26:40 +0000</pubDate>
		<dc:creator>Arun N S</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[KVM]]></category>
		<category><![CDATA[KVM Disk I/O slow]]></category>
		<category><![CDATA[Redhat performance issue]]></category>

		<guid isPermaLink="false">http://arunnsblog.com/?p=426</guid>
		<description><![CDATA[The general performance issue with KVM is due to DISK I/O - by default the Redhat KVM guest are created with x86_64 architecuture, if you installed 32 bit operating system change this to i686. &#60;os&#62; &#60;type arch=&#8217;i686&#8242; machine=&#8217;rhel5.6.0&#8242;&#62;hvm&#60;/type&#62; &#60;boot dev=&#8217;hd&#8217;/&#62; - Make sure the hypervisor used is correct in the configuration , either qemu or [...]]]></description>
			<content:encoded><![CDATA[<p>The general performance issue with KVM is due to DISK I/O</p>
<p>- by default the Redhat KVM guest are created with x86_64 architecuture, if you installed 32 bit operating system change this to i686.</p>
<blockquote><p>&lt;os&gt;<br />
&lt;type arch=&#8217;i686&#8242; machine=&#8217;rhel5.6.0&#8242;&gt;hvm&lt;/type&gt;<br />
&lt;boot dev=&#8217;hd&#8217;/&gt;</p></blockquote>
<p>- Make sure the hypervisor used is correct in the configuration , either qemu or kvm</p>
<blockquote><p>&lt;domain type=&#8217;kvm&#8217;&gt;</p>
<p>or</p>
<p>&lt;domain type=&#8217;kvm&#8217;&gt;</p></blockquote>
<p>- Use virtio drivers if the guest is paravirtulized (<a href="http://www.ibm.com/developerworks/linux/library/l-virtio/index.html?ca=dgr-lnxw97Viriodth-LX&amp;S_TACT=105AGX59&amp;S_CMP=grlnxw97" target="_blank">http://www.ibm.com/developerworks/linux/library/l-virtio/index.html?ca=dgr-lnxw97Viriodth-LX&amp;S_TACT=105AGX59&amp;S_CMP=grlnxw97 </a> , <a href="http://publib.boulder.ibm.com/infocenter/lnxinfo/v3r0m0/index.jsp?topic=/liaat/liaatbpparavirt.htm" target="_blank"> http://publib.boulder.ibm.com/infocenter/lnxinfo/v3r0m0/index.jsp?topic=/liaat/liaatbpparavirt.htm</a>)</p>
<p>./arun</p>
]]></content:encoded>
			<wfw:commentRss>http://arunnsblog.com/2011/02/22/performance-issues-with-kvm-redhat/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>yum update, IndexError: tuple index out of range</title>
		<link>http://arunnsblog.com/2011/02/07/yum-update-indexerror-tuple-index-out-of-range/</link>
		<comments>http://arunnsblog.com/2011/02/07/yum-update-indexerror-tuple-index-out-of-range/#comments</comments>
		<pubDate>Mon, 07 Feb 2011 11:45:48 +0000</pubDate>
		<dc:creator>Arun N S</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://arunnsblog.com/?p=418</guid>
		<description><![CDATA[If you happen to get this error while updating server with yum update &#8211; . . . File &#8220;/usr/lib/python2.4/site-packages/M2Crypto/m2urllib2.py&#8221;, line 82, in https_open h.request(req.get_method(), req.get_selector(), req.data, headers) File &#8220;/usr/lib/python2.4/httplib.py&#8221;, line 813, in request if v[0] != 32 or not self.auto_open: IndexError: tuple index out of range &#8211; disable the location aware access from rhn. Ref: [...]]]></description>
			<content:encoded><![CDATA[<p>If you happen to get this error while updating server with yum update<br />
&#8211;<br />
.<br />
.<br />
.<br />
  File &#8220;/usr/lib/python2.4/site-packages/M2Crypto/m2urllib2.py&#8221;, line 82, in https_open<br />
    h.request(req.get_method(), req.get_selector(), req.data, headers)<br />
  File &#8220;/usr/lib/python2.4/httplib.py&#8221;, line 813, in request<br />
    if v[0] != 32 or not self.auto_open:<br />
IndexError: tuple index out of range<br />
&#8211;<br />
disable the location aware access from rhn.</p>
<p>Ref:</p>
<p>http://kbase.redhat.com/faq/docs/DOC-16881</p>
<p>./arun</p>
]]></content:encoded>
			<wfw:commentRss>http://arunnsblog.com/2011/02/07/yum-update-indexerror-tuple-index-out-of-range/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Public key authentication with bluecoat proxy</title>
		<link>http://arunnsblog.com/2011/01/10/public-key-authentication-with-bluecoat-proxy/</link>
		<comments>http://arunnsblog.com/2011/01/10/public-key-authentication-with-bluecoat-proxy/#comments</comments>
		<pubDate>Mon, 10 Jan 2011 12:17:14 +0000</pubDate>
		<dc:creator>Arun N S</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[bluecoat]]></category>
		<category><![CDATA[proxy]]></category>

		<guid isPermaLink="false">http://arunnsblog.com/?p=414</guid>
		<description><![CDATA[- Create a key with length maximum 1024 on your machine $ ssh-keygen -t rsa -b 1024 -f filename - ssh to the bluecoat proxy > en # configure terminal #(config) ssh-console #(config ssh-console) inline client-key admin ... < paste the key after those three dots > ... ./arun]]></description>
			<content:encoded><![CDATA[<p>- Create a key with length maximum 1024 on your machine</p>
<p> <code>$ ssh-keygen -t rsa -b 1024 -f filename</code></p>
<p>- ssh to the bluecoat proxy</p>
<p><code><br />
> en<br />
# configure terminal<br />
#(config) ssh-console<br />
#(config ssh-console) inline client-key admin ...<br />
< paste the key after those three dots ><br />
...</code></p>
<p>./arun</p>
]]></content:encoded>
			<wfw:commentRss>http://arunnsblog.com/2011/01/10/public-key-authentication-with-bluecoat-proxy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Converting LVM virtual machine storage to image</title>
		<link>http://arunnsblog.com/2010/12/06/converting-lvm-virtual-machine-storage-to-image/</link>
		<comments>http://arunnsblog.com/2010/12/06/converting-lvm-virtual-machine-storage-to-image/#comments</comments>
		<pubDate>Mon, 06 Dec 2010 13:12:24 +0000</pubDate>
		<dc:creator>Arun N S</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[KVM]]></category>
		<category><![CDATA[LVM]]></category>
		<category><![CDATA[qcow2]]></category>

		<guid isPermaLink="false">http://arunnsblog.com/?p=411</guid>
		<description><![CDATA[To convert the LVM disk to qcow2 formatted disk image, Use lvdisplay to get the Logical volume name $ sudo lvdisplay Use qemu-img to convert to the required image format # qemu-img convert -O qcow2 /dev/mapper/lv_name &#60;destination_file&#62;.qcow2 eg: # qemu-img convert -O qcow2 /dev/mapper/disk1 disk1.qcow2 This will be useful to replicate the virtual machines to other [...]]]></description>
			<content:encoded><![CDATA[<p>To convert the LVM disk to qcow2 formatted disk image,</p>
<p>Use lvdisplay to get the Logical volume name</p>
<blockquote><p>$ sudo lvdisplay</p></blockquote>
<p>Use qemu-img to convert to the required image format</p>
<blockquote><p># qemu-img convert -O qcow2 /dev/mapper/lv_name &lt;destination_file&gt;.qcow2</p></blockquote>
<p>eg:</p>
<blockquote><p># qemu-img convert -O qcow2 /dev/mapper/disk1 disk1.qcow2</p></blockquote>
<p>This will be useful to replicate the virtual machines to other hardware.</p>
<p>./arun</p>
]]></content:encoded>
			<wfw:commentRss>http://arunnsblog.com/2010/12/06/converting-lvm-virtual-machine-storage-to-image/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

