linux 和 MAC
五月 28, 2007
Linux 的 netatalk 使得 Macintosh 機器的用戶端, 將 Linux 系統視為網路上的另一台 Macintosh, 然後連上 Linux 伺服器, 分享其檔案系統, 與使用其印表機.
netatalk 裡面有好幾個daemon
* afpd – a file server that implements the Apple Filing Protocol, allowing clients running MacOS to access Unix file servers
* atalkd – an implementation of the various AppleTalk protocols
* papd – a print server that enables Macintosh computers to access printers connected to Unix servers
* timelord – a time server for synchronizing time over the network
* megatron – a tool to convert files in Macintosh specific formats like BinHex, AppleSingle, or MacBinary into files readable by Unix computers
* various other utilities
1. 確定 /etc/services 要有下列的設定
#
# Datagram Delivery Protocol services
#
afpovertcp 548/tcp # AFP over TCP
afpovertcp 548/udp # AFP over TCP
2. atalkd.conf
eth0 -phase 2 -net 0-65534 -addr 65280.131
3. afpd.conf
4. AppleVolumes.default
~ Home
/tmp “Linux Share”
這範例是將 /使用者 分享給Mac,其分享名稱為 Home,
將 /tmp 分享給Mac,其分享名稱為 Linux Share
5. papd.conf
簡單的範例如下:
TricWriter:\
:pr=lp:op=cg:
這程式是將印表機以 ‘TricWriter’ 這名稱分享給 AppleTalk網路
協定並將所接受的工作印到 linux 印表機 ‘lp’
(如同在/etc/printcap文件中所定義的那樣)使用lpd。
此輸入 ‘op=cg’ 所說的是 linux用戶 ‘cg’ 是印表機的操作員。
6. AppleVolumes.system
應該不用改..直接用預設檔案
7. kernel 要打開支援 appletalk
還有 mac所使用的file system是HFS+
若要在linux能掛載mac的file system
mount -t hfsplus /dev/sda /mnt/usbdisk
當然你的kernel要把hfsplus 編譯進去
另外要介紹/etc/filesystems , 是用來表示未指明檔案系統時, mount 自動掛載檔案系統型別的順位。
| rtmp | 1/ddp | # Routing Table Maintenance Protocol | ||
| nbp | 2/ddp | # Name Binding Protocol | ||
| echo | 4/ddp | # AppleTalk Echo Protocol | ||
| zip | 6/ddp | # Zone Information Protocol |





Trackback this post | Subscribe to the comments via RSS Feed