Jan 25, 2011

Mount NTFS Partition in RHEL

Mount NTFS Partition in RHEL

Release:
RedHat Enterprise Linux 5

Problem:
Need to mount the Windows NTFS partition in RHEL 5

Solution:

1)      Install the “kernel-module-ntfs” package. Download this package from the below link.


Note: Download both rpm and ko file.

2)      Load the ntfs module to the kernel, and confirm with lsmod command

# rpm –ivh kernel-module-ntfs-xxxxx.rpm
# insmod kernel-module-ntfs-xxxxx.ko
# lsmod | grep ntfs

3)      Download the “ntfs-3g” and “fuse” packages from the below links.


4)      Install the ntfs-3g package by using the below commands

# tar –zxvf ntfs-3g-xxxx.tgz
# cd ntfs-3g-xxxx
# ./configure
# make
# make install

5)      Install the fuse package by using the below commands

# tar –zxvf fuse-xxx.tar.gz
# cd fuse-xxx
# ./configure
# make
# make install
# modprobe fuse
6)      Now mount the ntfs partition using the below command

# mount –t ntfs-3g /dev/sdb1 /mnt

Note: Here /dev/sdb1 is a windows NTFS partition. Also here usage of fuse version is depend upon the kernel version.


Jan 13, 2011

Configure VNC on XINETD with XDMCP

Configure VNC on XINETD with XDMCP


Release:
RedHat Enterprise Linux 5

Problem:
Need to configure VNC based on xinetd with XDMCP for GDM access

Solution:

1)      1) Install the required packages

# yum install vnc-server xinetd

2)      2) Enable the XDMCP by editing the custom.conf file

# vi /etc/gdm/custom.conf

[xdmcp]
Enable=true
MaxSessions=30

[security]
AllowRemoteRoot=true
DisallowTCP=false

Note: Here “AllowRemoteRoot=true” used to allow root access.

3)      3) Create a file with below content, in inside the /etc/xinetd.d directory

# vi /etc/xinetd.d/xvncserver

service vnc
{
disable = no
protocol = tcp
socket_type = stream
wait = no
user = nobody
server = /usr/bin/Xvnc
server_args = -inetd –query localhost –once –geometry 1024x768 –depth 16 securitytypes=none
}

4)      4) Define the vnc01 service by edit the /etc/services file

# vi /etc/services

vnc   5950/tcp

5)      5) Restart the xinetd and gdm services

# service xinetd restart
# gdm-restart

6)      6) Test using the vncviwer command

# vncviewer localhost:5950

7) To connect from the remote system use the below one

# vncviewer IPADDRESS:5950

Jan 5, 2011

Enable XDMCP in Linux


Enable XDMCP in Linux

Release:
RedHat Enterprise Linux 5
SUSE Linux 10

Problem:
Need to enable the xdmcp protocol in the Linux server for getting remote using XBrowser.

Solution:

In RHEL Server:

1)      Install the gdm package
# yum install gdm

2)      Enable the xdmcp protocol by adding the below entries in the custom.conf file.
# vi /etc/gdm/custom.conf
[security]
AllowRemoteRoot=true
DisallowTCP=false

[xdmcp]
Enable=true

Note: Here “AllowRemoteRoot=true” used to allow root access.

3)      Restart the gdm service
# gdm-restart

4)      Check weather xdmcp port is opened or not, using netstat command
# netstat –an | grep 177
udp        0      0 0.0.0.0:177         0.0.0.0:*  

In SUSE Server:

5)      Install the required 2 packages
# yum install gdm xorg-x11

6)      Set the default display manager by editing the displaymanager file
# vi /etc/sysconfig/displaymanager
DISPLAYMANAGER="gdm"
DISPLAYMANAGER_REMOTE_ACCESS="yes"

7)      Enable the xdmcp protocol by editing the gdm.conf file

# vi /etc/opt/gnome/gdm/gdm.conf
[security]
AllowRoot=true
AllowRemoteRoot=true

[xdmcp]
Enable=true

8)      To make xdmcp listening on xdm by edit the xdm-config file
# vi /etc/X11/xdm/xdm-config
!DisplayManager.requestPort:    0

Note: Comment out this line for xdmcp listen on xdm

9)      Restart the service and check with netstat
# rcxdm restart
# netstat –an | grep 177
udp        0      0 0.0.0.0:177             0.0.0.0:*

10)   Verify from the Windows client using Xbrowser as root.