カスタム検索
|
Tweet |
|
|
VNCサーバを設定する - FedraCore1
Modified: 9 July 2007, 1 January 2004
参考となったページ
1.http://www.zdnet.co.jp/help/tips/linux/l0205.html
2.http://www.korogi.homeip.net/linux/linux-vnc-03.html
VNCのダウンロードから起動まで (1 January 2004)
VNCの接続 (1 January 2004)
VNCのダウンロード
以下からダウンロードできます。
http://www.uk.research.att.com/archive/vnc/
2004年1月1日時点で、"VNC 3.3.7" が最新でした。
VNCのインストール
実行ファイルのインストール
$ tar zxvf vnc-3.3.7-x86_linux.tar.gz
$ cd vnc-3.3.7-x86_linux
$ su
# cp vnc* Xvnc /usr/local/bin
# PATH=$PATH:/usr/local/bin
クラスファイルのインストール
# mkdir -p /usr/local/vnc/classes
# cp classes/* /usr/local/vnc/classes
GONOMEを起動させる設定
デフォルトでは、twn というウインドウマネージャが起動するだけなので、味気ない画面になります。
FedoraCoreの標準である Gonome を起動させましょう。
ウインドウシステムは、ホームディレクトリ(私の場合、"/home/tomo")のところにある、".vnc" の下の "xstatup" を編集します。
インストール後は、以下のように、twm が起動するようになっています。
#!/bin/sh
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
twm &以下のように、"gnome" が起動するように変更します。
#!/bin/sh
exec gnome-session &
VNCの起動
以下のように、ユーザモードで、"vncserver" コマンドでサーバが起動します。
$ vncserver
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "ja_JP.EUC"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
You will require a password to access your desktops.
Password:
Verify:
xauth: creating new authority file /home/tomo/.Xauthority
New 'X' desktop is k6-2-500:1
Creating default startup script /home/tomo/.vnc/xstartup
Starting applications specified in /home/tomo/.vnc/xstartup
Log file is /home/tomo/.vnc/k6-2-500:1.log
$
VNCの接続開始
Windowsから、VNCを起動します。
VNC Serverには、VNCサーバーを起動したときに出てきたメッセージを指定します。
私の場合は、"k6-2-500:1" でした。
パスワードの確認が求められますので、入力します。
パスワードを入力すると、以下のように、X desktopが起動します。
画像をクリックすればもっとはっきり見ることができます。