'gnu/linux' Category

  • SSH timeout

    May 4, 2010

    If you have a problem of frequent disconnection from your SSH server, you can enable the following setting in your sshd_config file and restart SSHD.

    ClientAliveInterval 60

    The exact description of what this does is

    ClientAliveInterval
    Sets a timeout interval in seconds after which if no data has
    been received from the client, sshd will send a message through
    the encrypted [...]

  • Screen command

    January 19, 2010

    I hadn’t used screen much in the past but I see that it is a very handy tool. I just would like to add some tips about screen command.

    Ctrl-a c : creates a new screen shell
    Ctrl-a TAB: switches focues between upper and lower split terminal
    Ctrl-a “ : Display a list of managed windows. (This is [...]

  • sysconfig.txt

    January 9, 2010

    You can find quite a lot of files in /etc/sysconfig however in configuring them you may have trouble but there is a file that you can use to understand what attributes you can use for each file. It is sysconfig.txt. In my current Redhat 5.4 system the file is at the following location as it [...]

  • Installing RPM file into a different root

    January 9, 2010

    One day you may have to install an RPM file into a different root folder. For example under rescue mode though you can chroot as an option. Here is the handy option for you to do it.

    #rpm -ivh zip-2.31-2.el5.i386.rpm –root /mnt/sysimage

  • MBR recovery and grub reinstall

    January 9, 2010

    In the event that partition table is corrupted or boot loader has gone, here are some steps that you can take in order to boot the system as normal.
    I hope that you have taken the backup of partition table previously with the command;

    #sfdisk -d /dev/sda > /root/sda_partition_table.out

    Or if you also want to backup the whole [...]

  • NIS & Autofs configuration

    January 3, 2010

    This article is about to configure NIS server and NIS client in a redhat base distribution.  I know that NIS isn’t the preferred method of authentication anymore but I wanted to add this short NIS document along with autofs usage so that when any user logs in, their homedirectories at the remote NFS server will [...]

  • Software Raid

    January 3, 2010

    Software raid configuration is quite easy and within a few minutes you can start building your array. Depending on the size of the array, build time may vary. Here is a quick instruction about how you can use mdadm utility to create a raid 1 array.
    We have two partitions of the size 512MB in two [...]

  • Public key authentication in SSH

    December 29, 2009

    I am sure most system administrators don’t want to waste their time by entering the same passwords everyday for every server. Here SSH utilities comes with lovely flavoured tools. In this article, I will try to explain how we can login to remote systems without using password at all or once in a day.
    In this [...]

 
Powered by Wordpress and MySQL. Theme by Shlomi Noach, openark.org