Trial solution for kernel panics
- This is a fix for Apple's lookupd, which is a Unix daemon (background process) which translates URLs and server names into IP addresses. Nothing can be located on the internet without an IP address, so this daemon is crucial for being able to web browse, get email, and many other things.
- Unfortunately Apple's lookupd appears to be rather fragile and seems to break easily. This may be one reason, for example, why Mail app is always asking for passwords over and over again for email accounts. This should fix that, and any web browsing issues you may have.
- This fix will set up your Mac as a DNS server. It also involves 2 downloads, both of which are free of charge.
- It has also been suggested that this fix may somehow address the kernel panics that some dual CPU Mac users have been experiencing with Azureus. I don't know how, or why, but anyhow, it's worth trying.
- Not all name server configurations replace lookupd with named. This one does. Please see here: http://www.macwrite.com/criticalmass/mac-os-x-hosts-regrouped.php
- So if you have a name server configured and are wondering why this procedure does not solve the kernel panic issue for you, This Is Most Likely The Reason. And if you have any configurations setup in your /private/etc/hosts file, then these will no longer function, as with this configuration, the /private/etc/hosts file is not read. I am currently working on a workaround for this. Further updates will be posted here.
--END OF NEWSFLASH--
- This fix is from macfixit.com, via the user known as "Freelancer" posting on Apple's discussion boards, plus my modifications to the procedure to make everything generally a bit more user friendly:
I strongly recommend you begin this procedure by following the instructions for a Clean install first, before you do anything else. And trash all your config files, you can reload all your torrents afterwards. OK? Sorry, but better to be safe. Right, on with the show:
1) OnyX: download and install using the installer:
2) Run OnyX, it will ask you for your admin password. This is normal, please give it.
3) Click on the Finder tab of preferences (it will make a cute "popping" sound)
4) Tick the box to display Hidden and System Files
5) Click on the execute button in that section of the box. You will see lots of new files in the finder window now. (Open a finder window to confirm this)
6) Quit OnyX.
7) Skeleton Key: Download:
8) Drag the Skeleton Key icon from the unarchived disk image into Applications
9) Then drag the Skeleton Key icon from Applications to the side bar of the finder, so you can drag files onto it.
10) Go to Textedit, in Applications, and drag it's icon onto the Skeleton Key icon in the side bar of the finder. Please give your admin password at the prompt. An empty text window will appear, as well as a small window that says "I am the panel". This is normal.
11) OK, now click on the disk image of your hard drive in the top left panel of the finder window.
12) Click on the folder called private
13) Then click on the folder called etc. Inside there are 2 files that concern us, hostconfig and named.conf
14) Select each and duplicate with command-D
15) Rename the copies to respectively hostconfig.old and named.config.old or something similar. This is just in case the originals are needed again sometime.
16) Now drag hostconfig onto the textedit icon in the dock, the one that should now have a black triangle underneath it. A new text window will open with the contents of hostconfig in it.
17) One line is to be changed here:
- must be changed to:
18) Save the change in textedit using command-S
19) Now go to /private/etc/ and drag the file named.conf to the textedit icon in the dock with the black triangle under it, just like before.
20) Again, one line needs to be changed here:
// query-source address * port 53;
- must be changed to:
query-source address * port 53;
- It is uncommented. In other words, take the slashes out at the beginning of the line. That is the only change.
21) Save the change using command-S
22) Quit Textedit and Skeleton Key
23) Now go to Applications/Utilities and find the Terminal utility.
24) Double click on the icon to run it. A small white window will appear that says Welcome to Darwin, and there will be a prompt with your username in it. This is all good. We will now start the named server, so to do this:
25) In Terminal, please type:
then hit return.
26) Give your administrator password at the prompt and hit return again.
27) Quit Terminal
- Note: If you really really really don't feel comfortable using Terminal, you can substitute steps 23-27 by opening a Finder window, clicking on the icon for your hard drive in the upper left panel of the Finder window, click on the folder called usr, then click on the folder called sbin, and double click on the named file with the dark rectangular icon next to it. This is the unix executable file that is being run by the Terminal command. Give your administrator password at the prompt. Then continue on to step 28.
28) Then, run System Preferences. Click on the blue apple in the top left corner of your screen in the menu-bar. Select System Preferences.
29) Click on the Network pane. Under Location: Automatic and under Show: either Built-in Ethernet or Airport or whatever you are using.
30) Under the TCP/IP tab, in the DNS Servers field, make the first listed server:
This means, put the cursor at the beginning of the line, type in 127.0.0.1 followed by no space, a comma, no space, and then leave the next DNS server(s) you have there.
31) Click Apply Now. This will result in each server being shown on a separate line - this is normal.
32) Quit System Preferences
33) Run Azureus 22.214.171.124 and go to Configuration>Transfer>Slowly connect new peer connections, and make sure this option is enabled by ensuring the box there is ticked.
34) There is no step 34, you're all done! :D
- Note: You do not need to do anything more to maintain this fix. The startup line in Terminal was because the named server was not already running, and so the purpose of that was to start it immediately. But because of the changes made to hostconfig and named.conf, those changes will remain after a restart, and you will not need to do anything for the named server to be running, it will now automatically run at startup. Wheeee.... :)
- Please, please report back to the Sourceforge thread on kernel panics whether or not this fix works for you.
THIS IS OUTDATED SOLUTION! FOR LION WILL NOT BE WORKING (probably)
Read the Azureus FAQ