From owner-freebsd-questions Sun Feb 16 8:34:18 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 48E4F37B401 for ; Sun, 16 Feb 2003 08:34:16 -0800 (PST) Received: from mail8-sh.home.nl (mail8.home.nl [213.51.128.30]) by mx1.FreeBSD.org (Postfix) with ESMTP id 084E343F3F for ; Sun, 16 Feb 2003 08:34:15 -0800 (PST) (envelope-from 4real@home.nl) Received: from home.nl ([217.121.138.198]) by mail8-sh.home.nl (InterMail vM.5.01.05.17 201-253-122-126-117-20021021) with ESMTP id <20030216163413.TPUK22174.mail8-sh.home.nl@home.nl>; Sun, 16 Feb 2003 17:34:13 +0100 Message-ID: <3E4FBD62.70003@home.nl> Date: Sun, 16 Feb 2003 17:33:38 +0100 From: Dennis <4real@home.nl> User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.2.1) Gecko/20030213 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Gene Harris Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Running X program under different user References: <3E4E7786.2010809@home.nl> <200302160844.43745.geneh@tetronsoftware.com> <3E4FA4AC.5020700@home.nl> <200302161006.37989.geneh@tetronsoftware.com> In-Reply-To: <200302161006.37989.geneh@tetronsoftware.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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 Gene Harris wrote: >This is usually an xhost problem, where a local machine is not letting a >remote machine spawn a window. If you have entered the command > >xhost +127.0.0.1 (or xhost +localhost) > >and you still get this problem, then there may be an issue with your tcp ip >setup. You may want to find any X*.hosts files and make sure they contain >the correct host names (you can also delete them and use xhost to recreate >them). You also need to ping 127.0.0.1 and make sure you get something back. >I had this problem once, because my firewall was not allowing the loopback >interface to function correctly. > >If you are using startx to initiate your X-windows session, try starting it >with startx -listen_tcp and then reenter your xhost commands for local host. >If you are using xdm (or something else) to start X for you, then make sure X >is listening on a tcp port by checking the output of sockstat. > >Good luck. I am off to breakfast on a cold, gray winter's day in Oklahoma. I >hope it is nicer in the Netherlands that it is here. > >Gene > >On Sunday 16 February 2003 08:48 am, Dennis wrote: > > >>Gene Harris wrote: >> >> >>>What is the exact error message you receive after you 'su -m' and then try >>>to execute your program? >>> >>>All that a non-standard shell means is that it is not listed in >>>/etc/shells. >>> >>>Gene >>> >>> >>hmm i see... >> >>this is the error msg >> >>Xlib: connection to ":0.0" refused by server >>Xlib: No protocol specified >>Gtk-WARNING **: cannot open display: :0.0 >> >>Dennis >> >> > > > > It works!! I used startx -listen_tcp, then added 127.0.0.1 with xhost, and the problem is solved!! Thanx to ur effort.... Really appreciate it man... Now i can waste time on irc again :) Greetz D. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message