[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

Re: Problem with xwindows



On Wed, 28 Jul 1999, Rajesh Pandey wrote:

> Can't connect to X11 window server using ':0.0' as the value of the
> DISPLAY variable.

Welcome to Unix Security!

You need to do two things:

1) First tell your X Server that an application (client) run by another
   user can use its services. If the client runs on the same host, this is
   achieved by:
                         xhost +localhost
   This is typically done before you su to the new user or before you
   telnet to another machine (in which case, replace localhost by the
   remote hostname)

2) Second, tell your application, the name of the Xserver to draw services
   from. This is typically done by setting the DISPLAY environment
   variable:
                    export DISPLAY=your_hostname:0.0
   "your_hostname" is only required when you telnet to a remote machine.
   If you merely su to a new user on the same machine, use this: 
                        export DISPLAY=:0.0
 


- --------------------------------------------------------------------
For more information on Linux in India visit http://www.linux-india.org/
The Linux India mailing list does not accept postings in HTML format.

------------------------------