「Xserver VPSでDebianサーバ構築/VNCサーバ設定」の版間の差分

提供: Medeshima wiki
ナビゲーションに移動 検索に移動
(ページの作成:「= 概要 = 次の表のとおりである。 {| class="wikitable" |VNCサーバ |TigerVNC |}」)
 
7行目: 7行目:
|TigerVNC
|TigerVNC
|}
|}

= 設定 =

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

~/.vnc/xstartup

<nowiki>
#!/bin/sh

exec startlxde-pi
</nowiki>

== 仮想スクリーン ==

=== サーバ ===

<nowiki>
$ tigervncserver -geometry 1280x1024 -alwaysshared -dpi 96 -localhost :1
</nowiki>

=== クライアント ===

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

== 物理ディスプレイ ==

=== サーバ ===

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

=== クライアント ===

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

== LightDM ==

* /etc/lightdm/lightdm.conf

<nowiki>
[VNCServer]
enabled=true
command=Xvnc -rfbauth /etc/vncpasswd
listen-address=localhost
depth=24
</nowiki>

<nowiki>
$ sudo tigervncpasswd /etc/vncpasswd
$ sudo systemctl restart lightdm
</nowiki>

2023年4月20日 (木) 13:01時点における版

概要

次の表のとおりである。

VNCサーバ TigerVNC

設定

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

~/.vnc/xstartup

#!/bin/sh

exec startlxde-pi

仮想スクリーン

サーバ

$ 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