「Xserver VPSでDebianサーバ構築/VNCサーバ設定」の版間の差分
ナビゲーションに移動
検索に移動
(→概要) |
(→設定) |
||
17行目: | 17行目: | ||
#!/bin/sh |
#!/bin/sh |
||
exec startlxde |
exec startlxde |
||
</nowiki> |
</nowiki> |
||
2023年4月20日 (木) 13:02時点における最新版
概要
次の表のとおりである。
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