Slackware This Forum is for the discussion of Slackware Linux.
|
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
10-07-2006, 05:54 PM
|
#1
|
|
LQ Newbie
Registered: Oct 2005
Distribution: Slackware 10.2
Posts: 8
Rep:
|
cups server + samba + windows client not printing
Hi,
Usualy i get things working by reading howtos, google, linuxquestions etc but now i´m 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>
|
|
|
|
10-07-2006, 07:50 PM
|
#2
|
|
Member
Registered: Jan 2004
Location: /dev/random
Distribution: Gentoo amd64, CrunchBang amd64
Posts: 350
Rep:
|
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.
|
|
|
|
10-08-2006, 03:37 PM
|
#3
|
|
LQ Newbie
Registered: Oct 2005
Distribution: Slackware 10.2
Posts: 8
Original Poster
Rep:
|
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
|
|
|
|
10-10-2006, 06:51 PM
|
#4
|
|
Member
Registered: Jun 2004
Location: Melbourne, Australia
Posts: 47
Rep:
|
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.
|
|
|
|
10-14-2006, 04:51 PM
|
#5
|
|
Senior Member
Registered: Jun 2004
Location: Spain
Distribution: FC5
Posts: 1,993
Rep:
|
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?
|
|
|
|
10-15-2006, 02:00 AM
|
#6
|
|
Member
Registered: Jun 2004
Location: Melbourne, Australia
Posts: 47
Rep:
|
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.
|
|
|
|
10-15-2006, 05:47 PM
|
#7
|
|
Senior Member
Registered: Jun 2004
Location: Spain
Distribution: FC5
Posts: 1,993
Rep:
|
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.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 09:27 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|