Actually I start x11vnc in /home/odroid/.config/lxsession/LXDE/autostart with

@/bin/x11vnc -bg -forever -shared -rfbauth /home/odroid/.vnc-passwd -noxdamage -norc -noxrecord -capslock -no6 -rfbport 5900

Autologin on startup is ok and it works well.
But I log rarely in graphics mode.

I want it to work like sshd.socket (vs sshd.service)
Do you have an idea or line of research?

  • Like this? – Bratchley May 21 '16 at 19:07
  • If you rarely use it, why not just do X11 forwarding though? – Bratchley May 21 '16 at 19:11
  • @Bratchley thank you for you interest in my problem. I followed your link and that's a good track. But I am worried that I try to clarify this. - I dont understand "X11 forwarding though" sorry, limited skills – Mauricio May 21 '16 at 20:00
  • If your desktop runs an X server on it (such as FreeBSD, OS X, Linux, etc) most ssh clients can forward the displays for X11 programs from remote servers to your local desktop. The application runs on the server, but it sends instructions to the x server on your local machine instructing it how to update the window. In the case of windows, you have to download and install an X server component. Xming is a popular choice for that and it's low enough on resources to just leave running. – Bratchley May 21 '16 at 23:18
  • Good idea but I am having some problems. I continue with Answer 2 for ease of reading. – Mauricio May 22 '16 at 8:35

jeep is the serveur (ARM Archlinux without physical screen).
My PC is under Archlinux.

I try @Bratchley suggestion.
I change X11Forwarding to yes in /etc/ssh/sshd_config and restart sshd.socket
Works fine :)
I can connect from PC with ssh -Y root@jeep
If I launch lxterminal I have a terminal window on jeep :)

But I need entire LXDE desktop of jeep. Not just "applications deporting".
Because I use conky for monitoring many informations.
So I disable lightdm.service and reboot jeep

If I launch startlxde or lxsession (on jeep of course) I have a graphical logon screen of ..... my PC !!!

After many search I found this answer and if I understand correctly is not possible :(

So I return to my first question (launch x11vnc by socket)


So I create /etc/systemd/system/xvnc.socket

Description=XVNC Server



And /etc/systemd/system/xvnc@.service

Description=XVNC Per-Connection Daemon

ExecStart=/usr/bin/x11vnc -display :0 -bg -forever -shared -rfbauth /home/odroid/.vnc-passwd -noxdamage -norc -noxrecord -capslock -inetd

After reboot I can connect from my PC :)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.