LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices



Reply
 
Search this Thread
Old 05-26-2005, 11:53 PM   #1
xcythe
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:
===============================================================
[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.
 
Old 05-27-2005, 07:39 AM   #2
allend
Senior Member
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 3,524

Rep: Reputation: 876Reputation: 876Reputation: 876Reputation: 876Reputation: 876Reputation: 876Reputation: 876
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, 12:04 PM   #3
xcythe
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, 07:00 PM   #4
apsn
LQ Newbie
 
Registered: Jun 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, 12:46 PM   #5
xcythe
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!!
 
  


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


All times are GMT -5. The time now is 04:37 AM.

Main Menu
Advertisement
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