I've gotten tired of having to change my location every time I open my notebook at home or at school/work. So I have adjusted my crontab as follows:
0 8 * * 1,2,3,4,5 scselect School
40 14 * * 1,2,3,4,5 scselect Home
Translated, I have it change my network location to School every weekday at 8 AM (the time I'm scheduled to be at school) and back to my Home location when I'm expecting to be home from school.
The only catch is that I don't think this will execute when my computer is asleep (unless this changed with Panther), so I used Fink to install anacron which executes cron commands as soon after their scheduled times as possible, rather then right at the scheduled time.
I have a few headless servers that I maintain with Apple Remote Desktop (ARD) over the Internet. This is not a tutorial on ARD or ssh, but a way to put simple tools together to make things more secure. I don't fully trust the ARD protocol, so I don't want to leave the port open. It is not possible to use ARD over ssh because ARD uses UDP packets that ssh can't forward the same way IPSec tunnels allow to. But IPSec tunnels can be a pain to configure and maintain, and are certainly not within reach of everyone. The servers all sit behind AirPort base stations set to only forward port 22 (ssh) to them. The ssh daemon is running on all servers.
Recently, I was using SMB to send a folder from my PowerBook over to a Windows 2000 machine. Unfortunately, when I tried to access the folder from the Windows computer, I received messages telling me the folder was not accessible. I assumed something had gone wrong in the copy, but when I tried to get rid of it, I got the following error:
Cannot Delete File: Cannot Read From The Source File Or Disk
No amount of effort would let me get at, or get rid of, the folder. Windows knew it was there, but wouldn't let me at it. It turns out the problem was that the folder name ended in a period, and Windows hates that. It hates it so much, in fact, that it wouldn't even let me rename the file to fix the problem.
The solution? Rename the file from the Mac side. I remounted the volume, removed the period, and the problem was solved.
Discovery through adversity once again. After applying the AirPort 3.2 update on my Powerbook G4 1GHz (sans-AirPort extreme), I discovered Virtual PC 6.1 with virtual switch (DHCP) could no longer "see" Mac OS X and vice-versa, both on the AirPort interface logged into an AirPort network. This lead to desperate experimentation that panned out.
Caveat: no testing beyond my experience of AirPort 3.2 update / Panther / VPC 6.1. AirPort card and built-in Ethernet required. Mileage probably will vary.
The amount of free space on my 40 GB hard drive has been continuously decreasing since I bought it, so I decided to go through and delete space wasters. I began my search by looking for exceptionally large files/folders. It was then that I discovered 8 GB of junk in my publicly-available Drop Box.
Someone on my residence hall's network was using my Drop Box as free storage space for illegal copies of copyrighted works. After I finished watching Kill Bill and Texas Chainsaw Massacre, I promptly set about patching my newfound security hole:
Purge Unwanted Files — Your drop box can be found at ~/Public/Drop Box.
Change Permissions - With the Drop Box folder folder selected in the finder, press COMMAND+I to show information for your Drop Box. In the window that appears, change the setting for Others to "No Access." If it is hidden, the setting can be found in the Ownership & Permissions section.
Although my free space is still dwindling, the 8 gigs I recovered will be more than enough to get me through the month.
I am used to manually configuring the ipfw firewall since 10.1. As reported in various sites on the net, I created an /etc/ipfw.conf file with all the rules I wanted. I also created an ipfw directory under /Library/StartupItems/, in which I placed two files: ipfw, containing these lines:
In Panther, this configuration stopped working. At the login window, the beach ball started to spin indefinitely and I had to reboot in single user mode and disable the ipfw startup item. Finally, I changed Requires = ("Resolver"); to Requires = ("Super Server");, and now it works again. I tried several reboots without any problems -- I can login and the ipfw rules I defined are active.
This hint is the result of a successful attempt to use Carbon Copy Cloner to back up my system drive to a shared Windows mount. Back when I had 10.2, I tried several times to use Disk Copy to create a disk image on a mounted NTFS Windows folder via OS X's built-in Samba. The creation process always stalled out after a half Gig or so out of the 10 Gig image I was trying to make. But this time around, with Panther using Disk Utility, I saw the option to create a sparse image. So I went ahead like I did before and tried to create a 10 Gig Image on my mounted Windows share, and it worked. Disk Utility created the sparse image in less than a minute, and the "10 Gig" image only occupied 137Mb of disk space.
Now, when I started up Carbon Copy Cloner, the image I just created was available as a "Target Disk." There were a few glitches along the way, some type of error about a corrupt movie or something, but CCC gave me the option to continue. I got the complete disk clone to work on the second try, because during the first try my iBook went to sleep so I had to change the power settings to "Best Performance".
Maybe people have been doing this with Jaguar, and I didn't see any hints, but I think this is a great way to back up a laptop without having to buy a FireWire drive.
After upgrading to Panther, I observed that my printer no longer appeared in my wife's iBook as a shared printer. It used to in Jaguar.
After searching the reasons for this, I diagnosed a problem with Internet Sharing with only one internet adapter. My iMac's IP was supplied via DHCP by the cable modem, causing the printer address to be in a different subnet than that of my private network (192.168.x.x). Even though my iMac acknowledged ping packets with the 192.168.2.1 address, it bound the the imac.local name to the cable supplied IP.
The solution was to create another Ethernet port in the Networking section of the System Prefs, bind it to Built-in Ethernet, and assign it to a manual address (I used 192.168.2.10, but it could be anything inside your private subnet). I also had to edit the cupsd.conf file in /etc/cups/, and change the ServerName variable to this new address.
Now Rendezvous can find this printer in the local subnet.
This is so simple its stupid, but I wasted a while trying to figure it out.
There are hints up here about automounting servers using netinfo tinkering. I wanted an easier way to config several macs to automount servers in Panther.
Startup Items in the Accounts pane of System Preferences. Just drag server icons from your desktop into the window like you would any application you want to run at startup. That's it. Not sure if it worked that way before 10.3. As a bonus, use the Add Password to Keychain in the Options when you connect and you wont have to type passwords next time either.
[robg adds: Wow, this should make a lot of people pretty happy -- we've run eight previous hints on automounting server volumes! I tested it from my PowerBook with a Personal File Sharing share, and sure enough, it worked as described.]