Category: OS
-
Install and configure rsnapshot for central backup (without root privilege)
Download and install RsnapShot Download the latest package from: http://rsnapshot.org/downloads.html # wget http://rsnapshot.org/downloads/rsnapshot-1.3.1-1.noarch.rpm # rpm -Uvh rsnapshot-1.3.1-1.noarch.rpm Configure public key authentication – Enable public key authentication with remote hosts with normal user privilege local# ssh-keygen -t rsa local# scp id_rsa.pub ssh-remote-server:id_rsa.pub remote# useradd -c “Backup user” -d /data/home/backup/ backup remote# su – backup remote# vi…
-
Upgrading php to 5.2 or 5.3 in Redhat EL 5
Unfortunately RHEL 5 does not have php.5.2 package, which is required by most of the applications including latest wordpress and drupal. First thought of compiling php from source, but hard to keep it uptodate. So decided to make the life easier with EPEL/IUS repositories. Remove all existing php related packages: # rpm -e php php-mysql…
-
svn over ssh tunnel
It is very often required that you need to commit/update to the svn repository which is only indirectly accessible through a gateway (user can ssh to gateway and gateway can ssh to internal svn server) Suppose you have a working copy (locally on your machine) setup…
-
Install directadmin on Debian 6
Install the basic debian server without any server components Install the dependency packages: # sudo apt-get install gcc g++ make flex bison openssl libssl-dev perl perl-base perl-modules libperl-dev libaio1 libaio-dev bind9 Purchase and register the server ip at directadmin.com Once the license is activated, login to the server: $ wget http://www.directadmin.com/setup.sh $ chmod 755 setup.sh…
-
Racktable, Apache+LDAP authentication
Login to the Rack tables as admin: Add the following line under configuration–> permission allow {$tab_default} * This is for read only account, assign extra permissions if required Configure Apache + LDAP < Directory /var/www/racktables > Options +Indexes FollowSymLinks MultiViews DirectoryIndex index.php AuthName “Rack Tables” AuthType Basic AuthBasicProvider ldap AuthzLDAPAuthoritative on AuthLDAPURL “ldaps://ldaphost.com/dc=company,dc=com?uid?sub?(objectClass=< depends_on_ldap >)”…
-
Rsnapshot Lchown
# rsnapshot du localhost require Lchown Lchown module not found Install the Lchown module: # wget http://www.rsnapshot.org/downloads/extras/Lchown-1.00.tar.gz # tar xvzf Lchown-1.00.tar.gz # cd Lchown-1.00 # perl Makefile.PL Checking if your kit is complete… Looks good # make install # rsnapshot du localhost require Lchown Lchown module loaded successfully You can also try installing the module…
-
My Favourite MAC OS X applications
Text Editor vi Text Edit Smultron: http://www.peterborgapps.com/smultron/ Komodo Edit: http://www.activestate.com/komodo-edit Voice/Video Calls Skype : http://skype.com Google talk (browser plugin): : http://www.google.com/chat/video G+ hangout Web Browser Firefox: http://www.mozilla.com/en-US/firefox/fx/ Chrome: http://www.google.com/chrome Twitter Client A Plus: http://www.aplus-app.com/ IM Adium: http://adium.im/ Office Documents Libre office: http://www.libreoffice.org/ Video Player VLC: http://www.videolan.org/vlc/ Miro: http://www.getmiro.com/ ( an excellent stream and bit torrent…
-
Install Cpanel on FreeBSD 8.2
– Install FreeBSD with proper network and file system configuration (Ref: http://docs.cpanel.net/twiki/bin/view/AllDocumentation/InstallationGuide/Quick-StartInstallationGuide) – Install dependency packages: # pkg_add -r wget # pkg_add -r perl # pkg_add -r rsync (required later for ports sync) # pkg_add -r gmake To Fix: creating glibconfig.h config.status: executing default commands gmake: not found child exited with value 127 Died at…
-
Drupal 7 issue with SQL Mode TRADITIONAL
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). This was the case when I installed Drupal 7 with Cpanel/Fantastico, the drupal site was displaying the above error. This issue is discussed at drupal issues . try to patch it…
-
Install and configure RSA web agent with Redhat EL5 and Apache
Login to RSA interface: – Create the apache server as agent host with type web agent – Generate the config file (zip file containing sdconf.rec) from RSA interface, and download to your local machine Login to the web server – Download the RSA web agent installation files from RSA website. # mkdir -p /var/ace –…
-
Performance issues with KVM – Redhat
The general performance issue with KVM is due to DISK I/O – by default the Redhat KVM guest are created with x86_64 architecuture, if you installed 32 bit operating system change this to i686. <os> <type arch=’i686′ machine=’rhel5.6.0′>hvm</type> <boot dev=’hd’/> – Make sure the hypervisor used is correct in the configuration , either qemu or…
-
yum update, IndexError: tuple index out of range
If you happen to get this error while updating server with yum update — . . . File “/usr/lib/python2.4/site-packages/M2Crypto/m2urllib2.py”, line 82, in https_open h.request(req.get_method(), req.get_selector(), req.data, headers) File “/usr/lib/python2.4/httplib.py”, line 813, in request if v[0] != 32 or not self.auto_open: IndexError: tuple index out of range — disable the location aware access from rhn. Ref:…
-
Public key authentication with bluecoat proxy
– Create a key with length maximum 1024 on your machine $ ssh-keygen -t rsa -b 1024 -f filename – ssh to the bluecoat proxy > en # configure terminal #(config) ssh-console #(config ssh-console) inline client-key admin … < paste the key after those three dots > … ./arun
-
Converting LVM virtual machine storage to image
To convert the LVM disk to qcow2 formatted disk image, Use lvdisplay to get the Logical volume name $ sudo lvdisplay Use qemu-img to convert to the required image format # qemu-img convert -O qcow2 /dev/mapper/lv_name <destination_file>.qcow2 eg: # qemu-img convert -O qcow2 /dev/mapper/disk1 disk1.qcow2 This will be useful to replicate the virtual machines to other…
-
Install CyanogenMod 6 (Android 2.2 Froyo alternative) on HTC Dream (ADP1)
Atlast managed to get the 2.2 flavour on ADP1. (this installation is only applicable for root’d Android developer phone HTC dream) Requirements: Tools: fastboot images: Amon_Ra 1.7.0 ( http://files.androidspin.com/downloads.php?dir=amon_ra/RECOVERY/&file=recovery-RA-dream-v1.7.0.img ) radio image for adp1 (http://sapphire-port-dream.googlecode.com/files/ota-radio-2_22_19_26I.zip) update-cm-6.0.0-DS-signed.zip (http://forum.cyanogenmod.com/files/file/95-update-cm-600-ds-signedzip/) gapps-mdpi-tiny-20100926-signed.zip (http://forum.cyanogenmod.com/files/file/124-google-addon-mdpi-tiny-20101020/) DangerSPL (http://sapphire-port-dream.googlecode.com/files/spl-signed.zip) Procedure: Ref : http://wiki.cyanogenmod.com/index.php?title=Full_Update_Guide_-_Android_Dev_Phone_1#Installing_a_Custom_Recovery_Image – Download and copy all these images to the root…