From owner-freebsd-questions@FreeBSD.ORG Tue Oct 21 13:10:12 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 9387216A4BF for ; Tue, 21 Oct 2003 13:10:12 -0700 (PDT) Received: from main.gmane.org (main.gmane.org [80.91.224.249]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4007243FAF for ; Tue, 21 Oct 2003 13:10:10 -0700 (PDT) (envelope-from freebsd-questions@m.gmane.org) Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1AC2pU-0004qH-00 for ; Tue, 21 Oct 2003 22:10:08 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-questions@freebsd.org Received: from sea.gmane.org ([80.91.224.252]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AC2pR-0004q4-00 for ; Tue, 21 Oct 2003 22:10:05 +0200 Received: from news by sea.gmane.org with local (Exim 3.35 #1 (Debian)) id 1AC2pR-0005ro-00 for ; Tue, 21 Oct 2003 22:10:05 +0200 From: "Scott I. Remick" Date: Tue, 21 Oct 2003 16:10:03 -0400 Lines: 84 Message-ID: <5btwo7aw373h.3pbwcpwp3fe3$.dlg@40tude.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Archive: encrypt User-Agent: 40tude_Dialog/2.0.5.1 Sender: news Subject: vncserver, rc.local, and blackbox problem X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: scott@sremick.net List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Oct 2003 20:10:12 -0000 Ok, for today's edition of Show Scott What Stupid Thing He Missed... Trying to set up a dedicated VNC/ethereal server, so I'm trying to have vncserver run from rc.local (using su to run it as a user and not root). Ran into some path issues to make vncserver happy, which I resolved, but for some reason blackbox won't run and it doesn't _seem_ to be paths. Strangely enough, ethereal (which is loaded from the same ~/.vnx/xstartup file as blackbox) DOES launch (I just have no wm). So I know that file is being used. And if I launch vncserver manually as the user. both blackbox and ethereal launch fine. (for those of you wondering, I don't use fluxbox because of cosmetic quirks, or openbox because it doesn't play nice over vnc) Anyhow, my /etc/rc.local file is: PATH=$PATH:/usr/X11R6/bin:/usr/local/bin HOME=/home/ben su ben -c "/usr/local/bin/vncserver -depth 8 -geometry 1024x768" And /home/ben/.vnc/xstartup is currently: #!/bin/sh #PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/b in:/usr/X11R6/bin:/home/ben/bin HOME=/home/ben [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources xsetroot -solid grey #xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" & #twm & /usr/X11R6/bin/ethereal & /usr/X11R6/bin/blackbox & (note the commented-out path declaration... that was my attempt to see if making the path match what it is when ben is just logged in would make blackbox happy, which it didn't). The :1.log file only offers a vague clue. When I normally start vncserver manually as ben, it looks like this: 21/10/03 15:28:53 Xvnc version 3.3.7 - built Oct 21 2003 11:01:44 21/10/03 15:28:53 Copyright (C) 2002-2003 RealVNC Ltd. 21/10/03 15:28:53 Copyright (C) 1994-2000 AT&T Laboratories Cambridge. 21/10/03 15:28:53 All Rights Reserved. 21/10/03 15:28:53 See http://www.realvnc.com for information on VNC 21/10/03 15:28:53 Desktop name 'X' (aaa.bbb.ccc.com:1) 21/10/03 15:28:53 Protocol version supported 3.3 21/10/03 15:28:53 Listening for VNC connections on TCP port 5901 21/10/03 15:28:53 Listening for HTTP connections on TCP port 5801 21/10/03 15:28:53 URL http://aaa.bbb.ccc.com:5801 BScreen::BScreen: managing screen 0 using visual 0x22, depth 16 But when I try and start vncserver from bootup, it looks like this: 21/10/03 15:32:22 Xvnc version 3.3.7 - built Oct 21 2003 11:01:44 21/10/03 15:32:22 Copyright (C) 2002-2003 RealVNC Ltd. 21/10/03 15:32:22 Copyright (C) 1994-2000 AT&T Laboratories Cambridge. 21/10/03 15:32:22 All Rights Reserved. 21/10/03 15:32:22 See http://www.realvnc.com for information on VNC 21/10/03 15:32:22 Desktop name 'X' (aaa.bbb.ccc.com:1) 21/10/03 15:32:22 Protocol version supported 3.3 21/10/03 15:32:22 Listening for VNC connections on TCP port 5901 21/10/03 15:32:22 Listening for HTTP connections on TCP port 5801 21/10/03 15:32:22 URL http://aaa.bbb.ccc.com:5801 BScreen::BScreen: managing screen 0 using visual 0x22, depth 8 21/10/03 15:32:32 Xvnc version 3.3.7 - built Oct 21 2003 11:01:44 21/10/03 15:32:32 Copyright (C) 2002-2003 RealVNC Ltd. 21/10/03 15:32:32 Copyright (C) 1994-2000 AT&T Laboratories Cambridge. 21/10/03 15:32:32 All Rights Reserved. 21/10/03 15:32:32 See http://www.realvnc.com for information on VNC 21/10/03 15:32:32 Desktop name 'X' (aaa.bbb.ccc.com:1) 21/10/03 15:32:32 Protocol version supported 3.3 X connection to :1.0 broken (explicit kill or server shutdown). Gdk-ERROR **: X connection to :1.0 broken (explicit kill or server shutdown). It's almost as if it's getting called twice (???) and there's some sort of collision. And/or maybe that broken connection is blackbox dying somehow. Any advice? Thanks