• vncserver configuration in redhat

    January 19, 2010

    VNC server configuration is pretty straight forward in redhat. Here are the steps that you should complete in order to run a functional VNC server in a few minutes.
    Our test user is : mert
    1) Adjust /etc/sysconfig/vncservers config file as below:

    VNCSERVERS=”2:mert”

    2) Login to mert account and set vncpassword

    [root@rh54-3 sysconfig]# su – mert
    [mert@rh54-3 ~]$ vncpasswd
    Password:
    Verify:
    [mert@rh54-3 ~]$

    3) Start [...]

  • 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 [...]

  • Interface bonding

    January 19, 2010

    As network cards or links may fail, we may solve this problem by creating multiple links to our network devices. One way is interface bonding which we will configure one in our example.  I assume that your linux have three interfaces eth0,eth1 and eth2. We will use two of the interfaces;
    Slave Interfaces : eth1 and [...]

  • 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 [...]

  • How to use LVM in rescue mode

    January 9, 2010

    One day it may happen to you that either MBR is corrupted or partition table has gone then you will need rescue mode. However there is one problem,  what if you use LVM in your system. Because redhat does everything for us we don’t actually know what it does for initialization unless you have looked [...]

  • SELinux tools

    January 8, 2010

    As SELinux is a bit of complicated compared to the tools that we use currently, I have thought it is good to have some tips here.
    1) seinfo: This is the selinux query tool to see statistics about your policy.

    [root@rh54-3 ~]# seinfo
    Statistics for policy file: /etc/selinux/targeted/policy/policy.21
    Policy Version & Type: v.21 (binary, MLS)
    Classes:            61    Permissions:       220
    Types:            [...]

  • Disabling local access for normal users

    January 8, 2010

    If you want to disable only local login for normal users you can use the file /etc/security/access.conf for this purpose however it doesn’t work by default even if you configure this file properly. For example, if you want to allow root logins locally but not any other user, edit access.conf file such that;

    -:ALL EXCEPT root:ALL

    Literally [...]

  • Disabling su for normal users

    January 8, 2010

    When I install Gentoo, as far as I remember, by default normal users aren’t allowed to use “su” . If you want to let any user to use “su” then you have to add them into the “wheel” user group. In redhat, you can uncomment one line, and it works like a charm.
    Edit the file [...]

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