![]() | ![]() | ![]() | ![]() |
|
faq search add article cool-stuff how-to main tips |
Posted by Jason on Monday April 09, @11:10PMfrom the Apples-And-Oranges dept. If you have a Macintosh workstation or Mac users on your LAN, you can easily share files and even printers with them. The port you want to use is netatalk-asun. The first thing you will need to do before installing the netatalk application, is compile the appletalk protocol into your kernel. This allows your FreeBSD machine to use appletalk to communicate natively with your Macintosh clients. The protocol is sometimes referred to as EtherTalk. (see the, HOW-TO: Compile a Custom Kernel., if you have never done this before). [Add the AppleTalk Protocol to your kernel] To add the appletalk protocol, login as root and edit your kernel configuration file in the editor of your choice (I like to use ee, but you may prefer vi). Login: root Password: ******** # cd /usr/src/sys/i386/conf # ee MYKERNEL Add this option to your kernel options NETATALK #AppleTalk Exit and save the file, then compile and install the new kernel. Here is a quick reminder of how to compile your kernel. # config MYKERNEL # cd ../../compile/MYKERNEL # make depend # make # make install # reboot [Install the netatalk-asun port] There are two different netatalk applications in the ports tree- plain old netatalk and netatalk-asun. Netatalk-asun is the same as netatalk, but provides some extra features. Here is an exerpt from the package description. Adrian Sun has added these improvements: o Access to the file server via AFP-over-TCP. o Support for volumes larger that 2GB. o Randnum- and 2-Way Randnum authentication methods (courtesy S.Hirsch) o Support for Apple II ProDOS. o A number of bug fixes. Don't install this port in parallel to net/netatalk; this will break both. Requires AppleTalk support in the kernel (FreeBSD 2.2 or newer). I installed netatalk-asun. It was easy to install and hassle free to use. Here is what I did: Login: root Password: ******** # cd /usr/ports/net/netatalk-asun # make install && make clean Before I restarted my machine, I checked the config files to see what shares (if any) were setup by default. # cd /usr/local/etc/ # ee AppleVolumes.default I noticed that the entire file was commented out except for a lonely tilde (~) at the bottom of the file, an indication that it must be sharing the user's home directories only. I decided to reboot and see what happens. While the machine what rebooting, it paused for about 30 seconds while it loaded netatalk. I thought this might mean trouble, but it turned out to be okay. I think it was discovering it's address (appletalk is a dynamic protocol). [Logging in from a Macintosh] After the FreeBSD box rebooted successfully. I went to a Macintosh on my network and tried to determine if my FreeBSD computer could be seen- and it was! Here's how I did it: Make sure your mac is using the ethernet interface for the AppleTalk Protocol. Use the AppleTalk Control Panel to do this like so: (APPLE) Control Panels AppleTalk Connect via: Ethernet close the window To login to a server from a Mac, you must use the AppleShare icon in the System Chooser. (APPLE) Chooser Click on AppleShare (you should see your server name) Click on Server Name (your freebsd host name) Click OK button The Macintosh Login Screen should now appear: name: regular_user password: users_password Click OK You should now see a mounted volume on your Macintosh desktop labeled with the name of the user you logged in with. By double-clicking on the volume, you will see the contents of that users home directory. You can now copy files to and from that directory share. (note: to learn more about NetATALK and the appletalk protocol suite, try these man pages) man atalkd man papd You may also want to look at the sample files in the /usr/local/share/examples/netatalk/ directory. < | >
|
|
||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||
| "You never know how many friends you have until you own a Condo on the beach." -- Jason's Postulate |
|
| All trademarks and copyrights on this page are owned by their respective companies. Comments are owned by the Poster. The Rest ©2001 Jason Neumann. |