From owner-freebsd-questions Thu Jan 30 0:42:53 2003 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 4D4FA37B401 for ; Thu, 30 Jan 2003 00:42:52 -0800 (PST) Received: from ei.bzerk.org (ei.xs4all.nl [213.84.67.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id A37FB43E4A for ; Thu, 30 Jan 2003 00:42:47 -0800 (PST) (envelope-from fbsd-q@bzerk.org) Received: from ei.bzerk.org (BOFH@localhost [127.0.0.1]) by ei.bzerk.org (8.12.6/8.12.6) with ESMTP id h0U8iaJi016188; Thu, 30 Jan 2003 09:44:36 +0100 (CET) (envelope-from stable@ei.bzerk.org) Received: (from stable@localhost) by ei.bzerk.org (8.12.6/8.12.6/Submit) id h0U8iZQe016187; Thu, 30 Jan 2003 09:44:35 +0100 (CET) Date: Thu, 30 Jan 2003 09:44:35 +0100 From: Ruben de Groot To: Roger Merritt Cc: freebsd-questions@FreeBSD.ORG Subject: Re: vnc at start-up Message-ID: <20030130084435.GA16177@ei.bzerk.org> References: <5.2.0.9.0.20030130091936.00a298d0@127.0.0.1> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5.2.0.9.0.20030130091936.00a298d0@127.0.0.1> User-Agent: Mutt/1.4i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, Jan 30, 2003 at 09:27:42AM +0700, Roger Merritt typed: > I've installed vnc from the ports and it works fine, but it's annoying to > have to log on to my server and start the vncserver every time I want to > connect from my desktop PC. One problem is my server has been randomly > rebooting (I suspect hardware problems but ...), so I can't just leave the > server running. > > I tried putting a start-up script in /usr/local/etc/rc.d and it works, but > in the vncserver script itself there is a loop which checks for the > availability of commands, including xauth. Apparently during boot-up the > PATH doesn't include /usr/X11R6/bin, so on boot-up one of the messages I > get is 'vncserver: couldn't find "xauth" on your path' and the server isn't > started. > > Can anyone suggest what I should do to make this work? What about putting PATH=${PATH}:/usr/X11R6/bin; export PATH in your startup script? > > -- > Roger > > > 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