I think the difference between raspbian and ubuntu is that by default when the raspbian desktop is started the user pi is automatically logged in
Not really, when my RPi units start up they sit on the login screen forever since there is no keyboard or monitor attached (headless).
But on the RPi units the vnc server is started at this point.
So I can use the RealVNC application to connect to the RPi and then I get a login prompt via VNC and then the desktop is shown in the VNC window. This login uses the Raspbian user (pi) for authentication.
NOTE! The login on the Ubuntu VNC uses a password
unique to the vnc server and it has to be 6-8 characters long. Longer or shorter not allowed. It does
not validate against the Ubuntu user at all.
The way I want it to work also on the Ubuntu 18 computer is how it works on the RPi boxes, but on Ubuntu so far VNC only works if I
first log on!
I have found a clumsy workaround for this as follows:
- Start the Ubuntu device
- It will now sit on the login screen (forever)
- Now from my Windows PC open a PuTTY SSH session and log in to the command interface
- At the terminal prompt enter
- Now the vnc server is running in the way needed for a connection from the outside.
But drawbacks:
1) I have to use PuTTY to log in to the Ubuntu machine
2) I have to run a command via PuTTY to start up the vnc server
3) When I log on to the VNC screen it pops up an error message concerning the network where I have to enter my real user password (note: NOT the VNC password) to get it rolling finally.
So my question is still how I can replicate the functionality on Raspbian to the Ubuntu machine?
So what I am after, but have not found out yet how to, is to have it work like on the RPi in Raspbian, i.e.