How to run GUI under root in FreeBSD?

Jim Stapleton stapleton.41 at gmail.com
Thu Jan 10 07:41:51 PST 2008


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 $*
========================================


More information about the freebsd-questions mailing list