Notifications
Clear all

The Jetson Nano & Remote Desktop

47 Posts
6 Users
2 Likes
29.9 K Views
Spyder
(@spyder)
Member
Joined: 5 years ago
Posts: 846
 

Okay

This time I got a repeatable remote desktop working

It's a very specialized process called RTFM, which, if you don't know what that means, is something I'm not going to tell you

Have you ever read thru the readme files hidden inside the jetson ?

No ? Me either.

So I got curious as to what I might be missing, and did the obvious thing, and read one that I found in the L4T-Readme folder called READEME-vnc.txt

I picked a good one it seems, cuz it contained instructions on Nvidia's special process of getting VNC to work using a program that I hadn't tried yet called vino

Here's the whole readme file, but, you really only need to pay attention to the two sections I labeled

I didn't follow any of the other instructions after the two sections I labeled because I figured... why bother ? It's working, and if I do anything else, I might break it, cuz, yknow, I do that a lot

=======================================================================
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 system
over 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.

----------------------------------------------------------------------                ********************** I only used from here
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.

----------------------------------------------------------------------                ******************************to here
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).

----------------------------------------------------------------------
Setting the Desktop Resolution
----------------------------------------------------------------------

The desktop resolution is typically determined by the capabilities of the
display that is attached to Jetson. If no display is attached, a default
resolution of 640x480 is selected. To use a different resolution, edit
/etc/X11/xorg.conf and append the following lines:

Section "Screen"
Identifier "Default Screen"
Monitor "Configured Monitor"
Device "Tegra0"
SubSection "Display"
Depth 24
Virtual 1280 800 # Modify the resolution by editing these values
EndSubSection
EndSection

After I performed the sections I labeled as relevant, I was able to log into a GUI desktop reliably, and repeatably using the VNC client program

So, YAY ! I did something right today, which makes for a total of one, which means I should probably stop now, cuz I wouldn't wanna break my streak

 


   
ReplyQuote
Robo Pi
(@robo-pi)
Robotics Engineer
Joined: 5 years ago
Posts: 1669
Topic starter  
Posted by: @spyder

It's a very specialized process called RTFM, which, if you don't know what that means, is something I'm not going to tell you

Sorry does not Compute! Illegal Function Call!  CPU Overload! Temperature = Critical! Core Meltdown Imminent!

DroneBot Workshop Robotics Engineer
James


   
ReplyQuote
Page 4 / 4