LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices


Reply
  Search this Thread
Old 05-12-2005, 10:34 AM   #1
hemmelig
Member
 
Registered: Oct 2004
Posts: 33

Rep: Reputation: Disabled
Printer-sharing with FreeBSD; cannot se printer on Samba-share


I'm trying to share the printer for my BSD-box over Samba. I run the LPD-daemon, Samba3 and FreeBSD 5.4.
Now, the problem is, when clients lookup my box, they cannot see the printer, but for example the public-folder will show up, so I'm positive Samba is actually running
Any suggestion or solution to this?

My smb.conf:
Code:
#======================= Global Settings =====================================
[global]

[global]
comment = FreeBSD - Samba %v
log file = /var/log/samba.log
;dont descend = /dev,/proc,/root,/stand
load printers = yes
printcap name = /etc/printcap
printing = bsd
print command = lpr -s -P %p %s; rm %s
interfaces = dc0
map archive = no
public = yes
read only = no
preserve case = yes
security = share
guest ok = yes
;password level = 1
domain master = yes
workgroup = WORKGROUP

#============================ Share Definitions ==============================

[printers]
path = /var/spool/
comment = Printers
create mode = 0700
browseable = yes
read only = no
public = yes
printable = yes

[public]
   comment = Public Stuff
   path = /home/samba
   public = yes
   writable = yes
   printable = no
   browsable = yes
My /etc/printcap:
Code:
# My Canon-printer
lp|serial-lp|gimp/bjc-240;r=300x300;q=medium;c=mono;p=a4;m=auto:\
    :lp=/dev/lpt0:\
    :br#:\
    :ms=ixon,-imaxbel,-ixany,-ixoff,-crtscts:\
    :if=/usr/local/etc/apsfilter/basedir/bin/apsfilter:\
    :sd=/var/spool/lpd/serial-lp:\
    :lf=/var/spool/lpd/serial-lp/log:\
    :af=/var/spool/lpd/serial-lp/acct:\
    :mx#0:\
    :sh:

ls /var/spool/lpd output
Code:
total 6
-rw-rw-r--  1 root  daemon    6 May 11 18:50 lock
drwxr-xr-x  2 root  daemon  512 May 12 12:08 serial-lp
-rw-rw-r--  1 root  daemon   25 May 11 18:49 status
ls /var/spool output
Code:
total 16
drwxrwx---  2 smmsp   smmsp   512 May 12 13:49 clientmqueue
drwx-wx---  3 root    daemon  512 Apr 24 00:42 cups
drwxrwxr-x  2 uucp    dialer  512 May 12 13:48 lock
drwxr-xr-x  3 daemon  daemon  512 May 11 21:49 lpd
drwxr-xr-x  2 root    daemon  512 May 12 13:49 mqueue
drwx------  2 root    daemon  512 Nov  5  2004 opielocks
drwxr-xr-x  3 root    daemontotal 16
drwxrwx---  2 smmsp   smmsp   512 May 12 13:49 clientmqueue
drwx-wx---  3 root    daemon  512 Apr 24 00:42 cups
drwxrwxr-x  2 uucp    dialer  512 May 12 13:48 lock
drwxr-xr-x  3 daemon  daemon  512 May 11 21:49 lpd
drwxr-xr-x  2 root    daemon  512 May 12 13:49 mqueue
drwx------  2 root    daemon  512 Nov  5  2004 opielocks
drwxr-xr-x  3 root    daemon  512 May 11 18:41 output  512 May 11 18:41 output
Any ideas to what's wrong? The printer will with no problem print (f.ex via Firefox) on the machine itself.

Last edited by hemmelig; 05-12-2005 at 03:49 PM.
 
Old 05-13-2005, 04:14 AM   #2
-X-
Member
 
Registered: Oct 2003
Location: Tx,USA
Distribution: Slackware, Red Hat, CentOS
Posts: 495

Rep: Reputation: 30
What happens when the client tries "Add New Printer" ?

I also see you have/had cups running. What is the print systems? You should pick only one.

I have no problem with shared printing and cups.

Last edited by -X-; 05-13-2005 at 05:44 AM.
 
Old 05-13-2005, 06:37 AM   #3
hemmelig
Member
 
Registered: Oct 2004
Posts: 33

Original Poster
Rep: Reputation: Disabled
Quote:
Originally posted by -X-
What happens when the client tries "Add New Printer" ?

I also see you have/had cups running. What is the print systems? You should pick only one.

I have no problem with shared printing and cups.
I don't use CUPS, but KDE installed CUPS, so /var/spool/cups is there. I use LPD, as mentioned above.
 
Old 05-13-2005, 07:29 AM   #4
-X-
Member
 
Registered: Oct 2003
Location: Tx,USA
Distribution: Slackware, Red Hat, CentOS
Posts: 495

Rep: Reputation: 30
I don't use CUPS, but KDE installed CUPS....

That make no sense.
 
Old 05-13-2005, 08:06 AM   #5
hemmelig
Member
 
Registered: Oct 2004
Posts: 33

Original Poster
Rep: Reputation: Disabled
Quote:
Originally posted by -X-
I don't use CUPS, but KDE installed CUPS....

That make no sense.
Doesn't it?
When i compiled KDE, it installed KDEPrint, and for some reason, CUPS.
 
Old 05-13-2005, 09:43 AM   #6
-X-
Member
 
Registered: Oct 2003
Location: Tx,USA
Distribution: Slackware, Red Hat, CentOS
Posts: 495

Rep: Reputation: 30
Ok, whatever, back to the original question. What happens when the client "Add New Printer"? These are Windows clients?
 
Old 05-13-2005, 02:10 PM   #7
hemmelig
Member
 
Registered: Oct 2004
Posts: 33

Original Poster
Rep: Reputation: Disabled
Quote:
Originally posted by -X-
Ok, whatever, back to the original question. What happens when the client "Add New Printer"? These are Windows clients?
No, the client are two FreeBSD-machines with KDE. See, I want the printer(s) to be viewable from the Samba-share, but they don't. That's my problem. I don't need help adding printers to the clients, but making the printer viewable from the Samba-share. That's all.

So, still any bright ideas?
 
Old 05-13-2005, 03:44 PM   #8
-X-
Member
 
Registered: Oct 2003
Location: Tx,USA
Distribution: Slackware, Red Hat, CentOS
Posts: 495

Rep: Reputation: 30
With cups, printers do not show up as a share as computers and their directories do. On my systems, in konqueror, there is a "Navigation Panel" on the left with a "Service" section at the bottom. Printers (local and remote) show up there after they have been added. One would think lpr printers would work out the same.

You might try "print:/" in the Location bar.

Hope that helps.
 
  


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 : How to delete printer ICON ERBRMN Linux - General 2 08-03-2005 01:13 AM
How does one creating printer icon on the desktop... SuSe/KDE? pwillikers Linux - Newbie 1 10-12-2004 06:39 PM
how to get primary logon network, Access control,File sharing & printer sharing info dileepkk Linux - Networking 2 07-06-2004 06:54 AM
No Printer Notification Icon in RH9/Gnome otistdog Linux - Newbie 1 04-05-2004 03:36 PM
keeping printer on at bootup keeps printer from printing (some printer modules loaded TheOneAndOnlySM Slackware 1 10-17-2003 07:39 PM

LinuxQuestions.org > Forums > Other *NIX Forums > *BSD

All times are GMT -5. The time now is 08:53 PM.

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