RE: Non-root users cannot run Xwindow

From: Aaron White (awhite_at_ioppolo.com.au)
Date: 11/11/05

  • Next message: Michael Scully: "RE: Is there a mail client in linux like outlook, which can connect to Microsoft Exchange Server?"
    Date: Fri, 11 Nov 2005 10:39:10 +0800
    To: <me@gavitron.com>, "General Red Hat Linux discussion list" <redhat-list@redhat.com>
    
    

    Thanks to all, our xclock problem seems to be fixed; Xwindows are now
    displaying on my XP machine.

    Can anyone shed some light on the meaning of this error message:

    ~/jre/1.4.2/lib/i386/libawt.so: /usr/X11R6/lib/libXp.so.6: undefined
    symbol: _Xsetlocale

    It's happening when trying to start a java gui app; we had been led to
    believe that this error was something to do with displaying xwindows,
    however that no longer seems to be the problem.

    -----Original Message-----
    From: redhat-list-bounces@redhat.com
    [mailto:redhat-list-bounces@redhat.com] On Behalf Of Gavin McDonald
    Sent: Friday, 11 November 2005 10:14 AM
    To: 'General Red Hat Linux discussion list'
    Subject: RE: Non-root users cannot run Xwindow

    > 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?

    Yes, and yes. either a full-blown Xserver, or at least vncviewer, with
    some
    chicanery at the server-side...

    > 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.

    If you're using SSH, do not change the DISPLAY variable. SSH is
    supposed to
    take care of that itself...

    -G

    Regards,

    Gavin McDonald
    ========================
    EVI Logistic Enterprises
    email: me@gavitron.com
    phone: (604) 313-3845

    > -----Original Message-----
    > From: redhat-list-bounces@redhat.com [mailto:redhat-list-
    > bounces@redhat.com] On Behalf Of Aaron White
    > Sent: Thursday, November 10, 2005 6:00 PM
    > To: General Red Hat Linux discussion list
    > Subject: RE: Non-root users cannot run Xwindow
    >
    > We were able to get xclock to display one the local machine using VNC
    > Viewer, after following your suggestions. Thanks!
    >
    >
    >
    >
    > -----Original Message-----
    > From: redhat-list-bounces@redhat.com
    > [mailto:redhat-list-bounces@redhat.com] 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@ioppolo.com.au> 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@redhat.com?subject=unsubscribe
    > > https://www.redhat.com/mailman/listinfo/redhat-list
    > >
    > --
    > redhat-list mailing list
    > unsubscribe mailto:redhat-list-request@redhat.com?subject=subscribe
    > https://www.redhat.com/mailman/listinfo/redhat-list
    >
    >
    > --
    > redhat-list mailing list
    > unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
    > https://www.redhat.com/mailman/listinfo/redhat-list

    -- 
    redhat-list mailing list
    unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
    https://www.redhat.com/mailman/listinfo/redhat-list
    -- 
    redhat-list mailing list
    unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
    https://www.redhat.com/mailman/listinfo/redhat-list
    

  • Next message: Michael Scully: "RE: Is there a mail client in linux like outlook, which can connect to Microsoft Exchange Server?"

    Relevant Pages

    • Re: Whats the difference between xclock and clock & ?
      ... desktop running Linux over ssh and try to execute xclock locally via ... Error: Can't open display: ... The shell has no part in displaying or not displaying xclock. ... Also, you mention a laptop, but you don't explain whether that's ...
      (comp.unix.programmer)
    • RE: Non-root users cannot run Xwindow
      ... We were able to get xclock to display one the local machine using VNC ... Viewer, after following your suggestions. ... Is it possible to get an xwindow to display directly to a windows XP ...
      (RedHat)
    • Re: Whats the difference between xclock and clock & ?
      ... desktop running Linux over ssh and try to execute xclock locally via ... Error: Can't open display: ... Also, you mention a laptop, but you don't explain whether that's ...
      (comp.unix.programmer)
    • RE: Non-root users cannot run Xwindow
      ... > Is it possible to get an xwindow to display directly to a windows XP ... > We were able to get xclock to display one the local machine using VNC ... >> I have a user trying to run windowed apps from command line, ...
      (RedHat)
    • Re: [SLE] Remote login to SuSE box
      ... I constantly use my SuSE File,print,fax... ... about XWindows and how it works. ... machine than the actual display being drawn on. ... forsaw the usage of SSH to remote execute ...
      (SuSE)