Linux MINT

Mint VNCインストール

インストール

user@mint:~$ sudo apt install -y x11vnc

パスワードの設定

user@mint:~$ x11vnc -storepasswd
Enter VNC password:

Verify password:

Write password to /home/user/.vnc/passwd? [y]/n
Password written to: /home/user/.vnc/passwd

VNC実行

user@mint:~$ x11vnc -auth guess -display :0 -rfbauth /home/user/.vnc/passwd -rfbport 5900

自動起動の設定

user@mint:~$ sudo vim /etc/systemd/system/x11vnc.service
[Unit]
Description=X11VNC Server
After=network-online.target

[Service]
Type=simple
ExecStart=/usr/bin/x11vnc -auth guess -display :0 -rfbauth /home/gn5r/.vnc/passwd -rfbport 5900 -forever -loop -noxdamage -repeat -shared
ExecStop=/bin/kill -TERM $MAINPID
ExecReload=/bin/kill -HUP $MAINPID
KillMode=control-group
Restart=on-failure

[Install]
WantedBy=graphical.target
user@mint:~$ sudo systemctl daemon-reload
user@mint:~$ sudo systemctl enable x11vnc.service
user@mint:~$ sudo systemctl start x11vnc.service

トップ   編集 凍結 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2020-04-06 (月) 09:58:26