Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!cs.utexas.edu!sun-barr!decwrl!shlump.dec.com!shodha.dec.com!alan From: alan@shodha.dec.com ( Alan's Home for Wayward Notes File.) Newsgroups: comp.unix.ultrix Subject: Re: Decserver Question Summary: Associateing LAT ports with /dev/ttys Message-ID: <225@shodha.dec.com> Date: 21 Jun 89 16:34:02 GMT References: <3264@buengc.BU.EDU> Organization: Digital Equipment Corp. - Colorado Springs, CO. Lines: 48 In article <3264@buengc.BU.EDU>, marco@buengc.BU.EDU (Marco Zelada) writes: > Problem statement: > > I want to make a GPX station running Ultrix 3.0 use a PS printer that > has been configured off of a decserver. > > a) I have created the PRINTCAP entry for the new printer in which > I tell lpd the LAT device and LAT port on which the PS printer > is connected. In Ultrix V3.0 there are two ways of associating a terminal server port with a special device. One limits it's use to lpd and the other makes the port available for general access. They are: 1. :ts=terminal-server: and :op=port-name: This tells lpd how to connect to the port. 2. The -h option on lcp(8) will let associate a lat port with a special device file. For example: lcp -h /dev/tty00:TS1:TS1_1 This lets anything that can open /dev/tty00 write to and read from the terminal server port. > > c) Now I need to make a node under /dev for the new printer, > however, I can not figure out how to create the node and give > ultrix enough information about the LAT device and port number > when I create the node. I have tried MAKEDEV and mknode, but I > always get an errors from them. Besides, I do not understand > where to include the LAT device address and port number if I am > using these commands. The device name for LAT ttys is lta#. So for the first set of 16 LAT ports you'd use MAKEDEV lta0. If you included LAT support during the installation of V3.0 it should have created one set for you. Unless you have other comm devices on the system they will ordinarly start at tty00. You can use file(1) to determine what device a special is associated with. > > Question: > > What am I doing wrong ? In c) you mentioned getting errors from the MAKEDEV. What were the errors?