SAMBA & CUPS (Linux & Windows Printing)
Aye guys,
I'm trying to setup a print server. The current setup is a Slackware 10.1 PC running SAMBA & CUPS. There are three printers attached to this PC locally. They are HP Laserjet 1100 Epson Stylus Color 740 Lexmark Z42. The HP is connected via Parallel port. The LEXMARK and EPSON are connected via USB. I can print fine to all three locally. Now it gets interesting...I can print remotely, to the EPSON and the HP from my other Slackware 10 machine, but can't print to the LEXMARK. My machine is a dual boot with WIN2K on the other partition and my Dad has a laptop with XP, we both can print to the HP from Windows, but can't print to the EPSON or the LEXMARK. The samba config file on the printserver is as follows: =============================================================== [global] workgroup = cauldron.lair server string = prtserver1 security = share hosts allow = 192.168.1. 192.168.0. 127. load printers = yes printcap name = lpstat printing = cups log file = /var/log/samba.%m max log size = 50 socket options = TCP_NODELAY SO_SNDBUF=8192 SO_RCVBUF=8192 interfaces = eth0 local master = yes domain master = no preferred master = no domain logons = yes dns proxy = no restrict anonymous = no max protocol = lanman1 ldap ssl = No server signing = Auto winbind use default domain = yes winbind enable local accounts = yes announce as = win95 min protocol = lanman1 null passwords = yes guest ok = yes encrypt passwords = no ntlm auth = no #============================ Share Definitions ============================== [homes] comment = Home Directories guest ok = yes [Profiles] path = /usr/local/samba/profiles [printers] comment = All Printers path = /var/spool/samba/ # Set public = yes to allow user 'guest account' to print guest ok = yes printable = yes print command = /usr/bin/lpr -P %p -o raw %s -r printer name = hp, lexmark, epson printer admin = root use client driver = yes case sensitive = no msdfs proxy = no force user = nobody [hp] comment = HP LaserJet 1100 path = /var/spool/samba read only = no create mask = 0700 guest ok = yes hosts allow = 192.168.1. 192.168.0. 127. printable = yes print command = /usr/bin/lpr -P %p -o raw %s -r printer name = hp printer admin = root use client driver = yes [CUPS] path = /var/spool/cups case sensitive = no msdfs proxy = no ================================================================ I apologize for the length. Now I just have a sneaking suspicion that it's something really simple that I'm overlooking due to my "newbiness." So what's missing? Any assistance would be greatly appreciated, thanks in advance. |
What happens if you create entries for your other printers in your smb.conf?
I note that you have an entry for the hp, but you do not have entries for the lexmark or epson. |
I had entries for each individual printer before, it didn't change anything.
|
If you have to use Samba (e.g. you have Windows 98 or prior on your network) you could try the following as it allows CUPS to process documents from Windows sources:
- In your /etc/cups/mime.convs and /etc/cups/mime.types files, uncommnent the "application/octet-stream" lines. If your Windows versions are 2k or XP, you could do the above as well as bypassing Samba and using the internet print functionality of CUPS: - amend your /etc/cups/cups.conf file to allow direct access: in the <Location /></ Location> section and the <Location/printers /> </ Location> sections change the allow permissions to deny from all and allow from your subnet (allow from 192.168.?.) - on your Windows machines, add printer, choose the URL entry box and input: http://<printer IP address>:631/printers/<printer name> For linux print servers behind a firewall internet print tends to be quick and painless, you might even get your Lexmark to work! Have fun! |
I guess I should have made sure and setup CUPS properly before tackling SAMBA.
Thanx alot. Works great now!! |
All times are GMT -5. The time now is 03:48 PM. |