Install VNC Server in NVIDIA Jetson TX2

The pre-installed vnc server is Vino and you need to just enable it.

(Remote Desktop app) Check with:

ps ax | grep vino
1. Check Service

By enabling the Desktop Sharing a user systemd service config should have been generated as such:

$ sudo nano /usr/lib/systemd/user/vino-server.service
[Unit]
Description=Vino VNC server

[Service]
Type=dbus
BusName=org.gnome.Vino
ExecStart=/usr/lib/vino/vino-server
Restart=on-failure

Check Status

$ systemctl status vino-server --user

Stop

$ systemctl stop vino-server --user

Start

$ systemctl start vino-server --user

Restart

$ systemctl restart vino-server --user
2. Configuring VNC from the command-line
====================================================================
                            README-vnc
                          Linux for Tegra
               Configuring VNC from the command-line
====================================================================
A VNC server allows access to the graphical display of a Linux for Tegra systemover the network. This allows you to work physically remote from the Linux for Tegra system, and avoids the need to connect an HDMI display, USB keyboard, or mouse.

All commands specified below should be executed from a terminal on the Linux
for Tegra system. This could be a serial port, an SSH session, or a graphical
terminal application running on the HDMI display.

--------------------------------------------------------------------
Installing the VNC Server
--------------------------------------------------------------------

It is expected that the VNC server software is pre-installed. Execute the following commands to ensure that it is:

$ sudo apt update
$ sudo apt install vino

--------------------------------------------------------------------
Enabling the VNC Server
--------------------------------------------------------------------

Execute the following commands to enable the VNC server:

# Enable the VNC server to start each time you log in
$ sudo ln -s ../vino-server.service \
    /usr/lib/systemd/user/graphical-session.target.wants 
    
# Configure the VNC server
$ gsettings set org.gnome.Vino prompt-enabled false
$ gsettings set org.gnome.Vino require-encryption false

# Set a password to access the VNC server
# Replace thepassword with your desired password
$ gsettings set org.gnome.Vino authentication-methods "['vnc']"
$ gsettings set org.gnome.Vino vnc-password $(echo -n 'thepassword'|base64)

# Reboot the system so that the settings take effect
$ sudo reboot

The VNC server is only available after you have logged in to Jetson locally. If
you wish VNC to be available automatically, use the system settings application
to enable automatic login.
--------------------------------------------------------------------
Connecting to the VNC server
--------------------------------------------------------------------

Use any standard VNC client application to connect to the VNC server that is running on Linux for Tegra. Popular examples for Linux are gvncviewer and remmina. Use your own favorite client for Windows or MacOS.

To connect, you will need to know the IP address of the Linux for Tegra system.Execute the following command to determine the IP address:

$ ifconfig

Search the output for the text "inet addr:" followed by a sequence of four numbers, for the relevant network interface (e.g. eth0 for wired Ethernet, wlan0 for WiFi, or l4tbr0 for the USB device mode Ethernet connection).

Once you are connected to the VNC server, execute the following command to display the VNC server's graphical configuration tool, and then configure a password for the VNC connection:

$ vino-preferences

注意:The VNC server is only available after you have logged in to Jetson locally. If you wish VNC to be available automatically, use the system settings application to enable automatic login.

Reference:
  1. https://medium.com/@yanweiliu/nvidia-jetson-tx2%E5%AD%B8%E7%BF%92%E7%AD%86%E8%A8%98-%E5%9B%9B-vnc-ssh-ftp%E9%81%A0%E7%AB%AF%E9%80%A3%E7%B7%9A%E6%8E%A7%E5%88%B6-ded97defe1b2

  2. https://www.bonusbits.com/wiki/KB:Fix_VNC_Desktop_Sharing_on_Ubuntu_Desktop

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值