Koozali.org: home of the SME Server

printers

dwater

printers
« on: December 28, 2004, 01:17:17 PM »
I am having trouble with our printers.

I installed cups, and the printers work fine from the admin page, but I get a access denied problem when trying to print from XP Pro.

I found some thread (can't find it now) about it and followed the instructions, which involved moving 50printers from somewhere to /etc/e-smith/templates-custom/smb.conf.

Now, I cannot browse the printers at all from my XP Pro w/s.

I worry that I will just try too many people's suggestions, just because it works for them.

Any ideas?

Max.

Offline Tib

  • *
  • 571
  • +0/-0
    • http://www.tibors.net
printers
« Reply #1 on: December 28, 2004, 02:29:22 PM »
Hi

Should have just tried e-smith-advworkgroup-0.3-4.noarch.rpm

Then just enable the "Guest Ok"

have fun.

Tib

dwater

printers
« Reply #2 on: December 29, 2004, 05:01:36 AM »
Quote from: "Tib"
Hi

Should have just tried e-smith-advworkgroup-0.3-4.noarch.rpm

Then just enable the "Guest Ok"

have fun.

Tib


Hrm, OK.

It looks like this is still beta. Should I be concerned?
Also, can I just install this even though I made the above change, or do I need to reverse the change I made (if so, how?)?

Max.

dwater

printers
« Reply #3 on: December 29, 2004, 06:42:29 AM »
Quote from: "Tib"
e-smith-advworkgroup-0.3-4.noarch.rpm

Then just enable the "Guest Ok"


OK, I installed that and enabled guest.

Now I don't get the access denied message, but still nothing comes out of the printer.

What steps should I use to shoot this trouble?

Max.

Offline Tib

  • *
  • 571
  • +0/-0
    • http://www.tibors.net
printers
« Reply #4 on: December 29, 2004, 02:07:08 PM »
Quote
Also, can I just install this even though I made the above change, or do I need to reverse the change I made (if so, how?)?


I has it a guess you have to undo what you have done ... how to do that I have no idea ... I'm just a user of SME  don't know too much about the heart of things ... maybe one of the more advanced guys can help.

Tib

dwater

printers
« Reply #5 on: December 29, 2004, 02:14:27 PM »
Quote from: "Tib"
Quote
Also, can I just install this even though I made the above change, or do I need to reverse the change I made (if so, how?)?


I has it a guess you have to undo what you have done ... how to do that I have no idea ... I'm just a user of SME  don't know too much about the heart of things ... maybe one of the more advanced guys can help.

Tib


If it helps, (I think) this is the thread :

http://forums.contribs.org/index.php?topic=21332.0

specifically, a comment by 'smeghead' :

Quote from: "smeghead"
...(copy /etc/e-smith/templates/etc/smb.conf/50printers to /etc/e-smith/templates-custom/etc/smb.conf/50printers, make changes and then regenerate the smb.conf file (/sbin/e-smith/expand-template /etc/smb.conf)

It wouldn't hurt to run

service smb restart

again for good measure.
...



Like I said, from the XP side, it looks like it solved the problem, but nothing comes out of the printer. I can print directly to the printer (it's a network printer) from both XP and SME, but not from XP through SME.

Nothing in any log files either - at least that I can see.

<scratch>

Offline Tib

  • *
  • 571
  • +0/-0
    • http://www.tibors.net
printers
« Reply #6 on: December 29, 2004, 02:49:23 PM »
Hi again,

All I can tell you is that after I loaded the contrib my  /etc/e-smith/templates-custom/etc/smb.conf/50printers  file did not change .. it is still as it was ...
{
# NOTE: If you have a BSD-style print system there is no need to
# specifically define each individual printer
# Set public = yes to allow user 'guest account' to print
}

[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
writable = no
printable = yes
{
my $guestOk = $smb{'GuestOk'} || "no";
my $useClientDriver = $smb{'UseClientDriver'} || "no";
"### This value was set by Advanced workgroup\n" .
"guest ok = $guestOk\n" .
"### This value was set by Advanced workgroup\n" .
"use client driver = $useClientDriver";
}
 
nor did my /etc/e-smith/templates/etc/smb.conf/50printers ...
{
# NOTE: If you have a BSD-style print system there is no need to
# specifically define each individual printer
# Set public = yes to allow user 'guest account' to print
}
[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
guest ok = no
writable = no
printable = yes
use client driver = yes

But when I look at the smb.conf file through the advanced workgroup page I can see that the smb.conf file has been changed ... this a snippet of my smb.conf ...

[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
writable = no
printable = yes
### This value was set by Advanced workgroup
guest ok = yes
### This value was set by Advanced workgroup
use client driver = yes
 

[netlogon]
comment = Network Logon Service
path = /home/e-smith/files/samba/netlogon
guest ok = yes
writable = yes
browseable = no


[print$]
comment = Printer drivers
path = /home/e-smith/files/samba/printers
guest ok = yes
browsable = yes
writable = yes
use client driver = yes

Not sure if this helps but maybe you can check your files against them.

Tib

dwater

printers
« Reply #7 on: December 29, 2004, 03:08:00 PM »
Quote from: "Tib"
Hi


Hi,

Everything was the same, apart from this line :

Code: [Select]

use client driver = yes


Toggling the setting in the Advanced workgroup panel a couple of times seemed to fix that, so now they are identical :)

...but no cigar :(

I'll try rebooting...nope, no difference.

Max.

Offline smeghead

  • *
  • 563
  • +0/-0
printers
« Reply #8 on: December 29, 2004, 03:50:03 PM »
Ok, you can print directly to the printer via SME & XP but not from XP to the printer via SME - its a Samba thang!

When printing via Samba (SMB printing) Samba uses a cache file called printing.tdb located in /var/cache/samba to control print jobs, this file is corrupted or outta sync with the lpr print spooler.

If you delete this file Samba will recreate it as required.

Now restart Samba or restart the SME box; your SMB printing should now work.

HTH
..................

dwater

printers
« Reply #9 on: December 29, 2004, 04:15:04 PM »
Quote from: "smeghead"
Ok, you can print directly to the printer via SME & XP but not from XP to the printer via SME - its a Samba thang!

When printing via Samba (SMB printing) Samba uses a cache file called printing.tdb located in /var/cache/samba to control print jobs, this file is corrupted or outta sync with the lpr print spooler.

If you delete this file Samba will recreate it as required.

Now restart Samba or restart the SME box; your SMB printing should now work.

HTH


I 'rm /var/cache/samba/printing.tdb' and '/sbin/service smb restart', but, still, nothing on the printer.

One thing; when I say it prints from SME, I actually mean using the 'Print Test Page' button on the CUPS web page. Is this what you thought I meant?

I can browse for the printers on XP (and OS X), find them, and add them w/o any problem. Just nothing comes out.

Just noticed this in the smbd/current log file :

Code: [Select]
standard input is not a socket, assuming -D option

Always seems to come after the copyright notice, so I don't think it's relevant?

What other log files should I look in?

Max.

Robert

printers
« Reply #10 on: December 29, 2004, 05:42:14 PM »
First run the command "which lp" from a shell prompt. If that returns "no lp in (YOUR PATH HERE)", read http://mirror.contribs.org/smeserver/contribs/rvandenaker/beta/e-smith-cups/documentation/howtos/howto-install-cups.html#note1
If that was not the problem, please have a look in /var/log/cups/error_log and look for errors.

dwater

printers
« Reply #11 on: December 29, 2004, 08:23:33 PM »
Quote from: "Robert"
If that was not the problem...


It was indeed the problem.

A thousand "thank you"s, sir.

I made a second mistake - the one about setting the printer up as raw - which meant I couldn't print from XP (OS X works which ever way it is set up).

Thanks again.

Max.

PS. I will try to read the instructions more carefully next time.

Robert

printers
« Reply #12 on: December 31, 2004, 11:24:17 AM »
You're welcome. By the way, XP prints to raw queues just fine. Just make sure that the printer is correctly configured in XP. Details are in the howtos.

dwater

printers
« Reply #13 on: December 31, 2004, 01:11:26 PM »
Quote from: "Robert"
...XP prints to raw queues just fine...


Yes, that's how I have it. I meant that I *didn't* have them as raw and so was having trouble printing.

I will try to find the howto's...thanks again.

Max.