Re: Horrible X11 Problems on OS X (iBook)
Re: Horrible X11 Problems on OS X (iBook)
- Subject: Re: Horrible X11 Problems on OS X (iBook)
- From: Noah Slater <email@hidden>
- Date: Wed, 22 Dec 2004 15:41:43 +0000
Hello,
I was having loads of problems getting X11 to work as well. It all
came down to configuration and startup scripts.
If your xterm is using a default Bash shell and so is Terminal.app
they will of course share the same history as this information is
located in ~/.bash_history
The guy asked you before "What do you have in your shell startup
scripts?" and you pasted the following:
--------------------
export PS1="[\u@\h:\w]\$ "
PATH=${PATH}:/Users/ssebeny/bin
export PATH
--------------------
Which file is this from? There are many, many possible setup and
configuration files.
I do however notice something that may be wrong with this setup. The
PATH declaration may not be picking up it's predefined environment
variable. This may well produce the effect you talk of. As a test to
see if this is the case try running the following commands in
succession in one of your xterms:
$ ls
$ /bin/ls
If the first one fails and the last one doesn't your path must be set up wrong.
Below I have included short versions of some of the main X11/xterm
configuration files I use. Pay close attention to /etc/bashrc on the
line where I set my path. Why don't you try setting your path to
something similar.
-------------------------------------------------------------------------
/etc/profile
-------------------------------------------------------------------------
# System-wide profile file for login shells
[ -r /etc/bashrc ] && source /etc/bashrc
-------------------------------------------------------------------------
-------------------------------------------------------------------------
/etc/bashrc
-------------------------------------------------------------------------
# system-wide bashrc file for interactive bash shells
# set xterm colors
TERM=xterm-color
# set ls colors
export CLICOLOR=1
export LSCOLORS=dxfxAxHxbxgxgxAxAxDxDx
# env paths
PATH='/bin:/sbin:/usr/bin:/usr/local/bin:/usr/sbin:/sw/bin:/usr/X11R6/bin'
export PATH
# default perms
umask u=rwx,g=rx,o=
# fancy prompt
PS1='\u@\h: \w \$ '
# environment variables
export EDITOR='emacs'
-------------------------------------------------------------------------
-------------------------------------------------------------------------
~/.Xdefaults
-------------------------------------------------------------------------
xterm*Font: -*-courier-regular-r-*-*-14-*-*-*-*-*-*-*
xterm*foreground: forest green
xterm*background: black
-------------------------------------------------------------------------
-------------------------------------------------------------------------
~/.Xmodmap
-------------------------------------------------------------------------
-------------------------------------------------------------------------
clear Mod1
keycode 66 = Meta_L
add Mod1 = Meta_L
-------------------------------------------------------------------------
-------------------------------------------------------------------------
~/.xinitrc
-------------------------------------------------------------------------
quartz-wm --only-proxy &
xmodmap ~/.Xmodmap
exec bash -l -c "ion3"
-------------------------------------------------------------------------
I hope this helps.
Regards,
Noah Slater
On Wed, 22 Dec 2004 08:30:47 -0500, Stephen Sebeny <email@hidden> wrote:
> > Some of the questions you should answer:
> >
> > - How do you start X11?
>
> Normally just by double-clicking the X11.app icon. Although I have tried
> launching by typing open-x11 in the Terminal, as well as using the script at
> the URL below.
>
> http://www.chemistry.ucsc.edu/~wgscott/mystuff/zsh/Library/init/zsh/local-fu
> nctions/open-x11
>
> > - Do you have a ~/.xinitrc file and what does it contain?
>
> At the moment I do, it was generated by the following script which I
> believe copies the general system one and just comments out a couple lines.
>
> http://www.chemistry.ucsc.edu/~wgscott/mystuff/zsh/Library/init/zsh/local-fu
> nctions/customize_x11
>
> Although I believe the initial set-up (after clean install) is without a
> .xinitrc file -- so I have definitely tried that configuration as well.
>
> > - How do you start the xterm in which you observe the problem: From the
> > ~/.xinitrc file, from the X11 Applications menu, from the command line
> > in a Terminal.app window, is it the default xterm window that you get
> > without ~/.xinitrc script? If you try one of the other methods, do you
> > get the same result?
>
> Normally the xterm just pops up when I open X11.app. (Except it doesn't
> any more because the that line is commented out at the end of the ~/.xinitrc
> file). I have also tried another xterm window be selecting it from the
> "Applications" menu in X11.app, and the same problems occur. I don't know
> how to open an xterm (X11) from the Terminal (non-X11) so I haven't done
> that. The xterm I see appears to be the same one with or without the
> presence of the ~/.xinitrc file. In everything I've tried I continue to
> observe the same problem.
>
> > - What is your shell?
>
> bash
>
> > - What do you have in your shell startup scripts?
>
> Initially after a clean install, nothing. At the moment only the
> following lines:
>
> export PS1="[\u@\h:\w]\$ "
> PATH=${PATH}:/Users/ssebeny/bin
> export PATH
>
> > - Do you have any other self-made startup scripts, like
> > ~/.MacOSX/environment.plist?
>
> No, I haven't intentionally created any, so I don't believe I have any.
>
> > - Do you see a shell prompt in your xterm where you type your commands?
> > - What exactly do you see there?
>
> (Something like this, I'm not copying & pasting the exact prompt since I'm
> on a different machine.)
> Stephen-Sebeny's-Computer:~ ssebeny$ ls
> Stephen-Sebeny's-Computer:~ ssebeny$
>
> The problem is that there is no output seen from the ls command. Even a
> command like sleep 60, will immediately produce a new prompt without waiting
> 60 seconds.
>
> Hopefully this will give someone an idea. Thanks!
>
> -----
> Stephen M. Sebeny
> email@hidden
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> X11-users mailing list (email@hidden)
>
> This email sent to email@hidden
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden