LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-03-2008, 10:55 PM   #1
wastingtime
Member
 
Registered: Sep 2004
Posts: 86

Rep: Reputation: 17
sharing a printer using samba


I have two machines: 10 and 16

10 is running a samba server

16 is connected to a local printer and shares it using cups. 10 can access that printer.

I want to set up the samba server on 10 to provide access to the printer connected to 16

How do I configure samba ?
 
Old 09-04-2008, 09:38 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 22,720

Rep: Reputation: 6252Reputation: 6252Reputation: 6252Reputation: 6252Reputation: 6252Reputation: 6252Reputation: 6252Reputation: 6252Reputation: 6252Reputation: 6252Reputation: 6252
Quote:
Originally Posted by wastingtime View Post
I have two machines: 10 and 16

10 is running a samba server

16 is connected to a local printer and shares it using cups. 10 can access that printer.

I want to set up the samba server on 10 to provide access to the printer connected to 16

How do I configure samba ?
How about some information about your setup? What version of Linux? What distro?

Check the documentation on http://www.samba.org. It should tell you how to set up your system to share printers.
 
Old 09-04-2008, 09:44 AM   #3
wastingtime
Member
 
Registered: Sep 2004
Posts: 86

Original Poster
Rep: Reputation: 17
PCLinuxOS kernel 2.6.22.15
Samba Version 3.0.30
 
Old 09-04-2008, 10:24 AM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 22,720

Rep: Reputation: 6252Reputation: 6252Reputation: 6252Reputation: 6252Reputation: 6252Reputation: 6252Reputation: 6252Reputation: 6252Reputation: 6252Reputation: 6252Reputation: 6252
Quote:
Originally Posted by wastingtime View Post
PCLinuxOS kernel 2.6.22.15
Samba Version 3.0.30
Great...and did you check the documentation on the link????
 
Old 09-04-2008, 12:01 PM   #5
wastingtime
Member
 
Registered: Sep 2004
Posts: 86

Original Poster
Rep: Reputation: 17
Yep, I entered "share cups printer" in the search box and got this:

Web Search Being Updated
Please excuse the temporary unavailability of web search on samba.org mirrors. The site hosting our search has gone down.
We will be putting up a new search engine in the next few days.

In the meantime, do you happen to know where at samba.org one might find the relevant instructions? thanks so much!
 
Old 09-04-2008, 12:07 PM   #6
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 22,720

Rep: Reputation: 6252Reputation: 6252Reputation: 6252Reputation: 6252Reputation: 6252Reputation: 6252Reputation: 6252Reputation: 6252Reputation: 6252Reputation: 6252Reputation: 6252
Quote:
Originally Posted by wastingtime View Post
Yep, I entered "share cups printer" in the search box and got this:

Web Search Being Updated
Please excuse the temporary unavailability of web search on samba.org mirrors. The site hosting our search has gone down.
We will be putting up a new search engine in the next few days.

In the meantime, do you happen to know where at samba.org one might find the relevant instructions? thanks so much!
Maybe hidden under the "Docs and Books" link, or the "Official HowTo" link.....
 
Old 09-05-2008, 09:17 AM   #7
wastingtime
Member
 
Registered: Sep 2004
Posts: 86

Original Poster
Rep: Reputation: 17
/etc/samba/smb.conf
Quote:
# 2. Printing Options:
# CHANGES TO ENABLE PRINTING ON ALL CUPS PRINTERS IN THE NETWORK
# (as cups is now used in linux-mandrake 7.2 by default)
# if you want to automatically load your printer list rather
# than setting them up individually then you'll need this
printcap name = cups
load printers = yes

# It should not be necessary to spell out the print system type unless
# yours is non-standard. Currently supported print systems include:
# bsd, sysv, plp, lprng, aix, hpux, qnx, cups
printing = cups

# NOTE: If you have a CUPS print system there is no need to
# specifically define each individual printer.
# You must configure the samba printers with the appropriate Windows
# drivers on your Windows clients or upload the printer driver to the
# server from Windows (NT/2000/XP). On the Samba server no filtering is
# done. If you wish that the server provides the driver and the clients
# send PostScript ("Generic PostScript Printer" under Windows), you have
# to use 'printcap name = cups' or swap the 'print command' line below
# with the commented one. Note that print commands only work if not using
# 'printing=cups'
[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
# to allow user 'guest account' to print.
guest ok = yes
writable = no
printable = yes
create mode = 0700
# =====================================
# print command: see above for details.
# =====================================
print command = lpr-cups -P %p -o raw %s -r # using client side printer drivers.
# print command = lpr-cups -P %p %s # using cups own drivers (use generic PostScript on clients).
# If you install drivers on the server, you will want to uncomment this so
# clients request the driver
use client driver = yes

# This share is used for Windows NT-style point-and-print support.
# To be able to install drivers, you need to be either root, or listed
# in the printer admin parameter above. Note that you also need write access
# to the directory and share definition to be able to upload the drivers.
# For more information on this, please see the Printing Support Section of
# /usr/share/doc/samba-<version>/docs/Samba-HOWTO-Collection.pdf
#
# A special case is using the CUPS Windows Postscript driver, which allows
# all features available via CUPS on the client, by publishing the ppd file
# and the cups driver by using the 'cupsaddsmb' tool. This requires the
# installation of the CUPS driver (http://www.cups.org/windows.php)
# on the server, but doesn't require you to use Windows at all :-).
[print$]
path = /var/lib/samba/printers
browseable = yes
write list = @adm root
guest ok = yes
inherit permissions = yes

That's all folks
 
Old 09-05-2008, 10:05 AM   #8
checkmate3001
Member
 
Registered: Sep 2007
Location: Folsom, California
Distribution: Ubuntu, Mint, Debian, Suse
Posts: 307

Rep: Reputation: 32
First setup the printer in cups, then setup samba.

This is a short-hand description of what to do:
1) Visit linuxprinting.org and under printers select your manufacturer and model. Download the .ppd file

2) go to "localhost:631" (cups configuration) and click add a printer. Fill in the information.

3) Go to "localhost:901" **(This only works if swat is installed)** and add the printer into samba.

Sorry this is so brief, but I got to go to work.
 
  


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
Sharing a printer using samba kponenation Fedora 1 11-15-2005 08:14 PM
Sharing Printer using Samba subaruwrx Linux - Software 2 03-22-2005 11:48 AM
Samba and printer sharing onelung02 Linux - Software 2 02-28-2005 01:50 PM
samba printer sharing nithin_bhaskar Linux - Networking 1 06-17-2004 05:17 PM
Sharing Printer with Samba ritris Slackware 8 05-09-2003 09:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:20 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration