昨日インストールした CentOS に VNC server の設定.
1. /etc/sysconfig/vncservers の編集
VNCSERVERS="2:fumi" VNCSERVERARGS[2]="-geometry 800x600"
2. vncpasswd
ログインするユーザで vncpasswd を実行し,パスワードを設定.
3. ~/.vnc/xstartup を編集
デフォルトで twm が起動するように設定されたファイルが作られるので,
twm をコメントアウトして,かわりに kde を起動するように変更.
#!/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 & startkde