vnc†
vnc とは、 V irtual N etwork C omputing の略。
同一ホスト内/リモートホスト間でコンピュータを操作するリモートデスクトップソフトウェア。
クロスプラットフォーム対応ソフトとして開発されている。
開発停止したオリジナル VNC (AT&T) に始まり、派生版が多数出ている。
マルチ解像度VNCサーバ設定†
server側ではport毎に別々の画面の解像度を設定しておき、clientは使いたい解像度に合わせて接続portを選択することが出来る。
/etc/services
#VNC settings
vnc-1024x768 5950/tcp
vnc-1272x960 5951/tcp
vnc-1280x1024 5952/tcp
vnc-1592x1136 5953/tcp
vnc-1600x1200 5954/tcp
vnc-1800x1100 5955/tcp
vnc-1912x1136 5956/tcp
vnc-1920x1200 5957/tcp
/etc/xinetd.d/vnc-1024x768
# default: off
# description: VNC server
# securlevel: 30
service vnc-1024x768
{
disable = no
socket_type = stream
# protocol = tcp
wait = no
user = nobody server = /usr/bin/Xvnc
server_args = -inetd -query localhost -once -geometry 1024x768 -secu ritytypes none -fp tcp/localhost:7100
}
server の設定・起動・停止†
一般ユーザーで起動する。
$ vncserver
Warning: martinu:1 is taken because of /tmp/.X1-lock
Remove this file if there is no X server <ホスト名>:1
New 'X' desktop is martinu:2
Starting applications specified in /home/kazu/.vnc/xstartup
Log file is /home/kazu/.vnc/martinu:2.log
この例では、DISPLAY番号が :1 となっている
画面サイズをデフォルトから変更する場合は、server の起動引数で指定する
$ vncserver -geometry <width>x<height>
client からの接続†
クライアントには、 vncviewer を使う。
接続先は、 <接続先ホスト>:<port> で指定する。
トラブルシューティング†
Last-modified: 2022-01-08 (土) 13:22:15