From owner-freebsd-questions Wed Jan 29 18:27:56 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 F37DE37B405 for ; Wed, 29 Jan 2003 18:27:54 -0800 (PST) Received: from stjohn.stjohn.ac.th (stjohn.stjohn.ac.th [202.21.144.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6F78943F75 for ; Wed, 29 Jan 2003 18:27:52 -0800 (PST) (envelope-from mcrogerm@stjohn.ac.th) Received: from tulip.stjohn.ac.th ([203.151.134.104]) by stjohn.stjohn.ac.th (8.9.3+Sun/8.9.3) with ESMTP id JAA29087 for ; Thu, 30 Jan 2003 09:22:49 +0700 (ICT) Message-Id: <5.2.0.9.0.20030130091936.00a298d0@127.0.0.1> X-Sender: stjohn.stjohn.ac.th:mcrogerm@127.0.0.1 X-Mailer: QUALCOMM Windows Eudora Version 5.2.0.9 Date: Thu, 30 Jan 2003 09:27:42 +0700 To: freebsd-questions@FreeBSD.ORG From: Roger Merritt Subject: vnc at start-up Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed 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 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? -- Roger To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message