login
Header Space

 
 

printing to/from remote machines

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
Date: Thursday, April 15, 1993 - 11:41 am

I'm having a bit of trouble getting my linux box to send print jobs to
remote printers. As well, remote machines cannot successfully send
print jobs to my linux machine.

At one point, I was able to send remote jobs to my linux machine, but
for some reason, things stopped working. Local printing does work
though - while logged into my linux machine I can print to the local
printer on my linux machine without problems.

Here's how things look when I try to print from my linux machine to
a remote printer:

[29]% lpr -Ppslaser test.ps
[30]% lpq -Ppslaser

linuxbox: Warning: no daemon present
Rank   Owner      Job  Files                                 Total Size
1st    bee        19   test.ps                               16772 bytes

connection to otherbox is down
[31]% ping otherbox
PING otherbox.uwaterloo.ca (129.97.42.118): 56 data bytes
64 bytes from 129.97.42.118: icmp_seq=0 ttl=59 time=0 ms
64 bytes from 129.97.42.118: icmp_seq=1 ttl=60 time=0 ms

--- otherbox.uwaterloo.ca ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max/max = 0/0/0 ms

[32]% ps -aux | grep lpd
root        469  0.0  3.1   68  220  ? S    10:45   0:00 lpd
root        449  0.0  2.3   60  164  ? S    10:02   0:00 lpd
bee         473  0.0  1.9   76  136 p1 S    10:50   0:00 grep lpd
=====

[33]% uname -a
Linux linuxbox 0.99.pl6-26 03/01/93 i486

=========
[34]% ls -l /etc/lpc /etc/lpd /etc/lpr /usr/bin/lpq /usr/bin/lpr /usr/bin/lprm
-rwxr-sr-x   1 daemon   daemon      21508 Nov 19 23:32 /etc/lpc
-rwxr-sr-x   1 daemon   daemon      37892 Nov 19 23:32 /etc/lpd
-rwxr-sr-x   1 daemon   daemon      17412 Nov 19 23:32 /etc/lpr
-rwxrwsr-x   1 daemon   daemon      17412 Nov 19 23:32 /usr/bin/lpq
-rwxrwsr-x   1 daemon   daemon      17412 Nov 19 23:32 /usr/bin/lpr
-rwxrwsr-x   1 daemon   daemon      17412 Nov 19 23:32 /usr/bin/lprm
=====

[35]% ls -alR /usr/spool/otherbox
total 5
drwxrwxr-x   2 daemon   daemon       1024 Apr 14 16:52 .
drwxrwxr-x  13 root     root         1024 Apr 15 09:54 ..
-rw-rw-r--   1 daemon   daemon          4 Apr 14 16:35 .seq
-rw-rw-r--   1 daemon   daemon          4 Apr 15 09:55 lock
-rw-rw-r--   1 daemon   daemon         36 Apr 14 16:45 status
=====


[36]% ls -l /etc/printcap
-rw-r--r--   1 root     root          486 Apr 15 09:54 /etc/printcap
=====

[37]% cat /etc/printcap
#
# dot matrix on linux box
lp|lplinuxbox|lp_linuxbox:lp=/dev/lp1:ra=*:sd=/usr/spool/lp1:sh:
#
# remote laser printer
pslaser|PostScript LaserWriter:\
        :rp=pslaser:lp=:\
        :rm=otherbox:sd=/usr/spool/otherbox:\
        :lf=/usr/adm/lpd-errs
=====

[38]% ls -l /etc/hosts.lpd
-rw-r--r--   1 root     root          116 Apr 12 11:02 /etc/hosts.lpd
=====

[39]% cat /etc/hosts.lpd
otherbox.uwaterloo.ca
=====

[40]% grep 35/tcp /etc/services
lp              35/tcp          # any private printer server [JBP]
printer         35/tcp          # any private printer server [JBP]


Here's how things look when I try to print from a remote machine to my
linux printer (this originally worked fine, but has since stopped):

[23]% lpr temp
[24]% lpq

Spool queue: lp_linuxbox
Local (waiting to be sent to remote site):
otherbox: waiting for linuxbox to come up since Wed Apr 14 15:18:55 1993
 (errno=60 'Connection timed out')
1st    bee            10   temp                              3030 bytes
Remote(linuxbox):
...right here I hit ctrl-c since it seems to hang...


Any and all ideas are welcome...

        Thanks,
                Bill

Bill E. Eickmeier     bee@watarts.uwaterloo.ca  
Department of Psychology, University of Waterloo, Waterloo, Ontario, N2L 3G1  
room: PAS 1102   phone: 519-885-1211 x6638   fax: 519-746-8631
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
printing to/from remote machines, Bill E. Eickmeier, (Thu Apr 15, 11:41 am)
speck-geostationary