I have a vps which has the basic xfce environment & tightvncserver installed.
I would like to have tightvncserver automatically start whenever I initiate a connection to the port it runs on (in my case, 5901
).
I've seen posts about using inetd
or xinetd
to do this, but I've also seen lots of posts saying that (x)inetd is not included in Ubuntu for a reason, and that it's a bad idea to use it.
Anyways, I'm looking for a way to auto-start tightvncserver whenever there's an incoming connection to port 5901, preferably with as few dependencies as possible