Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
HOWTO - Samba & CUPS 6.0 Windows Postscript Drivers
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2  
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
MorphiusFaydal
Tux's lil' helper
Tux's lil' helper


Joined: 20 Aug 2003
Posts: 113
Location: West Texas

PostPosted: Mon Aug 27, 2007 8:32 pm    Post subject: Reply with quote

When I follow this; I get:

Code:

Unable to copy Windows 2000 printer driver files (1)!
Running command: smbclient //localhost/print$ -N -A /var/spool/cups/tmp/46d33448180b1 -c 'mkdir W32X86;put /var/spool/cups/tmp/46d33421b4134 W32X86/HL-2040.ppd;put /usr/share/cups/drivers/ps5ui.dll W32X86/ps5ui.dll;put /usr/share/cups/drivers/pscript.hlp W32X86/pscript.hlp;put /usr/share/cups/drivers/pscript.ntf W32X86/pscript.ntf;put /usr/share/cups/drivers/pscript5.dll W32X86/pscript5.dll'


I'm running:
Code:

cupsaddsmb -H localhost -U root -h localhost -v HL-2040

_________________
Registered Linux User # 309023

vanilla-sources
XFce 4.4 and GNOME 2.20
Back to top
View user's profile Send private message
atdsm
Tux's lil' helper
Tux's lil' helper


Joined: 15 Jun 2003
Posts: 118
Location: Pennsylvania

PostPosted: Tue Aug 28, 2007 9:56 pm    Post subject: Reply with quote

I'm sorry; I haven't worked with these drivers in over a year now. I don't even know what version they're up to; this HOWTO may very well be obsolete.
_________________
There are 10 kinds of people: those who know binary and those who don't.
Back to top
View user's profile Send private message
MorphiusFaydal
Tux's lil' helper
Tux's lil' helper


Joined: 20 Aug 2003
Posts: 113
Location: West Texas

PostPosted: Tue Aug 28, 2007 10:01 pm    Post subject: Reply with quote

6.0 is still the latest.
_________________
Registered Linux User # 309023

vanilla-sources
XFce 4.4 and GNOME 2.20
Back to top
View user's profile Send private message
echto
Tux's lil' helper
Tux's lil' helper


Joined: 30 Jun 2002
Posts: 108

PostPosted: Wed Oct 03, 2007 9:07 pm    Post subject: Reply with quote

Code:
 
Unable to copy Windows 2000 printer driver files (1)!
Running command: smbclient ///var/run/cups/cups.sock/print$ -N -A /var/spool/cups/tmp/449bfe3fcdd30 -c 'mkdir W32X86;put /var/spool/cups/tmp/449bfe38c45a6 W32X86/LexmarkE220.ppd;put /usr/share/cups/drivers/ps5ui.dll W32X86/ps5ui.dll;put /usr/share/cups/drivers/pscript.hlp W32X86/pscript.hlp;put /usr/share/cups/drivers/pscript.ntf W32X86/pscript.ntf;put /usr/share/cups/drivers/pscript5.dll W32X86/pscript5.dll'
Connection to  failed


Make sure your 'write list' contains a valid user such as 'root'.

Code:

[print$]
comment = Printer Drivers
path = /etc/samba/drivers
guest ok = no
browseable = yes
read only = yes
write list = root
Back to top
View user's profile Send private message
MorphiusFaydal
Tux's lil' helper
Tux's lil' helper


Joined: 20 Aug 2003
Posts: 113
Location: West Texas

PostPosted: Sun Oct 07, 2007 10:16 pm    Post subject: Reply with quote

echto wrote:
Code:
 
Unable to copy Windows 2000 printer driver files (1)!
Running command: smbclient ///var/run/cups/cups.sock/print$ -N -A /var/spool/cups/tmp/449bfe3fcdd30 -c 'mkdir W32X86;put /var/spool/cups/tmp/449bfe38c45a6 W32X86/LexmarkE220.ppd;put /usr/share/cups/drivers/ps5ui.dll W32X86/ps5ui.dll;put /usr/share/cups/drivers/pscript.hlp W32X86/pscript.hlp;put /usr/share/cups/drivers/pscript.ntf W32X86/pscript.ntf;put /usr/share/cups/drivers/pscript5.dll W32X86/pscript5.dll'
Connection to  failed


Make sure your 'write list' contains a valid user such as 'root'.

Code:

[print$]
comment = Printer Drivers
path = /etc/samba/drivers
guest ok = no
browseable = yes
read only = yes
write list = root


Yes.

Code:
Running command: smbclient //localhost/print$ -N -A /var/spool/cups/tmp/47095a8c44379 -c 'mkdir W32X86;put /var/spool/cups/tmp/47095a8642f4e W32X86/HL-2040.ppd;put /usr/share/cups/drivers/ps5ui.dll W32X86/ps5ui.dll;put /usr/share/cups/drivers/pscript.hlp W32X86/pscript.hlp;put /usr/share/cups/drivers/pscript.ntf W32X86/pscript.ntf;put /usr/share/cups/drivers/pscript5.dll W32X86/pscript5.dll'
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.0.24]
Server not using user level security and no password supplied.
NT_STATUS_NETWORK_ACCESS_DENIED making remote directory \W32X86
Failed to open \W32X86/HL-2040.ppd: NT_STATUS_OBJECT_PATH_NOT_FOUND
Failed to open \W32X86/ps5ui.dll: NT_STATUS_OBJECT_PATH_NOT_FOUND
Failed to open \W32X86/pscript.hlp: NT_STATUS_OBJECT_PATH_NOT_FOUND
Failed to open \W32X86/pscript.ntf: NT_STATUS_OBJECT_PATH_NOT_FOUND
Failed to open \W32X86/pscript5.dll: NT_STATUS_OBJECT_PATH_NOT_FOUND

Unable to copy Windows 2000 printer driver files (1)!


Is what I'm getting now.

Here's my smb.conf:

Code:

[global]
        workgroup = Workgroup
        netbios name = REMUS
        server string = Remus (Samba Server %v)
        security = share
        preferred master = yes
        socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
#       vfs object = vscan-clamav
#       vscan-clamav: config-file = /etc/samba/vscan-clamav.conf
        printcap name = cups
        printing = cups
        load printers = yes

[public]
        comment = Public files
        path = /home/samba/public
        read only = no
        writeable = yes
        guest ok = yes

[print$]
        comment = Printer drivers
        path = /etc/samba/printer
        guest ok = yes
        browseable = yes
        read only = yes
        write list = root

[HL-2040]
        comment = Brother HL-2040 Series
        printable = yes
        path = /var/spool/samba
        public = yes
        guest ok = yes
        printer admin = root

[printers]
        comment = All Printers
        browseable = no
        printable = yes
        writeable = yes
        public = yes
        guest ok = yes
        path = /var/spool/samba
        printer admin = root
        write list = root

_________________
Registered Linux User # 309023

vanilla-sources
XFce 4.4 and GNOME 2.20
Back to top
View user's profile Send private message
darkphader
Veteran
Veteran


Joined: 09 May 2002
Posts: 1217
Location: Motown

PostPosted: Sun Oct 07, 2007 10:29 pm    Post subject: Reply with quote

Are you using Gentoo? And emerge to install Samba?
If so it might behoove you to use the paths that are already properly setup by the ebuild. Look at the example smb.conf that is provided, zoom in on the print$ share and you may begin to see the problem.

Chris
_________________
WYSIWYG - What You See Is What You Grep
Back to top
View user's profile Send private message
MorphiusFaydal
Tux's lil' helper
Tux's lil' helper


Joined: 20 Aug 2003
Posts: 113
Location: West Texas

PostPosted: Sun Oct 07, 2007 10:36 pm    Post subject: Reply with quote

darkphader wrote:
Are you using Gentoo? And emerge to install Samba?
If so it might behoove you to use the paths that are already properly setup by the ebuild. Look at the example smb.conf that is provided, zoom in on the print$ share and you may begin to see the problem.

Chris


Can you copy that here, I believe I deleted mine. Or at least; it's not in /etc/samba not /usr/share/doc/samba-3.0.24-r3
_________________
Registered Linux User # 309023

vanilla-sources
XFce 4.4 and GNOME 2.20
Back to top
View user's profile Send private message
darkphader
Veteran
Veteran


Joined: 09 May 2002
Posts: 1217
Location: Motown

PostPosted: Sun Oct 07, 2007 10:40 pm    Post subject: Reply with quote

MorphiusFaydal wrote:
Can you copy that here, I believe I deleted mine. Or at least; it's not in /etc/samba not /usr/share/doc/samba-3.0.24-r3

It's smb.conf.example in /etc/samba/ - just remerge samba or untar the corresponding gentoo package.
_________________
WYSIWYG - What You See Is What You Grep
Back to top
View user's profile Send private message
MorphiusFaydal
Tux's lil' helper
Tux's lil' helper


Joined: 20 Aug 2003
Posts: 113
Location: West Texas

PostPosted: Mon Oct 08, 2007 2:56 am    Post subject: Reply with quote

Okay; here's the relevant section in the example conf:

Code:
[print$]
   path = /var/lib/samba/printers
   browseable = yes
   read only = yes
   write list = @adm root
   guest ok = yes


And here's mine now:
Code:
[print$]
        comment = Printer drivers
        path = /var/lib/samba/printers
        guest ok = yes
        browseable = yes
        read only = yes
        write list = @adm root


SO!

Here's the now-current error:
Code:
Running command: smbclient //localhost/print$ -N -A /var/spool/cups/tmp/47099c564cd1d -c 'mkdir W32X86;put /var/spool/cups/tmp/47099c5263030 W32X86/HL-2040.ppd;put /usr/share/cups/drivers/ps5ui.dll W32X86/ps5ui.dll;put /usr/share/cups/drivers/pscript.hlp W32X86/pscript.hlp;put /usr/share/cups/drivers/pscript.ntf W32X86/pscript.ntf;put /usr/share/cups/drivers/pscript5.dll W32X86/pscript5.dll'
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.0.24]
Server not using user level security and no password supplied.
NT_STATUS_NETWORK_ACCESS_DENIED making remote directory \W32X86
NT_STATUS_ACCESS_DENIED opening remote file \W32X86/HL-2040.ppd
NT_STATUS_ACCESS_DENIED opening remote file \W32X86/ps5ui.dll
NT_STATUS_ACCESS_DENIED opening remote file \W32X86/pscript.hlp
NT_STATUS_ACCESS_DENIED opening remote file \W32X86/pscript.ntf
NT_STATUS_ACCESS_DENIED opening remote file \W32X86/pscript5.dll

Unable to copy Windows 2000 printer driver files (1)!


cupsaddsmb -H localhost -U root -h localhost -v HL-2040
_________________
Registered Linux User # 309023

vanilla-sources
XFce 4.4 and GNOME 2.20
Back to top
View user's profile Send private message
darkphader
Veteran
Veteran


Joined: 09 May 2002
Posts: 1217
Location: Motown

PostPosted: Mon Oct 08, 2007 5:27 am    Post subject: Reply with quote

Hint:
Code:
Server not using user level security and no password supplied.

Did you you have some important reason to change the default security mode?
Really, if you want to use Samba you should RTFM! Especially before deciding to change defaults!
http://us1.samba.org/samba/docs/man/Samba-HOWTO-Collection/
http://us1.samba.org/samba/docs/man/Samba-Guide/
_________________
WYSIWYG - What You See Is What You Grep
Back to top
View user's profile Send private message
MorphiusFaydal
Tux's lil' helper
Tux's lil' helper


Joined: 20 Aug 2003
Posts: 113
Location: West Texas

PostPosted: Mon Oct 08, 2007 5:32 am    Post subject: Reply with quote

darkphader wrote:
Hint:
Code:
Server not using user level security and no password supplied.

Did you you have some important reason to change the default security mode?
Really, if you want to use Samba you should RTFM! Especially before deciding to change defaults!
http://us1.samba.org/samba/docs/man/Samba-HOWTO-Collection/
http://us1.samba.org/samba/docs/man/Samba-Guide/


Because I was trying to set up a general-access fileshare. I do on occasion have people over to my apartment with their computers, and rather than have to train them in the use of usernames and passwords and set up usernames for everyone, I just set the security to share. Which I was under the impression that that was an acceptable method of setting up a share. Or else why would it be in SAMBA?

Also; the lack of of a big "ERROR" or similar next to the "Server not using user level security and no password supplied." meant to *me* that it was a warning or status message of some kind, that wasn't relevant to the operation at hand. Especially since it asks me for the password to the root samba user every time I run the command.
_________________
Registered Linux User # 309023

vanilla-sources
XFce 4.4 and GNOME 2.20
Back to top
View user's profile Send private message
darkphader
Veteran
Veteran


Joined: 09 May 2002
Posts: 1217
Location: Motown

PostPosted: Mon Oct 08, 2007 5:50 am    Post subject: Reply with quote

MorphiusFaydal wrote:
I just set the security to share. Which I was under the impression that that was an acceptable method of setting up a share. Or else why would it be in SAMBA?

If you read the docs you will find the answer to that question. Basically you can't do domain PDC stuff with share level security - you're acting like an old Win95 box (don't expect auto-driver download, etc.). It's easy enough to set up guest shares without resorting to "security = share" which is generally frowned upon (a reading of 'man smb.conf' should convince you of this).
The main problem with Samba is not 'with Samba', it's that many users don't understand Windows networking which Samba emulates. The reality is, that a working knowledge of Windows networking is very useful to implenting Samba without a lot of new study. If you don't have that background, read the docs and start with the defaults.
_________________
WYSIWYG - What You See Is What You Grep
Back to top
View user's profile Send private message
boogles
n00b
n00b


Joined: 23 Jan 2008
Posts: 1
Location: San Francisco, California, US

PostPosted: Wed Jan 23, 2008 2:51 am    Post subject: Reply with quote

Quote:

Paperone samba # cupsaddsmb -U root -v PSC-1215
Password for root required to access /var/run/cups/cups.sock via SAMBA:
No Windows printer drivers are installed!
No Windows printer drivers are installed!
No Windows printer drivers are installed!
No Windows printer drivers are installed!
No Windows printer drivers are installed!
No Windows printer drivers are installed!
No Windows printer drivers are installed!
No Windows printer drivers are installed!
No Windows printer drivers are installed!
...


I had this problem too. After some experimentation I discovered that is because the files that cupsaddsmb is looking for are case sensitive.

This is a really old thread, but it is what came up in Google when I searched for help.

-b
Back to top
View user's profile Send private message
stephelton
Tux's lil' helper
Tux's lil' helper


Joined: 29 Mar 2004
Posts: 84
Location: Dallas, TX, USA

PostPosted: Fri Jan 25, 2008 8:53 pm    Post subject: Reply with quote

Just thought I'd post the problem I ran in to and my solution.

I had set up the printers, got it shared with a windows machine, and had tried printing many jobs. All would fail and I would find this in my cups log:

Code:
PID 16862 (/usr/libexec/cups/filter/pstoraster) crashed on signal 11!


A long story short, I finally tried messing with the printer options under the windows machine I was trying to print from. It was trying to print at 5760x1440 dpi! Now I knew that this crappy printer wouldn't handle that, so I changed it to something more reasonable -- 720 dpi. Worked like a charm.

To access the printer options, browse to the printer, view its properties, select the General tab, click "Printing Preferences...", Select the "Paper/Quality" tab, click "Advanced..." and you'll find what appear to be the same options found under the cups web interface.

Hope that helps some people!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum