Chapter N6. Integrating Linux with AppleTalk
 
Goals for this chapter: rpm packages covered in this chapter: 
  • netatalk
  • XDarwin for Mac OS X
  

"What you end up with, after running an operating system concept through 
these many marketing coffee filters, 
is something not unlike plain hot water."
-- Matt Welsh
The AppleTalk protocol

Apple, in an independent mode, as the company normally does release in the years of the Mac (about 1989) a network protocol called: Appletalk.

This protocol with simple activation in two or more Macs shares the entire computer.

To locate the remote AppleTalk computer we may run the "Network Browser", on Mac OS 9.2 or previous

This program present the following output:

In the previous mask the computers: earth, ftosx1 and world are Linux systems running "netatalk", while imacosx is a Mac OS X system running AppleTalk.

The procedure to share a system requires two steps:

When we try to "mount" a remote Appletalk system the login and password is requeried. After the authentication the system visualize the directory. The procedure is extremely simple and we cover here.

How to connect an Mac to the Linux Intranet

To integrate your Mac OS Personal Computer (any, running any Mac OS version 9.X or previous as well as Mac OS X=10), you need to install the "netatalk" module on Linux.

The "netatalk" module is available also from ftp://ftp.futuretg.com/pub

After the installation you will see:

[root@ftosx1 root]# rpm -qi netatalk
Name        : netatalk                     Relocations: /usr
Version     : 1.5pre6                           Vendor: (none)
Release     : 1FT                           Build Date: Wed 19 Dec 2001 06:26:52 PM CET
Install date: Sat 16 Mar 2002 10:57:20 PM CET      Build Host: ftosx1.futuretg.com
Group       : Network/Integration           Source RPM: netatalk-1.5pre6-1FT.src.rpm
Size        : 596790                           License: BSD
URL         : http://netatalk.sourceforge.net/
Summary     : Appletalk and Appleshare/IP services for Linux
Description :
netatalk is an implementation of the AppleTalk Protocol Suite for Unix/Linux
systems. The current release contains support for Ethertalk Phase I and II,
DDP, RTMP, NBP, ZIP, AEP, ATP, PAP, ASP, and AFP. It provides Appletalk file
printing and routing services on Solaris 2.5, Linux, FreeBSD, SunOS 4.1 and
Ultrix 4. It also supports AFP 2.1 and 2.2 (Appleshare IP).
[root@ftosx1 root]#
 

Netatalk is not only for Linux but for any UNIX. Netatalk supports different modules: afpd papd atalkd.

However, in RedHat the command to start the service is the following:

[root@ftosx1 root]# /etc/rc.d/init.d/atalk start
Starting AppleTalk services:                               [  OK  ]
[root@ftosx1 root]#
[root@ftosx1 root]#
 

Netatalk may works TCP/IP or not. A ping to know if there are a connection may be usefull to start to work.

Therefore, is necessary to setup to setup the TCP/IP ... manually like for example:
 
 




The mode how the sharing happens is the following. We activate the sharing on the Mac, and create a user, for example: "orlando" and assign to it a "short" alphanumeric password, like for example: "bodhi1". Then, we move to the Mac to visualize the "orlando's" directory on Linux.

[root@ftosx1 root]# adduser orlando
[root@ftosx1 root]# passwd orlando
Changing password for user orlando
New password:
BAD PASSWORD: it is based on a dictionary word
Retype new password:
passwd: all authentication tokens updated successfully
[root@ftosx1 root]#

Please use a short password otherwise you will not enter on the system.
 
 

Now, you need to activete the share on the Mac. 

This will offers a double view, Linux from the Mac and the Mac from Linux.

Without this other Appletalk system will not visualize the Mac system.

After this we can try to access the Linux volume from the Mac!

Choose the "Chooser" on the Mac OS 9.X.

You will see a mask like the following.
Now, enter log as the Linux orlando user inserting 
the its login and password, as available on the Linux system.
Now, you will see a "shared" directory called "orlando".

The icon may change.

The icon on this picture is the icon from a Caldera sharing. 

The icon from a RedHat or FTOSX sharing is similar to the Mac shared icon.

Then we will see on the Mac the same data we have on the Linux orlando's folder.


With this facility is possible to copy any Linux file on the Mac and viceversa.
 

Sharing on Mac OS X

The sharing on a Mac OS X, is completely equivalent.

The Mac OS X does not includes the "Chooser" for shared Appletalk folders and printers. Now, you need to choose the "Connect to Server ..." menu entry under the "Go" Menu in the finder.

In the same mode we can mount the Appletalk folders:

Of course, you need to activate the "Sharing" on




Integrating X-Window with the graphical Mac OS

Run the X Window system on the Mac OS is possible from 1993, using the appropriate product. For example, the "Exodus" product run X Window on Mac and NeXT from 1993. See and old advertising:

Click to enlarge


Note, how many product was available in 1993. XVision, PC-Connect, SoftNet ... up to Lotus 1-2-3 for UNIX. Linux is a simple re-birth of UNIX.
 

Today, because Mac OS X, adopt UNIX and therefore gcc, glibc, and other standard tools, is possible to use and run
 
 

See a normal "mixed" session Mac OS X + X Darwin on Mac OS X. See the konqueror that comes from other X Window system, in the network!

Exercises (only if you have a Mac OS 9.x or previous or a Mac OS X system in your network).

  1. Ping  a Mac OS 9.x, if any
  2. Ping a Mac OS X, if any
  3. Install Netaltak and copy a Mac OS 9.x file to Linux and /etc/printcap to the Mac.
Tests
  1. What is Appletalk ? What is netatalk ?
  2. How we can activate this service ?
  3. What operations are necessary to run on the Mac ?
  4. Is possible to share the file: "ValutazioneAllievi_CorsoAnalistaProgrammatore.xlt" between Mac-Linux directories ?. Explain your answer. Why yes or why not ?
  5. Is possible to print a Linux file on a Apple Printer connected to an Apple system, from Linux ?
  6. Are there some script to add a Netatalk printer ?
  7. Is possible to run X Window system on the Mac OS X ?
  8. Is possible to run X Window System on the Mac OS 8.X or 9.X ?
  9. What is the "Chooser" on the Mac OS 9.X or previous ?
  10. Where is located the "new chooser" on the Mac OS X ?


Read the answers to the exercises.

Check the Interactive Exam Cram Networking: Try the interactive cram ...

Internet Resources for this Chapter.