Re: [Fink-beginners] RE: $PATH for Apple X11
Hi Steffen, On Tue, 16 Dec 2003 09:33:07 +0100, Steffen Lund Hokland wrote: Thanks to Alexander and Eric for the suggestions. However the problem persists since: open /sw/bin/pathsetup.command will just open a new Terminal.app window and tell me that all is fine (also when the command is issued in a X11 window). Editing the .profile does not help, since for some reason X11 does not load this file on startup. It does load .bashrc though, but Terminal.app doesn't. I tried: source .profile I am a bit confused right now about your setting so I suggest that we start over again but backup the existing settings. First move your bashrc to bashrc.old by using mv .bashrc .bashrc.old and let only the .profile in your Homedirectory. Do the same with your .profile or .bash_profile. Now no active bash Configfiles should be in your Homedirectory. What happens if you now try the /sw/bin/pathsetup.command? Does everythink work fine if so than something was meesed up and only god knows what or some persons more unix geeky than me. If this doesn't help go to the /etc directory and there you will find a bashrc file too. This is the systems default one. Take a closer look at it and see if it has something in it that is in opposite to your .bashrc in the Homedirectory. Maybe terminal gets confused and doesn't know which bashrc to read. By default the one in your homedirectory is read first and then the systems one. in the .basrc file which *will* give me the /sw tree, still No, the .profile or .bash_profile *will* give you the /sw tree. leaves out all of Gerben Wierda's $PATH changes since they reside in /etc/profile. Should I 'souce' this file as well? Try it *but backup the old one*. HTH Eric Hoch -- ## Ansprechpartner Anwenderunterstützung, users-Mailingliste ## War unsere Hilfe erfolgreich? Bitte teilen Sie es uns mit. Danke. ## de.OpenOffice.org - Office für MacOS X, Linux, Solaris Windows ## Netikette? http://www.eschkitai.de/openoffice/netikette.html --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ___ Fink-beginners mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/fink-beginners
Re: [Fink-beginners] RE: $PATH for Apple X11
On 16 déc. 2003, at 13:49, Steffen Lund Hokland wrote: [] However X11 still doesn't read .profile. [] This enables me to run fink and tex stuff and produces the same output of echo $PATH in both X11.app and Terminal.app. I think you should *not* try to play around with your shell startup scripts (although it may be too late for this advice now). You should start by trying to ask the right question. You keep comparing X11.app and Terminal.app. This is comparing not apples and oranges but single apples and whole orange trees. X11.app is the X server, that is basically the whole X windowing system. What you are (probably) talking about is X11's equivalent of Terminal.app, namely xterm. xterm is one of many other possible applications running under X11. X11.app just happens to open one naked unconfigured xterm window by default when it is started and no ~/.xinitrc file is found. This is an unfortunate default configuration, IMHO, exactly because of reactions like yours. It is also an unfortunate decision by Apple to call this xterm Terminal. The better default behavior of X11.app would be to do nothing, just to start the X server and then stay in the background (and this is what happens if you have a ~/.xinitrc file). The user can then always open an xterm or any other X11 application. In this case, one has a better control of which of the hundreds of possible startup parameters of xterm are set. In particular, xterm should run a login shell, which would make your problem disappear. What you can do is, for exmple: 1. Create a ~/.xinitrc file containing three lines like source /sw/bin/init.sh xterm -ls -sb -sl 2000 -rightbar -fn 6x13 exec quartz-wm or 2. Create a ~/.xinitrc file like in 1., but without the second line. Forget about xterm and use Terminal.app windows instead. If you export DISPLAY=:0 you can start any X11 program from the command line in your Terminal.app window, and you have a much better environment than in xterm. You can even start an xterm from the command line if you need one, and it will inherit your PATH variable from your Terminal.app environment. -- Martin --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ___ Fink-beginners mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/fink-beginners
Re: [Fink-beginners] RE: $PATH for Apple X11
Dear all, Thanks Eric, Alexander and especially Martin for putting me straight :-) On 16/12-2003, at 14.48, Martin Costabel wrote: I think you should *not* try to play around with your shell startup scripts (although it may be too late for this advice now). You should start by trying to ask the right question. You keep comparing X11.app and Terminal.app. This is comparing not apples and oranges but single apples and whole orange trees. or 2. Create a ~/.xinitrc file like in 1., but without the second line. Forget about xterm and use Terminal.app windows instead. If you export DISPLAY=:0 you can start any X11 program from the command line in your Terminal.app window, and you have a much better environment than in xterm. You can even start an xterm from the command line if you need one, and it will inherit your PATH variable from your Terminal.app environment. I have removed the bogus ~/.bashrc file, and created a .xinitrc as prescribed by Martin, containing the lines: source /sw/bin/init.sh exec quarz-wm and have subsequently been able to launch X-apps from Terminal.app. I've added the line export DISPLAY=:0 to my ~/.profile, and it works great. Thanks again, Steffen -- Martin There was a young lady called Bright who could travel much faster than light. She departed one day in a relative way and returned on the previous night ___ Steffen Lund Hokland, Ms. Sc. Research Assistant The MR-Research Centre Inst. of Exp. Clinical Research University of Aarhus Skejby University Hospital DK-8200 Aarhus Denmark Phone Office: +45 89495264 Phone Home : +45 86166608 Phone Mobile: +45 61307461 e-mail : [EMAIL PROTECTED] ___ --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ___ Fink-beginners mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/fink-beginners
Re: [Fink-beginners] RE: $PATH for Apple X11
Btw another fix for this, if you aren't running X all the time and don't feel like playing w/ the DISPLAY variable is to alias xterm to run the login shell always i.e. alias xterm='xterm -e bash -l' On Tue, 16 Dec 2003, Steffen Lund Hokland wrote: Dear all, Thanks Eric, Alexander and especially Martin for putting me straight :-) On 16/12-2003, at 14.48, Martin Costabel wrote: I think you should *not* try to play around with your shell startup scripts (although it may be too late for this advice now). You should start by trying to ask the right question. You keep comparing X11.app and Terminal.app. This is comparing not apples and oranges but single apples and whole orange trees. or 2. Create a ~/.xinitrc file like in 1., but without the second line. Forget about xterm and use Terminal.app windows instead. If you export DISPLAY=:0 you can start any X11 program from the command line in your Terminal.app window, and you have a much better environment than in xterm. You can even start an xterm from the command line if you need one, and it will inherit your PATH variable from your Terminal.app environment. I have removed the bogus ~/.bashrc file, and created a .xinitrc as prescribed by Martin, containing the lines: source /sw/bin/init.sh exec quarz-wm and have subsequently been able to launch X-apps from Terminal.app. I've added the line export DISPLAY=:0 to my ~/.profile, and it works great. Thanks again, Steffen -- Martin There was a young lady called Bright who could travel much faster than light. She departed one day in a relative way and returned on the previous night ___ Steffen Lund Hokland, Ms. Sc. Research Assistant The MR-Research Centre Inst. of Exp. Clinical Research University of Aarhus Skejby University Hospital DK-8200 Aarhus Denmark Phone Office : +45 89495264 Phone Home: +45 86166608 Phone Mobile : +45 61307461 e-mail: [EMAIL PROTECTED] ___ --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ___ Fink-beginners mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/fink-beginners _ Avijit Ghosh, Ph.D. Drexel University Asst. Professor Department of Physics Phone: 215-895-2726Philadelphia, PA 19104 Fax: 215-895-5934 e-mail: [EMAIL PROTECTED] --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278alloc_id=3371op=click ___ Fink-beginners mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/fink-beginners
RE: [Fink-beginners] RE: $PATH for Apple X11
Or if you don't want to alias it, you can change the Terminal item in the X11 Applications menu to run xterm -e bash -l instead of just xterm. -- Alexander K. Hansen Levitated Dipole Experiment http://www.psfc.mit.edu/LDX -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Avijit Ghosh Sent: Tuesday, December 16, 2003 6:20 PM To: [EMAIL PROTECTED] Subject: Re: [Fink-beginners] RE: $PATH for Apple X11 Btw another fix for this, if you aren't running X all the time and don't feel like playing w/ the DISPLAY variable is to alias xterm to run the login shell always i.e. alias xterm='xterm -e bash -l' On Tue, 16 Dec 2003, Steffen Lund Hokland wrote: Dear all, Thanks Eric, Alexander and especially Martin for putting me straight :-) On 16/12-2003, at 14.48, Martin Costabel wrote: I think you should *not* try to play around with your shell startup scripts (although it may be too late for this advice now). You should start by trying to ask the right question. You keep comparing X11.app and Terminal.app. This is comparing not apples and oranges but single apples and whole orange trees. or 2. Create a ~/.xinitrc file like in 1., but without the second line. Forget about xterm and use Terminal.app windows instead. If you export DISPLAY=:0 you can start any X11 program from the command line in your Terminal.app window, and you have a much better environment than in xterm. You can even start an xterm from the command line if you need one, and it will inherit your PATH variable from your Terminal.app environment. I have removed the bogus ~/.bashrc file, and created a .xinitrc as prescribed by Martin, containing the lines: source /sw/bin/init.sh exec quarz-wm and have subsequently been able to launch X-apps from Terminal.app. I've added the line export DISPLAY=:0 to my ~/.profile, and it works great. Thanks again, Steffen -- Martin There was a young lady called Bright who could travel much faster than light. She departed one day in a relative way and returned on the previous night ___ Steffen Lund Hokland, Ms. Sc. Research Assistant The MR-Research Centre Inst. of Exp. Clinical Research University of Aarhus Skejby University Hospital DK-8200 Aarhus Denmark Phone Office : +45 89495264 Phone Home: +45 86166608 Phone Mobile : +45 61307461 e-mail: [EMAIL PROTECTED] ___ --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ___ Fink-beginners mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/fink-beginners _ Avijit Ghosh, Ph.D. Drexel University Asst. Professor Department of Physics Phone: 215-895-2726Philadelphia, PA 19104 Fax: 215-895-5934 e-mail: [EMAIL PROTECTED] --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278alloc_id=3371op=click ___ Fink-beginners mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/fink-beginners --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id78alloc_id371op=click ___ Fink-beginners mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/fink-beginners
Re: [Fink-beginners] RE: $PATH for Apple X11
On Dec 16, 2003, at 10:16 AM, Alexander K.Hansen wrote: Both the use of a .xinitrc file and setting the DISPLAY environment variable are already in Running X11. -- Alexander Hansen Levitated Dipole Experiment http://www.psfc.mit.edu/LDX On Dec 16, 2003, at 10:59 AM, Scot Johnson wrote: This is extremely helpful advice! Perhaps this advice (and some of the preceding philosophical discussion, which I snipped) can somehow be incorporated into the X11 documentation on the fink website? Thanks again to our regular contributors (i.e. Martin Costabel, Alexander Hansen, and Ranger) who protect us from ourselves :) __ Scot --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278alloc_id=3371op=click ___ Fink-beginners mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/fink-beginners I went back and reread the Running X11 section of the website. You're correct. I knew of the .xinitrc file info but I had missed the Launching X11 apps from Terminal.app section of the website. Those are great tips. Thanks again. __ Scot --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278alloc_id=3371op=click ___ Fink-beginners mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/fink-beginners