setting up remote printing
    Seth Gordon 
    sethg at ropine.com
       
    Tue May 20 12:23:02 EDT 2003
    
    
  
I'm trying to set up my laptop and my server so that typing "lpr" on the
laptop sends a file to the printer that's connected on the server.  I
thought I followed all the instructions in the relevant HOWTO, but
something is obviously missing.  The laptop is running Debian stable,
and the server is running Debian unstable.
sethg at belladonna:~$ echo 'This is a test' >test.txt
sethg at belladonna:~$ lpr test.txt
sethg at belladonna:~$ lpq
belladonna: waiting for queue to be enabled on petunia
Rank   Owner      Job  Files                                 Total Size
1st    sethg      1    test.txt                              15 bytes
petunia: /usr/sbin/lpd: lp: Your host does not have line printer access
sethg at belladonna:~$ cat /etc/printcap
# /etc/printcap: printer capability database. See printcap(5).
# You can use the filter entries df, tf, cf, gf etc. for
# your own filters. See /etc/filter.ps, /etc/filter.pcl and
# the printcap(5) manual page for further details.
lp|petunia:\
        :lp=:\
        :sd=/var/spool/lpd/lp:\
        :rm=petunia:\
        :rp=lp:\
        :mx#0:\
        :sh:
# [comments snipped]
sethg at belladonna:~$ cat /etc/hosts
127.0.0.1	localhost
192.168.1.13	belladonna.ropine.com	belladonna
192.168.1.4	petunia
# [comments and ip6 lines snipped]
sethg at belladonna:~$ telnet 192.168.1.4 515
Trying 192.168.1.4...
Connected to 192.168.1.4.
Escape character is '^]'.
/usr/sbin/lpd: lp: Malformed from address
Connection closed by foreign host.
-- 
"It has been discovered that C++ provides a remarkable facility for
concealing the trival details of a program--such as where its bugs are."
  --David Keppel
// seth gordon // sethg at ropine.com // http://ropine.com/sethg/cv.html //
    
    
More information about the Discuss
mailing list