Date: 13 Dec 2002 12:16:44 -0500 From: Matt Smith <matt@forsetti.com> To: Ruben de Groot <fbsd-q@bzerk.org> Cc: "Brian T. Schellenberger" <bts@babbleon.org>, Brian <bri@sonicboom.org>, Daniel HARTMANN <danielhartmann@wanadoo.fr>, Questions FREEBSD <freebsd-questions@FreeBSD.ORG> Subject: Re: VNC Message-ID: <1039799804.71268.3.camel@d80h149.public.uconn.edu> In-Reply-To: <20021213065651.GA10152@ei.bzerk.org> References: <BKEEJHGHHBPAOEMADPLPOELGCBAA.danielhartmann@wanadoo.fr> <20021212124239.F80956-100000@entwistle.sonicboom.org> <200212122207.47500.bts@babbleon.org> <20021213065651.GA10152@ei.bzerk.org>
next in thread | previous in thread | raw e-mail | index | archive | help
How about running XVNC under inetd? >From inetd.conf: Xvnc stream tcp nowait nobody /usr/local/bin/Xvnc Xvnc -inetd -query localhost -once -geometry 800x600 -depth 24 XDM should be running also. Of course, since I can't read the original message, I'm not *exactly* sure what the original problem is... -Matt On Fri, 2002-12-13 at 01:56, Ruben de Groot wrote: > On Thu, Dec 12, 2002 at 10:07:46PM -0500, Brian T. Schellenberger typed: > > > > > > > > On Thursday 12 December 2002 03:45 pm, Brian wrote: > > | getting vnc to start at boot is tricky, since you want it to start as > > | some user, rather than as root. A solution I've been thinking of is > > | looking at the output os ps auxw, grepping for Xvnc owned by the > > | desired user, if its there exit, if not run vncserver as the user in > > | question. Putting it in cron with a /8 to check every 8 minutes > > | seems a good idea. > > You can put it in the desired user's crontab like this: > > @reboot /path/to/startup-command > > > > > > > My *guess* is that you would always want the server to start as the > > *same* user, if you want it to start at boot. > > > > In that case, it's quite simple, at least in theory (meaning, I haven't > > done this). > > > > If that is the only user who will *ever* want to own the server, then > > just make that user the owner of vnc and set the suid bit. > > > > If you want to keep the "default" vnc server with the usual owner > > (root?), then just create a hardlink used for the startup command and > > suid *that* as above. > > The suid bit is stored in the inode, not in the directory-entry of a > hardlink. If you suid the hardlink you also suid the original. > The same goes for ownership. > > > > > | > > | Bri > > | > > | On Thu, 12 Dec 2002, Daniel HARTMANN wrote: > > | > Bonjour, > > | > > > | > J'utilise vnc vers ma machine Freebsd. > > | > > > | > Mais comment d?marrer "vncserver" automatiquement au boot sans > > | > taper la commande ?? > > | > > > | > Merci > > | > > > | > > > | > > > | > > > | > > > | > Dany_H ;-) > > | > > | To Unsubscribe: send mail to majordomo@FreeBSD.org > > | with "unsubscribe freebsd-questions" in the body of the message > > > > -- > > Brian, the man from Babble-On . . . . bts@babbleon.org (personal) > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > with "unsubscribe freebsd-questions" in the body of the message > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message -- Matt Smith <matt@forsetti.com> To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1039799804.71268.3.camel>