Best of the Newsgroups: remote lpd dhcp without vpn


What is this stuff?

If this isn't exactly what you wanted, please try our Search (there's a LOT of techy and non-techy stuff here about Linux, Unix, Mac OS X and just computers in general!):



From: Jeff Liebermann <jeffl@comix.santa-cruz.ca.us>
Subject: Re: Telnet printing Message-ID: <odog10pq7dl9ha1q2cht2292et1j2haenm@4ax.com> References: <LNWdnfBPhsoFm4XdRVn-sA@thebiz.net>
Date: Thu, 29 Jan 2004 01:47:33 GMT


Hate these ads?



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

cartoon
Need eyes on the ground at your customer's site?
Installation and light training Boston and New England
Reliable and experienced, punctual and professional.



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














Enter your email address for automatic notification of new posts here
(be sure to whitelist 'feedburner.com' if you use spam filtering)

Or use any RSS reader

Delivered by FeedBurner


Views for this page
Today This Week This Month This Year  Overall
237134 222

/Bofcusm/2431.html copyright 1997-2004 (various authors) All Rights Reserved

Have you tried Searching this site?

Unix/Linux/Mac OS X support by phone, email or on-site: Support Rates

This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more. We appreciate comments and article submissions.

Publishing your articles here

More:
       - Newsgroup




Unix/Linux Consultants

Your ad here - $48.00 yearly!

http://bcstechnology.net Full service Linux & UNIX systems integrator; Windows to UNIX/Linux Client-Server Specialist; Secure E-Mail & Website Hosting; Thoroughbred Software Developer; Custom Industrial Automation; Hardware & Electronics Experts; In Business Since 1985.


http://www.cleverminds.net Need expert advice? Want a second opinion? CleverMinds is a one-stop-shop for a wide range of technology solutions. We support Unix, Linux, SCO as well as CMS, ecom, blogs, podcasts, search engines consulting and more. Contact us at web2.0@cleverminds.net 0r (617) 894-1282


http://echo3.net/ Unix/Linux Custom Applications, Web Hosting, C/C++ Programming Courses



Twitter
  • Nov 18 20:41
    I'll be out all day Wednesday the 19th, hard to reach even by phone. Leave a message and have patience.
  • Nov 18 10:07
    What am I doing? Not doing what I WANT to be doing! Oh, well, in every life a little work must fall..




card_image








Change Congress


Related Posts