Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

My X11 crashes if I have the following .xinitrc

My .xinitrc

exec /Users/Masi/.cabal/bin/xmonad

I am not sure where the bug is.

Files which I know affects the startup are

  1. ~/.cabal/bin/xmonad
  2. (perhaps): ~/xmonad.hs
  3. ~/.xinitrc

I have completed the steps in the tutorial.

Which files do control XMonad's startup in Mac (Leopard)'s X11?

share|improve this question
What problem did theman's answer solve, and what problem is persisting? – Clinton Blackmore May 29 '09 at 3:25
@Clinton: We know now that the bug is in my .xinitrc -file. It seems that the problem is in XMonad in Mac. I have no idea where to debug. -- I have reinstalled the packages. -- This suggests me that the problem is a combability issue. – Masi May 29 '09 at 19:01
up vote 1 down vote accepted

1. ~/.xinitrc

this guy gets called when you type "startx". Mine looks like this:

exec /Users/theman/bin/dwm

I bet your problem is this file. This is called when X starts. dwm is my window manager, if that path doesnt exist, its trying to execute somethign that isnt there, and obviously will crash. reply with your ~/.xinitrc

2. ~/.Xresources

not quite sure

3. ~/.Xmodmap

this is key bindings and such

4. ~/.Xsession

not quite sure

5. ~/.Xdefaults

this sets defaults, such as background color, for your terminal and/or other X apps

6. ~/.Xauthority

not quite sure to be honest

Also, what version os and X are you using?

share|improve this answer
@Theman: The problem is now in XMonad. It makes my Mac to X11 to crash. – Masi May 29 '09 at 19:03
@theman: Thank your for your answer! It solves the first problem in locating the bug. – Masi May 29 '09 at 19:07

Do you get anything useful logs in console?

share|improve this answer
I added two log messages. The first process is being forced quit. I am sure why. Either it is me or an external program. – Masi May 28 '09 at 16:22

fseventer will let you see what files are in use, graphically. (Try fs_usage if you want a command-line app.)

One more file to look at is ~/Library/Preferences/org.x.X11.plist.

share|improve this answer
Is fseventer open-source? I could not find its source code. – Masi May 28 '09 at 19:18
fseventer is not open-source but it is donationware. (Freeware but he does ask for donations if you find it useful) – Chealion May 28 '09 at 22:26

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.