Handle NFS-exports with OS X

finder
OS X´s finder can mount NFS-exports only if they don´t use an reserved socket port number (<1024), but Debian-boxes‘ nfsd-service uses these numbers by default. For exporting using unreseved ports, use insecure-key in /etc/exports on the Debian-box, eg:

/data *(rw,no_root_squash,insecure)

Now one can use Connect to Server oder AppleKey-K and as address nfs://servername/export for mounting.

mount_nfs
In terminal: mount_nfs -P servername:/export   /mnt

Using automount
For using automount one has to do some NetInfo-settings. These can be easily done by NFS Manager or manualy using NetInfo-Manager oder nicl (in terminal). The entries are shown in the last posting

Sources:
http://www.fifi.org/cgi-bin/man2html/usr/share/man/man5/exports.5.gz
http://www.withay.com/macosx/nfs-client.html

Kategorien Mac

Export/Import NetInfo-data

To store data from the netinfo-database nidump can be used. This data can be imported again by using niload. The following example shows how to store the /mounts-section from netinfo and import it again.

# nidump -r /mounts . > mounts.raw # cat mounts.raw { "name" = ( "mounts" ); CHILDREN = ( { "name" = ( "gate:/data" ); "dir" = ( "/gate" ); "vfstype" = ( "nfs" ); "opts" = ( "-s", "-P", "-b" ); } ) } # niload -r /mounts . < mounts.raw

Kategorien Mac

Disk-Images with Panther

  • Insert Medium
  • Start Disk Utility
  • Images -> New -> Image from Folder
  • Select Medium
  • Select Output Folder, Start.
  • Creates a Image.dmg form the selected Medium/Folder

    For burning Image.dmg open it with Disk Utility and select Burn.

    Real men should have a look at hdiutil in the terminal.

    Kategorien Mac

    Mount NFS on OS X

    > sudo mount -t nfs server:/export /mnt

    Will not work, don´t know why… But

    > sudo mount_nfs -P server:/export /mnt

    works fine.

    Kategorien Mac

    Starting MySQL at boottime

    This assumes a running MySQL Server on the system. For installing MySQL you can use FINK.

    1. Create a new dir in /Library/StartupItems

    sudo mkdir /Library/StartupItems/Mysql

    and place the following two files in it:

    2. File 1: MySQL

    #!/bin/sh ## # Start MySQL Server ## . /etc/rc.common ConsoleMessage "Starting MySQL Server" /sw/bin/safe_mysqld &

    3. File 2: StartupParameters.plist

    { Description = "MySQL Initialization"; Provides = ("MySQL"); Requires = ("Network", "Disks", "Resolver"); Uses = ("NFS"); OrderPreference = "Last"; Messages = { start = "Starting MySQL"; stop = "Stopping MySQL"; }; }

    4. Chmod the first file:

    chmod 700 MySQL

    These settings are taken form the OpenBase-Server startup-settings, so feel free to compare.