I found a problem with Tiger not working with Internet Sharing to both a PowerBook and a Dell laptop. It was a brand new PowerMac G5 with dual Ethernet. The PowerMac G5 obtained an IP address from the internet provider, and would set its internet-shared Ethernet port address to 192.168.2.1. The problem was that the laptops did not receive an IP address, and kept failing over to the automatic IP address of 169.x.x.x.
It turns out that Tiger introduced a GUI firewall feature under the Advanced button on the firewall, and in my zeal to secure the PowerMac G5, I turned on Stealth Mode and Block UDP packets. Internet Sharing only worked once I turned these two options off. Then instantly, everything worked as it should.
It may be possible to configure the firewall and NAT features outside of the GUI, using the Terminal.app and some Unix black magic in the configuration files, so that the stealth mode and UDP blocking only occurs on the external ethernet interface, and not the internal one. However, it seems that the GUI applies these settings to both. I am not sure if the required Personal Web Sharing allows the Apache web server to be exposed to the external interface which would place it in the wild -- and that is something I really don't want to do. I will be recommending an external Linksys router to avoid having to worry about hack attempts. That would negate the entire need for Internet Sharing.
I suspect the problem really rests on Stealth mode, as dhcpd won't be seen and won't respond. This will most likely affect all internet sharing -- i.e. Ethernet, AirPort, FireWire, etc. I unfortunately didn't have time to fully test this out to see exactly what was going on, but I hope this information is useful to someone ... and that those in the know will respond in the discussion.
I've had to figure this out for myself quite some time ago, and I had to look this info up again today, so I figured I may as well share it with everyone else. This method works for me under 10.3 and 10.4 on a Mac, and XP Pro on the PC using an HP Deskjet 5100 connected to the XP Pro box. Here's how I print from the Mac to the PC via SAMBA:
Install your Printer drivers on both the PC and the Mac. Make sure it will print form both machines when directly connected.
Make sure printer sharing is turned on for the PC.
Open Printer Setup Utility (in /Applications/Utilities).
Click the Add Printer button.
Hold down the Option key while clicking on "more printers" (for the Advanced menu).
Select the Advanced menu at the top.
For Device, choose 'Windows Printer via SAMBA.'
Name the device whatever you want.
In the Device URL field, use this format: smb://userName:password@workgroup/computer/printer
Find your exact printer model. If it is not listed where it should be, look under "ESP." If ESP is not there, you will have to install your CUPS and GIMP printer drivers from your OS X install disk.)
That should do it.
[robg adds: We've run various tips on Mac/PC printing, but I couldn't find one just like this, so here it is...]
For those of you who are using SETI@home, you've probably heard about the ongoing transition from Classic SETI@home to BOINC, the Berkeley Open Infrastructure for Network Computing. The transition will be complete as of December 15th, when Classic SETI@home will be cut off.
If you haven't converted yet, I've written a guide that will help make the transition in a much faster hopefully fairly safe manner. Note that this guide isn't for those who just want to install and have it work; it's for those of you who want to 'be a geek' about the transition.
At work, we needed a solution to the .DS_store "problem," since 90% of our clients are Windows boxen. The previously posted solution to prevent .DS_store creation on networked drives only worked for one user account. However, it turns out its fairly easy to configure an OS X client to apply the setting for any user who logs in.
...under a single account, then copy the created plist to /Library/Prefrences. Here's an example of how to do it step by step. Open up Terminal and type the following (the $ is just the prompt; don't type that):
Whenever I visit a cafe, library, or other public place with my laptop, I like to check my AirPort Status in my Mac's menu bar to see what wireless networks are available. But sometimes, if I find myself in a particularly busy place full of 'hotspots,' I would like to be able to view the list of networks sorted by signal strength.
Well, OS X allows you to do just that! First, though, you need to have the AirPort Status menu show up in your menu bar. This is done by going to the Network preferences in System Preferences. In the Network Status drop-down menu, select AirPort. Click on the AirPort tab, then at the bottom, click on the checkbox labeled 'Show AirPort status in menu bar' to enable it. A pie slice-looking icon will then show up in the menu bar.
When you want to see all the wireless networks available to you sorted by signal strength, simply hold down the Option key and click on the AirPort icon on the menu bar. The networks will then be sorted by signal strength, from strongest to weakest.
[robg adds: This definitely seems to work, and in both 10.3 and 10.4 (I tested both). I have two wireless networks visible from my home, and pressing the Option key puts the stronger signal at the top of the list.]
Over in this thread in the MacRumors forums, reader Wombert wondered about a script to automatically connect to a Cisco VPN on network change. Near the bottom, Wombert himself solved the problem and provides the scripts necessary to do so.
With the recent release of Mario Kart DS and Tony Hawk: American Sk8land, Nintendo has launched its new WiFi service. If you've got an OS X box with internet access (other than through the AirPort card), and an AirPort card to transmit from, you can get online in no time.
Read on for a step-by-step guide that should have enough detail to be followed by a networking novice...
I've been trying to implement David Allen's Getting Things Done productivity system, in particular the to-do lists, for a little while. This hint isn't exclusive to that system -- it would work for any to-do list, or any document that a single user wants to edit from multiple locations, for that matter.
My main criteria for a useful to-do list were that the lists be available from any of my three computers at any time, and that they be as easy as possible to use (including drag-and-drop list ordering -- I can't stand having to set priority numbers!). For a while, I optimized on my first criteria by using an online wiki, but the editing wasn't nearly as drop-dead easy as a native Cocoa app. I considered using OmniOutliner, which has a much better interface, but keeping track of different versions of the to-do list would be more of a hassle than I wanted.
Finally I found a happy medium: an Applescript wrapper for OmniOutliner that will automatically sync to my main machine before and after I make changes.
Apple uses Broadcom chipsets in their AirPort cards (at least the 802.11g ones), and a lucky little thing in both Tiger and Panther (maybe Jaguar, too) is that if you have a Broadcom chipset connected via the PCMCIA slot in your computer, the OS will treat it as if an AirPort card had been installed -- with no configuration or software whatsoever.
Now, even better, Broadcom sells their chips to generic manufacturers, which allowed me to schlep down to Fry's Electronics and purchase a "PC only" generic wireless 802.11g notebook adapter for $14 (with a Broadcom chipset), slap it in my PowerBook (that's really all you've got to do), and enjoy wireless connectivity at a greater speed and price that would have otherwise been possible.
I have been testing this out on my 500mhz PowerBook G4, and it has been working as primary mode of connectivity for some time now (about five months), and has let me get wireless on my laptop (802.11g, even) for a grand total of $14, compared to the $120ish Apple would have charged me for an original AirPort card (that is slower).
This method is "plug and play," as in you put the card in, go into Network Preferences, and it says that you now have AirPort (you can even drag the PCMCIA icon out of the menu bar for that clean look). However, it isn't "unplug and play again without a restart." You cannot take the card out while the computer is on and the put it back in again. For some reason in both Panther and Tiger, it requires a restart for the system to recognize the card as an AirPort card again. You also cannot use the PCMCIA menu to turn the card off, then turn it back on again and use it.
Workarounds: You can turn off AirPort using the AirPort drop-down menu. As far as I can tell, this accomplishes the same end. While your computer is asleep, you can take the card out and put it back in before the computer wakes up (for transporting in a small case, for example), and your computer will be none the wiser. If you don't put it back in before the computer wakes up, then you will have to restart, which is a pain for those of us who try to have run times measured in months rather than days (though following a few guidelines can prevent restarting from ever having to happen).
This is sort of a "try at your own risk thing," as I have no idea whether this method works on computers other than my own, though I have no idea why it wouldn't.
When I'm surfing the web at home, I am easily able to use my DNS server to block content that I don't want to see on web sites. Though I'm using a Gentoo box (can't quite afford the nice Mac server I want), this hint covers this process on an OS X box.
Since I have a PowerBook and often surf the web at all sorts of places, I got to thinking of a way to do this locally. With DNS, adding a simple 'deny' entry is easy, but using someone else's DNS server usually means I don't have access to their config files.
Another way to do this is to redirect the DNS to point to a false IP address. The easy way to do this is to use /etc/hosts. By aliasing the DNS name of a site I want to block to 127.0.0.1, I can block all traffic to that site. Using sudo nano -w /etc/hosts, add the DNS names of the sites you want to block after the IPv4 localhost entry, separated by spaces.
No logout or restart is needed, just a refresh of the page. Since this blocks the site at the DNS level, this should work with any web browser.
Of course, I do not recommend using this on all ads, especially on free sites you support, since those sites most likely make a good portion of their money off of ads, thus keeping their site free! I do recommend this solution on sites with an excessive amount of ads (including pop-ups and/or pop-unders), or sites that have ads not particularly appropriate to a school or workplace environment.
[robg adds: Yes, it's easy to block ads. And yes, there are many ways to do it either within a given browser or system-wide, as shown here. And there are sites out there that take ads to the extreme, to the point where it's impossible to read the pages due to the amount of distraction one sees. But please, heed the author's advice about the sites you enjoy reading each day -- if everyone blocks ads all the time, then the future of the free web isn't necessarily good. Here on macosxhints, I don't directly make money off the ads on the site, but the ad revenue helps to pay my salary, and keeps the site (including the huge archive) free to readers. That's a good thing...]