Would you like to move aside the existing file and use the standard X11 environment?
[No] [Yes]

Got this error when loading up Gimp on Leopard, wouldn’t do anything, not even let me select No or Yes. How I fixed it was to delete the file /Users/[username]/.ixinitrc

Open a terminal and type:
rm ~/.xinitrc

Then quit out of X11, and restart whatever application you were trying to use when this happened

Well I ran into a problem a couple of days ago: for some reason, my MacBook stopped being able to renew its IP address in DHCP.  No IP address means no internet.  When I went to “Open Network Preferences…”, I got the classic “self-assigned IP address” thing, which really indicates a failure of your computer to receive a new IP address from the DHCP server. The only way that I could get an IP address via DHCP was:

  • “System Preferences -> Security -> Firewall”
  • selecting “Allow all incoming connections” (turn the firewall off)
  • either renewing DHCP lease or just turning Airport off and then back on

This worked, but things just bother me when they don’t do what they’re supposed to, plus it was a little annoying because it took so long.  Finally, I came across a post at the Apple forums.  I tried a bunch of things that didn’t work, until I finally found one that worked consistently, even after rebooting.  Turns out that the three files configd, mDNSresponder, and nmdb somehow got corrupted.  People say this is from disconnecting the computer from all power without shutting down safely, or by doing a hard shut down (power button held down for 5 seconds)*.  Here’s how you replace the corrupted files:

  1. First find a Mac running your version of OSX that DOESN’T have this same problem.
  2. Find the files configd, mDNSresponder, and nmdb and copy them to a flash drive.
    [The files are located in /usr/sbin.  To get there, open finder and press “cmd+shift+g” simultaneously.  Type in /usr/sbin and click “Go”]
  3. Put the flash drive in your computer, and copy them into /usr/sbin there.
  4. Reboot
  5. You’ll be asked to allow a few things by the firewall, allow them all.
  6. You should be all set!

If this post helped you at all, please comment!  If you have any suggestions on how I can improve my post, please also let me know.

* I don’t buy this explanation of the files getting corrupted, if the programs are running in RAM, which they are, or they wouldn’t be running at all, then how would a hard power off corrupt the files that are on the disk?