2013年8月16日 星期五

Serail Port Redirection and VNC setting on Linux

Serail Port Redirection and VNC setting on Linux

How to setup serial port redirection on Linux?

    The purpose of this session is to teach you setting up serial port redirection on RHEL 6 and SLES 11. After setup, you can login linux system in text mode through serial port.

BIOS setup

    Enter BIOS setup menu and open console redirect. This setting can redirect POST screen to serial port.

RHEL 6

Please refer below link to setup after RHEL 6 is installed.
Note. Pysical serial port is COM1 (ttyS0) and serial port of SOL is COM2 (ttyS1)

SLES 11

Please refer below link to setup after SLES 11 is installed


How to establish SOL session?

Using opensource ipmitool to activate SOL session
>ipmitool -I lanplus -H [bmc_ip] -U [bmc_username] -P [bmc_pasword] -C 3 sol activate


press ~. to deactivate session


How to enable remote desktop on Linux?

    The purpose of this session is to each you setting up remote desktop on Linux system, after setup, you can connect to this Linux system by using a vnc client.

RHEL 6

1. Install tigervnc-server
# yum install tigervnc-server


2. edit /etc/sysconfig/vncserver
VNCSERVERS=”2:root”
VNCSERVERARGS[2]=”-geometry 1024x768”


3. Open port 5902 on firewall


4. create /root/.vnc/passwd
# vncpasswd


5. Restart the System


6. Use remote vnc client to open remote desktop


SLES 11

Please refer to below link to setup