<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearch/1.1/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0' gd:etag='W/&quot;DEMCSHk5eCp7ImA9WhNUF0s.&quot;'><id>tag:blogger.com,1999:blog-8204588824799946544</id><updated>2013-01-10T00:21:09.720+03:00</updated><category term='vi editor'/><category term='bacula eject tape after backup'/><category term='mediawiki'/><category term='Wordpress'/><category term='Sql Mode'/><category term='KVM Disk I/O slow'/><category term='Redhat viruatlization'/><category term='cannot export display'/><category term='BIND'/><category term='RSA'/><category term='kvm bridge ipv6'/><category term='webserver'/><category term='backup drupal 7'/><category term='NAT with virtual box'/><category term='Bind IPv6 DNS'/><category term='Backup'/><category term='share internet with mac'/><category term='adp1 cyanogenmod6'/><category term='linux mint upgrade'/><category term='ipv6 tunnel from mac'/><category term='rsnapshot'/><category term='Networking'/><category term='mailman'/><category term='access restriction'/><category term='mysql backup script'/><category term='bluecoat'/><category term='RAID1'/><category term='qcow2'/><category term='compressed mysql backup'/><category term='Mysql replication'/><category term='The user belongs to security domain “SystemDomain”'/><category term='ipv6 on mac'/><category term='IPv6'/><category term='Drupal 7 issue'/><category term='Android tethering'/><category term='Bonding with virutliaztion'/><category term='FCKeditor'/><category term='LVM'/><category term='mysql dump'/><category term='SAN and Tape backup with bacula'/><category term='DB replication'/><category term='mint 13 upgrade'/><category term='svn with custom port and public key authentication'/><category term='IPv6 Direct admin'/><category term='FreeBSD'/><category term='RSA Appliance'/><category term='LDAP'/><category term='PHP 5.2 in Redhat Enterprise Linux 5'/><category term='Cpanel'/><category term='vgextend'/><category term='Drupal'/><category term='Hard disk broken'/><category term='ipv6 tunnel linux'/><category term='Install Cpanel on Free BSD'/><category term='fax'/><category term='ZODB'/><category term='Direct admin'/><category term='apk manual install'/><category term='RSA SecureID'/><category term='svn commit'/><category term='market'/><category term='CMS'/><category term='Hostgroup'/><category term='restore drupal 7'/><category term='Linux RSA web interface'/><category term='upgrade drupal 7'/><category term='ubuntu'/><category term='ipv6 squid'/><category term='DHCP'/><category term='subversion'/><category term='svn'/><category term='portforwarding with virutal box'/><category term='Python'/><category term='mail'/><category term='proxy'/><category term='android applications'/><category term='mkxauth'/><category term='TFTP'/><category term='Mysql'/><category term='locale'/><category term='KVM LVM Virtualization'/><category term='BOOTP'/><category term='hardening apache'/><category term='Extending disk space'/><category term='configure squid with ipv6'/><category term='Lchown'/><category term='1231 Variable &apos;sql_mode&apos; can&apos;t be set to the value of &apos;TRADITIONAL&apos;'/><category term='create svn repository'/><category term='KVM'/><category term='shell script linux ssh tectia open ssh'/><category term='disable weak cipher'/><category term='MAC applications'/><category term='apache ipv6'/><category term='securing apache'/><category term='CyanogenMod'/><category term='Virtualization'/><category term='Android update'/><category term='svn ssh tunnel'/><category term='Android'/><category term='recover broken hard disk'/><category term='IPv6 DNS configuration for DA'/><category term='pkg_add'/><category term='linux nadia'/><category term='Racktables'/><category term='repository'/><category term='python2.6 compile'/><category term='apache'/><category term='shell script'/><category term='Linux Mint'/><category term='svn update'/><category term='ipv6 proxy'/><category term='linux maya'/><category term='Debian'/><category term='php'/><category term='MAC OS X'/><category term='daily weekly and monthly backup with bacula'/><category term='Nagios'/><category term='nsd dns named tsig'/><category term='Squid'/><category term='mysql backup'/><category term='RSA web interface for Redhat'/><category term='xen hypervisor fully virtulized guest'/><category term='virtual host'/><category term='Linux'/><category term='debian 6'/><category term='category issue'/><category term='bacula'/><category term='lvextend'/><category term='ubuntu upgrade'/><category term='custom post_type wordpress'/><category term='adp1 2.2 froyo'/><category term='Drupal 7'/><category term='Redhat performance issue'/><category term='Android ADP1'/><title>Arun's Blog</title><subtitle type='html'>Linux and related technologies.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://arunnatarajans.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8204588824799946544/posts/default?redirect=false&amp;v=2'/><link rel='alternate' type='text/html' href='http://arunnatarajans.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/8204588824799946544/posts/default?start-index=26&amp;max-results=25&amp;redirect=false&amp;v=2'/><author><name>Arun Natarajan S</name><uri>https://plus.google.com/117348232416484188849</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-vqVp9yDBNcM/AAAAAAAAAAI/AAAAAAAAcb8/_RJvLAGxYwU/s512-c/photo.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>76</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry gd:etag='W/&quot;DEMCSHk_fCp7ImA9WhNUF0s.&quot;'><id>tag:blogger.com,1999:blog-8204588824799946544.post-7067979593832790930</id><published>2013-01-08T14:55:00.000+03:00</published><updated>2013-01-10T00:21:09.744+03:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2013-01-10T00:21:09.744+03:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='upgrade drupal 7'/><category scheme='http://www.blogger.com/atom/ns#' term='Drupal 7'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='Drupal'/><category scheme='http://www.blogger.com/atom/ns#' term='shell script'/><category scheme='http://www.blogger.com/atom/ns#' term='restore drupal 7'/><category scheme='http://www.blogger.com/atom/ns#' term='CMS'/><category scheme='http://www.blogger.com/atom/ns#' term='backup drupal 7'/><title>Upgrade, Restore Drupal 7</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;strong&gt;Shell script to upgrade and restore Drupal 7 website&lt;/strong&gt;&lt;br /&gt;
This script will take care of the necessary actions required for upgrading drupal to higher versions.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;USAGE&lt;/strong&gt;&lt;br /&gt;
&lt;ul&gt;&lt;br /&gt;
&lt;li&gt;Copy the script to your webserver.&lt;/li&gt;
&lt;br /&gt;
&lt;li&gt;Edit the script and change the variables to match with your setup&lt;/li&gt;
&lt;br /&gt;
&lt;li&gt;Give execute privilege to the owner of the script (chmod u+x upgrade-restore-drupal7.sh)&lt;/li&gt;
&lt;br /&gt;
&lt;li&gt;Execute the script ./upgrade-restore-drupal7.sh&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;strong&gt;UPGRADE&lt;/strong&gt;&lt;br /&gt;
&lt;blockquote&gt;
&lt;br /&gt;
&lt;pre&gt;&lt;em&gt;$ ./upgrade-restore-drupal7.sh 
 Please enter your choice:
 1. Update drupal
 2. Restore an old installation from backup
 3. Exit&lt;/em&gt;
1
&lt;em&gt;Please enter the new drupal version (eg: 7.15) : &lt;/em&gt;7.18
&lt;em&gt;Downloading drupal-7.18
Downloaded the the drupal version drupal-7.18
Current site backup is created: /home/foo/backups/08-01-2013-0938
Database backup created: /home/foo/backups/08-01-2013-0938.sql
Site is in maintanence mode now
Removed all drupal core files from destination
Copied the new version contents
Drupal updated to drupal-7.18
Site is active again, but please update your database, &lt;/em&gt;&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;blockquote&gt;
&lt;pre&gt;&lt;em&gt;please visit http://&amp;lt;yourwebsite&amp;gt;/update.php &lt;/em&gt;&amp;nbsp;&amp;nbsp;&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;blockquote&gt;
&lt;pre&gt;&lt;em&gt;to finalize the process &lt;/em&gt;&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;blockquote&gt;
&lt;br /&gt;&lt;/blockquote&gt;
&lt;br /&gt;
&lt;strong&gt;RESTORE&lt;/strong&gt;&lt;br /&gt;
&lt;blockquote&gt;
&lt;br /&gt;
&lt;pre&gt;&lt;em&gt;$ ./upgrade-restore-drupal7.sh 
 Please enter your choice:
 1. Update drupal
 2. Restore an old installation from backup
 3. Exit&lt;/em&gt;
2
&lt;em&gt;List of available backups
08-01-2013-0753
08-01-2013-0758
08-01-2013-0804
08-01-2013-0841
08-01-2013-0849
08-01-2013-0858
08-01-2013-0900
08-01-2013-0904
08-01-2013-0905
08-01-2013-0938
Please enter the backup file name to restore: (eg: 08-01-2013-0753):&lt;/em&gt; 
08-01-2013-0905
&lt;em&gt;Site is offline now
Removed production files
Restored the filesystem backup 
Restored the database
Site is restored&lt;/em&gt;&lt;/pre&gt;
&lt;br /&gt;&lt;/blockquote&gt;
&lt;br /&gt;
&lt;script src="https://gist.github.com/4482287.js"&gt;&lt;/script&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href="https://github.com/arun-natarajan/upgrade-restore-drupal7"&gt;&lt;b&gt;View on github&lt;/b&gt;&lt;/a&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://arunnatarajans.blogspot.com/feeds/7067979593832790930/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://arunnatarajans.blogspot.com/2013/01/upgrade-restore-drupal-7.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8204588824799946544/posts/default/7067979593832790930?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8204588824799946544/posts/default/7067979593832790930?v=2'/><link rel='alternate' type='text/html' href='http://arunnatarajans.blogspot.com/2013/01/upgrade-restore-drupal-7.html' title='Upgrade, Restore Drupal 7'/><author><name>Arun Natarajan S</name><uri>https://plus.google.com/117348232416484188849</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-vqVp9yDBNcM/AAAAAAAAAAI/AAAAAAAAcb8/_RJvLAGxYwU/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;D0QDQn8_fCp7ImA9WhNUF0s.&quot;'><id>tag:blogger.com,1999:blog-8204588824799946544.post-1387859270242015525</id><published>2013-01-05T18:30:00.000+03:00</published><updated>2013-01-10T00:02:53.144+03:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2013-01-10T00:02:53.144+03:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='linux nadia'/><category scheme='http://www.blogger.com/atom/ns#' term='linux mint upgrade'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux Mint'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='linux maya'/><category scheme='http://www.blogger.com/atom/ns#' term='mint 13 upgrade'/><title>Upgrading Linux Mint 13 (maya) to Linux Mint 14 (nadia).</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;a href="http://arunnsblog.com/2013/01/05/upgrading-linux-mint-14-maya-to-linux-mint-15-nadia/kde/" rel="attachment wp-att-609"&gt;&lt;img alt="Linux Mint 14" class="size-medium wp-image-609" height="219" src="http://arunnsblog.com/wp-content/uploads/2013/01/kde-300x219.png" width="300" /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Take a backup of the current sources.list, preferably make a full backup of the system.&lt;br /&gt;
&lt;br /&gt;
Edit the sources.list file,&lt;br /&gt;
replace the occurrences of maya with nadia and precise with quantal.&lt;br /&gt;
&lt;blockquote&gt;
&lt;br /&gt;
&lt;pre&gt;$ vi /etc/sources.list&lt;/pre&gt;
&lt;br /&gt;
&lt;pre&gt;:%s/maya/nadia/g
:%s/precise/quantal/g&lt;/pre&gt;
&lt;br /&gt;&lt;/blockquote&gt;
&lt;br /&gt;
Resulting file may look like.&lt;br /&gt;
&lt;blockquote&gt;
&lt;address&gt;
deb http://packages.linuxmint.com/ nadia main upstream import&lt;br /&gt;deb http://archive.ubuntu.com/ubuntu/ quantal main restricted universe multiverse&lt;br /&gt;deb http://archive.ubuntu.com/ubuntu/ quantal-updates main restricted universe multiverse&lt;br /&gt;deb http://security.ubuntu.com/ubuntu/ quantal-security main restricted universe multiverse&lt;br /&gt;deb http://archive.canonical.com/ubuntu/ quantal partner&lt;br /&gt;deb http://packages.medibuntu.org/ quantal free non-free&lt;/address&gt;
&lt;/blockquote&gt;
&lt;br /&gt;
Update the system&lt;br /&gt;
&lt;blockquote&gt;
&lt;br /&gt;
&lt;pre&gt;$ sudo apt-get update
$ sudo apt-get dist-upgrade&lt;/pre&gt;
&lt;br /&gt;&lt;/blockquote&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://arunnatarajans.blogspot.com/feeds/1387859270242015525/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://arunnatarajans.blogspot.com/2013/01/upgrading-linux-mint-13-maya-to-linux.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8204588824799946544/posts/default/1387859270242015525?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8204588824799946544/posts/default/1387859270242015525?v=2'/><link rel='alternate' type='text/html' href='http://arunnatarajans.blogspot.com/2013/01/upgrading-linux-mint-13-maya-to-linux.html' title='Upgrading Linux Mint 13 (maya) to Linux Mint 14 (nadia).'/><author><name>Arun Natarajan S</name><uri>https://plus.google.com/117348232416484188849</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-vqVp9yDBNcM/AAAAAAAAAAI/AAAAAAAAcb8/_RJvLAGxYwU/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;CUACQH84fCp7ImA9WhNUF0s.&quot;'><id>tag:blogger.com,1999:blog-8204588824799946544.post-6957684229921394789</id><published>2012-12-31T17:47:00.000+03:00</published><updated>2013-01-09T23:36:01.134+03:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2013-01-09T23:36:01.134+03:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='SAN and Tape backup with bacula'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='bacula eject tape after backup'/><category scheme='http://www.blogger.com/atom/ns#' term='daily weekly and monthly backup with bacula'/><category scheme='http://www.blogger.com/atom/ns#' term='bacula'/><category scheme='http://www.blogger.com/atom/ns#' term='Backup'/><title>SAN and Tape backup with bacula</title><content type='html'>&lt;h3&gt;&lt;strong&gt;Install and configure bacula for SAN and Tape backup&lt;/strong&gt;&lt;/h3&gt;&lt;br/&gt;There is already an excellent document about bacula installation and configurations at bacula website. This article is one way of getting SAN and Tape backup working together with single bacula director installation. It assumes that you already have installed and mounted the SAN and configured the tape device.&lt;br/&gt;&lt;br/&gt;This configuration aim at:&lt;br/&gt;&lt;ul&gt;&lt;br/&gt;	&lt;li&gt;Incremental daily for 20 days&lt;/li&gt;&lt;br/&gt;	&lt;li&gt;Differential weekly for 3 months&lt;/li&gt;&lt;br/&gt;	&lt;li&gt;Monthly full for 6 months&lt;/li&gt;&lt;br/&gt;	&lt;li&gt;Eject the tape to mailslot after the back and notify admin etc.&lt;/li&gt;&lt;br/&gt;&lt;/ul&gt;&lt;br/&gt;customise it based on your requirements.&lt;br/&gt;&lt;br/&gt;The configurations are tested with HP MSL 2024 Tape library and MSA SAN array.&lt;br/&gt;&lt;h2&gt;Bacula server setup&lt;/h2&gt;&lt;br/&gt;The configurare are done on Redhat Enterprise linux, likely similar for other Linux distros.&lt;br/&gt;&lt;ul&gt;&lt;br/&gt;	&lt;li&gt;Create a user for backup&lt;/li&gt;&lt;br/&gt;&lt;/ul&gt;&lt;br/&gt;&lt;blockquote&gt;&lt;br/&gt;&lt;pre&gt;# useradd -d /home/backup backup&lt;/pre&gt;&lt;br/&gt;&lt;/blockquote&gt;&lt;br/&gt;&lt;ul&gt;&lt;br/&gt;	&lt;li&gt;Install bacula server and create the database and database users : ref: http://www.bacula.org/5.2.x-manuals/en/main/main/Installing_Bacula.html for installation instructions.&lt;/li&gt;&lt;br/&gt;	&lt;li&gt;Create the necessary directories:&lt;/li&gt;&lt;br/&gt;&lt;/ul&gt;&lt;br/&gt;&lt;blockquote&gt;&lt;br/&gt;&lt;pre&gt;# su - backup&lt;br/&gt;$ mkdir -p /home/backup/bacula/var/lock/subsys&lt;br/&gt;$ mkdir /home/backup/bacula/var/run/&lt;/pre&gt;&lt;br/&gt;&lt;/blockquote&gt;&lt;br/&gt;&lt;ul&gt;&lt;br/&gt;	&lt;li&gt;Configure the director (bacula-dir.conf)&lt;/li&gt;&lt;br/&gt;&lt;/ul&gt;&lt;br/&gt;$ cat ~/bacula-dir.conf&lt;br/&gt;&lt;blockquote&gt;&lt;br/&gt;&lt;pre&gt;# Define the director, common for SAN and Tape&lt;br/&gt;Director { # define myself&lt;br/&gt;Name = {hostname}-dir # use your hostname&lt;br/&gt;DIRport = 9101 # where we listen for UA connections&lt;br/&gt;QueryFile = "/home/backup/bacula/script/query.sql"&lt;br/&gt;WorkingDirectory = "/home/backup/bacula/wdir"&lt;br/&gt;PidDirectory = "/home/backup/bacula/var/run"&lt;br/&gt;Maximum Concurrent Jobs = 3&lt;br/&gt;Password = "{console_password} # Console password&lt;br/&gt;Messages = Daemon&lt;br/&gt;}&lt;/pre&gt;&lt;br/&gt;&lt;pre&gt;# List of files to be backed up to SAN&lt;br/&gt;FileSet {&lt;br/&gt; Name = "File Set"&lt;br/&gt; Include {&lt;br/&gt; Options {&lt;br/&gt; signature = MD5&lt;br/&gt; }&lt;br/&gt; File = /&lt;br/&gt; }&lt;br/&gt;&lt;br/&gt; Exclude {&lt;br/&gt; File = /proc&lt;br/&gt; File = /tmp&lt;br/&gt; File = /.journal&lt;br/&gt; File = /.fsck&lt;br/&gt; }&lt;br/&gt;}&lt;/pre&gt;&lt;br/&gt;&lt;pre&gt;# List of files to be backed up to tape&lt;br/&gt;FileSet {&lt;br/&gt; Name = "tape Set"&lt;br/&gt; Include {&lt;br/&gt; Options {&lt;br/&gt; signature = MD5&lt;br/&gt; }&lt;br/&gt; File = /&lt;br/&gt; }&lt;br/&gt;&lt;br/&gt; Exclude {&lt;br/&gt; File = /proc&lt;br/&gt; File = /tmp&lt;br/&gt; File = /.journal&lt;br/&gt; File = /.fsck&lt;br/&gt; }&lt;br/&gt;}&lt;/pre&gt;&lt;br/&gt;&lt;pre&gt;# Schedule for SAN backup&lt;br/&gt;Schedule {&lt;br/&gt; Name = "WeeklyCycle"&lt;br/&gt; Run = Full 1st sun at 01:00&lt;br/&gt; Run = Differential 2nd-5th sun at 01:00&lt;br/&gt; Run = Incremental mon-sat at 01:00&lt;br/&gt;}&lt;/pre&gt;&lt;br/&gt;&lt;pre&gt;# Schedule for tape backup&lt;br/&gt;Schedule {&lt;br/&gt; Name = "TapeWeeklyFull"&lt;br/&gt; Run = Level=Full 1st sun at 03:00&lt;br/&gt;}&lt;/pre&gt;&lt;br/&gt;&lt;pre&gt;# Definition of file storage (SAN)&lt;br/&gt;Storage {&lt;br/&gt; Name = File&lt;br/&gt;# Do not use "localhost" here&lt;br/&gt; Address = {FQDN} # N.B. Use a fully qualified name here&lt;br/&gt; SDPort = 9103&lt;br/&gt; Password = "{sdpassword}"&lt;br/&gt; Device = FileStorage&lt;br/&gt; Media Type = File&lt;br/&gt;}&lt;/pre&gt;&lt;br/&gt;&lt;pre&gt;# Define storage (Tape)&lt;br/&gt;Storage {&lt;br/&gt; Name = msl2024&lt;br/&gt; Address = {director-address}&lt;br/&gt; SDPort = 9103&lt;br/&gt; Password = "{director-password}"&lt;br/&gt; Device = MSL2024&lt;br/&gt; Media Type = LTO-4&lt;br/&gt; Autochanger = yes&lt;br/&gt; Maximum Concurrent Jobs = 3&lt;br/&gt;}&lt;/pre&gt;&lt;br/&gt;&lt;pre&gt;# Generic catalog service&lt;br/&gt;Catalog {&lt;br/&gt; Name = MyCatalog&lt;br/&gt; dbname = "dbname"; dbuser = "dbuser"; dbpassword = "dbpass"&lt;br/&gt;}&lt;/pre&gt;&lt;br/&gt;&lt;pre&gt;# Tape catalog&lt;br/&gt;Job {&lt;br/&gt; Name = "TapeBackupCatalog"&lt;br/&gt; JobDefs = "{dir-host-name}-tape"&lt;br/&gt; Level = Full&lt;br/&gt; FileSet="Catalog"&lt;br/&gt; Schedule = "CatalogAfterTapeBackup"&lt;br/&gt; RunBeforeJob = "/home/backup/bacula/script/make_catalog_backup.pl MyCatalog"&lt;br/&gt; RunAfterJob = "/home/backup/bacula/script/delete_catalog_backup"&lt;br/&gt; Write Bootstrap = "/home/backup/bacula/wdir/%n.bsr"&lt;br/&gt; Priority = 20 # run after main backup&lt;br/&gt;}&lt;/pre&gt;&lt;br/&gt;&lt;pre&gt;# Default pool definition&lt;br/&gt;Pool { &lt;br/&gt; Name = Default&lt;br/&gt; Pool Type = Backup &lt;br/&gt; Recycle = yes # Bacula can automatically recycle Volumes&lt;br/&gt; AutoPrune = yes # Prune expired volumes&lt;br/&gt; Volume Retention = 365 days # one year&lt;br/&gt;}&lt;/pre&gt;&lt;br/&gt;&lt;pre&gt;# General Tape backup pool&lt;br/&gt;Pool { &lt;br/&gt; Name = TapePool&lt;br/&gt; Pool Type = Backup &lt;br/&gt; Recycle = yes # Bacula can automatically recycle Volumes&lt;br/&gt; AutoPrune = yes # Prune expired volumes&lt;br/&gt; Volume Retention = 6 months # 6 months&lt;br/&gt; Recycle Oldest Volume = yes&lt;br/&gt; Storage = msl2024 &lt;br/&gt; Volume Use Duration = 4 days&lt;br/&gt;}&lt;/pre&gt;&lt;br/&gt;&lt;pre&gt;## Do the following configurations for each client&lt;/pre&gt;&lt;br/&gt;&lt;pre&gt;# Job definition, define it for each bacula client, replace clientX_hostname, Fileset accordingly&lt;br/&gt;# SAN&lt;br/&gt;JobDefs {&lt;br/&gt;Name = "{clientX_hostname}"&lt;br/&gt;Type = Backup&lt;br/&gt;Client = {clientX_hostname}-fd&lt;br/&gt;FileSet = "File Set"&lt;br/&gt;Schedule = "WeeklyCycle"&lt;br/&gt;Storage = File&lt;br/&gt;Messages = Standard&lt;br/&gt;Pool = File&lt;br/&gt;Full Backup Pool = Full-Pool-{clientX_hostname}&lt;br/&gt;Incremental Backup Pool = Inc-Pool-{clientX_hostname}&lt;br/&gt;Differential Backup Pool = Diff-Pool-{clientX_hostname}&lt;br/&gt;Priority = 10&lt;br/&gt;Write Bootstrap = "/home/backup/bacula/wdir/%c.bsr"&lt;br/&gt;}&lt;/pre&gt;&lt;br/&gt;&lt;pre&gt;# Tape&lt;br/&gt;&lt;br/&gt;JobDefs {&lt;/pre&gt;&lt;br/&gt;&lt;pre&gt; Name = "{clientX_hostname}-tape"&lt;br/&gt; Type = Backup&lt;br/&gt; Client = {clientX_hostname}-tape-fd&lt;br/&gt; FileSet = "tape set"&lt;br/&gt; Schedule = "TapeWeeklyFull"&lt;br/&gt; Storage = msl2024&lt;br/&gt; Messages = Standard&lt;br/&gt; Pool = TapePool&lt;br/&gt; Full Backup Pool = TapePool&lt;br/&gt; Priority = 10&lt;br/&gt; Write Bootstrap = "/home/backup/bacula/wdir/%c.bsr"&lt;br/&gt;}&lt;/pre&gt;&lt;br/&gt;&lt;pre&gt;# Define Job, replace clientX_hostname&lt;br/&gt;# SAN&lt;br/&gt;Job {&lt;br/&gt; Name = "{clientX_hostname}"&lt;br/&gt; JobDefs = "{clientX_hostname}"&lt;br/&gt;}&lt;/pre&gt;&lt;br/&gt;&lt;pre&gt;# Tape&lt;br/&gt;Job {&lt;br/&gt; Name = "{clientX_hostname}"&lt;br/&gt; JobDefs = "{clientX_hostname}-tape"&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;# Define restore job&lt;br/&gt;# SAN&lt;br/&gt;Job {&lt;br/&gt; Name = "RestoreFiles-{clientX_hostname}"&lt;br/&gt; Type = Restore&lt;br/&gt; Client={clientX_hostname}-fd&lt;br/&gt; FileSet="File Set" &lt;br/&gt; Storage = File&lt;br/&gt; Pool = Default&lt;br/&gt; Messages = Standard&lt;br/&gt; Where = /home/backup/archive/bacula-restores&lt;br/&gt;}&lt;/pre&gt;&lt;br/&gt;&lt;pre&gt;# Tape&lt;br/&gt;Job {&lt;/pre&gt;&lt;br/&gt;&lt;pre&gt; Name = "RestoreFiles-{clientX_hostname}-tape"&lt;br/&gt; Type = Restore&lt;br/&gt; Client={clientX_hostname}-tape-fd&lt;br/&gt; FileSet= "tape set"&lt;br/&gt; Storage = msl2024&lt;br/&gt; Pool = TapePool&lt;br/&gt; Messages = Standard&lt;br/&gt; Where = /home/backup/archive/bacula-restores&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;# Client (File Services) to backup&lt;br/&gt;# SAN&lt;br/&gt;Client { &lt;br/&gt; Name = {clientX_hostname}-fd&lt;br/&gt; Address = {client_address}&lt;br/&gt; FDPort = &lt;strong&gt;9102&lt;/strong&gt;&lt;br/&gt; Catalog = MyCatalog&lt;br/&gt; Password = "{client_password}" # password for FileDaemon&lt;br/&gt; File Retention = 60 days # 60 days&lt;br/&gt; Job Retention = 6 months # six months&lt;br/&gt; AutoPrune = yes # Prune expired Jobs/Files&lt;br/&gt;}&lt;/pre&gt;&lt;br/&gt;&lt;pre&gt;# Tape&lt;br/&gt;Client {&lt;br/&gt; Name = {clientX_hostname}-tape-fd&lt;br/&gt; Address = {client_address}&lt;br/&gt; FDPort = &lt;strong&gt;9202&lt;/strong&gt; # use different port&lt;br/&gt; Catalog = MyCatalog&lt;br/&gt; Password = "{client_password}" # password for FileDaemon&lt;br/&gt; File Retention = 6 months&lt;br/&gt; Job Retention = 6 months&lt;br/&gt; AutoPrune = yes&lt;br/&gt;}&lt;/pre&gt;&lt;br/&gt;&lt;pre&gt;# Pool for each client&lt;br/&gt;# SAN&lt;br/&gt;Pool {&lt;br/&gt; Name = Full-Pool-{clientX_hostname}&lt;br/&gt; Pool Type = Backup&lt;br/&gt; Recycle = yes&lt;br/&gt; AutoPrune = yes&lt;br/&gt; Volume Retention = 6 months&lt;br/&gt; Maximum Volume Jobs = 1&lt;br/&gt; Label Format = Full-Pool-{clientX_hostname}-&lt;br/&gt; Maximum Volumes = 9&lt;br/&gt;}&lt;/pre&gt;&lt;br/&gt;&lt;pre&gt;Pool { &lt;br/&gt; Name = Inc-Pool-{clientX_hostname}&lt;br/&gt; Pool Type = Backup &lt;br/&gt; Recycle = yes # automatically recycle Volumes&lt;br/&gt; AutoPrune = yes # Prune expired volumes&lt;br/&gt; Volume Retention = 20 days&lt;br/&gt; Maximum Volume Jobs = 6&lt;br/&gt; Label Format = Inc-Pool-{clientX_hostname}-&lt;br/&gt; Maximum Volumes = 7&lt;br/&gt;}&lt;/pre&gt;&lt;br/&gt;&lt;pre&gt;Pool { &lt;br/&gt; Name = Diff-Pool-{clientX_hostname}&lt;br/&gt; Pool Type = Backup&lt;br/&gt; Recycle = yes&lt;br/&gt; AutoPrune = yes&lt;br/&gt; Volume Retention = 40 days&lt;br/&gt; Maximum Volume Jobs = 1&lt;br/&gt; Label Format = Diff-Pool-{clientX_hostname}-&lt;br/&gt; Maximum Volumes = 10&lt;br/&gt;}&lt;/pre&gt;&lt;br/&gt;&lt;pre&gt;# Tape, no extra definition required.&lt;br/&gt;&lt;br/&gt;&lt;/pre&gt;&lt;br/&gt;&lt;/blockquote&gt;&lt;br/&gt;&lt;ul&gt;&lt;br/&gt;	&lt;li&gt;Make sure you label the tape and add it to the TapePool, if you tape drive has barcode device available, use&lt;/li&gt;&lt;br/&gt;&lt;/ul&gt;&lt;br/&gt;&lt;blockquote&gt;&lt;br/&gt;&lt;pre&gt;$ bconsole&lt;/pre&gt;&lt;br/&gt;&lt;pre&gt;* label barcode&lt;/pre&gt;&lt;br/&gt;&lt;pre&gt;then select the TapePool&lt;/pre&gt;&lt;br/&gt;&lt;/blockquote&gt;&lt;br/&gt;If you have mailslot enabled you could configure the bacula to eject the tape to mailslot after backup finished and will notify.&lt;br/&gt;&lt;blockquote&gt;&lt;br/&gt;&lt;pre&gt;$ cat /home/backup/bacula/script/delete_catalog_backup&lt;br/&gt;# Unload the tape for storage&lt;br/&gt;mtx -f /dev/sg1 unload 24 # replace 24 with your mailslot&lt;/pre&gt;&lt;br/&gt;&lt;pre&gt;# Send mail&lt;br/&gt;/home/backup/bacula/script/mail.sh | mail -s "Tape backup done" admin@example.com&lt;/pre&gt;&lt;br/&gt;&lt;/blockquote&gt;&lt;br/&gt;&lt;h3&gt;Configure storage daemon&lt;/h3&gt;&lt;br/&gt;&lt;blockquote&gt;&lt;br/&gt;&lt;pre&gt;Storage &lt;br/&gt;{ # definition of myself&lt;br/&gt; Name = {director_hostanme}-sd&lt;br/&gt; SDPort = 9103 # Director's port &lt;br/&gt; WorkingDirectory = "/home/backup/bacula/wdir"&lt;br/&gt; Pid Directory = "/home/backup/bacula/var/run"&lt;br/&gt; Maximum Concurrent Jobs = 20&lt;br/&gt;}&lt;/pre&gt;&lt;br/&gt;&lt;pre&gt;#&lt;br/&gt;# List Directors who are permitted to contact Storage daemon&lt;br/&gt;#&lt;br/&gt;Director {&lt;br/&gt; Name = {director_hostname}-dir&lt;br/&gt; Password = "{director_password}"&lt;br/&gt;}&lt;/pre&gt;&lt;br/&gt;&lt;pre&gt;# SAN&lt;br/&gt;Device {&lt;br/&gt; Name = FileStorage&lt;br/&gt; Media Type = File&lt;br/&gt; Archive Device = /media/san/bacula/ # SAN volume&lt;br/&gt; LabelMedia = yes # lets Bacula label unlabeled media&lt;br/&gt; Random Access = yes&lt;br/&gt; AutomaticMount = yes # when device opened, read it&lt;br/&gt; RemovableMedia = no&lt;br/&gt; AlwaysOpen = no&lt;br/&gt;}&lt;/pre&gt;&lt;br/&gt;&lt;pre&gt;# Tape&lt;br/&gt;Autochanger {&lt;br/&gt; Name = MSL2024&lt;br/&gt; Device = lto4drive&lt;br/&gt; Changer Command = "/home/backup/bacula/script/mtx-changer %c %o %S %a %d"&lt;br/&gt; Changer Device = /dev/sg1 # change it based on your setup&lt;br/&gt;}&lt;/pre&gt;&lt;br/&gt;&lt;pre&gt;Device {&lt;br/&gt; Name = lto4drive&lt;br/&gt; Drive Index = 0&lt;br/&gt; Media Type = LTO-4&lt;br/&gt; Archive Device = /dev/nst0&lt;br/&gt; AutomaticMount = no # when device opened, read it&lt;br/&gt; AlwaysOpen = no&lt;br/&gt; RemovableMedia = yes&lt;br/&gt; RandomAccess = no&lt;br/&gt; AutoChanger = yes&lt;br/&gt;}&lt;/pre&gt;&lt;br/&gt;&lt;/blockquote&gt;&lt;br/&gt;&lt;h3&gt;Client configuration&lt;/h3&gt;&lt;br/&gt;&lt;ul&gt;&lt;br/&gt;	&lt;li&gt;Install the bacula package on the client machines, except use --enable-client-only&lt;/li&gt;&lt;br/&gt;	&lt;li&gt;Remove the director and storage daemon startup scripts&lt;/li&gt;&lt;br/&gt;&lt;/ul&gt;&lt;br/&gt;&lt;blockquote&gt;&lt;br/&gt;&lt;pre&gt;rm /etc/init.d/bacula-dir&lt;br/&gt;rm /etc/init.d/bacula-sd&lt;/pre&gt;&lt;br/&gt;&lt;/blockquote&gt;&lt;br/&gt;&lt;ul&gt;&lt;br/&gt;	&lt;li&gt;Create necessary directories&lt;/li&gt;&lt;br/&gt;&lt;/ul&gt;&lt;br/&gt;&lt;blockquote&gt;&lt;br/&gt;&lt;pre&gt;mkdir -p /home/backup/bacula/wdir /home/backup/bacula/var/run  /home/backup/bacula/var/lock/subsys/&lt;/pre&gt;&lt;br/&gt;&lt;/blockquote&gt;&lt;br/&gt;&lt;ul&gt;&lt;br/&gt;	&lt;li&gt;Create bacula-filedeamon configuration for tape and san seperately&lt;/li&gt;&lt;br/&gt;&lt;/ul&gt;&lt;br/&gt;SAN (bacula-fd.conf)&lt;br/&gt;&lt;blockquote&gt;&lt;br/&gt;&lt;pre&gt;FileDaemon { # this is me&lt;br/&gt; Name = {clientX_hostname}-fd&lt;br/&gt; FDport = &lt;strong&gt;9102&lt;/strong&gt; # where we listen for the director&lt;br/&gt; WorkingDirectory = /home/backup/bacula/wdir&lt;br/&gt; Pid Directory = /home/backup/bacula/var/run&lt;br/&gt; Maximum Concurrent Jobs = 20&lt;br/&gt; }&lt;/pre&gt;&lt;br/&gt;&lt;/blockquote&gt;&lt;br/&gt;Tape  (bacula-fd-tape.conf)&lt;br/&gt;&lt;blockquote&gt;&lt;br/&gt;&lt;pre&gt;FileDaemon { # this is me&lt;br/&gt; Name = {clientX_hostname}-tape-fd&lt;br/&gt; FDport = &lt;strong&gt;9102&lt;/strong&gt; # different port than the san&lt;br/&gt; WorkingDirectory = /home/backup/bacula/wdir&lt;br/&gt; Pid Directory = /home/backup/bacula/var/run&lt;br/&gt; Maximum Concurrent Jobs = 20&lt;br/&gt; }&lt;/pre&gt;&lt;br/&gt;&lt;/blockquote&gt;&lt;br/&gt;&lt;ul&gt;&lt;br/&gt;	&lt;li&gt;Edit the bacula-fd startup script and add the extra line to start the tape file daemon&lt;/li&gt;&lt;br/&gt;&lt;/ul&gt;&lt;br/&gt;&lt;blockquote&gt;&lt;br/&gt;&lt;pre&gt;daemon /home/backup/bacula/sbin/bacula-fd $2 ${FD_OPTIONS} -c /home/backup/bacula/etc/bacula-fd-tape.conf&lt;/pre&gt;&lt;br/&gt;&lt;/blockquote&gt;&lt;br/&gt;./arun</content><link rel='replies' type='application/atom+xml' href='http://arunnatarajans.blogspot.com/feeds/6957684229921394789/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://arunnatarajans.blogspot.com/2012/12/san-and-tape-backup-with-bacula.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8204588824799946544/posts/default/6957684229921394789?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8204588824799946544/posts/default/6957684229921394789?v=2'/><link rel='alternate' type='text/html' href='http://arunnatarajans.blogspot.com/2012/12/san-and-tape-backup-with-bacula.html' title='SAN and Tape backup with bacula'/><author><name>Arun Natarajan S</name><uri>https://plus.google.com/117348232416484188849</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-vqVp9yDBNcM/AAAAAAAAAAI/AAAAAAAAcb8/_RJvLAGxYwU/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;CUACQH86fSp7ImA9WhNUF0s.&quot;'><id>tag:blogger.com,1999:blog-8204588824799946544.post-2494580111806869577</id><published>2012-10-03T13:35:00.000+03:00</published><updated>2013-01-09T23:36:01.115+03:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2013-01-09T23:36:01.115+03:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='Hostgroup'/><category scheme='http://www.blogger.com/atom/ns#' term='access restriction'/><category scheme='http://www.blogger.com/atom/ns#' term='Nagios'/><title>Host group based access restriction - Nagios</title><content type='html'>This is useful especially when you have different host groups belongs to different entities and you need to have access separation.&lt;br/&gt;&lt;br/&gt;The basic idea is to use the same login user name in the contact groups. I assume that you have Apache htaccess authentication or LDAP authentication in place.&lt;br/&gt;&lt;br/&gt;You may create new contact group of use the already existing one , just make sure your username and contact_name matches.&lt;br/&gt;&lt;pre&gt;- Create a contact group&lt;br/&gt;define contactgroup {&lt;/pre&gt;&lt;br/&gt;&lt;pre&gt; contactgroup_name customer1&lt;br/&gt; alias Customer1 Servers&lt;br/&gt; members customer1&lt;br/&gt;}&lt;/pre&gt;&lt;br/&gt;&lt;pre&gt;- Create the contact&lt;br/&gt;define contact {&lt;br/&gt; contact_name customer1 #make sure this matches with the username&lt;br/&gt; alias Customer1 Contact&lt;br/&gt; service_notification_period 24x7&lt;br/&gt; host_notifications_enabled 0&lt;br/&gt; host_notification_period 24x7&lt;br/&gt; service_notification_options w,u,c,r&lt;br/&gt; host_notification_options d,u,r&lt;br/&gt; service_notification_commands notify-by-email&lt;br/&gt; host_notification_commands host-notify-by-email&lt;br/&gt; email customer1@example.com&lt;br/&gt;}&lt;/pre&gt;&lt;br/&gt;&lt;pre&gt;- Use this contact group in host definition&lt;/pre&gt;&lt;br/&gt;&lt;pre&gt;define host {&lt;br/&gt; use generic-alerted-host&lt;br/&gt; host_name customer1-host&lt;br/&gt; address 8.8.8.8&lt;br/&gt; contact_groups customer1 # make sure this matches with the contactgroup_name&lt;br/&gt; max_check_attempts 3&lt;br/&gt;}&lt;/pre&gt;&lt;br/&gt;Just restart nagios and try to login with the new user account. You may give more privileges to this user if required from cgi.cfg&lt;br/&gt;&lt;pre&gt;./run&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://arunnatarajans.blogspot.com/feeds/2494580111806869577/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://arunnatarajans.blogspot.com/2012/10/host-group-based-access-restriction.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8204588824799946544/posts/default/2494580111806869577?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8204588824799946544/posts/default/2494580111806869577?v=2'/><link rel='alternate' type='text/html' href='http://arunnatarajans.blogspot.com/2012/10/host-group-based-access-restriction.html' title='Host group based access restriction - Nagios'/><author><name>Arun Natarajan S</name><uri>https://plus.google.com/117348232416484188849</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-vqVp9yDBNcM/AAAAAAAAAAI/AAAAAAAAcb8/_RJvLAGxYwU/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;CUACQH85fip7ImA9WhNUF0s.&quot;'><id>tag:blogger.com,1999:blog-8204588824799946544.post-4586498117414670093</id><published>2012-04-09T22:07:00.000+03:00</published><updated>2013-01-09T23:36:01.126+03:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2013-01-09T23:36:01.126+03:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='mailman'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><title>Delete mailman archieves</title><content type='html'>If required take backup of the archives&lt;br/&gt;&lt;pre&gt;$ cp -a /var/lib/mailman/archives/private/&amp;lt;listname&amp;gt;/* &amp;lt;backup_directory&amp;gt;&lt;/pre&gt;&lt;br/&gt;Remove the archives&lt;br/&gt;&lt;pre&gt;$ rm -rf &amp;lt;listname&amp;gt;/*&lt;/pre&gt;&lt;br/&gt;Once it is removed recreate the html archive files&lt;br/&gt;&lt;pre&gt;$ mailman/bin/arch &amp;lt;listname&amp;gt;&lt;/pre&gt;&lt;br/&gt;./arun</content><link rel='replies' type='application/atom+xml' href='http://arunnatarajans.blogspot.com/feeds/4586498117414670093/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://arunnatarajans.blogspot.com/2012/04/delete-mailman-archieves.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8204588824799946544/posts/default/4586498117414670093?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8204588824799946544/posts/default/4586498117414670093?v=2'/><link rel='alternate' type='text/html' href='http://arunnatarajans.blogspot.com/2012/04/delete-mailman-archieves.html' title='Delete mailman archieves'/><author><name>Arun Natarajan S</name><uri>https://plus.google.com/117348232416484188849</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-vqVp9yDBNcM/AAAAAAAAAAI/AAAAAAAAcb8/_RJvLAGxYwU/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;CUACQH84eSp7ImA9WhNUF0s.&quot;'><id>tag:blogger.com,1999:blog-8204588824799946544.post-5930176907017013472</id><published>2012-04-09T21:58:00.001+03:00</published><updated>2013-01-09T23:36:01.131+03:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2013-01-09T23:36:01.131+03:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='mediawiki'/><category scheme='http://www.blogger.com/atom/ns#' term='FCKeditor'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><title>Detected bug in an extension! Hook FCKeditor_MediaWiki</title><content type='html'>&lt;pre&gt;Detected bug in an extension! Hook FCKeditor_MediaWiki::onCustomEditor failed to return a value; should return true to continue hook processing or false to abort.&lt;/pre&gt;&lt;br/&gt;Backtrace:&lt;br/&gt;&lt;pre&gt;#0 mediawiki/includes/Wiki.php(497): wfRunHooks('CustomEditor', Array)&lt;br/&gt; #1 mediawiki/includes/Wiki.php(63): MediaWiki-&amp;gt;performAction(Object(OutputPage), Object(Article), &lt;br/&gt;Object(Title), Object(User), Object(WebRequest))&lt;br/&gt; #2 mediawiki/index.php(114): MediaWiki-&amp;gt;initialize(Object(Title), Object(Article), Object(OutputPage), &lt;br/&gt;Object(User), Object(WebRequest))&lt;br/&gt; #3 {main}&lt;/pre&gt;&lt;br/&gt;Edit the following file to fix this issue:&lt;br/&gt;&lt;pre&gt;"FCKeditor/FCKeditor.body.php"&lt;br/&gt; -- public function onCustomEditor(&amp;amp;$article, &amp;amp;$user) {&lt;br/&gt; ++ public function onCustomEditor($article, $user) {&lt;/pre&gt;&lt;br/&gt;reference: http://dev.ckeditor.com/ticket/3530&lt;br/&gt;./arun</content><link rel='replies' type='application/atom+xml' href='http://arunnatarajans.blogspot.com/feeds/5930176907017013472/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://arunnatarajans.blogspot.com/2012/04/detected-bug-in-extension-hook_9.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8204588824799946544/posts/default/5930176907017013472?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8204588824799946544/posts/default/5930176907017013472?v=2'/><link rel='alternate' type='text/html' href='http://arunnatarajans.blogspot.com/2012/04/detected-bug-in-extension-hook_9.html' title='Detected bug in an extension! Hook FCKeditor_MediaWiki'/><author><name>Arun Natarajan S</name><uri>https://plus.google.com/117348232416484188849</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-vqVp9yDBNcM/AAAAAAAAAAI/AAAAAAAAcb8/_RJvLAGxYwU/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;CUACQH84eyp7ImA9WhNUF0s.&quot;'><id>tag:blogger.com,1999:blog-8204588824799946544.post-6413010868711167838</id><published>2012-04-09T21:53:00.001+03:00</published><updated>2013-01-09T23:36:01.133+03:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2013-01-09T23:36:01.133+03:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='MAC OS X'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='subversion'/><category scheme='http://www.blogger.com/atom/ns#' term='locale'/><category scheme='http://www.blogger.com/atom/ns#' term='svn'/><title>svn: Can't convert string from 'UTF-8' to native encoding:</title><content type='html'>&lt;pre&gt;"svn: Can't convert string from 'UTF-8' to native encoding:"&lt;/pre&gt;&lt;br/&gt;This usually happens with special characters in the file name, which the client cannot understand.&lt;br/&gt;&lt;br/&gt;Just set proper locale in the client to fix this issues,&lt;br/&gt;&lt;blockquote&gt;&lt;br/&gt;&lt;pre&gt;$ export LC_CTYPE=en_US.UTF-8&lt;br/&gt;// make sure the locale is properly set.&lt;br/&gt;$ locale&lt;br/&gt;LC_CTYPE=en_US.UTF-8&lt;br/&gt;&lt;br/&gt;&lt;/pre&gt;&lt;br/&gt;&lt;/blockquote&gt;&lt;br/&gt;./arun</content><link rel='replies' type='application/atom+xml' href='http://arunnatarajans.blogspot.com/feeds/6413010868711167838/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://arunnatarajans.blogspot.com/2012/04/svn-can-convert-string-from-to-native_9.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8204588824799946544/posts/default/6413010868711167838?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8204588824799946544/posts/default/6413010868711167838?v=2'/><link rel='alternate' type='text/html' href='http://arunnatarajans.blogspot.com/2012/04/svn-can-convert-string-from-to-native_9.html' title='svn: Can&amp;#39;t convert string from &amp;#39;UTF-8&amp;#39; to native encoding:'/><author><name>Arun Natarajan S</name><uri>https://plus.google.com/117348232416484188849</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-vqVp9yDBNcM/AAAAAAAAAAI/AAAAAAAAcb8/_RJvLAGxYwU/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;CUACQH85eyp7ImA9WhNUF0s.&quot;'><id>tag:blogger.com,1999:blog-8204588824799946544.post-3787289776108330841</id><published>2011-12-13T18:24:00.001+03:00</published><updated>2013-01-09T23:36:01.123+03:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2013-01-09T23:36:01.123+03:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='Wordpress'/><category scheme='http://www.blogger.com/atom/ns#' term='custom post_type wordpress'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='category issue'/><category scheme='http://www.blogger.com/atom/ns#' term='CMS'/><title>Fix categories and tags in wordpress custom post_type</title><content type='html'>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.&lt;br/&gt;&lt;br/&gt;A work around found for this issue is :&lt;br/&gt;&lt;br/&gt;Edit : functions.php&lt;br/&gt;&lt;br/&gt;&lt;code&gt;add_filter('pre_get_posts', 'query_post_type');&lt;br/&gt;function query_post_type($query) {&lt;br/&gt;if(is_category() || is_tag()) {&lt;br/&gt;$post_type = get_query_var('post_type');&lt;br/&gt;if($post_type)&lt;br/&gt;$post_type = $post_type;&lt;br/&gt;else&lt;br/&gt;$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.&lt;br/&gt;$query-&amp;gt;set('post_type',$post_type);&lt;br/&gt;return $query;&lt;br/&gt;}&lt;br/&gt;}&lt;/code&gt;&lt;br/&gt;&lt;br/&gt;Reference:&lt;a href="http://wordpress.org/support/topic/custom-post-type-tagscategories-archive-page" target="_blank"&gt; http://wordpress.org/support/topic/custom-post-type-tagscategories-archive-page&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;Thanks to &lt;a href="http://wordpress.org/support/profile/parandroid" target="_blank"&gt;paranoid  &lt;/a&gt;for guiding to the fix . ;)&lt;br/&gt;&lt;br/&gt;./arun&lt;br/&gt;&lt;br/&gt;&amp;nbsp;</content><link rel='replies' type='application/atom+xml' href='http://arunnatarajans.blogspot.com/feeds/3787289776108330841/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://arunnatarajans.blogspot.com/2011/12/fix-categories-and-tags-in-wordpress_13.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8204588824799946544/posts/default/3787289776108330841?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8204588824799946544/posts/default/3787289776108330841?v=2'/><link rel='alternate' type='text/html' href='http://arunnatarajans.blogspot.com/2011/12/fix-categories-and-tags-in-wordpress_13.html' title='Fix categories and tags in wordpress custom post_type'/><author><name>Arun Natarajan S</name><uri>https://plus.google.com/117348232416484188849</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-vqVp9yDBNcM/AAAAAAAAAAI/AAAAAAAAcb8/_RJvLAGxYwU/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;CUACQH85eip7ImA9WhNUF0s.&quot;'><id>tag:blogger.com,1999:blog-8204588824799946544.post-356891696628675865</id><published>2011-12-05T17:51:00.001+03:00</published><updated>2013-01-09T23:36:01.122+03:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2013-01-09T23:36:01.122+03:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='recover broken hard disk'/><category scheme='http://www.blogger.com/atom/ns#' term='RAID1'/><category scheme='http://www.blogger.com/atom/ns#' term='Hard disk broken'/><title>Replace broken hard drive in software RAID1</title><content type='html'>This scenario assumes that you have two hard disk with RAID1 setup and one of them is broken (say sdb).&lt;br/&gt;&lt;br/&gt;To check the status of RAID:&lt;br/&gt;&lt;br/&gt;&lt;code&gt;$ cat /proc/mdstat&lt;/code&gt;&lt;br/&gt;&lt;br/&gt;&lt;code&gt;Personalities : [raid0] [raid1] [raid6] [raid5] [raid4] [raid10]&lt;br/&gt;md2 : active raid1 sda3[1]&lt;br/&gt;730202368 blocks [2/1] [U_]&lt;br/&gt;md1 : active raid1 sda2[1]&lt;br/&gt;264960 blocks [2/1] [U_]&lt;br/&gt;md0 : active (auto-read-only) raid1 sda1[1]&lt;br/&gt;2102464 blocks [2/1] [U_]&lt;/code&gt;&lt;br/&gt;&lt;br/&gt;you will see [_U] or [U_] if there is a broken RAID.&lt;br/&gt;&lt;br/&gt;If required remove the broken hardrive from RAID from all md devices.&lt;br/&gt;&lt;br/&gt;&lt;code&gt;# mdadm --manage /dev/md0 --fail /dev/sdb1&lt;br/&gt;&lt;br/&gt;# mdadm --manage /dev/md1 --fail /dev/sdb2&lt;br/&gt;&lt;br/&gt;# mdadm --manage /dev/md2 --fail /dev/sdb3&lt;/code&gt;&lt;br/&gt;&lt;br/&gt;Shutdown the machine and replace the hard drive.&lt;br/&gt;&lt;br/&gt;Once the server is booted, you will see the new device (either sda or sdb depends on what drive is broken)&lt;br/&gt;&lt;br/&gt;&lt;code&gt;# ls -l /dev/sd*&lt;/code&gt;&lt;br/&gt;&lt;br/&gt;Now we need to replicate the partition schema on the new drive.&lt;br/&gt;&lt;br/&gt;&lt;code&gt;sfdisk -d /dev/sda | sfdisk /dev/sdb&lt;/code&gt;&lt;br/&gt;&lt;br/&gt;// -d     Dump the partitions of a device&lt;br/&gt;&lt;br/&gt;We can add the partition to the RAID now, you could verify the partitions with fdisk -l.&lt;br/&gt;&lt;br/&gt;&lt;code&gt;# mdadm --manage /dev/md0 --add /dev/sdb1&lt;br/&gt;&lt;br/&gt;# mdadm --manage /dev/md1 --add /dev/sdb2&lt;br/&gt;&lt;br/&gt;# mdadm --manage /dev/md2 --add /dev/sdb3&lt;/code&gt;&lt;br/&gt;&lt;br/&gt;It will start sync the data and will be ready once completed.&lt;br/&gt;&lt;br/&gt;You may verify the mdstat&lt;br/&gt;&lt;br/&gt;&lt;code&gt;# cat /proc/mdstat&lt;br/&gt;Personalities : [raid0] [raid1] [raid6] [raid5] [raid4] [raid10]&lt;br/&gt;md2 : active raid1 sda3[0] sdb3[1]&lt;br/&gt;7302023 blocks [2/2] [UU]&lt;br/&gt;&lt;br/&gt;md1 : active raid1 sda2[0] sdb2[1]&lt;br/&gt;2649 blocks [2/2] [UU]&lt;br/&gt;&lt;br/&gt;md0 : active (auto-read-only) raid1 sda1[0] sdb1[1]&lt;br/&gt;21024 blocks [2/2] [UU]&lt;/code&gt;&lt;br/&gt;&lt;br/&gt;./arun</content><link rel='replies' type='application/atom+xml' href='http://arunnatarajans.blogspot.com/feeds/356891696628675865/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://arunnatarajans.blogspot.com/2011/12/replace-broken-hard-drive-in-software_5.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8204588824799946544/posts/default/356891696628675865?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8204588824799946544/posts/default/356891696628675865?v=2'/><link rel='alternate' type='text/html' href='http://arunnatarajans.blogspot.com/2011/12/replace-broken-hard-drive-in-software_5.html' title='Replace broken hard drive in software RAID1'/><author><name>Arun Natarajan S</name><uri>https://plus.google.com/117348232416484188849</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-vqVp9yDBNcM/AAAAAAAAAAI/AAAAAAAAcb8/_RJvLAGxYwU/s512-c/photo.jpg'/></author><thr:total>1</thr:total></entry><entry gd:etag='W/&quot;CUACQH84eCp7ImA9WhNUF0s.&quot;'><id>tag:blogger.com,1999:blog-8204588824799946544.post-5853148060907238801</id><published>2011-11-14T16:11:00.001+03:00</published><updated>2013-01-09T23:36:01.130+03:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2013-01-09T23:36:01.130+03:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='Debian'/><category scheme='http://www.blogger.com/atom/ns#' term='IPv6'/><category scheme='http://www.blogger.com/atom/ns#' term='IPv6 DNS configuration for DA'/><category scheme='http://www.blogger.com/atom/ns#' term='IPv6 Direct admin'/><title>Enable IPv6 on Direct Admin</title><content type='html'>It was rather easy to get IPv6 working with DA if you have the IPv6 subnet allocated for your server.&lt;br/&gt;&lt;br/&gt;Make sure that you have IPv6 enabled on your DA.&lt;br/&gt;&lt;br/&gt;&lt;code&gt;# grep ipv6 /usr/local/directadmin/conf/directadmin.conf&lt;br/&gt;ipv6=1&lt;/code&gt;&lt;br/&gt;&lt;br/&gt;Add the IPv6 Addresses to your direct admin, through IP Management (This will add IPv6 address to the interface).&lt;br/&gt;&lt;em&gt;Enter the IPv6 Address in IP field and keep the Netmask as 255.255.255.0&lt;/em&gt;&lt;br/&gt;&lt;br/&gt;Add IPv6 address for your name servers,&lt;br/&gt;&lt;em&gt;go to DNS administration --&amp;gt; Select your name server domain --&amp;gt; Add AAAA records for your Name Servers.&lt;/em&gt; Make sure you have added the IPv6 addresses already to DA.&lt;br/&gt;&lt;br/&gt;Check your name server is resolving/reachable via IPv6.&lt;br/&gt;&lt;br/&gt;Now to add IPv6 Address to hosted domains, &lt;em&gt;select the domain --&amp;gt; Modify user --&amp;gt; select the IPv6 address in "Add Additional IP"&lt;/em&gt;. If the IPv6 address is not visible, make sure it is added to DA and to the reseller account you are editing the domain.&lt;br/&gt;&lt;br/&gt;&lt;em&gt;Add the IPv6 address(AAAA) to the corresponding domains DNS configuration.&lt;/em&gt;&lt;br/&gt;&lt;br/&gt;Here we go, ping666666&lt;br/&gt;&lt;br/&gt;&amp;nbsp;&lt;br/&gt;&lt;br/&gt;./arun</content><link rel='replies' type='application/atom+xml' href='http://arunnatarajans.blogspot.com/feeds/5853148060907238801/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://arunnatarajans.blogspot.com/2011/11/enable-ipv6-on-direct-admin_14.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8204588824799946544/posts/default/5853148060907238801?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8204588824799946544/posts/default/5853148060907238801?v=2'/><link rel='alternate' type='text/html' href='http://arunnatarajans.blogspot.com/2011/11/enable-ipv6-on-direct-admin_14.html' title='Enable IPv6 on Direct Admin'/><author><name>Arun Natarajan S</name><uri>https://plus.google.com/117348232416484188849</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-vqVp9yDBNcM/AAAAAAAAAAI/AAAAAAAAcb8/_RJvLAGxYwU/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;CUACQH8_eCp7ImA9WhNUF0s.&quot;'><id>tag:blogger.com,1999:blog-8204588824799946544.post-8355464054693807</id><published>2011-10-02T18:56:00.001+03:00</published><updated>2013-01-09T23:36:01.140+03:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2013-01-09T23:36:01.140+03:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='lvextend'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='vgextend'/><category scheme='http://www.blogger.com/atom/ns#' term='LVM'/><category scheme='http://www.blogger.com/atom/ns#' term='Extending disk space'/><title>Extending LVM disk space</title><content type='html'>Add the new disk drive to the system, you need to reboot the machine and configure the hardware RAID if required.&lt;br/&gt;&lt;br/&gt;Add the new disk to Volume group&lt;br/&gt;&lt;br/&gt;For e.g.: if the disk is HP with Smart array&lt;br/&gt;&lt;br/&gt;&lt;em&gt;# pvcreate /dev/cciss/c0d1 &lt;/em&gt;&lt;br/&gt;&lt;em&gt;# vgextend &amp;lt;volume_group_name&amp;gt; /dev/cciss/c0d1&lt;/em&gt;&lt;br/&gt;&lt;br/&gt;Extend the Logical volume:&lt;br/&gt;&lt;em&gt;# lvextend -L&amp;lt;+mention_the_size&amp;gt; /dev/&amp;lt;volume_group&amp;gt;/&amp;lt;logical_volume&amp;gt;&lt;/em&gt;&lt;br/&gt;&lt;em&gt;eg: # lvextend -L+25G /dev/localhost/var&lt;/em&gt;&lt;br/&gt;&lt;em&gt;       # lvextend -L+10G /dev/localhost/home&lt;/em&gt;&lt;br/&gt;&lt;br/&gt;Resize the file system:&lt;br/&gt;&lt;em&gt;# resizefs &amp;lt;file_system&amp;gt;&lt;/em&gt;&lt;br/&gt;eg:&lt;br/&gt;&lt;em&gt;# resizefs /dev/mapper/localhost-var&lt;/em&gt;&lt;br/&gt;&lt;em&gt;# resizefs /dev/mapper/localhost-home&lt;/em&gt;&lt;br/&gt;&lt;br/&gt;./arun</content><link rel='replies' type='application/atom+xml' href='http://arunnatarajans.blogspot.com/feeds/8355464054693807/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://arunnatarajans.blogspot.com/2011/10/extending-lvm-disk-space_2.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8204588824799946544/posts/default/8355464054693807?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8204588824799946544/posts/default/8355464054693807?v=2'/><link rel='alternate' type='text/html' href='http://arunnatarajans.blogspot.com/2011/10/extending-lvm-disk-space_2.html' title='Extending LVM disk space'/><author><name>Arun Natarajan S</name><uri>https://plus.google.com/117348232416484188849</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-vqVp9yDBNcM/AAAAAAAAAAI/AAAAAAAAcb8/_RJvLAGxYwU/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;CUACQH85eSp7ImA9WhNUF0s.&quot;'><id>tag:blogger.com,1999:blog-8204588824799946544.post-3389444319324775914</id><published>2011-08-22T22:28:00.001+03:00</published><updated>2013-01-09T23:36:01.121+03:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2013-01-09T23:36:01.121+03:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='rsnapshot'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='Backup'/><title>Install and configure rsnapshot for central backup (without root
privilege)</title><content type='html'>&lt;span style="text-decoration: underline;"&gt;&lt;strong&gt;Download and install RsnapShot&lt;/strong&gt;&lt;/span&gt;&lt;br/&gt;Download the latest package from: http://rsnapshot.org/downloads.html&lt;br/&gt;&lt;blockquote&gt;# wget http://rsnapshot.org/downloads/rsnapshot-1.3.1-1.noarch.rpm&lt;br/&gt;# rpm -Uvh rsnapshot-1.3.1-1.noarch.rpm&lt;/blockquote&gt;&lt;br/&gt;&lt;strong&gt;&lt;span style="text-decoration: underline;"&gt;Configure public key authentication&lt;/span&gt;&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;- Enable public key authentication with remote hosts with normal user privilege&lt;br/&gt;&lt;blockquote&gt;local# ssh-keygen -t rsa&lt;br/&gt;local# scp id_rsa.pub ssh-remote-server:id_rsa.pub&lt;br/&gt;&lt;br/&gt;remote# useradd -c "Backup user" -d /data/home/backup/ backup&lt;br/&gt;remote# su - backup&lt;br/&gt;&lt;br/&gt;remote# vi .ssh/authorized_keys&lt;br/&gt;&lt;br/&gt;remote# chmod 600 .ssh/authorized_keys&lt;br/&gt;&lt;br/&gt;remote# cat id_rsa.pub &amp;gt;&amp;gt; authorized_keys ; rm id_rsa.pub&lt;/blockquote&gt;&lt;br/&gt;Add the command allowed to execute in the authorized_keys&lt;br/&gt;&lt;blockquote&gt;command="/home/backup/validate-rsync.sh"&lt;/blockquote&gt;&lt;br/&gt;Create the /home/backup/validate-rsync.sh script with following contents&lt;br/&gt;&lt;blockquote&gt;&lt;em&gt;#!/bin/sh&lt;/em&gt;&lt;br/&gt;&lt;em&gt;case "$SSH_ORIGINAL_COMMAND" in&lt;/em&gt;&lt;br/&gt;&lt;em&gt;  *\&amp;amp;*)&lt;/em&gt;&lt;br/&gt;&lt;em&gt;    echo "Rejected 1"&lt;/em&gt;&lt;br/&gt;&lt;em&gt;    ;;&lt;/em&gt;&lt;br/&gt;&lt;em&gt;  *\;*)&lt;/em&gt;&lt;br/&gt;&lt;em&gt;    echo "Rejected 2"&lt;/em&gt;&lt;br/&gt;&lt;em&gt;    ;;&lt;/em&gt;&lt;br/&gt;&lt;em&gt;    rsync*)&lt;/em&gt;&lt;br/&gt;&lt;em&gt;    $SSH_ORIGINAL_COMMAND&lt;/em&gt;&lt;br/&gt;&lt;em&gt;    ;;&lt;/em&gt;&lt;br/&gt;&lt;em&gt;  *true*)&lt;/em&gt;&lt;br/&gt;&lt;em&gt;    echo $SSH_ORIGINAL_COMMAND&lt;/em&gt;&lt;br/&gt;&lt;em&gt;    ;;&lt;/em&gt;&lt;br/&gt;&lt;em&gt;  *)&lt;/em&gt;&lt;br/&gt;&lt;em&gt;    echo "Rejected 3"&lt;/em&gt;&lt;br/&gt;&lt;em&gt;    ;;&lt;/em&gt;&lt;br/&gt;&lt;em&gt;esac&lt;/em&gt;&lt;br/&gt;&lt;br/&gt;$ chmod 700 validate-rsync.sh&lt;/blockquote&gt;&lt;br/&gt;Create the rsync wrapper script&lt;br/&gt;&lt;blockquote&gt;$ cat  &amp;gt; /usr/local/bin/rsync_wrapper.sh&lt;br/&gt;&lt;br/&gt;&lt;em&gt;#!/bin/sh&lt;/em&gt;&lt;br/&gt;&lt;em&gt;/usr/bin/sudo /usr/bin/rsync "$@";&lt;/em&gt;&lt;br/&gt;&lt;br/&gt;# chmod 755 /usr/local/bin/rsync_wrapper.sh&lt;/blockquote&gt;&lt;br/&gt;This steps will basically force the ssh connection to execute the rsync as sudo&lt;br/&gt;&lt;br/&gt;Grant user to execute rsync as root&lt;br/&gt;&lt;blockquote&gt;&lt;em&gt;backup    ALL=(root) NOPASSWD: /usr/bin/rsync&lt;/em&gt;&lt;/blockquote&gt;&lt;br/&gt;&lt;span style="text-decoration: underline;"&gt;&lt;strong&gt;Configure Rsnapshot&lt;/strong&gt;&lt;/span&gt;&lt;br/&gt;&lt;blockquote&gt;master# cp /etc/rsnapshot.conf.default /etc/rsnapshot.conf&lt;/blockquote&gt;&lt;br/&gt;Configure path for cp, rsync, ssh, logger, du etc&lt;br/&gt;&lt;blockquote&gt;set link_dest = 1&lt;/blockquote&gt;&lt;br/&gt;change rsync_long_args like&lt;br/&gt;&lt;blockquote&gt;rsync_long_args --rsync-path=rsync_wrapper.sh --delete --numeric-ids --relative --delete-excluded&lt;/blockquote&gt;&lt;br/&gt;If you require daily backup for a week,&lt;br/&gt;&lt;blockquote&gt;interval daily 7&lt;/blockquote&gt;&lt;br/&gt;More details are on the how to section for rsnapshot website&lt;br/&gt;http://rsnapshot.org/howto/1.2/rsnapshot-HOWTO.en.html&lt;br/&gt;&lt;br/&gt;Configure the hosts and file system to backup&lt;br/&gt;&lt;blockquote&gt;backup      backup@remotehost:/etc/     remotehost/&lt;/blockquote&gt;&lt;br/&gt;./arun&lt;br/&gt;&lt;blockquote&gt;&amp;nbsp;&lt;br/&gt;&lt;br/&gt;&amp;nbsp;&lt;br/&gt;&lt;br/&gt;&amp;nbsp;&lt;br/&gt;&lt;br/&gt;&amp;nbsp;&lt;/blockquote&gt;</content><link rel='replies' type='application/atom+xml' href='http://arunnatarajans.blogspot.com/feeds/3389444319324775914/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://arunnatarajans.blogspot.com/2011/08/install-and-configure-rsnapshot-for_22.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8204588824799946544/posts/default/3389444319324775914?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8204588824799946544/posts/default/3389444319324775914?v=2'/><link rel='alternate' type='text/html' href='http://arunnatarajans.blogspot.com/2011/08/install-and-configure-rsnapshot-for_22.html' title='Install and configure rsnapshot for central backup (without root&#xA;privilege)'/><author><name>Arun Natarajan S</name><uri>https://plus.google.com/117348232416484188849</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-vqVp9yDBNcM/AAAAAAAAAAI/AAAAAAAAcb8/_RJvLAGxYwU/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;CUACQH86fyp7ImA9WhNUF0s.&quot;'><id>tag:blogger.com,1999:blog-8204588824799946544.post-256826204101067027</id><published>2011-08-14T19:22:00.001+03:00</published><updated>2013-01-09T23:36:01.117+03:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2013-01-09T23:36:01.117+03:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='PHP 5.2 in Redhat Enterprise Linux 5'/><category scheme='http://www.blogger.com/atom/ns#' term='php'/><title>Upgrading php to 5.2 or 5.3 in Redhat EL 5</title><content type='html'>Unfortunately RHEL 5 does not have php.5.2 package, which is required by most of the applications including latest wordpress and drupal.&lt;br/&gt;&lt;br/&gt;First thought of compiling php from source, but hard to keep it uptodate. So decided to make the life easier with EPEL/IUS repositories.&lt;br/&gt;&lt;br/&gt;Remove all existing php related packages:&lt;br/&gt;&lt;blockquote&gt;# rpm -e php php-mysql php-cli php-pdo php-common&lt;br/&gt;&lt;br/&gt;Download and install the EPEL/IUS RPMs&lt;br/&gt;&lt;br/&gt;# wget http://dl.iuscommunity.org/pub/ius/stable/Redhat/5/i386/epel-release-1-1.ius.el5.noarch.rpm&lt;br/&gt;&lt;br/&gt;# wget http://dl.iuscommunity.org/pub/ius/stable/Redhat/5/i386/ius-release-1.0-8.ius.el5.noarch.rpm&lt;/blockquote&gt;&lt;br/&gt;incase if the list not working just browse and find the rpm.&lt;br/&gt;&lt;br/&gt;Install the RPMs&lt;br/&gt;&lt;blockquote&gt;# rpm -Uvh *-release-*.rpm&lt;/blockquote&gt;&lt;br/&gt;Now you can install php 5.2 or 5.3 like:&lt;br/&gt;&lt;blockquote&gt;# yum install php52 php52-mysql&lt;/blockquote&gt;&lt;br/&gt;./arun&lt;br/&gt;&lt;br/&gt;&amp;nbsp;</content><link rel='replies' type='application/atom+xml' href='http://arunnatarajans.blogspot.com/feeds/256826204101067027/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://arunnatarajans.blogspot.com/2011/08/upgrading-php-to-52-or-53-in-redhat-el-5_14.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8204588824799946544/posts/default/256826204101067027?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8204588824799946544/posts/default/256826204101067027?v=2'/><link rel='alternate' type='text/html' href='http://arunnatarajans.blogspot.com/2011/08/upgrading-php-to-52-or-53-in-redhat-el-5_14.html' title='Upgrading php to 5.2 or 5.3 in Redhat EL 5'/><author><name>Arun Natarajan S</name><uri>https://plus.google.com/117348232416484188849</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-vqVp9yDBNcM/AAAAAAAAAAI/AAAAAAAAcb8/_RJvLAGxYwU/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;CUACQH86eip7ImA9WhNUF0s.&quot;'><id>tag:blogger.com,1999:blog-8204588824799946544.post-2000218857000394985</id><published>2011-06-20T01:57:00.001+03:00</published><updated>2013-01-09T23:36:01.112+03:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2013-01-09T23:36:01.112+03:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='MAC OS X'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='svn ssh tunnel'/><category scheme='http://www.blogger.com/atom/ns#' term='svn update'/><category scheme='http://www.blogger.com/atom/ns#' term='svn commit'/><title>svn over ssh tunnel</title><content type='html'>&lt;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" /&gt;&lt;br/&gt;&lt;br/&gt;&amp;nbsp;&lt;br/&gt;&lt;br/&gt;&amp;nbsp;&lt;br/&gt;&lt;br/&gt;&amp;nbsp;&lt;br/&gt;&lt;br/&gt;&amp;nbsp;&lt;br/&gt;&lt;br/&gt;&amp;nbsp;&lt;br/&gt;&lt;br/&gt;&amp;nbsp;&lt;br/&gt;&lt;br/&gt;&amp;nbsp;&lt;br/&gt;&lt;br/&gt;&amp;nbsp;&lt;br/&gt;&lt;br/&gt;&amp;nbsp;&lt;br/&gt;&lt;br/&gt;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)&lt;br/&gt;&lt;br/&gt;Suppose you have a working copy (locally on your machine)  setup with the real svn url (eg : svn+ssh://svn.example.com)&lt;br/&gt;&lt;br/&gt;- Make ssh connection with local port forwarding to the gateway server&lt;br/&gt;&lt;blockquote&gt;# sudo ssh gateway.example.com -L 22:svn.example.com:22&lt;/blockquote&gt;&lt;br/&gt;Change the repository url to localhost, since the local host connection forward to remote svn server through the gateway.&lt;br/&gt;&lt;blockquote&gt;#cd &amp;lt;local_svn_path&amp;gt;&lt;br/&gt;&lt;br/&gt;# svn switch --relocate svn+ssh://svn.example.com/trunk svn+ssh://localhost/trunk&lt;/blockquote&gt;&lt;br/&gt;Now you should be able to update, commit, etc to/from your repository.&lt;br/&gt;&lt;br/&gt;You can switch it back to the original url when you have direct access to repository.&lt;br/&gt;&lt;br/&gt;./arun&lt;br/&gt;&lt;br/&gt;&amp;nbsp;</content><link rel='replies' type='application/atom+xml' href='http://arunnatarajans.blogspot.com/feeds/2000218857000394985/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://arunnatarajans.blogspot.com/2011/06/svn-over-ssh-tunnel_20.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8204588824799946544/posts/default/2000218857000394985?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8204588824799946544/posts/default/2000218857000394985?v=2'/><link rel='alternate' type='text/html' href='http://arunnatarajans.blogspot.com/2011/06/svn-over-ssh-tunnel_20.html' title='svn over ssh tunnel'/><author><name>Arun Natarajan S</name><uri>https://plus.google.com/117348232416484188849</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-vqVp9yDBNcM/AAAAAAAAAAI/AAAAAAAAcb8/_RJvLAGxYwU/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;CUACQH84cCp7ImA9WhNUF0s.&quot;'><id>tag:blogger.com,1999:blog-8204588824799946544.post-7338184104226495323</id><published>2011-06-14T19:21:00.001+03:00</published><updated>2013-01-09T23:36:01.138+03:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2013-01-09T23:36:01.138+03:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='Direct admin'/><category scheme='http://www.blogger.com/atom/ns#' term='Debian'/><category scheme='http://www.blogger.com/atom/ns#' term='debian 6'/><title>Install directadmin on Debian 6</title><content type='html'>Install the basic debian server without any server components&lt;br/&gt;&lt;br/&gt;Install the dependency packages:&lt;br/&gt;&lt;blockquote&gt;# sudo apt-get install gcc g++ make flex bison openssl libssl-dev perl perl-base perl-modules libperl-dev libaio1 libaio-dev bind9&lt;/blockquote&gt;&lt;br/&gt;Purchase and register the server ip at directadmin.com&lt;br/&gt;&lt;br/&gt;Once the license is activated, login to the server:&lt;br/&gt;&lt;blockquote&gt;$ wget http://www.directadmin.com/setup.sh&lt;br/&gt;&lt;br/&gt;$ chmod 755 setup.sh&lt;br/&gt;&lt;br/&gt;# sudo ./setup.sh&lt;br/&gt;&lt;br/&gt;// enter the client id, license id, FQDN etc, and follow the instructions.&lt;br/&gt;&lt;br/&gt;Once the installation completed the direct admin interface will be accessible at https://&amp;lt; server_ip &amp;gt;: 2222/&lt;/blockquote&gt;&lt;br/&gt;./arun&lt;br/&gt;&lt;blockquote&gt;&amp;nbsp;&lt;/blockquote&gt;&lt;br/&gt;&amp;nbsp;</content><link rel='replies' type='application/atom+xml' href='http://arunnatarajans.blogspot.com/feeds/7338184104226495323/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://arunnatarajans.blogspot.com/2011/06/install-directadmin-on-debian-6_14.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8204588824799946544/posts/default/7338184104226495323?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8204588824799946544/posts/default/7338184104226495323?v=2'/><link rel='alternate' type='text/html' href='http://arunnatarajans.blogspot.com/2011/06/install-directadmin-on-debian-6_14.html' title='Install directadmin on Debian 6'/><author><name>Arun Natarajan S</name><uri>https://plus.google.com/117348232416484188849</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-vqVp9yDBNcM/AAAAAAAAAAI/AAAAAAAAcb8/_RJvLAGxYwU/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;CUACQH86cCp7ImA9WhNUF0s.&quot;'><id>tag:blogger.com,1999:blog-8204588824799946544.post-266939826757637878</id><published>2011-06-14T18:59:00.001+03:00</published><updated>2013-01-09T23:36:01.118+03:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2013-01-09T23:36:01.118+03:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='LDAP'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='apache'/><category scheme='http://www.blogger.com/atom/ns#' term='Racktables'/><title>Racktable, Apache+LDAP authentication</title><content type='html'>&lt;strong&gt;Login to the Rack tables as admin:&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;Add the following line under configuration--&amp;gt; permission&lt;br/&gt;&lt;blockquote&gt;&lt;code&gt;allow {$tab_default}&lt;/code&gt;&lt;/blockquote&gt;&lt;br/&gt;* This is for read only account, assign extra permissions if required&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;Configure Apache + LDAP&lt;/strong&gt;&lt;br/&gt;&lt;blockquote&gt;&lt;code&gt; &amp;lt; Directory /var/www/racktables &amp;gt;&lt;br/&gt;Options +Indexes FollowSymLinks MultiViews&lt;br/&gt;DirectoryIndex index.php&lt;br/&gt;AuthName "Rack Tables"&lt;br/&gt;AuthType Basic&lt;br/&gt;AuthBasicProvider ldap&lt;br/&gt;AuthzLDAPAuthoritative on&lt;br/&gt;AuthLDAPURL "ldaps://ldaphost.com/dc=company,dc=com?uid?sub?(objectClass=&amp;lt; depends_on_ldap &amp;gt;)"&lt;/code&gt;&lt;br/&gt;&lt;br/&gt;&lt;code&gt; &lt;/code&gt;&lt;br/&gt;&lt;br/&gt;&lt;code&gt; # Bind if required&lt;br/&gt;AuthLDAPBindDN  "uid=userid,ou=people,dc=company,dc=com"&lt;br/&gt;AuthLDAPBindPassword "xxxxxx"&lt;br/&gt;AuthLDAPGroupAttribute uniqueMember&lt;br/&gt;AuthLDAPGroupAttributeIsDN on&lt;br/&gt;require ldap-group cn=group_name,dc=company,dc=com&lt;br/&gt;require ldap-attribute cn=group-name-allowed&lt;br/&gt;&amp;lt; /Directory &amp;gt;&lt;/code&gt;&lt;/blockquote&gt;&lt;br/&gt;&lt;em&gt;* Most of LDAP configs based on your setup&lt;/em&gt;&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;Configure Rack Tables:&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;&lt;strong&gt; &lt;/strong&gt;Edit the inc/secret.php&lt;br/&gt;&lt;br/&gt;Set :&lt;br/&gt;&lt;blockquote&gt;&lt;code&gt;$user_auth_src = 'httpd';&lt;br/&gt;$require_local_account = FALSE;&lt;/code&gt;&lt;/blockquote&gt;&lt;br/&gt;&lt;strong&gt; &lt;/strong&gt;&lt;em&gt;NOTE: to get the logout working properly make sure the Apache AuthName matches with the one configured for Rack tables authentication.&lt;/em&gt;&lt;br/&gt;&lt;br/&gt;&lt;strong&gt; &lt;/strong&gt;&lt;strong&gt; &lt;/strong&gt;Referene : &lt;a href="http://sourceforge.net/apps/mediawiki/racktables/index.php?title=RackTablesAdminGuide" target="_blank"&gt;http://sourceforge.net/apps/mediawiki/racktables/index.php?title=RackTablesAdminGuide&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;Reference&lt;br/&gt;&lt;br/&gt;&lt;strong&gt; &lt;/strong&gt;./arun</content><link rel='replies' type='application/atom+xml' href='http://arunnatarajans.blogspot.com/feeds/266939826757637878/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://arunnatarajans.blogspot.com/2011/06/racktable-apacheldap-authentication_14.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8204588824799946544/posts/default/266939826757637878?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8204588824799946544/posts/default/266939826757637878?v=2'/><link rel='alternate' type='text/html' href='http://arunnatarajans.blogspot.com/2011/06/racktable-apacheldap-authentication_14.html' title='Racktable, Apache+LDAP authentication'/><author><name>Arun Natarajan S</name><uri>https://plus.google.com/117348232416484188849</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-vqVp9yDBNcM/AAAAAAAAAAI/AAAAAAAAcb8/_RJvLAGxYwU/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;CUACQH86fip7ImA9WhNUF0s.&quot;'><id>tag:blogger.com,1999:blog-8204588824799946544.post-251342643891170820</id><published>2011-06-06T13:28:00.001+03:00</published><updated>2013-01-09T23:36:01.116+03:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2013-01-09T23:36:01.116+03:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='rsnapshot'/><category scheme='http://www.blogger.com/atom/ns#' term='Lchown'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='Backup'/><title>Rsnapshot Lchown</title><content type='html'>&lt;blockquote&gt;# rsnapshot du localhost&lt;br/&gt;&lt;em&gt;require Lchown&lt;/em&gt;&lt;br/&gt;&lt;em&gt;Lchown module not found&lt;/em&gt;&lt;/blockquote&gt;&lt;br/&gt;Install the Lchown module:&lt;br/&gt;&lt;blockquote&gt;# wget http://www.rsnapshot.org/downloads/extras/Lchown-1.00.tar.gz&lt;br/&gt;&lt;br/&gt;# tar xvzf Lchown-1.00.tar.gz&lt;br/&gt;&lt;br/&gt;# cd Lchown-1.00&lt;br/&gt;&lt;br/&gt;# perl Makefile.PL&lt;br/&gt;&lt;em&gt;Checking if your kit is complete...&lt;/em&gt;&lt;br/&gt;&lt;em&gt;Looks good&lt;/em&gt;&lt;br/&gt;&lt;br/&gt;# make install&lt;/blockquote&gt;&lt;br/&gt;&lt;blockquote&gt;# rsnapshot du localhost&lt;br/&gt;&lt;em&gt;require Lchown&lt;/em&gt;&lt;br/&gt;&lt;em&gt;Lchown module loaded successfully&lt;/em&gt;&lt;/blockquote&gt;&lt;br/&gt;You can also try installing the module from Perl CPAN&lt;br/&gt;&lt;blockquote&gt;# perl -MCPAN -e 'install qw(Lchown)'&lt;/blockquote&gt;&lt;br/&gt;./arun</content><link rel='replies' type='application/atom+xml' href='http://arunnatarajans.blogspot.com/feeds/251342643891170820/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://arunnatarajans.blogspot.com/2011/06/rsnapshot-lchown_6.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8204588824799946544/posts/default/251342643891170820?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8204588824799946544/posts/default/251342643891170820?v=2'/><link rel='alternate' type='text/html' href='http://arunnatarajans.blogspot.com/2011/06/rsnapshot-lchown_6.html' title='Rsnapshot Lchown'/><author><name>Arun Natarajan S</name><uri>https://plus.google.com/117348232416484188849</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-vqVp9yDBNcM/AAAAAAAAAAI/AAAAAAAAcb8/_RJvLAGxYwU/s512-c/photo.jpg'/></author><thr:total>1</thr:total></entry><entry gd:etag='W/&quot;CUACQH86eyp7ImA9WhNUF0s.&quot;'><id>tag:blogger.com,1999:blog-8204588824799946544.post-2012004660196186826</id><published>2011-06-05T00:29:00.001+03:00</published><updated>2013-01-09T23:36:01.113+03:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2013-01-09T23:36:01.113+03:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='MAC OS X'/><category scheme='http://www.blogger.com/atom/ns#' term='MAC applications'/><title>My Favourite MAC OS X applications</title><content type='html'>&lt;strong&gt;Text Editor&lt;/strong&gt;&lt;br/&gt;&lt;blockquote&gt;vi&lt;br/&gt;&lt;br/&gt;Text Edit&lt;br/&gt;&lt;br/&gt;Smultron: &lt;a href="http://www.peterborgapps.com/smultron/" target="_blank"&gt;http://www.peterborgapps.com/smultron/&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;Komodo Edit: &lt;a href="http://www.activestate.com/komodo-edit" target="_blank"&gt;http://www.activestate.com/komodo-edit&lt;/a&gt;&lt;/blockquote&gt;&lt;br/&gt;&lt;strong&gt;Voice/Video Calls&lt;/strong&gt;&lt;br/&gt;&lt;blockquote&gt;Skype : &lt;a href="http://skype.com" target="_blank"&gt;http://skype.com&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;Google talk (browser plugin): : &lt;a href="http://www.google.com/chat/video" target="_blank"&gt;http://www.google.com/chat/video&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;G+ hangout&lt;/blockquote&gt;&lt;br/&gt;&lt;strong&gt;Web Browser&lt;/strong&gt;&lt;br/&gt;&lt;blockquote&gt;Firefox: &lt;a href="http://www.mozilla.com/en-US/firefox/fx/" target="_blank"&gt;http://www.mozilla.com/en-US/firefox/fx/&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;Chrome: &lt;a href="http://www.google.com/chrome" target="_blank"&gt;http://www.google.com/chrome&lt;/a&gt;&lt;/blockquote&gt;&lt;br/&gt;&lt;strong&gt;Twitter Client&lt;/strong&gt;&lt;br/&gt;&lt;blockquote&gt;A Plus: &lt;a href="http://www.aplus-app.com/" target="_blank"&gt;http://www.aplus-app.com/&lt;/a&gt;&lt;/blockquote&gt;&lt;br/&gt;&lt;strong&gt;IM&lt;/strong&gt;&lt;br/&gt;&lt;blockquote&gt;Adium: &lt;a href="http://adium.im/" target="_blank"&gt;http://adium.im/&lt;/a&gt;&lt;/blockquote&gt;&lt;br/&gt;&lt;a href="http://arunnsblog.com/wp-content/uploads/2011/06/mac.jpg"&gt;&lt;img title="mac" src="http://arunnsblog.com/wp-content/uploads/2011/06/mac-300x88.jpg" alt="" width="300" height="88" /&gt;&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;Office Documents&lt;/strong&gt;&lt;br/&gt;&lt;blockquote&gt;Libre office: &lt;a href="http://www.libreoffice.org/" target="_blank"&gt;http://www.libreoffice.org/&lt;/a&gt;&lt;/blockquote&gt;&lt;br/&gt;&lt;strong&gt;Video Player&lt;/strong&gt;&lt;br/&gt;&lt;blockquote&gt;VLC: &lt;a href="http://www.videolan.org/vlc/" target="_blank"&gt;http://www.videolan.org/vlc/&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;Miro: &lt;a href="http://www.getmiro.com/" target="_blank"&gt;http://www.getmiro.com/&lt;/a&gt; ( an excellent stream and bit torrent client as well)&lt;/blockquote&gt;&lt;br/&gt;&lt;strong&gt;VOIP&lt;/strong&gt;&lt;br/&gt;&lt;blockquote&gt;Express Talk(free edition) : &lt;a href="http://www.nch.com.au/talk/talkmaci.zip" target="_blank"&gt;http://www.nch.com.au/talk/talkmaci.zip&lt;/a&gt;&lt;/blockquote&gt;&lt;br/&gt;&lt;strong&gt;Virtulization&lt;/strong&gt;&lt;br/&gt;&lt;blockquote&gt;VMware Fusion : &lt;a href="http://www.vmware.com/products/fusion/overview.html" target="_blank"&gt;http://www.vmware.com/products/fusion/overview.html&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;Sun Virtual Box (free): &lt;a href="http://www.virtualbox.org/" target="_blank"&gt;http://www.virtualbox.org/&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;Parellels: &lt;a href="http://www.parallels.com/" target="_blank"&gt;http://www.parallels.com/&lt;/a&gt;&lt;/blockquote&gt;&lt;br/&gt;&lt;strong&gt;PDF viewer&lt;/strong&gt;&lt;br/&gt;&lt;blockquote&gt;Adobe Reader: &lt;a href="http://get.adobe.com/reader/" target="_blank"&gt;http://get.adobe.com/reader/&lt;/a&gt;&lt;/blockquote&gt;&lt;br/&gt;&lt;strong&gt;Audio Editing&lt;/strong&gt;&lt;br/&gt;&lt;blockquote&gt;Audacity: &lt;a href="http://audacity.sourceforge.net/" target="_blank"&gt;http://audacity.sourceforge.net/&lt;/a&gt;&lt;/blockquote&gt;&lt;br/&gt;&lt;strong&gt;Disk burning&lt;/strong&gt;&lt;br/&gt;&lt;blockquote&gt;Burn: &lt;a href="http://burn-osx.sourceforge.net/Pages/English/home.html" target="_blank"&gt;http://burn-osx.sourceforge.net/&lt;/a&gt;&lt;/blockquote&gt;&lt;br/&gt;&lt;strong&gt;Disk Image backup&lt;/strong&gt;&lt;br/&gt;&lt;blockquote&gt;Carbon copy cloner: &lt;a href="http://www.bombich.com/" target="_blank"&gt;http://www.bombich.com/&lt;/a&gt;&lt;/blockquote&gt;&lt;br/&gt;&lt;strong&gt;VNC client&lt;/strong&gt;&lt;br/&gt;&lt;blockquote&gt;Chicken of the VNC: &lt;a href="http://sourceforge.net/projects/cotvnc/" target="_blank"&gt;http://sourceforge.net/projects/cotvnc/&lt;/a&gt;&lt;/blockquote&gt;&lt;br/&gt;&lt;strong&gt;IPSEC VPN&lt;/strong&gt;&lt;br/&gt;&lt;blockquote&gt;Cisco Any connect&lt;/blockquote&gt;&lt;br/&gt;&lt;strong&gt;Subversion&lt;/strong&gt;&lt;br/&gt;&lt;blockquote&gt;Command line as always&lt;br/&gt;&lt;br/&gt;Cornerstone, good if you require an interface: &lt;a href="http://www.zennaware.com/cornerstone/index.php" target="_blank"&gt;http://www.zennaware.com/cornerstone/index.php&lt;/a&gt;&lt;/blockquote&gt;&lt;br/&gt;&lt;strong&gt;Image Manipulation&lt;/strong&gt;&lt;br/&gt;&lt;blockquote&gt;GIMP: &lt;a href="http://www.gimp.org/" target="_blank"&gt;http://www.gimp.org/&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;Picasa: &lt;a href="http://picasa.google.com/mac/" target="_blank"&gt;http://picasa.google.com/mac/&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;Xee:&lt;a href="http://wakaba.c3.cx/s/apps/xee" target="_blank"&gt; http://wakaba.c3.cx/s/apps/xee&lt;/a&gt;&lt;/blockquote&gt;&lt;br/&gt;&lt;strong&gt;Password Management&lt;/strong&gt;&lt;br/&gt;&lt;blockquote&gt;KeePassX: &lt;a href="http://www.keepassx.org/" target="_blank"&gt;http://www.keepassx.org/&lt;/a&gt;&lt;/blockquote&gt;&lt;br/&gt;&lt;strong&gt;GPG Key Chain&lt;/strong&gt;&lt;br/&gt;&lt;blockquote&gt;MAC GPG: &lt;a href="http://macgpg.sourceforge.net/" target="_blank"&gt;http://macgpg.sourceforge.net/&lt;/a&gt;&lt;/blockquote&gt;&lt;br/&gt;&lt;strong&gt;Terminal&lt;/strong&gt;&lt;br/&gt;&lt;blockquote&gt;iTerm: &lt;a href="http://iterm.sourceforge.net/" target="_blank"&gt;http://iterm.sourceforge.net/&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;The default terminal is really nice in Lion&lt;/blockquote&gt;&lt;br/&gt;&lt;strong&gt;Mail&lt;/strong&gt;&lt;br/&gt;&lt;blockquote&gt;Thunderbird: &lt;a href="http://www.mozillamessaging.com/en-US/thunderbird/" target="_blank"&gt;http://www.mozillamessaging.com/en-US/thunderbird/&lt;/a&gt;&lt;/blockquote&gt;&lt;br/&gt;&lt;strong&gt;Diagram&lt;/strong&gt;&lt;br/&gt;&lt;blockquote&gt;OmniGraffle: &lt;a href="http://www.omnigroup.com/products/omnigraffle/" target="_blank"&gt;http://www.omnigroup.com/products/omnigraffle/&lt;/a&gt;&lt;/blockquote&gt;&lt;br/&gt;&lt;strong&gt;Packet Analysis&lt;/strong&gt;&lt;br/&gt;&lt;blockquote&gt;wireshark:&lt;a href="http://www.wireshark.org/" target="_blank"&gt; http://www.wireshark.org/&lt;/a&gt;&lt;/blockquote&gt;&lt;br/&gt;./arun&lt;br/&gt;&lt;blockquote&gt;&amp;nbsp;&lt;/blockquote&gt;&lt;br/&gt;&lt;blockquote&gt;&amp;nbsp;&lt;/blockquote&gt;&lt;br/&gt;&amp;nbsp;</content><link rel='replies' type='application/atom+xml' href='http://arunnatarajans.blogspot.com/feeds/2012004660196186826/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://arunnatarajans.blogspot.com/2011/06/my-favourite-mac-os-x-applications_5.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8204588824799946544/posts/default/2012004660196186826?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8204588824799946544/posts/default/2012004660196186826?v=2'/><link rel='alternate' type='text/html' href='http://arunnatarajans.blogspot.com/2011/06/my-favourite-mac-os-x-applications_5.html' title='My Favourite MAC OS X applications'/><author><name>Arun Natarajan S</name><uri>https://plus.google.com/117348232416484188849</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-vqVp9yDBNcM/AAAAAAAAAAI/AAAAAAAAcb8/_RJvLAGxYwU/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;CUACQH85eCp7ImA9WhNUF0s.&quot;'><id>tag:blogger.com,1999:blog-8204588824799946544.post-308526864669291739</id><published>2011-05-29T00:51:00.001+03:00</published><updated>2013-01-09T23:36:01.120+03:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2013-01-09T23:36:01.120+03:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='FreeBSD'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='pkg_add'/><category scheme='http://www.blogger.com/atom/ns#' term='Install Cpanel on Free BSD'/><title>Install Cpanel on FreeBSD 8.2</title><content type='html'>- Install FreeBSD with proper network and file system configuration (Ref:  &lt;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"&gt;http://docs.cpanel.net/twiki/bin/view/AllDocumentation/InstallationGuide/Quick-StartInstallationGuide&lt;/a&gt;)&lt;br/&gt;&lt;br/&gt;- Install dependency packages:&lt;br/&gt;&lt;blockquote&gt;# pkg_add -r wget&lt;br/&gt;&lt;br/&gt;# pkg_add -r perl&lt;br/&gt;&lt;br/&gt;# pkg_add -r rsync (required later for ports sync)&lt;br/&gt;&lt;br/&gt;# pkg_add -r gmake&lt;/blockquote&gt;&lt;br/&gt;&lt;em&gt;To Fix:&lt;/em&gt;&lt;br/&gt;&lt;br/&gt;&lt;em&gt;creating glibconfig.h&lt;/em&gt;&lt;br/&gt;&lt;em&gt; config.status: executing default commands&lt;/em&gt;&lt;br/&gt;&lt;em&gt; gmake: not found&lt;/em&gt;&lt;br/&gt;&lt;em&gt; child exited with value 127&lt;/em&gt;&lt;br/&gt;&lt;em&gt; Died at /usr/local/cpanel/bin/rrdtoolinstall line 109.&lt;/em&gt;&lt;br/&gt;&lt;blockquote&gt;# pkg_add -r png &lt;em&gt;// To fix the following error&lt;/em&gt;&lt;/blockquote&gt;&lt;br/&gt;&lt;em&gt;To Fix : configure: error: requested PNG backend could not be enabled&lt;/em&gt;&lt;br/&gt;&lt;br/&gt;- Create the following symlinks&lt;br/&gt;&lt;blockquote&gt;# ln -s /usr/local/bin/wget /usr/bin/wget&lt;br/&gt;&lt;br/&gt;# ln -s /lib/libcrypt.so.5 /lib/libcrypt.so.2 &lt;em&gt;// To Fix: Shared object "libcrypt.so.2" not found,&lt;/em&gt;&lt;br/&gt;&lt;br/&gt;# ln -s /lib/libc.so.7 /lib/libc.so.5 &lt;em&gt;// To Fix: Shared object "libc.so.5" not found&lt;/em&gt;&lt;br/&gt;&lt;br/&gt;ln -s /lib/libm.so.5 /lib/libm.so.3&lt;em&gt; // To Fix: "libm.so.3" not found&lt;/em&gt;&lt;/blockquote&gt;&lt;br/&gt;- Install Cpanel&lt;br/&gt;&lt;blockquote&gt;cd /home&lt;br/&gt;&lt;br/&gt;wget -N http://httpupdate.cpanel.net/latest&lt;br/&gt;&lt;br/&gt;sh latest&lt;/blockquote&gt;&lt;br/&gt;- Once installation successful activate the license (make sure the ip is licensed -  &lt;a title="http://www.cpanel.net/apps/verify/" href="http://www.cpanel.net/apps/verify/" target="_blank"&gt;http://www.cpanel.net/apps/verify/&lt;/a&gt;)  :&lt;br/&gt;&lt;blockquote&gt;#  /usr/local/cpanel/cpkeyclt&lt;/blockquote&gt;&lt;br/&gt;- Start Cpanel&lt;br/&gt;&lt;br/&gt;- Touch the following file&lt;br/&gt;&lt;blockquote&gt;# touch /etc/rc.d/init.d/function &lt;em&gt;// To fix:  Could not find functions file, your system may be broken&lt;/em&gt;&lt;br/&gt;&lt;br/&gt;# /etc/init.d/cpanel start&lt;/blockquote&gt;&lt;br/&gt;Now you should be able to access Cpanel at https://&amp;lt; yourip &amp;gt;:2087/&lt;br/&gt;&lt;br/&gt;Try to upgrade&lt;br/&gt;&lt;br/&gt;Exim: /scripts/eximup --force (this will get the free bsd ports as well)&lt;br/&gt;Cpanel : # /scripts/upcp&lt;br/&gt;&lt;br/&gt;./arun&lt;br/&gt;&lt;br/&gt;&amp;nbsp;&lt;br/&gt;&lt;br/&gt;&amp;nbsp;</content><link rel='replies' type='application/atom+xml' href='http://arunnatarajans.blogspot.com/feeds/308526864669291739/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://arunnatarajans.blogspot.com/2011/05/install-cpanel-on-freebsd-82_29.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8204588824799946544/posts/default/308526864669291739?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8204588824799946544/posts/default/308526864669291739?v=2'/><link rel='alternate' type='text/html' href='http://arunnatarajans.blogspot.com/2011/05/install-cpanel-on-freebsd-82_29.html' title='Install Cpanel on FreeBSD 8.2'/><author><name>Arun Natarajan S</name><uri>https://plus.google.com/117348232416484188849</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-vqVp9yDBNcM/AAAAAAAAAAI/AAAAAAAAcb8/_RJvLAGxYwU/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;CUACQH85fyp7ImA9WhNUF0s.&quot;'><id>tag:blogger.com,1999:blog-8204588824799946544.post-5123706872189191292</id><published>2011-05-22T12:43:00.001+03:00</published><updated>2013-01-09T23:36:01.127+03:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2013-01-09T23:36:01.127+03:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='Drupal 7 issue'/><category scheme='http://www.blogger.com/atom/ns#' term='1231 Variable &apos;sql_mode&apos; can&apos;t be set to the value of &apos;TRADITIONAL&apos;'/><category scheme='http://www.blogger.com/atom/ns#' term='Cpanel'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='Mysql'/><category scheme='http://www.blogger.com/atom/ns#' term='Sql Mode'/><title>Drupal 7 issue with SQL Mode TRADITIONAL</title><content type='html'>&lt;strong&gt;PDOException: SQLSTATE[42000]: Syntax error or access violation: 1231  Variable 'sql_mode' can't be set to the value of 'TRADITIONAL' in  lock_may_be_available() (line 165 of /includes/lock.inc).&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;This was the case when I installed Drupal 7 with Cpanel/Fantastico, the drupal site was displaying the above error.&lt;br/&gt;&lt;br/&gt;This issue is discussed at &lt;a href="http://drupal.org/node/344575" target="_blank"&gt;drupal issues&lt;/a&gt; . try to patch it as mentioned in the url.&lt;br/&gt;&lt;br/&gt;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 &lt;a href="http://dev.mysql.com/doc/refman/5.0/en/server-sql-mode.html" target="_blank"&gt;http://dev.mysql.com/doc/refman/5.0/en/server-sql-mode.html&lt;/a&gt; ,  Anyway now there is no errors in drupal site and I am able to login.&lt;br/&gt;&lt;br/&gt;&lt;em&gt;(includes/database/mysql/database.inc) Line: 65&lt;/em&gt;&lt;br/&gt;&lt;br/&gt;&lt;em&gt; New file&lt;/em&gt;&lt;br/&gt;&lt;em&gt; &amp;lt;      $this-&amp;gt;exec("SET sql_mode='ANSI,ONLY_FULL_GROUP_BY'");&lt;/em&gt;&lt;br/&gt;&lt;em&gt; ---&lt;/em&gt;&lt;br/&gt;&lt;em&gt; Old file&lt;/em&gt;&lt;br/&gt;&lt;em&gt; &amp;gt;      $this-&amp;gt;exec("SET sql_mode='ANSI,TRADITIONAL'");&lt;/em&gt;&lt;br/&gt;&lt;br/&gt;Also setting up the sql connection mode to &lt;em&gt;&lt;code&gt;SET SESSION sql_mode = "ANSI,TRADITIONAL";&lt;/code&gt; &lt;/em&gt;is an option instead of above change.&lt;br/&gt;&lt;br/&gt;./arun&lt;br/&gt;&lt;br/&gt;&amp;nbsp;&lt;br/&gt;&lt;br/&gt;&amp;nbsp;&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;&lt;br/&gt;&lt;/strong&gt;</content><link rel='replies' type='application/atom+xml' href='http://arunnatarajans.blogspot.com/feeds/5123706872189191292/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://arunnatarajans.blogspot.com/2011/05/drupal-7-issue-with-sql-mode-traditional_22.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8204588824799946544/posts/default/5123706872189191292?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8204588824799946544/posts/default/5123706872189191292?v=2'/><link rel='alternate' type='text/html' href='http://arunnatarajans.blogspot.com/2011/05/drupal-7-issue-with-sql-mode-traditional_22.html' title='Drupal 7 issue with SQL Mode TRADITIONAL'/><author><name>Arun Natarajan S</name><uri>https://plus.google.com/117348232416484188849</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-vqVp9yDBNcM/AAAAAAAAAAI/AAAAAAAAcb8/_RJvLAGxYwU/s512-c/photo.jpg'/></author><thr:total>1</thr:total></entry><entry gd:etag='W/&quot;CUACQH86eSp7ImA9WhNUF0s.&quot;'><id>tag:blogger.com,1999:blog-8204588824799946544.post-1814574577814560489</id><published>2011-05-15T17:21:00.001+03:00</published><updated>2013-01-09T23:36:01.111+03:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2013-01-09T23:36:01.111+03:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='RSA'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux RSA web interface'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='The user belongs to security domain “SystemDomain”'/><category scheme='http://www.blogger.com/atom/ns#' term='RSA web interface for Redhat'/><title>Install and configure RSA web agent with Redhat EL5 and Apache</title><content type='html'>&lt;a href="../wp-content/uploads/2011/05/Screen-shot-2011-05-15-at-2.25.37-PM.png"&gt;&lt;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" /&gt;&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;Login to RSA interface:&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;- Create the apache server as agent host with type web agent&lt;br/&gt;- Generate the config file (zip file containing sdconf.rec) from RSA interface, and download to your local machine&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;Login to the web server&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;- Download the RSA web agent installation files from RSA website.&lt;br/&gt;&lt;br/&gt;&lt;code&gt;# mkdir -p /var/ace&lt;/code&gt;&lt;br/&gt;&lt;br/&gt;- Copy and extract (sdconf.rec) the downloaded config file&lt;br/&gt;&lt;code&gt;# chmod 755 sdconf.rec&lt;/code&gt;&lt;br/&gt;&lt;br/&gt;- 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&lt;br/&gt;&lt;em&gt;"100: Access denied. The RSA ACE/Server rejected the Passcode. Please try again." , "attempted to authenticate using authenticator “SecurID_Native”. The user belongs to security domain “SystemDomain”"&lt;/em&gt;&lt;br/&gt;&lt;br/&gt;&lt;code&gt;# echo "CLIENT_IP=" &amp;gt; sdopts.rec&lt;/code&gt;&lt;br/&gt;&lt;code&gt;# chown -R webuser:webuser /var/ace&lt;/code&gt;&lt;br/&gt;&lt;br/&gt;- Now install the RSA web agent&lt;br/&gt;&lt;br/&gt;&lt;code&gt;# tar xvf WebAgent_70_Apache_RHEL5_32_379_08201024.tar&lt;br/&gt;# cd CD/&lt;br/&gt;# chmod u+x install&lt;br/&gt;# ./install&lt;/code&gt;&lt;br/&gt;&lt;br/&gt;- Enter the location of sdconf.rec&lt;br/&gt;&lt;br/&gt;- Configure the apache virtual host&lt;br/&gt;&lt;br/&gt;It was found that web agent breaks if apache starts multiple server thread, so would be better to limit the thread.&lt;br/&gt;&lt;br/&gt;&lt;code&gt;&amp;lt; IfModule prefork.c &amp;gt;&lt;br/&gt;StartServers       1&lt;br/&gt;MinSpareServers    1&lt;br/&gt;MaxSpareServers    1&lt;br/&gt;ServerLimit      256&lt;br/&gt;MaxClients       256&lt;br/&gt;MaxRequestsPerChild  4000&lt;br/&gt;&amp;lt; /IfModule &amp;gt;&lt;/code&gt;&lt;br/&gt;&lt;br/&gt;- Now start apache and you will be able to access the RSA web interface.&lt;br/&gt;&lt;br/&gt;Once authenticated, the RSA server will create a node secret for the agent host and will be copied automatically to the web server.&lt;br/&gt;&lt;br/&gt;This web interface is mainly useful for the token users to reset or enable to token assigned to him.&lt;br/&gt;&lt;br/&gt;./arun</content><link rel='replies' type='application/atom+xml' href='http://arunnatarajans.blogspot.com/feeds/1814574577814560489/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://arunnatarajans.blogspot.com/2011/05/install-and-configure-rsa-web-agent_15.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8204588824799946544/posts/default/1814574577814560489?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8204588824799946544/posts/default/1814574577814560489?v=2'/><link rel='alternate' type='text/html' href='http://arunnatarajans.blogspot.com/2011/05/install-and-configure-rsa-web-agent_15.html' title='Install and configure RSA web agent with Redhat EL5 and Apache'/><author><name>Arun Natarajan S</name><uri>https://plus.google.com/117348232416484188849</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-vqVp9yDBNcM/AAAAAAAAAAI/AAAAAAAAcb8/_RJvLAGxYwU/s512-c/photo.jpg'/></author><thr:total>2</thr:total></entry><entry gd:etag='W/&quot;CUACQH85cCp7ImA9WhNUF0s.&quot;'><id>tag:blogger.com,1999:blog-8204588824799946544.post-5507375436096601119</id><published>2011-05-04T19:11:00.001+03:00</published><updated>2013-01-09T23:36:01.128+03:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2013-01-09T23:36:01.128+03:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='RSA'/><category scheme='http://www.blogger.com/atom/ns#' term='RSA SecureID'/><category scheme='http://www.blogger.com/atom/ns#' term='RSA Appliance'/><title>Changing RSA passwords</title><content type='html'>&amp;nbsp;&lt;br/&gt;&lt;br/&gt;Reset SSH Password:&lt;br/&gt;-------------------&lt;br/&gt;Log in to Operations console (Master):&lt;br/&gt;&lt;br/&gt;&lt;code&gt;Administration --&amp;gt; Networking --&amp;gt; Configure connectivity using SSH&lt;/code&gt;&lt;br/&gt;&lt;br/&gt;Do the same procedure on Replica also (if any), it is manual process.&lt;br/&gt;&lt;br/&gt;Reset Operations console password:&lt;br/&gt;----------------------------------&lt;br/&gt;Login to the master appliance with SSH&lt;br/&gt;&lt;br/&gt;&lt;code&gt;$ sudo -s // sudo as root&lt;br/&gt;# su - rsaadmin // change user to rsaadmin&lt;br/&gt;$ cd /usr/local/RSASecurity/RSAAuthenticationManager/ //navigate to RSA installation path&lt;br/&gt;$ cd utils&lt;br/&gt;$ ./rsautil manage-oc-administrator -a update // Execute&lt;/code&gt;&lt;br/&gt;&lt;br/&gt;// Enter Super administrators name&lt;br/&gt;// Enter Super administrators password&lt;br/&gt;// Enter operation console user&lt;br/&gt;// Set the new password&lt;br/&gt;&lt;br/&gt;Do the same steps on replica&lt;br/&gt;Error: This operation can be performed only on a primary instance.&lt;br/&gt;But the password got changed&lt;br/&gt;&lt;br/&gt;Reset Master password:&lt;br/&gt;---------------------&lt;br/&gt;Login to the master appliance with SSH&lt;br/&gt;&lt;br/&gt;&lt;code&gt;$ sudo -s // sudo as root&lt;br/&gt;# su - rsaadmin // change user to rsaadmin&lt;br/&gt;$ cd /usr/local/RSASecurity/RSAAuthenticationManager/ //navigate to RSA installation path&lt;br/&gt;$ cd utils&lt;br/&gt;$ ./rsautil manage-secrets --action change --new-password &amp;lt;enter_the_new_password&amp;gt;&lt;/code&gt;&lt;br/&gt;&lt;br/&gt;Do the same procedure on the replica device.&lt;br/&gt;&lt;br/&gt;Reset Security Console Password:&lt;br/&gt;---------------------------------&lt;br/&gt;Login to Security Console&lt;br/&gt;&lt;br/&gt;&lt;code&gt;Identity--&amp;gt;Users--&amp;gt;Manage Existing // Search for your admin username in internal datase&lt;/code&gt;&lt;br/&gt;&lt;br/&gt;Change password for the admin user&lt;br/&gt;This action will be automatically replicated to replica.&lt;br/&gt;&lt;br/&gt;./arun</content><link rel='replies' type='application/atom+xml' href='http://arunnatarajans.blogspot.com/feeds/5507375436096601119/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://arunnatarajans.blogspot.com/2011/05/changing-rsa-passwords_4.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8204588824799946544/posts/default/5507375436096601119?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8204588824799946544/posts/default/5507375436096601119?v=2'/><link rel='alternate' type='text/html' href='http://arunnatarajans.blogspot.com/2011/05/changing-rsa-passwords_4.html' title='Changing RSA passwords'/><author><name>Arun Natarajan S</name><uri>https://plus.google.com/117348232416484188849</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-vqVp9yDBNcM/AAAAAAAAAAI/AAAAAAAAcb8/_RJvLAGxYwU/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;CUACQH8_eip7ImA9WhNUF0s.&quot;'><id>tag:blogger.com,1999:blog-8204588824799946544.post-8527298096433799543</id><published>2011-03-01T14:01:00.001+03:00</published><updated>2013-01-09T23:36:01.142+03:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2013-01-09T23:36:01.142+03:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='ipv6 proxy'/><category scheme='http://www.blogger.com/atom/ns#' term='ipv6 squid'/><category scheme='http://www.blogger.com/atom/ns#' term='IPv6'/><category scheme='http://www.blogger.com/atom/ns#' term='configure squid with ipv6'/><category scheme='http://www.blogger.com/atom/ns#' term='Squid'/><title>Configure IPv6 squid</title><content type='html'>Squid 3.1+ support IPv6&lt;br/&gt;&lt;br/&gt;- Compile and install 3.1.x version of squid.&lt;br/&gt;&lt;blockquote&gt;# useradd -d /opt/squid squid&lt;br/&gt;&lt;br/&gt;# wget http://www.squid-cache.org/Versions/v3/3.1/squid-3.1.11-20110228.tar.gz&lt;br/&gt;&lt;br/&gt;# tar xvzf squid-3.1.11-20110228.tar.gz&lt;br/&gt;&lt;br/&gt;# cd squid-3.1.11-20110228; ./configure --prefix=/opt/squid/&lt;br/&gt;&lt;br/&gt;# make; make install&lt;br/&gt;&lt;br/&gt;# /opt/squid/sbin/squid -z&lt;/blockquote&gt;&lt;br/&gt;Configure squid&lt;br/&gt;&lt;br/&gt;edit /opt/squid/etc/squid.conf&lt;br/&gt;&lt;blockquote&gt;cache_effective_user squid&lt;br/&gt;&lt;br/&gt;acl manager proto cache_object&lt;br/&gt;acl localhost src 127.0.0.1/32 ::1&lt;br/&gt;acl to_localhost dst 127.0.0.0/8 0.0.0.0/32 ::1&lt;br/&gt;&lt;br/&gt;acl to_ipv6 dst ipv6&lt;br/&gt;http_access allow to_ipv6 !all&lt;br/&gt;tcp_outgoing_address 2001:: to_ipv6&lt;br/&gt;tcp_outgoing_address 12.34.56.78 !to_ipv6&lt;/blockquote&gt;&lt;br/&gt;And add necessary acls to allow access for your network to squid.&lt;br/&gt;&lt;br/&gt;Testing:&lt;br/&gt;&lt;blockquote&gt;$ telnet &amp;lt;v6_address&amp;gt; 3128&lt;br/&gt;Trying 2001::...&lt;br/&gt;Connected to 2001::..&lt;br/&gt;Escape character is '^]'.&lt;br/&gt;get http://ipv6.google.com/&lt;br/&gt;HTTP/1.0 200 OK&lt;/blockquote&gt;&lt;br/&gt;Check the access.log to make sure&lt;br/&gt;&lt;blockquote&gt;1298965141.719    477 2001:: TCP_MISS/200 25918 GET http://ipv6.google.com/ - DIRECT/2a00:1450:8002::6a text/html&lt;/blockquote&gt;</content><link rel='replies' type='application/atom+xml' href='http://arunnatarajans.blogspot.com/feeds/8527298096433799543/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://arunnatarajans.blogspot.com/2011/03/configure-ipv6-squid_1.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8204588824799946544/posts/default/8527298096433799543?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8204588824799946544/posts/default/8527298096433799543?v=2'/><link rel='alternate' type='text/html' href='http://arunnatarajans.blogspot.com/2011/03/configure-ipv6-squid_1.html' title='Configure IPv6 squid'/><author><name>Arun Natarajan S</name><uri>https://plus.google.com/117348232416484188849</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-vqVp9yDBNcM/AAAAAAAAAAI/AAAAAAAAcb8/_RJvLAGxYwU/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;CUACQH8_eyp7ImA9WhNUF0s.&quot;'><id>tag:blogger.com,1999:blog-8204588824799946544.post-8682614605448433343</id><published>2011-02-22T22:26:00.001+03:00</published><updated>2013-01-09T23:36:01.143+03:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2013-01-09T23:36:01.143+03:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='KVM'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='Virtualization'/><category scheme='http://www.blogger.com/atom/ns#' term='KVM Disk I/O slow'/><category scheme='http://www.blogger.com/atom/ns#' term='Redhat performance issue'/><title>Performance issues with KVM - Redhat</title><content type='html'>The general performance issue with KVM is due to DISK I/O&lt;br/&gt;&lt;br/&gt;- by default the Redhat KVM guest are created with x86_64 architecuture, if you installed 32 bit operating system change this to i686.&lt;br/&gt;&lt;blockquote&gt;&amp;lt;os&amp;gt;&lt;br/&gt;&amp;lt;type arch='i686' machine='rhel5.6.0'&amp;gt;hvm&amp;lt;/type&amp;gt;&lt;br/&gt;&amp;lt;boot dev='hd'/&amp;gt;&lt;/blockquote&gt;&lt;br/&gt;- Make sure the hypervisor used is correct in the configuration , either qemu or kvm&lt;br/&gt;&lt;blockquote&gt;&amp;lt;domain type='kvm'&amp;gt;&lt;br/&gt;&lt;br/&gt;or&lt;br/&gt;&lt;br/&gt;&amp;lt;domain type='kvm'&amp;gt;&lt;/blockquote&gt;&lt;br/&gt;- Use virtio drivers if the guest is paravirtulized (&lt;a href="http://www.ibm.com/developerworks/linux/library/l-virtio/index.html?ca=dgr-lnxw97Viriodth-LX&amp;amp;S_TACT=105AGX59&amp;amp;S_CMP=grlnxw97" target="_blank"&gt;http://www.ibm.com/developerworks/linux/library/l-virtio/index.html?ca=dgr-lnxw97Viriodth-LX&amp;amp;S_TACT=105AGX59&amp;amp;S_CMP=grlnxw97 &lt;/a&gt; , &lt;a href="http://publib.boulder.ibm.com/infocenter/lnxinfo/v3r0m0/index.jsp?topic=/liaat/liaatbpparavirt.htm" target="_blank"&gt; http://publib.boulder.ibm.com/infocenter/lnxinfo/v3r0m0/index.jsp?topic=/liaat/liaatbpparavirt.htm&lt;/a&gt;)&lt;br/&gt;&lt;br/&gt;./arun</content><link rel='replies' type='application/atom+xml' href='http://arunnatarajans.blogspot.com/feeds/8682614605448433343/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://arunnatarajans.blogspot.com/2011/02/performance-issues-with-kvm-redhat_22.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8204588824799946544/posts/default/8682614605448433343?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8204588824799946544/posts/default/8682614605448433343?v=2'/><link rel='alternate' type='text/html' href='http://arunnatarajans.blogspot.com/2011/02/performance-issues-with-kvm-redhat_22.html' title='Performance issues with KVM - Redhat'/><author><name>Arun Natarajan S</name><uri>https://plus.google.com/117348232416484188849</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-vqVp9yDBNcM/AAAAAAAAAAI/AAAAAAAAcb8/_RJvLAGxYwU/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;CUACQH84cSp7ImA9WhNUF0s.&quot;'><id>tag:blogger.com,1999:blog-8204588824799946544.post-8097575783654905801</id><published>2011-02-07T17:45:00.001+03:00</published><updated>2013-01-09T23:36:01.139+03:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2013-01-09T23:36:01.139+03:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><title>yum update, IndexError: tuple index out of range</title><content type='html'>If you happen to get this error while updating server with yum update&lt;br/&gt;--&lt;br/&gt;.&lt;br/&gt;.&lt;br/&gt;.&lt;br/&gt;  File "/usr/lib/python2.4/site-packages/M2Crypto/m2urllib2.py", line 82, in https_open&lt;br/&gt;    h.request(req.get_method(), req.get_selector(), req.data, headers)&lt;br/&gt;  File "/usr/lib/python2.4/httplib.py", line 813, in request&lt;br/&gt;    if v[0] != 32 or not self.auto_open:&lt;br/&gt;IndexError: tuple index out of range&lt;br/&gt;--&lt;br/&gt;disable the location aware access from rhn.&lt;br/&gt;&lt;br/&gt;Ref:&lt;br/&gt;http://kbase.redhat.com/faq/docs/DOC-16881&lt;br/&gt;&lt;br/&gt;./arun</content><link rel='replies' type='application/atom+xml' href='http://arunnatarajans.blogspot.com/feeds/8097575783654905801/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://arunnatarajans.blogspot.com/2011/02/yum-update-indexerror-tuple-index-out_7.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8204588824799946544/posts/default/8097575783654905801?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8204588824799946544/posts/default/8097575783654905801?v=2'/><link rel='alternate' type='text/html' href='http://arunnatarajans.blogspot.com/2011/02/yum-update-indexerror-tuple-index-out_7.html' title='yum update, IndexError: tuple index out of range'/><author><name>Arun Natarajan S</name><uri>https://plus.google.com/117348232416484188849</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-vqVp9yDBNcM/AAAAAAAAAAI/AAAAAAAAcb8/_RJvLAGxYwU/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry></feed>