How to set up a headless VNC on Slackware
On slackware one can use runlevel 3 for a multi-user console based UI, or runlevel 4 for a multi-user X11 based GUI.
One can set up (fairly easy, with distro available packages) a VNC server inside a logged in X11 session. Also, X11 forwarding over the network is not useful because it still requires a local X11 login and programs displayed remotely close when the client exists. My question, and problem, is as follows:
The purpose is to have the server administration on console level and no interference from unneeded GUI (specifically no X11 on physical monitor), and have the ability to remotely connect to the server into X11 in such a way that it does not require X11 on the physical monitor and programs running in the GUI do not terminate when client disconnects (like happens with remote display by X11_forwarding). Thank you |
Just use some vnc server. tigervnc is in extra.
Start vncserver from console or ssh session and connect with vncviewer. I use this on my server which doesn't have any GPU. |
Quote:
|
Quote:
/bin/su -l USERNAME -c "vncserver" But first run it manually to make sure it works and set password. |
Quote:
|
Quote:
Code:
export DISPLAY=your-host.home.local :0.0 Code:
ssh -X user@remote-host.home.local |
Quote:
|
Quote:
Code:
5900 stream tcp nowait nobody /usr/bin/Xvnc Xvnc -inetd -query localhost -once securitytypes=none |
Quote:
I will look into the suggested x11vncserver. |
All times are GMT -5. The time now is 06:51 PM. |