Linux   « ユーザープロファイルの変更 | HOME | Win Server 2008 - ログインパスワード »

 ■ VNC Server

If you would like to connect GUI remotely,

Install VNC
# yum install vncserver


Setup VNC with init
Comment and uncomment like below. Then you can use VNC with a current desktop env. Otherwise VNC will boot up with TWM, which is a minimum desktop env.

# nano .vnc/xstartup

#!/bin/sh

# Uncomment the following two lines for normal desktop:
unset SESSION_MANAGER
exec /etc/X11/xinit/xinitrc

#[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
#[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
#xsetroot -solid grey
#vncconfig -iconic &
#xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
#twm &


# /etc/sysconfig/vncservers

VNCSERVERS="1:root"
VNCSERVERARGS[1]="-geometry 1024x768"


Then 1 of VNC Server is always booted up with above resolution once VNC server daemon is started.


Start VNC Server daemon
# /etc/rc.d/init.d/vncserver start
# /sbin/chkconfig vncserver on

(Input VNC password for the first time. Or use vncpasswd to setup password.)


Start or Kill VNC Server forcibly

# vncserver
or
# vncserver -kill :1


Check how many VNC processes are currently working

# ps aux | grep vnc


------------------------
Reference
http://www.nabe.bne.jp/linux/vncserver.html

投稿者 tomopugh : 2010年11月19日 13:09

Comment

Please comment !




Save the info?


  (Please don't click on "post" twice. It takes time a bit to change to the next screen!!)