Ajitabh Pandey's Soul & Syntax

Exploring systems, souls, and stories – one post at a time

Category: Tips/Code Snippets

  • Enable Apache mod_rewrite module on OpenSuSE

    OpenSuSE has mod_rewrite installed, but it is not loaded by default. Check if mod_rewrite is actually loaded by default or not:

    # grep "^APACHE_MODULES" /etc/sysconfig/apache2
    APACHE_MODULES="actions alias auth_basic authn_file authz_host authz_groupfile authz_default authz_user autoindex cgi dir env expires include log_config mime negotiation setenvif ssl userdir php5"

    (more…)

  • Locale Problems in Debian and Ubuntu

    Recently I have been facing some issues with locales in Debian and Ubuntu based Xen based virtual servers. These typically appear while running the man command and apt-get or dpkg commands.
    (more…)

  • OpenSolaris – Desktop Experience – Part 1

    Installation

    Few days back I installed OpenSolaris 2008.11 on my aging IBM R50e Thinkpad. My previous experience with OpenSolaris Solaris Express builds were not that great from desktop point of view. Primary problem being no support for the Intel Pro Wireless adapter IPW2200B/G and the multimedia support. This time LFY distributed a live CD of OpenSolaris 2008.11, so I thought of trying my hands on it. Immediately after booting I was impressed with the desktop which came up and reminded me of my first Ubuntu experience. A quick glance at the top-right panel and I saw two network interfaces iwi0 and iprb0. Hmmm, so it picked up both my network interfaces. Its a pity that unlike last time, I do not have a wireless network to connect to, but I was able to see the list of all networks which could be found. The overall interface looked good and quite similar to Ubuntu, so it was familiar to me.
    (more…)

  • Syncing NIS Slaves

    Sometimes when an NIS slave is out of action for quite sometime, it may go out of sync with the master. Following code will sync up the NIS slave with the master.

    ypwhich -m|awk '{print $1}'|while read line
    do
    /usr/lib/netsvc/yp/ypxfr $line
    done