vncserver

vncサーバの設定を久しぶりにやったら思い出せなかったので、
作業手順を備忘録がわりに…


以下、作業ログ抜粋。(vncサーバをrootユーザにて起動した場合のログ。)

# vncserver

You will require a password to access your desktops.

Password:<password for vnc>
Verify:<password for vnc>
xauth:  creating new authority file /root/.Xauthority


New 'bonjour.verte.or.tp:1 (root)' desktop is bonjour.verte.or.tp:1

Creating default startup script /root/.vnc/xstartup
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/bonjour.verte.or.tp:1.log

# vncserver -kill :1
# ps aux | grep -i vncserver


# cd /root/.vnc
# pwd
/root/.vnc
# vi xstartup

# diff -U0 xstartup xstartup.20080224
--- xstartup    2008-02-24 11:39:31.000000000 +0900
+++ xstartup.20080224   2008-02-24 11:42:16.000000000 +0900
@@ -12,2 +12 @@
-#twm &
-exec gnome-session &
+twm &

vnc viewer で:5900+αに接続すればOKっ!