I’m trying to set up a headless xavier nx for remote login via vnc.
After the initial oem-config setup, I login with
ssh -X user@nx.local
Then, I followed the steps in README-vnc.txt file as below:
sudo ln -s …/vino-server.service /usr/lib/systemd/user/graphical-session.target.wants
gsettings set org.gnome.Vino prompt-enabled false
gsettings set org.gnome.Vino require-encryption false
gsettings set org.gnome.Vino authentication-methods “[‘vnc’]”
gsettings set org.gnome.Vino vnc-password $(echo -n ‘thepassword’|base64)
sudo reboot
After reboot, the VNC service is not available when connecting with gvncviewer or
remmina.
Then, I created a file at ~/.config/autostart/vino-server.desktop as advised in another thread with the following content in hope the service can start automatically.
[Desktop Entry]
Type=Application
Name=Vino VNC server
Exec=/usr/lib/vino/vino-server
NoDisplay=true
I got no luck with vino-server.desktop file. Then, I login my nx.local with ssh -X, manually started the vino-server with this command:
/usr/lib/vino/vino-server &
The server started, and waiting for connection.
At this point, I can connect via gvncviewer or remmina. However, the desktop get loaded repeatedly in the VNC client, and the copy of desktops just stack up, which make it impossible to use.
So, my questions are:
1/ How can I stop the VNC client refresh the desktop repeatedly?
2/ How should I make the vino-server run automatically when the system boot? What is the best way to do this?
The image used is JP 4.4 with md5sum of 2f87a993188ac4e56d7bdfba278e4df4.
Jetson NX is connecting via wifi connection.
Update:
Login with ssh without the -X option. Run startx.
Now the VNC client can connect without duplicate desktop.
But it only shows my an black screen with Nvidia logo into the middle. No other items in the view.
What should I do from here?
Thanks for any advise.