Hi,

On 11-jul-2006, at 21:46, Kern Sibbald wrote:

>
> PS: more trivia while I have you on the line:
> If anyone on the list understands X privileges, perhaps you could  
> point me to
> what needs to change to make X work between machines.  Previously,  
> I could
> always run a graphical program on any of my computers on my network  
> from my
> development desktop after sshing to the remote machine. Now I find  
> running as
> non-root:
>
>   (on SuSE machine)
>   ssh Fedora-machine
>   yumex (a Python program that uses GTK)
>    yumex
> You are attempting to run "yumex" which requires administrative
> privileges, but more information is needed in order to do so.
> Password for root:
> Traceback (most recent call last):
>   File "/usr/share/yumex/yumexmain.py", line 24, in ?
>     import gtk
>   File
> "/usr/src/build/612051-i386/install/usr/lib/python2.4/site-packages/ 
> gtk-2.0/gtk/__init__.py",
> line 37, in ?
> RuntimeError: could not open display
>
> Normally the "Password for root:" should be in a GTK window.
>
> Or even an ssh from SuSE to SuSE, and execute a Graphical program,  
> I get:
>
> kile: cannot connect to X server
>
> Groan.  I wonder if Novell knows what networking is.  :-)

There are a couple of things to check and/or consider when doing X- 
forwarding over SSH:

- check the local $DISPLAY (before you ssh into the server), which  
should be set
to something like ":0"
- authorize localhost to access the local X server with "xhost  
+localhost" (xhost
without any options displays the current ACL)
- try ssh with the "-Y" switch instead of "-X" (if you're not using  
it already).
- use ssh with at least one "-v" switch. This may give you very  
useful hints to
what's going wrong. It could be something like /usr/X11R6/bin/xauth  
that's missing
on the remote server (multiple -v switches increase verbosity even more)
- check the remote $DISPLAY after you login, which should be  
something like
"localhost:10.0"
- if the remote $DISPLAY does not get set when using ssh -Y, check  
the sshd_config
on the server. There should be a line that reads "X11Forwarding yes"

And, if you didn't know this already, the SuSE distro contains the "/ 
usr/X11R6/bin/sux"
script, which provides a convenient alternative to su (actually just  
a wrapper). This
preserves your X environment variables.

Good luck :-)

Leander


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to