Author: Andreas Guettinger
Date: 01:15:45 07/26/04
Go up one level in this thread
On July 26, 2004 at 00:22:11, Eric Jensen wrote: >On July 25, 2004 at 17:48:16, George Sobala wrote: > >>On July 25, 2004 at 16:31:51, Eric Jensen wrote: >> >>>Alright: I think this is my problem. When I try to run it in X11, it doesn't >>>follow the right path. When I use teh regular terminal, it doesn't have the >>>right display environment. What I think I'll do is start over with Xfree86 now >>>that I have fink... uninstall and reinstall scid and xboard if I have to, and >>>that (I hope) should fix my problem as I understand it, although my >>>understanding is shaky at best. >>> >>>If however, that doesn't work, I'll probably have more questions. >> >>Put the following line at the start of your .profile file and Terminal will find >>the X11 display properly: >> >>export DISPLAY=:0.0 >> >>( You can test this just by typing the above line in a Terminal and then typing >>xboard or scid , but unless it is in .profile your Terminal will not remember it >>for next time ) >> >> >>Also, what does your >> >>echo $PATH >> >>show? > >Hopefully this will clarify everything: > >I have TWO terminal windows... one is the terminal window... and another is an >X11 terminal window that I have from installing X11... X11 apps dont really work >in the original terminal window. my PATH for the X11 terminal window (echo >$PATH) is: That is correct. I start X11 apps always from the X11 (xterm) Terminal. >/usr/bin:/bin:/usr/sbin:/sbin:/Users/ericjensen:/usr/X11R6/bin > >that works for X11 stuff > >my normal terminal reads: >/sw/bin:/sw/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin > >now... I think I want this to read: >/sw/bin:/sw/sbin:/bin:/sbin:/usr/bin:/Users/ericjensen:/usr/X11R6/bin >and it should then recognize both the fink stuff and the X11 stuff... is that >incorrect? secondly... in the old terminal: export DISPLAY=:0.0 does nothing. it >says it can't open display: 0.0 No. The problem is that your X11 xterm Terminal does not include /sw/bin and /sw/sbin, means it does not do . /sw/bin/init.sh. Here is the path of my Terminals: Apple Terminal: /sw/bin:/sw/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin:./:/usr/local/bin X11 terminal: /sw/bin:/sw/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/andreas:/usr/X11R6/bin:./:/usr/local/bin I think I remeber that the X11 terminal reads the .bashrc file, not the .profile. Just do a 'cp .profile .bashrc' in your home directory and try again. >lastly, I do not know how to change the path because when i try to save teh >.profile file pico returns "cannot open file for writing" even after the chmod >u+w .profile thing... so what should I do? The error message of pico means you have not the permissions to write over the file. Maybe you copied the .profile from /etc/profile, which needs root permissions. Try to change the permissions of the .profile in your home directory with 'sudo chown <yourusername> .profile' or make a new .profile file. And do this before copying it to .bashrc. No need to reinstall stuff. You cannot install stuff in the wrong order with fink, and fink should not touch you Apple X11 stuff. regards Andy
This page took 0 seconds to execute
Last modified: Thu, 15 Apr 21 08:11:13 -0700
Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.