From owner-freebsd-questions@FreeBSD.ORG Sat May 3 10:15:48 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D904637B401 for ; Sat, 3 May 2003 10:15:48 -0700 (PDT) Received: from pa-plum1b-166.pit.adelphia.net (pa-plum1a-215.pit.adelphia.net [24.53.170.215]) by mx1.FreeBSD.org (Postfix) with ESMTP id E786043F75 for ; Sat, 3 May 2003 10:15:47 -0700 (PDT) (envelope-from wmoran@potentialtech.com) Received: from potentialtech.com (working [172.16.0.95]) h43HFf0n007122; Sat, 3 May 2003 13:15:46 -0400 (EDT) (envelope-from wmoran@potentialtech.com) Message-ID: <3EB3F93D.1020701@potentialtech.com> Date: Sat, 03 May 2003 13:15:41 -0400 From: Bill Moran User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.3) Gecko/20030429 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Tom Smith References: <3EB352FE.9070105@openadventures.org> In-Reply-To: <3EB352FE.9070105@openadventures.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-questions Subject: Re: Problem starting VNCServer at boot X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 May 2003 17:15:49 -0000 Tom Smith wrote: > ENVIRONMENT > FreeBSD 4.8-STABLE > TightVNC 1.2.8 > > PROBLEM > Getting error: "Starting local daemons:vncserver: couldn't find "xauth" > on your PATH." > > SITUATION > I installed tightvnc-1.2.8 from the port collection and configure > /etc/rc.local to start a vncserver for a specific user at startup using > the following command: > > su -c "/usr/X11R6/bin/vncserver :1 -depth 8 -geometry 800x600" > > When this tries to start at boot up I get the above error. If I start it > from the command line it works fine. > > This sounds like an issue with the defined PATH at bootup but I've not > been able to find anything explaining how to define this PATH in the > FreeBSD handbook or otherwise. Make a script in /usr/local/etc/rc.d called vncserver.sh (or similar) and use: #!/bin/sh PATH=/path/that/you/need su -c "/usr/X11R6/bin/vncserver :1 -depth 8 -geometry 800x600" Can't say with certainty that it will work (as I haven't tested it), but I don't see why it won't. That's the "right" way to do it anyway. (actually, it should have a case statement to accept "start" and "stop" ... but I'll leave that as an exercise to the reader ... see the other scripts in that directory) -- Bill Moran Potential Technologies http://www.potentialtech.com