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

ナビゲーションに移動 検索に移動
(ページの作成:「= 概要 = 次の表のとおりである。 {| class="wikitable" |VNCサーバ |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>

ナビゲーション メニュー