Hi. I'm trying to print from Windows 2000, one in VMware (a virtual
machine), and one real. Each has its own IP address on my local subnet,
so in that respect, they're real machines. I have two printers available
- a DeskJet 1200C/PS, which is connected to the local network, on which it
speaks Appletalk (it sounds weird, but it works from the prompt; lpr ->
netatalk -> printer); and a DeskJet 870Cxi, which is on /dev/lp0.
The machine in VMware can see my Linux box and transfer files. From it, I
get a message "Access denied, unable to connect" in the title bar of
the
870 when I open the spooling window.
The 1200 works, if I print to a file, then from Linux, "lpr
print-job.prn". "copy windows-file \\pc\prismatic" causes the
message
[2002/01/14 14:31:10, 1] smbd/service.c:make_connection(606)
pc-in-w2k (192.168.1.21) connect to service prismatic as user eben (uid=500,
gid=500) (pid 28676)
but no output.
The real machine cannot see my box at all, nor can I see him. That seems
like a browsing issue. If I could see him, he has yet another printer...
but I'll deal with that when I come to it.
Does anybody have a clue as to what might be wrong? Thanks.
Here's my smb.conf:
[global]
workgroup = WORKGROUP
server string = Eben's Samba Server, v. %v
encrypt passwords = Yes
unix password sync = Yes
# default is /bin/passwd
passwd program = /usr/bin/passwd
log file = /var/log/samba/loop/log.%m
lock directory = /var/run/samba
max log size = 50
socket options = SO_RCVBUF=8192 SO_SNDBUF=8192 TCP_NODELAY
#socket options = IPTOS_LOWDELAY
dns proxy = No
hosts allow = 192.168.1.
printing = lpr
message command = /bin/mail -s 'Samba message from %f' eben <
"%s" ; /bin/rm "%s"
print command = echo "on printer '%p', file '%P/%s'"
>> /tmp/file2 ; /usr/bin/lpr -r -P"%p" "%s"
# 2000: ?
# NT Server 4: 33
# NT Server 3.51: 32
# NT Workstation 4: 17
# NT Workstation 3.51: 16
# W98: 2
# W95: 1
# WfW: 1
os level = 34
# "administrator" is kurt
include = /home/samba/smb.conf.%U
# shows connections
debug level = 2
lock directory = /var/lock/samba
preexec = logger -t samba -i %U logged on to %S from "%M"
preferred master = yes
domain master = yes
[homes]
comment = Home Directory
read only = No
browseable = No
[prismatic]
comment = DeskJet 1200C/PS
path = /var/spool/samba
print ok = Yes
# v-- the name, in /etc/printcap, of this printer
printer name = prismatic
# printer driver = HP DeskJet 1200C/PS
[prismatic:]
browseable = No
copy = prismatic
[dj]
comment = DeskJet 870Cxi
path = /var/spool/samba
print ok = Yes
printer name = dj
[djps]
comment = DeskJet 870Cxi with PostScript
path = /var/spool/samba
print ok = Yes
printer name = dj-ps
[export]
comment = Exported data
path = /export
[cdrom]
comment = ISO9660 formatted CD
path = /mnt/isocd
fake oplocks = Yes
locking = no
[tmp]
comment = Temporary Directory
path = /tmp
read only = No
guest ok = Yes
[cdstage]
comment = Staging area for CD
path = /cd2b/stage
[cdtest]
path = /cd2b/test
/etc/printcap:
## /etc/printcap
##
## Look at the printcap(5) man page for more info.
##
## This file can be edited with the printtool in the control-panel.
#
###PRINTTOOL3## LOCAL POSTSCRIPT 300x300 letter {} PostScript Default {}
##lp|prismatic:\
## :sd=/var/spool/lpd/prismatic:\
## :mx#0:\
## :sh:\
## :lp=/var/spool/lpd/prismatic/dev.null:\
### :if=/var/spool/lpd/prismatic/filter:\
## :of=/usr/lib/atalk/etc/filters/ofpap:
## sd=spool directory; sh=suppress printing of burst page headerr
##
lp|hp|prismatic|DeskJet 1200C:\
:lp=/var/spool/lpd/prismatic/null:\
:of=/usr/lib/atalk/filters/ofpap:\
:mx#0:\
:pl#63:pw#80:\
:sd=/var/spool/lpd/prismatic:\
:sf:sh
dj|deskjet|DeskJet 870Cxi:\
:lp=/dev/lp0:\
:of=textfilter:\
:mx#0:\
:pl#63:pw#80:\
:sd=/var/spool/lpd/dj:\
:sf:sh
# sd= spool directory
# if= input filter
# of= output filter
# lp= where to send the output of of ( job | $if > $sd/spoolfile ;
$sd/spoolfile | $of > lp )
# mx# maximum size (in blocks?) of spool file
# pl# page length, in lines
# pw# page width, in chars
# sf: suppress form feed after print job
# sh: suppress header before print job
# hl: print burst header page last
# df= DVI filter
# tf= troff filter
# lf= log file
# af= accounting file
#
# LABEL apsfilter
# apsfilter setup Fri Sep 1 15:51:16 EDT 2000
#
# APS_BASEDIR:/export/apsfilter
#
#
ascii|lp1|cdjcolor-letter-ascii-mono|cdjcolor ascii mono:\
:lp=/dev/lp0:\
:sd=/var/spool/lpd/cdjcolor-letter-ascii-mono:\
:if=/usr/libexec/filters/aps-cdjcolor-letter-ascii-mono:\
:mx#0:\
:sh:
lp2|cdjcolor-letter-auto-mono|cdjcolor auto mono:\
:lp=/dev/lp0:\
:sd=/var/spool/lpd/cdjcolor-letter-auto-mono:\
:if=/usr/libexec/filters/aps-cdjcolor-letter-auto-mono:\
:mx#0:\
:sh:
lp3|cdjcolor-letter-ascii-color|cdjcolor ascii color:\
:lp=/dev/lp0:\
:sd=/var/spool/lpd/cdjcolor-letter-ascii-color:\
:if=/usr/libexecr/filters/aps-cdjcolor-letter-ascii-color:\
:mx#0:\
:sh:
dj-ps|djps||cdjcolor-letter-auto-color|cdjcolor auto color:\
:lp=/dev/lp0:\
:sd=/var/spool/lpd/cdjcolor-letter-auto-color:\
:if=/usr/libexec/filters/aps-cdjcolor-letter-auto-color:\
:mx#0:\
:sh:
ls -lRA /var/spool/lpd:
/var/spool/lpd:
total 8
drwxr-xr-x 2 root daemon 1024 Sep 1 2000
cdjcolor-letter-ascii-color
drwxr-xr-x 2 root daemon 1024 Sep 1 2000
cdjcolor-letter-ascii-mono
drwxr-xr-x 2 root daemon 1024 Jun 10 2001
cdjcolor-letter-auto-color
drwxr-xr-x 2 root daemon 1024 Sep 1 2000 cdjcolor-letter-auto-mono
drwxr-xr-x 2 root lp 1024 Jan 14 12:07 dj
-rw-r--r-- 1 root root 0 Jan 14 2000 errorlog
-rw-r--r-- 1 root root 5 Aug 30 2000 lock
lrwxrwxrwx 1 root root 9 Dec 17 2000 lp -> prismatic
-rw-r--r-- 1 root root 5 Jan 13 17:49 lpd.lock
drwxr-xr-x 2 root lp 1024 Jan 14 14:03 prismatic
/var/spool/lpd/cdjcolor-letter-ascii-color:
total 1
-rw-r--r-- 1 root daemon 0 Sep 1 2000 acct
-rw-rw-r-- 1 root daemon 5 Jan 13 17:49 lock
-rw-r--r-- 1 root daemon 0 Sep 1 2000 log
/var/spool/lpd/cdjcolor-letter-ascii-mono:
total 1
-rw-r--r-- 1 root daemon 0 Sep 1 2000 acct
-rw-rw-r-- 1 root daemon 5 Jan 13 17:49 lock
-rw-r--r-- 1 root daemon 0 Sep 1 2000 log
/var/spool/lpd/cdjcolor-letter-auto-color:
total 4
-rw-r----- 1 root root 20 Oct 28 2000 .paprc
-rw-rw---x 1 root lp 4 Jun 10 2001 .seq
-rw-r--r-- 1 root daemon 0 Sep 1 2000 acct
-rw-rw-r-- 1 root daemon 5 Jan 13 17:49 lock
-rw-r--r-- 1 root daemon 0 Sep 1 2000 log
-rw-rw-r-- 1 root root 28 Jun 10 2001 status
/var/spool/lpd/cdjcolor-letter-auto-mono:
total 1
-rw-r--r-- 1 root daemon 0 Sep 1 2000 acct
-rw-rw-r-- 1 root daemon 5 Jan 13 17:49 lock
-rw-r--r-- 1 root daemon 0 Sep 1 2000 log
/var/spool/lpd/dj:
total 6
-rw-rw---x 1 root lp 4 Jan 14 12:07 .seq
-rw-r--r-- 1 root root 0 Aug 11 2000 acct
-rw------- 1 daemon daemon 0 Aug 7 2000 control.dj
-rw------- 1 daemon daemon 0 Aug 30 2000 dj
-rw-r--r-- 1 root root 14 Jan 14 12:07 lock
-rw------- 1 daemon daemon 109 Jun 10 2001 log
-rw------- 1 daemon daemon 25 Jan 14 12:07 status
-rw-r--r-- 1 root root 0 Aug 11 2000 status.dj
-rwxr-xr-x 1 daemon daemon 35 Jun 10 2001 textfilter
-rw------- 1 daemon daemon 6 Aug 30 2000 unspooler.dj
/var/spool/lpd/prismatic:
total 18
-rw-r----- 1 root daemon 24 Mar 10 1998 .paprc
-rw------- 1 daemon daemon 4 Jan 14 14:03 .seq
-rw------- 1 daemon daemon 9462 Jan 14 2000 filter
-rw------- 1 daemon daemon 190 Mar 10 1998 general.cfg
-rw-r----- 1 root root 15 Jan 14 14:03 lock
-rw------- 1 daemon daemon 0 Aug 10 2000 log
crw-rw-r-- 1 root daemon 1, 3 Aug 10 2000 null
-rw------- 1 daemon daemon 347 Jan 9 1998 postscript.cfg
-rw------- 1 daemon daemon 26 Jan 14 14:03 status
-rw------- 1 daemon daemon 146 Jan 9 1998 textonly.cfg
-rw------- 1 daemon daemon 6 Aug 27 2000 unspooler.lp
--
-eben eQbWeEnR@gTaYtUeI.nOePt home.tampabay.rr.com/hactar
VIRGO: All Virgos are extremely friendly and intelligent - except for you.
Expect a big surprise today when you wind up with your head impaled upon a
stick. -- Weird Al, _Your Horoscope for Today_