Ubuntu 1804 LTSでリモートデスクトップを設定
1204 ワード
Ubuntu 1804 LTSでリモートデスクトップを設定
ubuntuの公式ドキュメントを参照してください.https://help.ubuntu.com/lts/ubuntu-help/sharing-desktop.html.zh-CN
vinoをインストールし、設定中に共有デスクトップを開くだけで、「アクセスオプション」を「パスワードが必要」に設定することで、接続するたびに接続側の確認が必要になりません.VNC Viewerで接続すればいいです.
注意しなければならない問題はvinoの暗号化オプションをfalseに設定することです.そうしないと、接続に成功しません.ネット上のチュートリアルもいろいろありますが、実際にはコマンドラインで一言実行するだけでいいです.gsettings set org.gnome.Vino require-encryption false、
インストールも必要です:apt-get install vino systemctl enable vino apt-get install vnc 4 server tightvncserver
reboot
create a systemd unit or service to run vino server at startup
Enable the service
Verify it using below command vinostartup.service will be there
If you don’t want to wait until next boot (it’s already enabled) we can start the service
ubuntuの公式ドキュメントを参照してください.https://help.ubuntu.com/lts/ubuntu-help/sharing-desktop.html.zh-CN
vinoをインストールし、設定中に共有デスクトップを開くだけで、「アクセスオプション」を「パスワードが必要」に設定することで、接続するたびに接続側の確認が必要になりません.VNC Viewerで接続すればいいです.
注意しなければならない問題はvinoの暗号化オプションをfalseに設定することです.そうしないと、接続に成功しません.ネット上のチュートリアルもいろいろありますが、実際にはコマンドラインで一言実行するだけでいいです.gsettings set org.gnome.Vino require-encryption false、
インストールも必要です:apt-get install vino systemctl enable vino apt-get install vnc 4 server tightvncserver
reboot
create a systemd unit or service to run vino server at startup
cd /etc/systemd/system/
sudo vim vinostartup.service
[Unit]
Description = description about the service
After = network.target
[Service]
ExecStart = /usr/lib/vino/vino-server
[Install]
WantedBy = multi-user.target
Enable the service
sudo systemctl enable vinostartup.service
Verify it using below command vinostartup.service will be there
ls multi-user.target.wants/
If you don’t want to wait until next boot (it’s already enabled) we can start the service
sudo systemctl start vinostartup.service