LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 01-28-2005, 09:11 PM   #1
jaraju
LQ Newbie
 
Registered: Jan 2005
Posts: 16

Rep: Reputation: 0
Samba Printer Sharing Problem


Hi guys,

I'm trying to share a USB printer connected to my PC (HP DeskJet 5740) with the other Linux computers in my network. My problem is that the other Linux computers in my network cant see this shared printer in order for them to add it.

Is there any known problem with sharing USB printers using Samba?

I'm using the following system:
Linux kernel 2.6.8.1-12
Mandrake 10.1 PowerPack+

This is my smb.conf:

# Global parameters
[global]
workgroup = XXXXXXXXX
netbios name = XXXXXX
printcap name = cups
load printers = yes
printing = cups
server string = Samba Server %v
interfaces = 192.168.0.14/24
map to guest = Bad User
passwd program = /usr/bin/passwd '%u'
passwd chat = *New*UNIX*password* %n\n *Re*ype*new*UNIX*password* %n\n *passwd:*all*authentication*tokens*updated*successfully*
username map = /etc/samba/smbusers
password level = 8
username level = 8
unix password sync = Yes
log level = 3
log file = /var/log/samba/log.%m
max log size = 1000
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
os level = 33
preferred master = Yes
domain master = Yes
dns proxy = No
remote announce = 192.168.0.14
printer admin = @adm xxx, xxx, xxx
hosts allow = 192.168.0.0/16, 127.0.0.1
case sensitive = No

[homes]
comment = Home Directories
read only = No
writable = yes

[printers]
comment = All Printers
path = /var/spool/samba
browseable = yes
create mode = 0700
guest ok = Yes
public = yes
printable = Yes
print command = lpr-cups -P %p -o raw %s -r # using client side printer drivers.
use client driver = Yes


Thanks
 
Old 01-31-2005, 12:43 AM   #2
jaraju
LQ Newbie
 
Registered: Jan 2005
Posts: 16

Original Poster
Rep: Reputation: 0
Has anyone been able share a USB printer connected to a Linux box using Samba?
 
Old 02-02-2005, 08:44 AM   #3
drwolfson
LQ Newbie
 
Registered: Nov 2003
Location: UK
Distribution: RH9
Posts: 16

Rep: Reputation: 0
Yes. But printing linux-linux is done on cups. We only use the samba printer to share with windows.

As far as I can tell, if you can print locally, then samba should share it...

try changing the printer setting 'browseable = no'.


Dave

Last edited by drwolfson; 02-02-2005 at 08:46 AM.
 
Old 02-02-2005, 09:04 AM   #4
james.farrow
Member
 
Registered: Mar 2003
Location: UK Darlington
Distribution: Fedora Freebsd Centos
Posts: 288

Rep: Reputation: 31
If you want to share a printer on a linux box with other linux boxes use cups and forget samba.

Make sure that cups is configured to run on boot and is running.

In konqueror http://localhost:631

This will connect you to a cups config web interface.
From here you can 'share the printer'

If cups is running on the other linux boxes it should automatically 'pick up' the printer.

If not do, the above and add the que.

Have a look here http://www.cups.org/
 
Old 02-03-2005, 01:40 AM   #5
jaraju
LQ Newbie
 
Registered: Jan 2005
Posts: 16

Original Poster
Rep: Reputation: 0
Thanks wolfson and james.

I'll try to share the printer using cups.
 
  


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
Samba and printer sharing onelung02 Linux - Software 2 02-28-2005 02:50 PM
Samba Printer Sharing Problem drigz Linux - Software 9 09-10-2004 02:33 PM
Sharing printer through samba rejser Linux - Networking 12 05-21-2004 02:10 PM
Sharing Printer with Samba ritris Slackware 8 05-09-2003 10:40 PM
problem with samba printer sharing on red hat 8.0 jaitropfaim Linux - Networking 1 02-16-2003 05:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:35 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
Open Source Consulting | Domain Registration