Mac

From NAS-Central Buffalo - The Linkstation Wiki
Revision as of 08:06, 4 February 2007 by Andre (Talk | contribs)

Jump to: navigation, search

This article Based on work by andre. Originally by andre.

200px-Macbook_white_redjar_20060603.jpg

Contents

Macintosh related configuration

netatalk

A recent version of netatalk primarily enables long file names on Linkstation Mac shares. There's more to it of course, check out http://www.afp548.com/ and http://netatalk.sourceforge.net/.

Debian stable binaries, configuration samples

Debian Sarge ships with the outdated netatalk 2.0.2, which wouldn't be too problematic if it wasn't missing a feature, uams_dhx, a secure authentification mechanism (which is still missing in Testing, by the way). Here's how to get and set up an improved Debian package.

apt-get install cracklib-runtime libpam-cracklib netatalk
/etc/init.d/netatalk stop
wget http://hvkls.dyndns.org/downloads/netatalk_2.0.3-4_powerpc.deb
dpkg -i netatalk_2.0.3-4_powerpc.deb

You might see unresolved depencies and recommendations, apt-get install each of them, until dpkg -i is satisfied.

Here's a sample /etc/default/netatalk, for AFP-only connections (which is what most people want), and moderate load on the system:

AFPD_MAX_CLIENTS=10
ATALK_NAME=`/bin/hostname`
ATALK_MAC_CHARSET='MAC_ROMAN'
ATALK_UNIX_CHARSET='LOCALE'
AFPD_UAMLIST="-U uams_dhx.so"
AFPD_GUEST=nobody
ATALKD_RUN=no
PAPD_RUN=no
CNID_METAD_RUN=yes
AFPD_RUN=yes
TIMELORD_RUN=no
A2BOOT_RUN=no
ATALK_BGROUND=yes
export ATALK_MAC_CHARSET
export ATALK_UNIX_CHARSET

The only uncommented line in /etc/netatalk/afpd.conf reads:

- -transall -uamlist uams_dhx.so -nosavepassword -noddp

A typical share in /etc/netatalk/AppleVolumes.default looks like this (there's an explanation in this file):

/mnt/shared "shared" allow:user1,user2,user3 rwlist:user1,user2,user3

user1, user2, and user3 must exist on your system, use "adduser user1" etc. if they don't exist yet. Don't forget to adjust the permissions on the shared directory and files, so they can be accessed by the users you defined.

When all this is done, run

/etc/init.d/netatalk start

It will take a minute or two until everything is started up.

To connect to /mnt/shared/ on server LS from your Mac, go to "Finder | Go | Connect To Server | afp://LS". Note everything is case sensitive! user1 is not User1!

Compilation

Please refer to http://forum.linkstationwiki.net/index.php?action=vthread&forum=7&topic=1152, also check out the given configuration samples.

mDNSresponder (Bonjour, ZeroConf, Rendezvous, ...)

Browse your LinkStation services from the Mac.

Although http://www.porchdogsoft.com/products/howl/ is no longer available, Linkstation PPC binaries still are (source available on request; or from http://www.porchdogsoft.com/download/howl-1.0.0.tar.gz).

wget http://hvkls.dyndns.org/downloads/howl_1.0.0-binaries-ppc.tar.gz
tar -C / -xvzf howl_1.0.0-binaries-ppc.tar.gz

Then edit /etc/howl/mDNSresponder to your needs. Note, if you also run mt-daapd (see below), keep the hash (#) character preceding the daap line.

When done,

/etc/init.d/howl start

Serving iTunes contents with mt-daapd (also for Windows)

For information on Apple iTunes, visit http://www.apple.com/itunes/.

You could share your iTunes contents by moving your iTunes library to an AFP network share (cf. netatalk). Or you could set up a streaming server like Firefly Media Server (formerly mt-daapd), as described below. Your Linkstation share will show up in iTunes (Mac or Windows) as another library.

Binaries

PPC (LS1, HG, HS, Kuro, KuroHG) download

wget http://hvkls.dyndns.org/downloads/libid3tag_0.15.1b-binaries-ppc.tar.gz
wget http://hvkls.dyndns.org/downloads/mtdaapd_0.2.4-binaries-ppc.tar.gz

MIPSEL (LS2) download

wget http://hvkls.dyndns.org/downloads/libid3tag_0.15.1b-binaries-mipsel.tar.gz
wget http://hvkls.dyndns.org/downloads/mtdaapd_0.2.4-binaries-mipsel.tar.gz 

Installation

tar -C / -xvzf libid3tag_0.15.1b-binaries-*.tar.gz
tar -C / -xvzf mtdaapd_0.2.4-binaries-*.tar.gz
tar -C / -xvzf libgdbm3_1.8.3-2-binaries-*.tar.gz
mv /etc/mt-daapd.SAMPLE /etc/mt-daapd

Then edit /etc/mt-daapd/*. When done,

/etc/init.d/mt-daapd start

and point your browser to http://linkstation:3689

(Only) if you spot errors regarding shared libraries, run

echo "/usr/local/lib" >> /etc/ld.so.conf
ldconfig

once.

If ldconfig is not present on your system, run

cd /usr/lib
for i in /usr/local/lib/libid3tag.* ; do ln -s $i ; done
for i in /usr/local/lib/libgdbm*3* ; do ln -s $i; done

Start the mt-daapd as described afterwards:

/etc/init.d/mt-daapd start

Compilation

  • libid3tag
wget http://umn.dl.sourceforge.net/sourceforge/mad/libid3tag-0.15.1b.tar.gz
tar -xvzf libid3tag-0.15.1b.tar.gz
cd libid3tag-0.15.1b
./configure --prefix=/usr/local
make install

(Only) if you spot errors regarding shared libraries later, run

echo "/usr/local/lib" >> /etc/ld.so.conf
ldconfig

once.

If ldconfig is not present on your system, run

cd /usr/lib
for i in /usr/local/lib/libid3tag.* ; do ln -s $i ; done
  • mt-daapd
wget http://umn.dl.sourceforge.net/sourceforge/mt-daapd/mt-daapd-0.2.4.tar.gz
tar -xvzf mt-daapd-0.2.4.tar.gz
cd mt-daapd-0.2.4
./configure --prefix=/usr/local --enable-browse --enable-query --enable-mdns --with-id3tag=/usr/local --sysconfdir=/etc 
make install
mkdir /etc/mt-daapd
cp contrib/mt-daapd.* /etc/mt-daapd/

There is also good information in the Mt-daapd wiki: Quickstart LinkStation: Installing mt-daapd on a Buffalo LinkStation

rsync on Tiger

An improved version of rsync can be found at http://www.onthenet.com.au/~q/rsync/.

NFS with Tiger

Either add "insecure" to your share definitions in /etc/exports; or add the "-P" on Mac OS X in the client role.