RE: How to run GUI under root in FreeBSD?

2008-01-10 Thread Jim Stapleton
I would suggest using

> I ran following before become root:
> xhost localhost
>
> Under root:
> echo $DISPLAY
> :0.0
>
> When I run ddd:
> Xlib: connection to ":0.0" refused by server
> Xlib: No protocol specified
>
> Error: Can't open display: :0.0

why not sudo ddd instead? That should work just as well if there isn't
a lot of cli redirecting that needs raised privs (I'm afraid I'm not
familiar with ddd enough to know if it does or not). It could be
tedious, but you could always make this script:

xddd.sh:

#!/bin/sh
sudo ddd $*

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: How to run GUI under root in FreeBSD?

2008-01-10 Thread Unga

--- Jonathan Horne <[EMAIL PROTECTED]> wrote:

> On Thursday 10 January 2008 06:52:38 am Unga wrote:
> > Hi all
> >
> > I want to run ddd debugger under root.
> >
> > I ran following before become root:
> > xhost localhost
> >
> > Under root:
> > echo $DISPLAY
> >
> > :0.0
> >
> > When I run ddd:
> > Xlib: connection to ":0.0" refused by server
> > Xlib: No protocol specified
> >
> > Error: Can't open display: :0.0
> >
> > What else I should do in FreeBSD? I'm running
> > 7.0-PRERELEASE on i386 with KDE 3.5.8.
> >
> > Appreciate very much a reply.
> >
> > Best Regards
> > Unga
> 
> im not sure if its the best or correct way, but i
> was able to run an app (not 
> ddd, i dont have that on my system) as root by doing
> this:
> 
> (as my user)
> xhost +
> 
> (then su - up to root)
> xcalc -display :0
> 
> nothing else to it.  also, you might take a look at
> the man for xhost to see 
> how to narrow down the access, because the '+' only
> gives you a nice 
> little "you are now wide open for connections"
> message.
> 

Thanks, yep, after the "access control disabled" I can
run ddd as root. Anyway, I'll read the xhost man page
and lets see what others got to say too. Take care.

Regards
Unga




  

Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: How to run GUI under root in FreeBSD?

2008-01-10 Thread Jonathan Horne
On Thursday 10 January 2008 06:52:38 am Unga wrote:
> Hi all
>
> I want to run ddd debugger under root.
>
> I ran following before become root:
> xhost localhost
>
> Under root:
> echo $DISPLAY
>
> :0.0
>
> When I run ddd:
> Xlib: connection to ":0.0" refused by server
> Xlib: No protocol specified
>
> Error: Can't open display: :0.0
>
> What else I should do in FreeBSD? I'm running
> 7.0-PRERELEASE on i386 with KDE 3.5.8.
>
> Appreciate very much a reply.
>
> Best Regards
> Unga

im not sure if its the best or correct way, but i was able to run an app (not 
ddd, i dont have that on my system) as root by doing this:

(as my user)
xhost +

(then su - up to root)
xcalc -display :0

nothing else to it.  also, you might take a look at the man for xhost to see 
how to narrow down the access, because the '+' only gives you a nice 
little "you are now wide open for connections" message.

cheers,
-- 
Jonathan Horne
http://dfwlpiki.dfwlp.org
freebsd08 [EMAIL PROTECTED] dfwlp.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"