Saving files over the network from the film-scanner in the Loft =============================================================== By Volker Kuhlmann 04 May 2001 First version 10 May 2001 Version 1.1 An up-to-date version of this document should always be at http://kea.elec.canterbury.ac.nz/~volker/doc/filmscanner-network (or http://volker.orcon.net.nz/doc/filmscanner-network ) The film scanner is a Kodak 2035, 2000 dpi, 24 bit colour device connected to a Macintosh in the Loft, student workrooms, main library building, level 5. When scanning film, the question is where to store the data. Of the following possibilities the last is recommended as being the fastest for large amounts of data. 1) Zip Drive Store files on the attached zip drive. Take the disk. 2) Network storage, somehow If you can connect to any other server on which you can store files, fine. If it's a microsoft server, it needs appleshare support enabled. (Note: The ELEC Dept does not run any servers where this is enabled.) 3) Macintosh Server Use the server which has your documents directory, which is the one used for the login. This is quick and easy, but the disk quota for students appears to be 40MB, not nearly enough for big scan jobs. The server itself is running win2k and is accessible via a MS-windows drive share. Details: \\CantwsN\UserwsN , your documents directory is in a directory in this share with a name equal to your usercode. You need to replace the 2 "N" in the server and share names with a number between 1 and 4, depending on your user code. Try one after the other. To copy the files onto a linux computer anywhere on campus, use either of: a) smbfs The kernel's SMB filesystem works. Use these commands to mount the share on your linux machine: mkdir DIR # this can be any directory anywhere, you need write access mount -t smbfs -o workgroup=uocnt,username=USERNAME,uid=`id -u`,gid=`id -g`,dmask=700,fmask=600 DIR DIR is a directory anywhere; you need write access to it. USERNAME is your username on the Macintosh. You will be prompted for your Macintosh password. You can then access your directory as DIR/cantwsN/USERCODE/ b) sharity from http://www.obdev.at/Products/Sharity.html This is a very good SMB client for unix machines. Use the GUI to mount the windows share: set the workgroup under ->General to Uocnt, add CantwsN as server under ->Server, and click on login under ->Mounts. If browsing doesn't work too well, enter a suitable WINS server. Your directory is at /mnt/CIFS/CantwsN/USERCODE/ You can get a student license for Sharity for free. Email me if you want rpms to install on your computer. 4) Run an AppleShare client This is by far the easiest and works out of the box without any ado. It should work from any Macintosh on campus (e.g. the one with the flatbed scanner), and to any other machine on campus. The package netatalk is needed. Install the rpm from SuSE Linux 7.0, CD 1. Edit /etc/rc.config and change the START_ATALK="no" to START_ATALK="yes", or start the daemon manually with rcatalk start after each reboot. If you have a firewall running, open port 548, afpovertcp, both tcp and udp, for incoming traffic. For SuSEfirewall, edit /etc/rc.config.d/firewall.rc.config and add afpovertcp to the variables FW_SERVICES_INTERNAL_TCP and FW_SERVICES_INTERNAL_UDP (assuming the "internal network" is the one going to the campus LAN) and restart the firewall. On the Macintosh, go to the little apple symbol in the top left of the workspace and select chooser. Click on the appleshare icon, then on "server IP address". Enter the IP address of your linux machine, or its full name if there is a DNS entry for it, then enter user code and password. A new icon appears on the workspace. If you want to prevent the netatalk software to pollute absolutely every directory on your linux machine with a .AppleShare/ directory, edit the one line "~" in /etc/atalk/AppleVolumes.default to instead read ~ options=noadouble Better still, create a new user ID for this job. Even better, do both. Note: your campus-wide password must be <= 8 characters, or the Macintoshes are too stupid to hack it and respond to login attempts with some dumb error message. Feel free to contact me if anything is unclear. Have fun, Volker