SlackwareThis 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.
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I recently started using Slackware 9, after using Mandrake for a couple of years. I want to set up CUPS on Slackware and run it with Samba so that my Windows 2000 machine can send print jobs to the printer that is connected to the Slackware machine.
I have Samba working properly (my Win2K machine can see the folder I am sharing). I have CUPS installed as well, but I can't seem to get any print jobs from the Win2K machine to successfully print. The Win2K machine sends the print job, and I can see the job in my print queue, but the printer never prints. I'm not sure if there is something that I need to add to my smb.conf file, or my cupsd.conf file. Below is my smb.conf file. Can someone recommend how to fix the problem?
Quote:
# Global parameters
[global]
workgroup = MSHOME
server string = Linux Samba Server %v
security = SHARE
encrypt passwords = Yes
map to guest = Bad User
log file = /var/log/samba/log.%m
max log size = 50
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
printcap name = cups
dns proxy = No
printer admin = @adm
printing = cups
username map = /etc/samba/smbusers
load printers = Yes
[homes]
comment = Home Directories
read only = No
browseable = No
[printers]
comment = All Printers
path = /var/spool/samba
create mask = 0700
guest ok = Yes
printable = Yes
print command = lpr -P %p -o raw %s -r # using client side printer drivers.
browseable = No
[print$]
path = /var/spool/samba/printers
write list = @adm root
guest ok = Yes
read only = Yes
browseable = Yes
[CanonS900]
comment = It's a damn good printer.
path = /var/spool/samba
read only = No
create mask = 0700
guest ok = Yes
hosts allow = 192.168.0.4, 192.168.0.3, 192.168.0.2, 192.168.0.5
printable = Yes
print command = lpr -P %p -o raw %s -r # using client side printer drivers.
printer name = CanonS900
printing = cups
oplocks = No
Originally posted by Mathieu Also, the print command requires the absolute path to the command.
Code:
print command = /usr/bin/lpr ...
It still doesn't work. I'm beginning to wonder if the problem is with CUPS and not Samba. I remember when I used Mandrake, and ran 'iptraf', I would occasionally see the CUPS daemon broadcast over my LAN. But I don't see that when I run 'iptraf' with Slack. Although when I do a search, on my Win2K machine, for the Slack machine it shows the folder that I am sharing through Samba and my the printer connected to the Slack machine.
Print from a Linux box to a shared Windows 2OOO printer using LPD
Install TCP/IP Print Services on the Windows 2OOO box:
Start -> Settings -> Control Panel -> Network and Dial-up Connections
-> Advanced Menu -> Optional Networking Components -> Tick Other Network
File and Print Services -> Click Next and fol1ow the prompts.
Enable TCP/IP Print Services on the Windows 2OOO box:
Start -> Settings _> Control Panel -> Adminīstrative Tools ->
Services -> Doub1e Click TCP/'IP Print Server -> Change Startup type
to Automatic -> Click OK
Ensure the Windows printer is shared out as you normally would and has the correct permissions to allow anyone to print to it.
Setup the printer in CUPS:
Administration -> Add Printer -> Give it a name -> LPD/LPR Host
or Printer -> lpd=//(server name or IP)/{printer share name}
(eg: lpd://1O.O.O.1O/HPLJ6P) -> Select your make and model.
Print a test page from CUPS to test it out.
Thanks, but I got Samba and CUPS to work afterall I downloaded the version of Samba and CUPS on Slackware's site and tinkered with my smb.conf file a little more, and now everything works.
Originally posted by jspaceman Thanks, but I got Samba and CUPS to work afterall I downloaded the version of Samba and CUPS on Slackware's site and tinkered with my smb.conf file a little more, and now everything works.
Would you mind posting your configuration file (specially the printer configurations) now that it's working correctly? I'm having the same kind of problem here
Originally posted by arakno Would you mind posting your configuration file (specially the printer configurations) now that it's working correctly? I'm having the same kind of problem here
My smb.conf file:
Quote:
# Global parameters
[global]
workgroup = MSHOME
server string = %h Samba Server %v
security = SHARE
encrypt passwords = Yes
map to guest = Bad User
username map = /etc/samba/smbusers
log file = /var/log/samba/log.%m
max log size = 50
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
printcap name = /etc/printcap
dns proxy = No
printer admin = @adm
printing = cups
load printers = yes
[homes]
comment = Home Directories
read only = No
browseable = No
[printers]
comment = All Printers
path = /var/spool/samba
create mask = 0700
guest ok = Yes
printable = Yes
print command = lpr -P %p -o raw %s -r
browseable = No
[print$]
path = /var/spool/samba
write list = @adm root
guest ok = Yes
[CanonS900]
comment = It's a damn good printer.
path = /var/spool/samba
read only = No
create mask = 0700
guest ok = Yes
hosts allow = 192.168.0.4, 192.168.0.3, 192.168.0.2, 192.168.0.5
printable = Yes
print command = lpr -P %p -o raw %s -r
printer name = CanonS900
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.