One of the (very) nice features in Jaguar is the bundled Samba server, which allows your Mac to be visible to Windows computers. All you need to do is enable the setting for "Windows File Sharing" on the Services tab of the Sharing preferences panel (and make sure the user is allowed to connect from Windows boxes in the Accounts preferences panel). After that, each user can access his or her home folder from any Windows machine on the network.
While this is a great advance over the need to install and configure Samba, the downside is that only your home directory is shared. I needed to do more than this, as we keep our digitized CD collection on another hard drive and serve it up to a Turtle Beach Audiotron in the living room (see this hint for the details). So to get the Audiotron working, I needed a way to establish a Samba share for my iTunes hard drive.
After "phoning a friend," he pointed me to the smb.conf file located in /etc. I then spent a bit of time reading the extensive (over 100 pages!) man pages for smb.conf, and tried and failed a few (too many?) times before successfully creating my new share ... but in the end, I triumphed over the command line!
Read the rest of the article for a (very very light, for that's all I know!) introduction to creating additional Samba shares in Jaguar.
The Nokia 6310i is a tri-band mobile phone with GPRS and Bluetooth built in. Making a Bluetooth connection between Mac OS X and the phone is very easy ... establishing a GPRS connection to the Internet is not.
Read the rest of the article for step by step instructions for getting an Apple Macintosh running Mac OS X 10.1.5 online with GPRS via a Nokia 6310i mobile phone and Bluetooth. GPRS is taking off now in Europe - these instructions will be of most use to a UK reader. I'm not sure of the status of GPRS in the States.
This may be obvious to most folks, but it came as a surprise to me even after reading the Apple documentation on the Airport. Apple says it should be possible to configure wired clients using DHCP, but that didn't work in my situation. I have one of the older v.1 Airports, for which prices are falling. These only have a single ethernet port, so they cannot isolate a DSL/cable modem from a local Ethernet network the way they can a dialup connection. With a simple Ethernet hub providing a connection to the DSL/Cable modem, however, they can route internet traffic to all computers on the hub with IP addresses in their distribution range, in addition to Airport card equipped wireless computers.
To create a directory that can be accessed locally, as well as remotely by another user via AppleTalk (with a password and user name required for the remote user) do the following:
Create a new user.
Restart in System 9.
Delete all of the folders in that user's folder (Desktop, Pictures, and so on). [Editor's aside: You should be able to do this with 'su' in the Terminal without rebooting, but I haven't tested this hint so I'm not sure about that!]
Restart in OS X using your main user account.
Provide the user name and password for this new stripped down user account to the person(s) who need to share this folder. Needless to say, they will also need to know the name of your computer.
Put whatever you wish to share in this stripped user folder.
If you create a new folder or file in this shared directory, the remote users will be able to access them just fine since they are logged in as the owner of that account (files/folders have the owner/group of the folder they are created in).
If you move or copy files to this shared user account from your main user account (or some other user account on your computer), you will need to change their owner and group to match the shared user account or the remote user(s) won't be able to use them.
I use this system to allow students to upload their homework files to my notebook computer, without allowing them to roam around in the rest of my hard drive.
If you use a Mac laptop in a Windows network, this maybe of some use. From macwindows.com:
On July 17, 2002 at Macworld Expo today, Microsoft announced the Remote Desktop Connection (RDC) client for Mac OS X, a free download that enables remote connection and control of Windows PCs computers over a network. It lets Macs connect to Terminal Services on NT 4 Terminal Server, Windows 2000 Server, Windows XP clients (for remote help) and Windows .NET servers
I have tested this with a dial-up connection to a Windows 2000 Terminal Server. No issues in connecting - just need an IP address or machine name - and I was able to access the full range of programs, ie Outlook, Visio etc. Also found that I could use my 'DAVE' connection at the same time. Yet to try on company LAN, but I can't forsee any problems. Ultimate goal is to use with DSL connection / VPN.
To get at it, open a terminal window and enter the following command:
% open /private/var/db/SystemConfiguration/
The folder should pop open in the Finder, displaying (at least) the preferences.xml file. Drag it out of the SystemConfiguration folder to your desired location to back it up. It should make a copy, not move itself, as indicated by the "plus" sign that appears beside the cursor when dragging it out of the folder; if a "plus" sign doesn't appear, hold down "Option" key as you drag it to force a copy. You should not need root privileges to copy the file, as all users have read access to it.
To reinstall it on your freshly installed OS X, you will have to use the Terminal and use the "mv" command with root power, ie:
Wish I would've known this before I reinstalled my OS thinking my "pay as you go" internet service providers password and login info was safe in my backed up Users folders. Would've saved me time re-configuring my 15 different locations too!
I ran into a OS X limitation recently when trying to create a directory that both myself and another remote user could access via AppleTalk. I needed it set up where:
the remote user would be able to see only that directory,
the remote user would need a password to access that directory, and
we both could read/write to that directory.
Although in OS X you have a shared folder and a drop box, the person logging in can't write to the shared folder, and (worst of all) you don't even need a password to access it. If I created a new user using the Users pane in the System Preferences, then we would still have the same problem of not having a common folder to read/write to, not to mention that it would create a bunch of unnecessary directories (like Desktop, Library, Music, Movies, etc).
I tried a shareware app called SharePoints, but for some reason couldn't get that to work (I'm sure it was my own fault) ... besides, sometimes I prefer to figure out the geekier ways of doing things. Read the rest of the article to see what I did to solve this problem...
A little known capability of Mac OS X disk image system allows remote mounting of most disk images directly from "http://" URLs. However, this feature is not available in Disk Copy, so one must resort to the Terminal for mounting remote disk images. There are several reasons why one may want to mount a disk image remotely. Firstly, it allows selective downloads of just the interesting files from a disk image. This can be a real time-saver if you are on a modem trying to download just a few files from a huge disk image. Secondly, it avoids cluttering the hard drive with disk image files.
To mount a disk image remotely, enter the following command in Terminal:
% hdiutil mount "http://url.com/diskimage.dmg"
% hdiutil mount "http://a1568.g.akamai.net/7/1568/ 1388/061-0008.20020604/download.info.apple.com/Apple_Support_Area/ Apple_Software_Updates/Mac_OS_X/downloads/061-0008.20020604/ MacOSXUpdateCombo.10.1.5.dmg.bin"
NOTE: Shown on multiple lines for narrower reading; type on one line with no additional spaces in order to use the command. That command will mount the disk image containing the 45 MB large combo update to 10.1.5. Useful if you only need to retrieve a file or two using Pacifier. The feature is documented in the manual page for hdid, the command line program that is used by hdiutil to do the actual mounting.
[Editor's note: I had no idea this was possible ... and as the tip author points out in the comments, there is a GUI for it. Simply select a ".dmg" file in any Cocoa application, then do Services -> Disk Copy -> Mount Image, and the remote .dmg file will mount -- very very cool!]
MacStumbler is a tool for discovery of wireless networks. As far as I know, it's the first such tool on the Mac; if anyone knows of others, please post below. The hold up has been the non-documentation on how to talk to the AirPort card inside a Mac. The author of MacStumbler has reverse engineered some of the code in order to allow interfacing with AirPort cards.
Personally, I have begun using MacStumbler so that I know where all the wireless networks are around my campus ... so I know which classes I can be online in ... to look up course material, really!
Check the link and give feedback so that we can finally catch up to the other platforms in wireless scanning capabilities.
[Editor's note: This article has been in the submission queue for a while; I was debating the merits of posting it, given the potential for abuse. However, it also has great potential benefits for helping secure your wireless networks. For example, if you wish to prevent your network from being seen by MacStumbler (or anyone using other Windows or UNIX-based stumblers), you'll need to go to the Airport Admin Utility and enable the checkbox that reads "Create a closed network". With this box checked, your network will be invisible to MacStumbler (and, I believe, the other stumblers, but I haven't tested those).]
My company deals in part with WebDAV, the technology used to mount iDisk volumes. Although iDisk seems to work fine, I run into problems when attempting to mount our document repository. Using the 'Connect to Server' dialog I enter:
I'm prompted for my username and password, and then nothing happens. If I start a terminal session, I can see the webdav volume in my /Volumes folder, and can mv, cp, etc., and generally interract with it with no problems. However, the disk does not appear on the desktop or in any Finder windows. It's worth noting that very rarely, the volume does just mount and displays properly
On a whim, I did a force-restart of the Finder, after which the volume was visible and fully usable in Aqua.
I'm curious as to others' experience with WebDAV, as I know one of the other (few) Mac guys here has run into similar problems.