A Technical Blog

  • Configure apache solr with tomcat

    Install tomcat $ sudo yum install tomcat6 Download and extract apache solr : http://lucene.apache.org/solr/ $ cp apache-solr-3.6.2.war /var/lib/tomcat6/webapps/solr.war $ cp -r /data/apache-solr-3.6.2/example/solr /var/lib/tomcat6/ $ cat /etc/tomcat6/Catalina/localhost/solr.xml $ chown -R tomcat: /var/lib/tomcat6/solr/ $ sudo service tomcat6 restart Access url : http://<server_name/ip>:8080/solr/admin

  • Virus scanning for file uploads with clamav/php

    Download and install the following packages, in case your repository has those package just use the management tool to install. Ubuntu/Debian/Mint # apt-get install clamav clamav-db clamd clamav-devel php-devel Redhat # yum install php-devel # wget http://pkgs.repoforge.org/clamav/clamav-0.97.7-1.el5.rf.i386.rpm # wget http://pkgs.repoforge.org/clamav/clamav-db-0.97.7-1.el5.rf.i386.rpm # wget http://pkgs.repoforge.org/clamav/clamd-0.97.7-1.el5.rf.i386.rpm # wget http://pkgs.repoforge.org/clamav/clamav-devel-0.97.7-1.el5.rf.i386.rpm # rpm -Uvh clam* # freshclam # service clamd…

  • Create CSR and implement in apache

    These steps are used to generate a CSR to get the SSL certificate signed with verisign. The filenames used are just examples. $ /usr/bin/openssl genrsa -rand /dev/urandom -out <web_root>/domain_name.key 2048 $ /usr/bin/openssl req -new -key <web_root>/domain_name.key -out <web_root>/domain_name.csr Country Name (2 letter code) [GB]: State or Province Name (full name) [Berkshire]: Locality Name (eg, city)…

  • Install rich text editor in mediawiki

    The WYSIWYG extension enables a more intuitive editing of pages on a MediaWiki-based site Download the package suitable for your mediawiki version http://www.mediawiki.org/wiki/Extension:WYSIWYG#Download $ unzip WYSIWYG.zip $ cp -prf WYSIWYG $media_wiki/extensions/ $ vi LocalSettings.php added require_once(“$IP/extensions/WYSIWYG/WYSIWYG.php”); $wgGroupPermissions[‘*’][‘wysiwyg’]=true; $wgGroupPermissions[‘registered_users’][‘wysiwyg’]=true; define permissions as per your requirements.

  • Install multiple python in Linux

    $ wget http://www.python.org/ftp/python/2.7.3/Python-2.7.3.tgz $ tar xvzf Python-2.7.3.tgz $ cd Python-2.7.3 $ ./configure $ make $ sudo make altinstall // do not use make install it might break the // system python dependent packages, otherwise use a different prefix // during compile.

  • Upgrade php to 5.3 – directadmin

    # cd /usr/local/directadmin/custombuild # ./build set php5_ver 5.3 # ./build update # ./build php n # /etc/init.d/httpd restart This may break your softaculous, if it cannot load the correct ioncube. Site error: the file /usr/local/directadmin/plugins/softaculous/images/inc.php requires the ionCube PHP Loader ioncube_loader_lin_5.3.so to be installed by the site administrator. Edit your php.ini to fix it #…

  • Install Raspbmc media center on RaspberryPi

    Eventhoug I am happy with xbian , was just trying Raspbmc as well 🙂 Raspbmc  media center for the Raspberry Pi and is based on Raspbian and XBMC. All credits go to Sam Nazarko, Thanks for excellent work. Reference: http://www.raspbmc.com/, You may use XPi Installer instead of the following method, http://www.xbmchub.com/blog/2012/11/02/installing-xbian-to-raspberry-pi-from-mac/ Install raspbmc on SDcard…

  • Create NAS/SAN storage with openfiler, work with VMware ESXi as shared storage

    – Download the openfiler installation ISO , download link I have downloaded the Installation ISO image (x86/64). Basically we need to create open filer as a virtual machine with say 20 GB thin provisioning, and attach another disk/datastore to the virtual machine to configure it as SAN. – Download and install  the Installation ISO image…

  • Configure static IP on Raspberry Pi

    Some access points does not deliver DHCP to the raspberrypi. You could assign the IP statically as follows: Edit the /etc/network/interfaces file Comment out the following lines. > #allow-hotplug wlan0 > #wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf > #iface eth0 inet manual Add following configs. auto lo iface eth0 inet dhcp auto wlan0 iface wlan0 inet static address x.x.x.x…

  • Convert multiple JPEG to single PDF MAC OS

    It is rather easy to convert Multiple images files as single PDF. – Select all the files, and open with preview – Print, and select “save as pdf” – this will create a single PDF file with all jpeg in. ./arun

  • Root and install google play in Amazon Kindle Fire HD 10 (8.1.4)

    This is a working procedure to root and install google play Amazon Kindle HD 10″ (8.1.4). Root Kindle Fire HD, I followed the procedure described in here http://forum.xda-developers.com/showthread.php?t=1886460 Download Root_with_Restore_by_Bin4ry_v18 from http://uploaded.net/file/0fpyh5c5 Extract the 7zip file and execute RunMe.sh (if you using MAC/Linux) $ ./RunMe.sh Select the option 1) Normal Now your device is root’d, you…

  • Upgrade, Restore Drupal 7

    Shell script to upgrade and restore Drupal 7 website This script will take care of the necessary actions required for upgrading drupal to higher versions. USAGE Copy the script to your webserver. Edit the script and change the variables to match with your setup Give execute privilege to the owner of the script (chmod u+x…

  • Upgrading Linux Mint 13 (maya) to Linux Mint 14 (nadia).

    Take a backup of the current sources.list, preferably make a full backup of the system. Edit the sources.list file, replace the occurrences of maya with nadia and precise with quantal. $ vi /etc/sources.list :%s/maya/nadia/g :%s/precise/quantal/g Resulting file may look like. deb http://packages.linuxmint.com/ nadia main upstream import deb http://archive.ubuntu.com/ubuntu/ quantal main restricted universe multiverse deb http://archive.ubuntu.com/ubuntu/…

  • SAN and Tape backup with bacula

    Install and configure bacula for SAN and Tape backup 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…

  • Host group based access restriction – Nagios

    This is useful especially when you have different host groups belongs to different entities and you need to have access separation. 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. You may create new contact group…

Got any book recommendations?