Hands on X11
Subject:   Enivronment variables
Date:   2003-03-17 04:43:12
From:   danbenjamin
Response to: Enivronment variables

The two most important settings are PATH and DISPLAY. You'll need to add :/usr/X11R6/bin to your PATH variable, and will need to create a new shell variable, DISPLAY, and set it to :0.0

In bash, you'd do this:

export PATH=/usr/bin:/bin:/usr/sbin:/sbin:/Users/username:/usr/X11R6/bin

export DISPLAY=:0.0

If you're using tcsh, you'd do:

set PATH=/usr/bin:/bin:/usr/sbin:/sbin:/Users/username:/usr/X11R6/bin


Be sure to replace username in the above examples with your own username.

Now, after launching X11, you should be able to run commands from the Terminal window instead.

Good luck.

Full Threads Oldest First

Showing messages 1 through 1 of 1.

  • Enivronment variables
    2003-04-23 14:08:01  zankl [View]

    I included the tcsh lines you posted in my home/.cshrc file. However, I still get an Error:can't open display when I try to launch xeyes for example. When I echo $DISPLAY I get :0.0 so everthing seems to be allright. Any ideas whats going wrong?