Women in Technology

Hear us Roar

  Hands on X11
Subject:   Enivronment variables
Date:   2003-03-16 17:30:15
From:   anonymous2
(Take two... ahem....)

It would be preferable to dispense with the X11 xterm altogether, and work through one's customized Terminal.app setup. So what environment variables need to be set, as X11 reportly does already, so that X-windows programs can be launched from Terminal? What is the best way to set these variables? What are the possible adverse consequences? TIA.

Full Threads Oldest First

Showing messages 1 through 2 of 2.

  • Enivronment variables
    2003-03-17 04:43:12  danbenjamin [View]

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