Are you trying to connect remotely? If you are, then you have to use "xhost" to give permission for remote X Clients to connect to your X Server computer. Remember, the X Server is the computer that is connected to the keyboard and mouse that you will be using. The X Client is the computer that runs the program. In other words, the X Server is the local computer, and the X Client is the remote computer.
Example 1: -------------------------------------- X Server hostname: xserver.local.com X Client hostname: xclient.remote.com On the X Server... [EMAIL PROTECTED]:~$ xhost +xclient.remote.com On the X Client (possibly using SSH login)... [EMAIL PROTECTED]:~$ export DISPLAY=xserver.local.com:0 [EMAIL PROTECTED]:~$ gimp & [EMAIL PROTECTED]:~$ -------------------------------------- NOTES: 1. This example assumes the display number used on the X Server is 0. The DISPLAY environment variable on xclient.remote.com should be "xserver.local.com:<display_num>", where <display_num> is the display number being used. 2. Host names can be changed to IP addresses instead. 3. I believe this should work. There may be firewall/NAT issues, but I don't know what ports need to be opened. 4. The '&' in the command "gimp &" is optional. Or, you could use SSH and do it the simple, secure way. Example 2: -------------------------------------- On X Server: [EMAIL PROTECTED]:~$ ssh -X [EMAIL PROTECTED] Password: [EMAIL PROTECTED]:~$ gimp & [EMAIL PROTECTED]:~$ -------------------------------------- Notes 2 - 4 apply to Example 2 as well. Hope this helps, Malcolm. On 10/4/05, 张勇顺 <[EMAIL PROTECTED]> wrote: > On 10/4/05, Bill Marcum <[EMAIL PROTECTED]> wrote: > > > > On Mon, Oct 03, 2005 at 08:42:49PM +0800, 张勇顺 wrote: > > > > > > now i can't uses any gnome program with this user. but i an uses those > with > > > other users > > > i know that is my setting errm i am try to add DISPLAY=LOCALHOST: 0.0 in > > > ~/.bashrc but the problem is the same ...... > > > > > DISPLAY should equal :0.0, but that is set by the X server, not by > > ~/.bashrc. No script should change DISPLAY, unless you are running X > > applications to display on another screen. > > > > > > -- > > Meekness: Uncommon patience in planning a revenge that is worth while. > > -- Ambrose Bierce > > now i am remove > > > DISPLAY=LOCALHOST: 0.0 from ~/.bashrc > problem is always that > [EMAIL PROTECTED]:18:20:28/home/willfullrivatuner#2]$ gedit > Xlib: connection to ":0.0" refused by server > Xlib: No protocol specified > > > (gedit:18828): Gtk-WARNING **: cannot open display: >