PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : ...nochmal Samba, diesmal Drucken über CUPS



ullifichte
28.05.02, 20:46
Ich bekomme unter Samba meine beiden Drucker einfach nicht ans laufen! Über die Command-Zeile kann ich drucken (lpr ...), aus dem Fernzugriff über den Browser meiner WS kann ich auch drucken (Testseite!), nur unter Samba kriege ich das Teil nicht hin! Kan zwar die Drucker installieren, nur geht der Druckjob ins Nirvana!

Hier der Auszug aus den smb.conf:

[printers]
comment = All Printers
path = /var/tmp
guest ok = yes
writeable = no
create mode = 0700
create mask = 0600
printable = Yes
browseable = yes
print command = lpr -P %p -o raw $s -r
lpq command = lpstat -o %p
lprm command = cancel %p-%j


Gruß

Ulli

Newbie2001
28.05.02, 22:36
is in den logs auf dem server irgendwas auffälliges zu finden ?

ullifichte
28.05.02, 22:58
Aus der smbd.log (auffällig!):

[2002/05/25 22:04:21, 0] printing/pcap.c:pcap_printer_fn(373)
Unable to open printcap file /etc/printcap for read!

In der /etc/printcap steht drin:

HP6l:
HP970CXI:


Kannst du damit was anfangen?!?
Gruß
Ulli

thilly
29.05.02, 11:10
Wie sieht deine Global zone aus?

Newbie2001
29.05.02, 11:14
hm, die printcap wird eigentlich nur gebraucht wenn du lprng als printing-system verwendest, wenn du cups hast, dann leigen die druckertreiber meist unter /etc/cups/printers (sofern du einen drucker installiert hast)

thilly
29.05.02, 12:41
Hi ich habs auch mal bei mir ausprobiert! geht auch nicht!
Oder sagen wir besser nicht mehr! Das komische ist ich habs vor 2-3 wochen hinbekommen, aber auf einmal gehts nicht mehr! Mir ist auch nicht bewusst was ich geändert hätte!
Drucken vom Linux direkt geht ohne Probleme!
Hilfe....

Hier die SMB.conf:

[global]
workgroup = W8D00448
server string = W8D00448
encrypt passwords = Yes
map to guest = Bad User
username map = /etc/samba/smbusers
log level = 3
keepalive = 30
os level = 2
kernel oplocks = No
printing = cups

[printers]
comment = All Printers
path = /var/tmp
create mask = 0600
guest ok = Yes
printable = Yes
print command = lpr -P %p -o raw $s -r
lpq command = lpstat -o %p
lprm command = cancel %p-%j
printer name = lp
use client driver = Yes
default devmode = Yes
printer driver location = /etc/cups/printers

Hier ein auszug des LOGS: (werd nicht ganz schlau draus)

[2002/05/29 13:38:13, 3] smbd/ipc.c:reply_trans(480)
trans <\PIPE\LANMAN> data=0 params=23 setup=0
[2002/05/29 13:38:13, 3] smbd/ipc.c:named_pipe(334)
named pipe command on <LANMAN> name
[2002/05/29 13:38:13, 3] smbd/lanman.c:api_reply(3344)
Got API command 70 of form <zWrLh> <K> (tdscnt=0,tpscnt=23,mdrcnt=0,mprcnt=6)
[2002/05/29 13:38:13, 3] smbd/lanman.c:api_reply(3348)
Doing DosPrintQGetInfo
[2002/05/29 13:38:13, 3] smbd/lanman.c:api_DosPrintQGetInfo(884)
api_DosPrintQGetInfo: uLevel=51 name=PRINTERS
[2002/05/29 13:38:13, 3] printing/printing.c:print_cache_expired(772)
print cache expired for queue printers (last_cache = 1022670736, time now = 1022672293, qcachetime = 10)
[2002/05/29 13:38:13, 3] printing/print_generic.c:print_run_command(88)
Running the command `lpstat -o lp' gave 127
[2002/05/29 13:38:13, 3] printing/printing.c:print_queue_update(396)
0 jobs in queue for printers
[2002/05/29 13:38:13, 3] smbd/lanman.c:api_TooSmall(3238)
Supplied buffer too small in API command
[2002/05/29 13:38:13, 3] smbd/process.c:process_smb(860)
Transaction 4 of length 116
[2002/05/29 13:38:13, 3] smbd/process.c:switch_message(667)
switch message SMBtrans (pid 13733)
[2002/05/29 13:38:13, 3] smbd/ipc.c:reply_trans(480)
trans <\PIPE\LANMAN> data=0 params=36 setup=0
[2002/05/29 13:38:13, 3] smbd/ipc.c:named_pipe(334)
named pipe command on <LANMAN> name
[2002/05/29 13:38:13, 3] smbd/lanman.c:api_reply(3344)
Got API command 70 of form <zWrLh> <zWWWWzzzzWWzzl> (tdscnt=0,tpscnt=36,mdrcnt=2398,mprcnt=6)
[2002/05/29 13:38:13, 3] smbd/lanman.c:api_reply(3348)
Doing DosPrintQGetInfo
[2002/05/29 13:38:13, 3] smbd/lanman.c:api_DosPrintQGetInfo(884)
api_DosPrintQGetInfo: uLevel=3 name=PRINTERS
[2002/05/29 13:38:13, 3] smbd/process.c:process_smb(860)
Transaction 5 of length 103
[2002/05/29 13:38:13, 3] smbd/process.c:switch_message(667)
switch message SMBtrans (pid 13733)
[2002/05/29 13:38:13, 3] smbd/ipc.c:reply_trans(480)
trans <\PIPE\LANMAN> data=0 params=23 setup=0
[2002/05/29 13:38:13, 3] smbd/ipc.c:named_pipe(334)
named pipe command on <LANMAN> name
[2002/05/29 13:38:13, 3] smbd/lanman.c:api_reply(3344)
Got API command 70 of form <zWrLh> <K> (tdscnt=0,tpscnt=23,mdrcnt=2,mprcnt=6)
[2002/05/29 13:38:13, 3] smbd/lanman.c:api_reply(3348)
Doing DosPrintQGetInfo
[2002/05/29 13:38:13, 3] smbd/lanman.c:api_DosPrintQGetInfo(884)
api_DosPrintQGetInfo: uLevel=51 name=PRINTERS
[2002/05/29 13:38:16, 3] smbd/process.c:process_smb(860)
Transaction 6 of length 39
[2002/05/29 13:38:16, 3] smbd/process.c:switch_message(667)
switch message SMBtdis (pid 13733)
[2002/05/29 13:38:16, 3] smbd/sec_ctx.c:set_sec_ctx(314)
setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2002/05/29 13:38:16, 3] smbd/sec_ctx.c:set_sec_ctx(314)
setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2002/05/29 13:38:16, 3] smbd/service.c:close_cnum(655)
"log.smbd" 1429L, 72729C