MacOS XからUbuntuへVNCを利用して接続する方法を以下に記します。
動作確認を行った環境は以下の通りです。
環境
MacOSX (Snow Leopard)
Ubuntu 10.04
今回はTightVNCをインストールしました。
端末を起動し以下のコマンドによりTightVNCをインストールします。
sudo apt-get install tightvncserver
MacOS XにはChicken of the VNCをインストールしました。
以下のURLよりダウンロードすることができます。
http://sourceforge.net/projects/cotvnc/
以下にMacからUbuntuへの接続手順を記します。
尚、Ubuntu DesktopなどSSHサーバがインストールされていない場合は、SSHサーバをインストールしてください。
SSHサーバのインストールはUbuntu DesktopにSSHサーバーをインストールする方法を参考にしてください。
また、上記のTightVNC, Chicken of the VNCがインストール済みであることが前提です。
vncserver -geometry "1024x768" -depth 16
sakura@ubuntu-ppc:~$ vncserver -geometry "1024x700" -depth 16 You will require a password to access your desktops. Password: Verify: Would you like to enter a view-only password (y/n)? y Password: Verify: xauth: creating new authority file /home/sakura/.Xauthority New 'X' desktop is ubuntu-ppc:1 Creating default startup script /home/sakura/.vnc/xstartup Starting applications specified in /home/sakura/.vnc/xstartup Log file is /home/sakura/.vnc/ubuntu-ppc:1.log sakura@ubuntu-ppc:~$
New 'X' desktop is ubuntu-ppc:1
vncserver -geometry "1024x768" -depth 16
vncserver -kill :ディスプレイ番号以下の例は、ディスプレイ番号が1の場合です。
vncserver -kill :1
上記操作では、VNCによる接続は、以下の手順になります。
VNCによる接続をしたい場合は、毎回vncserverを起動することになります。