From owner-freebsd-questions Wed Aug 23 0: 3:48 2000 Delivered-To: freebsd-questions@freebsd.org Received: from guru.mired.org (zoom0-224.telepath.com [216.14.0.224]) by hub.freebsd.org (Postfix) with SMTP id 2F34E37B43E for ; Wed, 23 Aug 2000 00:03:44 -0700 (PDT) Received: (qmail 86528 invoked by uid 100); 23 Aug 2000 07:03:05 -0000 From: Mike Meyer MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <14755.30505.152520.483281@guru.mired.org> Date: Wed, 23 Aug 2000 02:03:05 -0500 (CDT) To: John Murphy Cc: questions@freebsd.org Subject: starting vncserver in /usr/local/etc/rc.d In-Reply-To: <102601286@toto.iv> X-Mailer: VM 6.72 under 21.1 (patch 10) "Capitol Reef" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`;h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG John Murphy writes: > I'm trying to get vncserver to start automatically at boot. Have you carefully considered the security implications of doing this? On the face of it, it sounds like you're doing the equivalent of logging in as root via telnet (with no encryption). Come to think of it, it's probably worse than that - where does vncserver log bad password attempts? If that's the case, it would be much (much, *much*) better to enable sshd, then ssh in forwarding the VNC port, and start vncserver from there. That's what I typically do when I need to do that kind of thing. Anyway... > This works fine if I type vncserver after login, but with the [...] but at boot: > I get: vncserver: couldn't find "xauth" on your PATH. because /usr/X11R6/bin (where xauth is) isn't in PATH. Which happens because all the things that get run to set up your environment when you log in aren't done when the scripts that run at startup are run. You need to fix PATH (at least), and probably others as well.