From eba!svin02!tuegate.tue.nl!sun4nl!mcsun!uunet!zaphod.mps.ohio-state.edu!sdd.hp.com!apollo!carlton Thu May 14 12:54:53 1992 Article: 8057 of comp.sys.apollo Path: eba!svin02!tuegate.tue.nl!sun4nl!mcsun!uunet!zaphod.mps.ohio-state.edu!sdd.hp.com!apollo!carlton >From: carlton@apollo.hp.com (Carlton B. Hommel) Newsgroups: comp.sys.hp,comp.sys.apollo,comp.sys.mac.comm Subject: Mac <==> Workstation communication Message-ID: <1992May13.194928.11422@apollo.hp.com> Date: 13 May 92 19:49:28 GMT References: <1992May12.163909.28127@srd.bt.co.uk> Sender: netnews@apollo.hp.com (USENET posting account) Organization: Hewlett-Packard Corporation, Chelmsford, MA Lines: 183 Xref: eba comp.sys.hp:11167 comp.sys.apollo:8057 comp.sys.mac.comm:8586 Nntp-Posting-Host: notelrac.ch.apollo.hp.com >Paul McIlroy (pmcilroy@srd.bt.co.uk) asks: >Does anybody a simple (and cheap) way to do file and/or printer >sharing between an HP/APOLLO workstation and networked >Macintoshes ? Here is the latest version of my "Mac to Apollo" file. This version discusses Ethernet programs. FAQ collectors, take note. How To Connect A Mac To A Workstation There are two ways to connect a Mac to a workstation: via Ethernet, or via a serial line. Ethernet is faster, but more expensive. All of the software described herein is shareware or public domain. See below for where to get it. ETHERNET As you would expect with computers, there are several ways to hook your Mac into an Ethernet. 1. Buy an Ethernet card, and put it in your Mac II, SE, or SE/30. 2. Buy an Ethernet box, and hook it up to any Mac with a SCSI port. 3. Buy a LocalTalk to Ethernet converter box. None of these methods are simple; after you buy the hardware you need to decide whether you want to buy MacTCP, get an IP number from your network administrator, use the Network and Chooser control panels correctly, etc. The rest of this section assumes that this has been done, and you want to know how to use telnet and ftp. There are two versions of NCSA Telnet, one for use on a Mac with MacTCP installed, and one without. Both have identical functionality. Make sure you use the correct one. If you have MacTCP installed, use Fetch for ftp, as it is more Mac-like. Using NCSA Telnet for a telnet session: 1. Find and double click on the icon. Check the Apple Menu. 2. The program should briefly display an "About" window, and then the menus will change. 3. Pull down the "File" menu, and select "Open". A dialog box will appear. Accept the defaults by hitting return. 4. If the network connection is broken, you will get an error message "could not connect with host". Go ask for help. If things are ok, then you will see a 24x80 window, with a login prompt. 5. Log in using your usual account name and password. You are now logged into your Unix workstation, using a vt100 emulator. Using NCSA Telnet for a ftp session: If you do not have MacTCP, you will need to use the builtin ftp. 1. Pull down the "File" menu, and select "transfer directory". The standard SFOpen dialog box will appear. Set the directory on the Mac that you want to move files into and out of. 2. Pull down the "File" menu, and select "Smart MacBinary". 3. Change to the Domain/OS directory that you wish to transfer files in. % cd //foo/bar/macintosh/ftp_stuff 4. Type in % ftp but do not hit . 5. Pull down the "Connect" menu, and select "send IP address". The line in your login window should now look something like % ftp 15.nn.nn.nn Now, hit . 6. The Unix ftp program will try to open a ftp session with your Mac. Just hit when it asks for login and password. 7. You are now running a ftp session. See the ftp(1) man page for helpful advice. You will usually want to type ftp> prompt ftp> binary To transfer files from the Unix filesystem to your Macintosh, type ftp> mput file1 binary.bin file2 file3 To transfer files from the Macintosh to your Unix filesystem, type ftp> mget msword_document excel_spreadsheet file1 file2 8. When you are done, be sure to log out. You are not always automatically logged out when the Mac is shutdown. Using Fetch for a ftp session: 1. Double click on the Fetch icon. 2. A dialog box will ask you for the following information: o internet address of the machine you want to log into o login you will use o password you will use If the machine you are connecting to supports anonymous ftp, you can use that. Otherwise, use your login name and password. 3. The Fetch program logs in, and gets a list of files in the top level directory. It presents this in a very familiar looking dialog box. To transfer files from the Unix filesystem to your Macintosh, just highlight those files, and push the "tranfer" button. To transfer files from the Macintosh to your Unix filesystem, use the pull-down menu. You can use the menu to transfer entire directories with all their contents. By default, Fetch recognizes MacBinary files, and will automatically uncompress Stuffit archives. SERIAL LINE For people willing live with a transfer rate of about 1.5K cps, do the following: Hardware 1. Get (or make) a null modem Mac-to-RS232 cable. 2. Connect the modem port in the back of the Mac (the one with the phone symbol) with the tty01 port of your workstation. 3. Edit the file /sys/node_data/etc/ttys , and change the line tty01 none dumb off secure to tty01 "/etc/getty 19200-baud" vt100 on secure 4. (As root), send a HUP signal to the init process, by # kill -1 1 5. Check and make sure the process is running: bsd4.3 # ps ax | grep tty01 or sys5.3 # ps -ef | grep tty01 7392 ? S 0:00 - 19200-baud tty01 Note for PowerBook users: You will have to select the "external" modem port in your Portable Control Panel. Software: 1. Find a Mac terminal emulator that supports the zterm protocol. The directions below are for ZTerm. 2. Get the Unix zmodem package, and compile it. It is available from sumex.stanford.edu as /info-mac/unix/zmodem-part[1234].shar. This will give you the rz and sz programs. Mac Usage: Double click on the ZTerm icon. Set the baud rate to 19.2K. The other default settings are harmless. You should now see a login prompt, so login. Modem usage: If you are dialing in over a phone line, then use a modem Mac-to-RS232 cable. Set the ZTerm baud rate to whatever your telecommunications equipment expects. To transfer files from the Unix filesystem to your Macintosh, type % sz file1 binary.bin file2 file3 It will respond Sending in Batch Mode and wait. The ZTerm program will catch the magic zmodem characters, and put the file onto your Mac disk. To transfer files from the Macintosh to your Unix filesystem, just type % rz It will respond rz ready. To begin transfer, type "sz file ..." to your modem program The pulldown menu item "zmodem transfer" will give you the standard dialog box to select Mac files. There may be occasional problems with the interaction between sz and your network. If you are getting a throughput of 3%, rather than 75-90%, try setting the Zmodem parameters pulldown menu so that it uses a size of 1024 instead of automatic. An incredibly useful Unix program is mcvert. Mcvert converts binhexed *.hqx files into MacBinary *.bin files. The intellegent file transfer programs will take the MacBinary file make it a normal Mac file - no need to run binhex! SOFTWARE INFORMATION From sumex.stanford.edu: /info-mac/comm/fetch-206.hqx the Fetch ftp program /info-mac/comm/zterm-09.hqx the ZTerm terminal emulator /info-mac/unix/mcvert-165.shar the Unix .hqx -> .bin converter /info-mac/unix/zmodem-part[1-4].shar the Unix zmodem programs From ftp.ncsa.uiuc.edu /Mac/Telnet/Telnet2.* the NCSA Telnet program Carl Hommel carlton@apollo.hp.com From eba!svin02!tuegate.tue.nl!sun4nl!mcsun!uunet!haven.umd.edu!darwin.sura.net!mips!pacbell.com!network.ucsd.edu!sdcc12!xm9 Thu May 14 12:55:13 1992 Article: 8056 of comp.sys.apollo Path: eba!svin02!tuegate.tue.nl!sun4nl!mcsun!uunet!haven.umd.edu!darwin.sura.net!mips!pacbell.com!network.ucsd.edu!sdcc12!xm9 >From: xm9@sdcc12.ucsd.edu (richard g. adair) Newsgroups: comp.sys.hp,comp.sys.apollo Subject: Re: Help with HP/Apollo <==> Mac interconnection Summary: MAC and UNIX Keywords: MAC printing Message-ID: <32875@sdcc12.ucsd.edu> Date: 13 May 92 14:59:24 GMT References: <1992May12.163909.28127@srd.bt.co.uk> Sender: news@sdcc12.ucsd.edu Followup-To: comp.sys.hp Organization: Arete Associates, San Diego Lines: 21 Xref: eba comp.sys.hp:11158 comp.sys.apollo:8056 Nntp-Posting-Host: sdcc12.ucsd.edu In article <1992May12.163909.28127@srd.bt.co.uk> pmcilroy@srd.bt.co.uk writes: >Does anybody a simple (and cheap) way to do file and/or printer >sharing between an HP/APOLLO workstation and networked >Macintoshes ? The Macs are currently Telnetted via appletalk/TCP, >but will soon be connected to Ethernet. The HP has the usual >Ethernet connections. The best way is to get a Cayman Gatorbox. You are going to need an appletalk to ethernet interface for the printers, even if you switch over to all ethernet on your Macs anyway. Don't get software for your UNIX machine, like from Pacer, because you will need to get a copy for EACH machine, plus you have to configure n times. The GatorBox is very easy to set up, since it is controlled from a Mac, not from UNIX :-). Once set up, you just forget about it. Don't listen to things like "The Gatorbox will overload under heavy traffic". This is propaganda from other vendors who offer appletalk to ethernet devices which don't do NFS sharing... Tony Burzio Arete Associates San Diego, CA