LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-15-2004, 08:35 AM   #1
ni0wn
LQ Newbie
 
Registered: Sep 2004
Location: Stockholm, Sweden
Distribution: Slackware
Posts: 17

Rep: Reputation: 0
Samba won't share printer


Okey, I've been struggling with this printerserver for 2 weeks now.
Now I can print a test page from CUPS, but I can't share the printer.
First time I tried to share, I made it with success within a few minutes. Now I've spent hours without any success.

I've added a printer in CUPS, test pages are being printed.
I enter SWAT, but I can't see any printers listed to the right of the "choose printer" button. It says that it reads from the /etc/printcap file, but obviously it doesn't since I have a printer added there.

Last time, when I made it thru all the way, the printer was already there, I selected it and pressed okay. Then everything worked fine. But now it doesn't.

Cups should configure the /etc/printcap file for me as far as I know, and this is what it look like now.

Code:
# This file was generated by cupsd(8) from the
# /etc/cups/printers.conf file. All changes to this file
# will be lost.
Samsung_V2|Samsung ML-7300N:rm=deathstar:rp=Samsung_V2:
What's wrong, why doesn't SWAT list my printer?

Any help is appreciated.
 
Old 11-15-2004, 12:46 PM   #2
-X-
Member
 
Registered: Oct 2003
Location: Tx,USA
Distribution: Slackware, Red Hat, CentOS
Posts: 495

Rep: Reputation: 30
Been mentioned several times and can find it if you search the forums. See if this works.

Edit cupsd.conf. At the bottom find this and change it.
<Location />
Order Deny,Allow
Deny From All
Allow From 127.0.0.1
#To allow only lan traffic
#Allow FROM 192.168.2.*
#To allow everyone.
Allow From All
</Location>

Restart cups. Make sure your fw is open also. If that don't fix it, search around a little.
 
Old 11-16-2004, 06:11 AM   #3
ni0wn
LQ Newbie
 
Registered: Sep 2004
Location: Stockholm, Sweden
Distribution: Slackware
Posts: 17

Original Poster
Rep: Reputation: 0
Yeah, okey. But those settings should fix atuhorization problems, not my listning problems from /etc/printcap.
 
Old 11-17-2004, 04:02 AM   #4
-X-
Member
 
Registered: Oct 2003
Location: Tx,USA
Distribution: Slackware, Red Hat, CentOS
Posts: 495

Rep: Reputation: 30
I guess I'm lost what the problem is. You say you can print a test page, but can't share the printer.
 
Old 11-17-2004, 06:18 AM   #5
mdarby
Member
 
Registered: Nov 2004
Location: Columbus, Ohio
Distribution: Slackware-Current / Debian
Posts: 795

Rep: Reputation: 30
...

Last edited by mdarby; 11-17-2004 at 12:43 PM.
 
Old 11-17-2004, 09:57 AM   #6
-X-
Member
 
Registered: Oct 2003
Location: Tx,USA
Distribution: Slackware, Red Hat, CentOS
Posts: 495

Rep: Reputation: 30
I'm guessing since he can't see the printer using swat, he is on a *nix box. Samba is for sharing with Windows.
 
Old 11-17-2004, 10:36 AM   #7
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 53
-X-, Samba is for sharing with Windows and other *nix systems using Samba
It's just a implementation of the protocol.

ni0wn, see the file /etc/samba/smb.conf (which must be the one SWAT configures, never used it) and check that all printer settings are ok. I can share my printer with another Linux box and a Windows one using this ones:
(from my smb.conf)
Code:
load printers = yes
printcap name = cups
printing = cups

[printers]
comment = Printer
path = /var/spool/samba
browseable = no
public = yes
guest ok = yes
writeable = no
printeable = yes
printer admin = root
 
Old 11-17-2004, 12:13 PM   #8
-X-
Member
 
Registered: Oct 2003
Location: Tx,USA
Distribution: Slackware, Red Hat, CentOS
Posts: 495

Rep: Reputation: 30
Unless I missed something, he never mentioned samba. I don't know why the OP doesn't use http://localhost:631.
 
Old 11-17-2004, 12:39 PM   #9
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 53
He didn't mention Samba but SWAT (Samba Web Administration Tool), it's a web based front-end like Cups's config server at port 631.

Oh and the thread topic mentions it

Last edited by gbonvehi; 11-17-2004 at 12:43 PM.
 
Old 11-17-2004, 12:42 PM   #10
mdarby
Member
 
Registered: Nov 2004
Location: Columbus, Ohio
Distribution: Slackware-Current / Debian
Posts: 795

Rep: Reputation: 30
lol, my bad.

I'm so damned used to supporting Windows.
 
Old 11-17-2004, 02:00 PM   #11
-X-
Member
 
Registered: Oct 2003
Location: Tx,USA
Distribution: Slackware, Red Hat, CentOS
Posts: 495

Rep: Reputation: 30
ok, I see that now. thanks. Still haven't heard back from him.
 
  


Reply



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
Do I need SAMBA to share a local printer? peliot Linux - Newbie 1 08-19-2005 08:54 AM
Share Printer With Samba... Help gabriellai Linux - Software 7 06-15-2005 01:44 PM
samba printer share chongluo Linux - Newbie 4 10-12-2004 08:52 AM
Samba Printer Share vwhk Linux - Software 3 05-23-2003 12:17 AM
samba / printer share question rioguia Linux - Software 1 11-22-2002 08:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:34 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