VNC4 を Ubuntu8.10 で使う
Windows も入れる予定ではあるが、今のところ、サーバもクライアントもUbuntu。VNC4 を使ってみた。
まず、サーバ側で、
# aptitude install vnc4server # vncserver You will require a password to access your desktops. Password: Verify: xauth: creating new authority file /root/.Xauthority New 'quad:1 (root)' desktop is quad:1 Creating default startup script /root/.vnc/xstartup Starting applications specified in /root/.vnc/xstartup Log file is /root/.vnc/quad:1.log
という感じでサーバが起動する。
クライアント側は、quad:1 と表示されてるその :1 を使って、、、
# aptitude install xvnc4viewer # vncviewer 192.168.1.4:1
とすると、起動する。
ログイン画面が出るので、
サーバ起動時に入れたパスワードをここで入れる。
起動直後はこういう感じの寂しい画面。とりあえず、ウィンドウマネージャを起動する。
# sudo gnome-session
悪くないじゃないですか・・・。
ニコ動を再生。音はサーバ側で鳴る。(クライアント側で鳴るようにも出来るという話もちょっと聞いたけど、どうやるのかは知らない)
ウィンドウ内で F8 を押下すると vnc のメニューが起動する。フルスクリーンモードを選ぶと、今自分がどっちを使ってるのかもう区別がつかないくらい。
ウィンドウサイズはサーバ側指定。
# vncserver -geometry 1280x800
そうそう。server を終了するときは、下記。
# vncserver -kill :1