Linux

RHEL VNC Server Configuration

RHEL 6.1 TigerVNC Server Configuration

Current version included in RHEL 6.1:
tigervnc-1.0.90.0.15.20110314svn4359.e16.x86_64
Version 1.01 from tigerVNC.org, as I write this notes.

To update or Install tiger vnc server:
# yum install tigervnc*

Edit vncservers file:
# vi /etc/sysconfig/vncservers

Uncomment the two lines below and edit it with your own username:
VNCSERVERS=”2:myusername”
VNCSERVERARGS[2]=”-geometry 800×600 -nolisten tcp -nohttpd -localhost”

Example:
VNCSERVERS=”2:root”
VNCSERVERARGS[2]=”-geometry 1024×768″

Configuring Desktop Environment if needed:
/home/root/.vnc/xstartup

Set the password for vncserver user:
# vncpasswd
Password: myvncpassword
Verify: myvncpassword

Start the VNCServer:
# service vncserver start

Configure firewall for vnc users, to disable it:
# /etc/init.d/iptables save
# /etc/init.d/iptables stop

The default port number is 5900+1 for each user.
The second user will be 5902 (VNCSERVERS=”2:root”).

2 comments  Posted by Ferdy - August 4, 2011

Categories: Linux, RHEL   Tags:

RHEL 6.1 Network Configurations

RedHat Enterprise Linux 6.1 Network Configurations

The names of the network interfaces have changed for some systems.
The first interface in RHEL 6.0 is eth0 and in RHEL 6.1, its em1.
so, eth0 = em1, eth1 = em2, and so on for Gagabit interface.
For Intel x520 10 Gb its:
p3p1, p3p2, p4p1, p4p2 and so on.

To configure the interface, edit its config file:
ifcfg-em1 for the first interface and
ifcfg-p3p1 for the first Intel x520 interface.

The Network devices configuration is located at:
/etc/sysconfig/network-scripts/

For Example configuring ifcfg-em1:
vi /etc/sysconfig/network-scripts/
DEVICE=”em1″
HWADDR=”xx:xx:xx:xx:xx:xx”
NM_CONTROOLED=”yes”
BOOTPROTO=”none”
ONBOOT=”yes”
IPADDR=”10.0.1.27″
NETMASK=”255.255.255.0″
IPADDR=”10.0.1.27″
USERCTL=”no”
GATEWAY=
#############################

For DHCP:

HWADDR=”xx:xx:xx:xx:xx:xx”
NM_CONTROOLED=”yes”
BOOTPROTO=”dhcp”
ONBOOT=yes

#############################

Parameters:
ONBOOT=
yes – This device should be activated at boot-time.
no – This device should not be activated at boot-time.

BOOTPROTO=
none – No boot-time protocol should be used.
bootp – The BOOTP protocol should be used.
dhcp – The DHCP protocol should be used.

Be the first to comment  Posted by Ferdy - June 16, 2011

Categories: Linux   Tags:

How to map a Network Drive in Linux

Mapping a Windows Network Drive to a Linux system

1. Create a directory:
# mkdir /mnt/sharename

2. Mount the network drive to that directory:
# mount -t cifs -o username=username //servername/sharename /mnt/sharename
It will prompt you for the share password.
Or you can include the password in the option:
# mount -t cifs -o username=username, password=password //servername/sharename /mnt/sharename




Be the first to comment  Posted by Ferdy - June 2, 2011

Categories: Linux   Tags:

Next Page »