Date: Thu, 10 Jan 2008 10:41:49 -0500 From: "Jim Stapleton" <stapleton.41@gmail.com> To: freebsd-questions@freebsd.org Subject: RE: How to run GUI under root in FreeBSD? Message-ID: <80f4f2b20801100741m1d5aec14p6801f68742d49843@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
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 $* ========================================
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?80f4f2b20801100741m1d5aec14p6801f68742d49843>