Re: Telnet printing

From: Jeff Liebermann (jeffl_at_comix.santa-cruz.ca.us)
Date: 01/29/04


Date: Thu, 29 Jan 2004 01:47:33 GMT

On Wed, 28 Jan 2004 13:59:30 -0500, "Robert Bachellor"
<rob@alphaomegas.com> wrote:

>We have a remote client using DSL with dynamic IP addressing to telnet back
>into the SCO OS5 server. He is using ICE.TCP Pro which comes with an LPD
>program for Windows. My problem is how to define a printer on the server so
>that his reports go to his LPD interface so he can print them.

Back in the bad old days of Unix (before VPN's), I had a similar
problem. IP addresses were assigned on the fly by a DHCP server. I
only had a maximum of 10 such dynamic IP's in the pool so I created 10
printers. I was sorta forced to use LPR/LPD because it was the most
common protocol available in a scrambled mess of operating systems and
print server boxes. There were some dialin users, so static DHCP by
MAC address was not an option. The customer did not want to deal with
a DNS server. Everyone logged into the order system with the same
login (not my idea), so I couldn't assign printers by login name.

I named the printers by appending the last part of the IP address to a
generic name. For example:
  192.168.0.100 = printer100
  192.168.0.101 = printer101
  (...)
  192.168.0.110 = printer110

On login, I extracted the DHCP assigned IP address using something
like:
  IP=`who -mx | awk '{print $6}'`
I then peeled off the last 3 digits with:
  NUMB=`who -mx | awk '{print $6}' | cut -c 10-`
Finally, I assigned the default printer environment variable LPDEST to
the proper printer number with something like:
  LPDEST="printer"$NUMB ; export $LPDEST

About 2 years later, I discovered VPN's, disarmed this abomination,
removed the print server daemons from the client machines, simplified
my life, and lived happily ever after.

-- 
# Jeff Liebermann   150 Felker St #D Santa Cruz CA 95060
# 831.336.2558 voice    http://www.LearnByDestroying.com
#                           jeffl@comix.santa-cruz.ca.us
# 831.421.6491 digital_pager  jeffl@cruzio.com     AE6KS


Relevant Pages

  • Re: Autoenrollment errors in Event Viewer...
    ... I agree with you on the DHCP part for the clients. ... Ed. server acting as the DC, DNS, ... servers and login directly into the local domain. ...
    (microsoft.public.windows.server.sbs)
  • Re: Telnet printing
    ... > We have a remote client using DSL with dynamic IP addressing to telnet back ... He is using ICE.TCP Pro which comes with an LPD ... My problem is how to define a printer on the server so ... Then you go and set up the lpd server on the remote pc's (windows 2000 ...
    (comp.unix.sco.misc)
  • Configurazione stampante di rete
    ... Tutto ok. ... Ho anche una stampante laser colore però collegata ad un print server che dal server AD funziona senza alcun problema. ... Nel momento in cui provo a configurarla in osx, sempre con lpd ed impostando l'ip ed il nome coda, scegliendo il driver corretto, la stampante ogni volta che tento una stampa viene messa in pausa e la stampa interrotta. ...
    (it.comp.macintosh)
  • Re: Telnet printing
    ... >>into the SCO OS5 server. ... He is using ICE.TCP Pro which comes with an LPD ... My problem is how to define a printer on the server so ... advantage or getting rid of telnet and securing the original connection. ...
    (comp.unix.sco.misc)
  • Re: Departmental printing - LPD or CUPS?
    ... were in the past configured to print direct to the printers using LPD. ... The printers are all HP, all are Postscript, and all have Jetdirect ... like the fact that print jobs have to travel over the network twice and ... that a server and disk space are needed for spooling. ...
    (uk.comp.os.linux)