We were able to get xclock to display one the local machine using VNC Viewer, after following your suggestions. Thanks! Is it possible to get an xwindow to display directly to a windows XP laptop connected remotely? If so, does the XP machine need additional software to display it? I've tried setting the display variable to that of my laptop; running xclock seems to pause my remote session until I ctrl-c out of it, but it does not display anything. -----Original Message----- From: redhat-list-bounces@xxxxxxxxxx [mailto:redhat-list-bounces@xxxxxxxxxx] On Behalf Of Rhugga Harper Sent: Friday, 11 November 2005 9:11 AM To: General Red Hat Linux discussion list Subject: Re: Non-root users cannot run Xwindow That means that user doesn't have permission to use the local xserver. Typically the user that logs into the console 'owns' the display. The easy fix is this: As the user logged into the console: xhost + Then as the using you want to run the X app: export DISPLAY=localhost:0.0 (probably not needed but depends on envrionment) xterm & That should do it for you. If you are using to access this box, check if the sshd server has X11Forwarding enabled (I believe it is by default for most distro's) Then login an enable X tunnelling: ssh -x <server> Note: You can permanently enabled this in the ssh_config file on your client system, or by creating a $HOME/.ssh/config file. -CC On 11/10/05, Aaron White <awhite@xxxxxxxxxxxxxx> wrote: > > Hi, > > I have a user trying to run windowed apps from command line, without > success. It seems to work okay with root access, but our current > situation does not allow for this. > > For example, trying to open xclock as non-root user gives the error: > Xlib: connection to ":0.0" refused by server > Xlib: No protocol specified. > > Error: Can't open display: :0.0 > > We are connected using VNC Viewer (or remote shell) and do not have > access to the local site. > > Another windowed program gives a java error: > ~/jre/1.4.2/lib/i386/libawt.so: /usr/X11R6/lib/libXp.so.6: > undefined symbol: _Xsetlocale > > I'm not sure if the two are related, but our installation docs suggested > using xclock to help troubleshoot > this problem. Alas, the docs did not mention what to do if xclock did > *not* start. > > Regards, > > Aaron White > Ioppolo & Associates > > > -- > redhat-list mailing list > unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe > https://www.redhat.com/mailman/listinfo/redhat-list > -- redhat-list mailing list unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=subscribe https://www.redhat.com/mailman/listinfo/redhat-list -- redhat-list mailing list unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe https://www.redhat.com/mailman/listinfo/redhat-list