アットウィキロゴ

vnc設定

■サーバ:Ubuntu , クライアント:Windowsのvncアクセスについてのメモ

  • Windows側の設定

  • vncクライアントをインストールする。(今回はUltraVncを使用した)

  • Ubuntuの設定

vncserverをインストールする。

$ sudo apt-get install vnc4server

/home/<ユーザ名>/.vnc/xstartupを編集する
#!/bin/sh

# Uncomment the following two lines for normal desktop:
unset SESSION_MANAGER
/bin/sh /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 &

vncserverを起動する

$ vncserver 

※VaioT用のディスプレイ設定で起動する場合↓
$ vncserver -geometry 1366x768 -depth 24

vncseverを終了する

$ vncserver -kill :<ディスプレイ番号>

タグ:

+ タグ編集
  • タグ:
最終更新:2008年09月27日 21:40