LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 10-07-2006, 05:54 PM   #1
maddox1976
LQ Newbie
 
Registered: Oct 2005
Distribution: Slackware 10.2
Posts: 8

Rep: Reputation: 0
cups server + samba + windows client not printing


Hi,

Usualy i get things working by reading howtos, google, linuxquestions etc but now im totally confused. I missed something for sure. Any help would be appreciated

setup:
1 - Server, Slack 11: I got a HP OfficeJet 5510 working fine as LOCAL
2 - Desktop, Slack 11: I can print fine through CUPS
3 - Windows XP: I can browse the printers with samba but i cant add printer error says "The server for the printer does not have the correct printer driver installed... etc etc"

along with other things i have tried the following:

created /etc/samba/drivers/

/usr/share/cups/model/HP-OfficeJet_5500-hpijs.ppd

copied the folowing to /usr/share/cups/drivers/
-rwxr--r-- 1 root root 792644 2006-10-06 23:11 PSCRIPT.NTF*
-rwxr--r-- 1 root root 455168 2006-10-06 23:11 PSCRIPT5.DLL*
-rwxr--r-- 1 root root 129024 2006-10-06 23:10 Ps5ui.dll*
-rw-r--r-- 1 root root 803 2006-10-07 23:04 cups6.inf
-rw-r--r-- 1 root root 72 2006-10-07 23:04 cups6.ini
-rw-r--r-- 1 root root 9529 2006-10-06 22:57 cups6.ppd
-rw-r--r-- 1 root root 12568 2006-10-07 23:04 cupsps6.dll
-rw-r--r-- 1 root root 13672 2006-10-07 23:04 cupsui6.dll

the mini-howto from Till Kamppeter says i need cupsui6.dll cupsdrv6.dll ps5ui.dll pscript.hlp pscript.ntf pscript5.dll but i have no idea where to get cupsdrv6.dll ?

also when i try to cupsaddsmb -U root -v -a i get a "No Windows printer drivers are installed!"


Follows my smb.conf

[global]
workgroup = TUX-NET
server string = Samba Server
security = user
hosts allow = 192.168.0. 192.168.2. 127.
load printers = yes
printcap name = cups
printing = cups
log file = /var/log/samba.%m
max log size = 50
socket options = TCP_NODELAY
wins support = yes
dns proxy = no
restrict anonymous = no
domain master = no
preferred master = no
max protocol = NT
acl compatibility = winnt
ldap ssl = No
server signing = Auto
#============================ Share Definitions ==============================
[homes]
comment = Home Directories
read only = no
case sensitive = no
strict locking = no
msdfs proxy = no
force user = maddox
force group = wheel
guest ok = yes

[maxtor]
comment = Usb Server Maxtor
path = /mnt/usb-maxtor
browseable = yes
case sensitive = no
strict locking = no
msdfs proxy = no
hosts allow = 192.168.0.

# Un-comment the following and create the netlogon directory for Domain Logons
; [netlogon]
; comment = Network Logon Service
; path = /usr/local/samba/lib/netlogon
; guest ok = yes
; writable = no
; share modes = no


# Un-comment the following to provide a specific roving profile share
# the default is to use the user's home directory
;[Profiles]
; path = /usr/local/samba/profiles
; browseable = no
; guest ok = yes


# NOTE: If you have a BSD-style print system there is no need to
# specifically define each individual printer
[printers]
comment = All Printers
path = /var/spool/samba
browseable = yes
# Set public = yes to allow user 'guest account' to print
public = yes
guest ok = no
printable = yes
printer admin = root

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


And my cupsd.conf:

# Show general information in error_log.
LogLevel info
SystemGroup sys root
# Allow remote access
Port 631
Listen /var/run/cups/cups.sock
# Enable printer sharing and shared printers.
Browsing On
BrowseOrder allow,deny
BrowseAllow @LOCAL
BrowseAllow 192.168.0.*
BrowseAddress @LOCAL
BrowseAddress 192.168.0.*
BrowseAddress 192.168.0.255
DefaultAuthType Basic
<Location />
# Allow shared printing and remote administration...
Order allow,deny
Allow 192.168.0.*
</Location>
<Location /admin>
Encryption Required
# Allow remote administration...
Order allow,deny
Allow @LOCAL
</Location>
<Location /admin/conf>
AuthType Basic
Require user @SYSTEM
# Allow remote access to the configuration files...
Order allow,deny
Allow @LOCAL
</Location>
<Policy default>
<Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job CUPS-Move-Job>
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>
<Limit Pause-Printer Resume-Printer Set-Printer-Attributes Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After CUPS-Add-Printer CUPS-Delete-Printer CUPS-Add-Class CUPS-Delete-Class CUPS-Accept-Jobs CUPS-Reject-Jobs CUPS-Set-Default>
AuthType Basic
Require user @SYSTEM
Order deny,allow
</Limit>
<Limit CUPS-Authenticate-Job>
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>
# Only the owner or an administrator can cancel a job...
<Limit Cancel-Job>
Order deny,allow
Require user @OWNER @SYSTEM
</Limit>
<Limit All>
Order deny,allow
</Limit>
</Policy>
 
Old 10-07-2006, 07:50 PM   #2
verdeboy2k
Member
 
Registered: Jan 2004
Location: /dev/random
Distribution: Gentoo amd64, CrunchBang amd64
Posts: 350

Rep: Reputation: 32
umm you can print directly to CUPS using WinXP and bypass samba. Just add a network printer of the form http://aaa.bbb.ccc.ddd:631/printers/Printer_Name. WinXP will then automatically install the drivers from the CUPS server.
 
Old 10-08-2006, 03:37 PM   #3
maddox1976
LQ Newbie
 
Registered: Oct 2005
Distribution: Slackware 10.2
Posts: 8

Original Poster
Rep: Reputation: 0
I managed to print the way you said. Thanks a lot for that!!!

Meanwhile i managed to get it working with samba. It turns out that cupsaddsmb looks for drivers in /usr/share/cups/drivers and they have to be lower case (duh)

Thanks
 
Old 10-10-2006, 06:51 PM   #4
gjhicks
Member
 
Registered: Jun 2004
Location: Melbourne, Australia
Posts: 47

Rep: Reputation: 15
Hi,

Am also having a lot of fun trying to get a printer to work in WinXP.

Tried your suggestion of the "http://aaa.bbb.ccc.ddd:631/printers/Printer_Name" approach, which in my case is http://192.168.1.1:631/printers/LEX600. When using the WinXP Add Printer wizard, got the error: "Windows cannot connect to the printer. Operation could not be completed.".

The printer works fine on the Linux machine.

On the WinXP machine, entering "http://192.168.1.1:631/printers/" in the browser (firefox) address bar accesses the Cups server without any problem. Printing a test page from the WinXP browser worked fine.

Any suggestions gratefully accepted.

Regards,

Geoff.
 
Old 10-14-2006, 04:51 PM   #5
linmix
Senior Member
 
Registered: Jun 2004
Location: Spain
Distribution: FC5
Posts: 1,993
Blog Entries: 1

Rep: Reputation: 46
I'm trying to follow your steps, but haven't been able to complete the last one, i.e. I can't access "http//:192.186.0.1:631/printer/" (that's my config and I can ping it ok).

Have you done anything on either the linux side (maybe firewall related?) or the windows side to get this far?
 
Old 10-15-2006, 02:00 AM   #6
gjhicks
Member
 
Registered: Jun 2004
Location: Melbourne, Australia
Posts: 47

Rep: Reputation: 15
Hi,

Thanks for your reply.

My cups setup is very basic (based on lots of browsing on the web):

AccessLog /var/log/cups/access_log
ErrorLog /var/log/cups/error_log
LogLevel info
PageLog /var/log/cups/page_log
Printcap /etc/printcap.cups

User lp
Group sys
Port 631

Browsing Off
SystemGroup lpadmin

<Location />

Encryption IfRequested
Satisfy All
Order deny,allow
Allow from 127.0.0.1
Allow from @LOCAL
Allow From 192.168.1

</Location>

<Location /admin>
AuthType None
Allow From All
</Location>

I have tried the process with the Windows firewall both on and off but got the same result.

Much appreciate any suggestions to get this working.

Regards,

Geoff.
 
Old 10-15-2006, 05:47 PM   #7
linmix
Senior Member
 
Registered: Jun 2004
Location: Spain
Distribution: FC5
Posts: 1,993
Blog Entries: 1

Rep: Reputation: 46
I included the 'ALoow from 192.186.0.*' line in cups and retsrted the deamon.
Still no luck.
Then I edited Samba and added the following:
Quote:
[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
printable = yes
and restarted samba

I then accessed my samba share from windows and - miricles do happen! - there was my printer with the name CUPS assigned it. I only had to install the drivers for windows and now I can print to it from my windows box.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
cups client not printing on server solar1951 Linux - Networking 2 09-08-2006 02:06 PM
Samba+Cups lexmark printing from windows MORA Debian 3 02-25-2006 03:52 PM
Printing to a cups samba server on slackware from windows computers Jared Lewis Linux - Networking 1 06-10-2005 02:55 PM
printing from win 98 client to samba printer on red hat linux with cups shashi_lq Linux - Networking 0 12-10-2003 01:04 AM
Windows printing to CUPS via Samba JahToasted Linux - General 0 08-22-2003 02:28 PM


All times are GMT -5. The time now is 08:25 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration