Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 05-26-2005, 10:53 PM   #1
LQ Newbie
Registered: Aug 2003
Location: North America
Posts: 5

Rep: Reputation: 0
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:

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 ==============================
comment = Home Directories
guest ok = yes

path = /usr/local/samba/profiles

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

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

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.
Old 05-27-2005, 06:39 AM   #2
Senior Member
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 4,309

Rep: Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266
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.
Old 05-27-2005, 11:04 AM   #3
LQ Newbie
Registered: Aug 2003
Location: North America
Posts: 5

Original Poster
Rep: Reputation: 0
I had entries for each individual printer before, it didn't change anything.
Old 05-31-2005, 06:00 PM   #4
LQ Newbie
Registered: May 2003
Posts: 11

Rep: Reputation: 0
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!
Old 06-12-2005, 11:46 AM   #5
LQ Newbie
Registered: Aug 2003
Location: North America
Posts: 5

Original Poster
Rep: Reputation: 0
I guess I should have made sure and setup CUPS properly before tackling SAMBA.

Thanx alot. Works great now!!


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
printing accounts & samba/cups mmcampbe Linux - Networking 0 09-22-2005 01:15 PM
yet another samba q: browsing & printing w/ cups to XP marier Linux - Networking 0 08-18-2005 12:55 PM
Printing from Linux to WinXP (SAMBA & CUPS) Yoda_Oz Linux - Networking 0 02-03-2005 09:20 PM
CUPS SAMBA & multi-tray printing bohara Linux - Networking 0 12-30-2003 03:24 PM
Printing using Samba & CUPS Defboy2k Linux - Networking 0 01-31-2003 03:50 AM

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

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