Xserver VPSでDebianサーバ構築/VNCサーバ設定

提供: Medeshima wiki
ナビゲーションに移動 検索に移動

概要

次の表のとおりである。

VNCサーバ TigerVNC

設定

必要に応じて、次のファイルに、以下の設定を行う。

~/.vnc/xstartup

#!/bin/sh

exec startlxde

仮想スクリーン

サーバ

$ tigervncserver -geometry 1280x1024 -alwaysshared -dpi 96 -localhost :1

クライアント

$ ssh -Y SERVER xtigervncviewer -SecurityTypes VncAuth -passwd /home/USER/.vnc/passwd :1

物理ディスプレイ

サーバ

$ x0vncserver -display :0 -passwordfile ~/.vnc/passwd

クライアント

$ ssh -Y SERVER xtigervncviewer -SecurityTypes VncAuth -passwd /home/USER/.vnc/passwd :0

LightDM

  • /etc/lightdm/lightdm.conf
[VNCServer]
enabled=true
command=Xvnc -rfbauth /etc/vncpasswd
listen-address=localhost
depth=24

$ sudo tigervncpasswd /etc/vncpasswd
$ sudo systemctl restart lightdm