LinuxQuestions.org
Help answer threads with 0 replies.
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 05-25-2005, 07:26 PM   #1
shadkong
Member
 
Registered: Apr 2005
Location: Guangzhou, China
Distribution: Slackware 10.2
Posts: 114

Rep: Reputation: 15
How to use network printer


In SAMBA (smb:///) I can only see the shared directories in Windows, but can't see the shared printer. How can I see the network printer? Does it need special configuration?
 
Old 05-25-2005, 10:18 PM   #2
killerbob
Member
 
Registered: Oct 2004
Location: Ottawa, ON
Distribution: Slackware
Posts: 662

Rep: Reputation: 31
Is the shared printer on your Linux-based server, or on your Windows-based server?

If it's a Windows-based server, and you're using smbclient or similar to browse, you won't be able to see the printer. It'll still be there, and it'll still be printable, but to print to it, you need to set up CUPS to use a Samba printer. Make sure CUPS is running, and go to http://localhost:631/ ... it should be fairly self-explanatory from that point.

If it's a Linux-based server, then you need to set up smbd to share the printer. If it's at all possible, I'd suggest using CUPS to share the printer through IPP instead, though: it's stabler and faster. If you're running clients that don't support IPP (and AFAIK, Win95 is the only one for which the capability simply doesn't exist), then here's a sample smb.conf file which enables Samba print-sharing (I should warn you that this one is on a server running a secured network where every user is trusted 100% and there's no chance that an untrusted user could exploit it; I had to sneakernet the file to a net-accessable computer. Because of that, security is not really considered in this configuration):

Code:
[global]
workgroup = MyGroup
netbios name = FilePrint
security = SHARE
passdb backend = guest
printing = cups
printcap name = cups

[shared]
comment = Shared directory
path = /home/sambashare/shared
read only = No
guest ok = Yes
force user = sambashare
force group = users

[wwwroot]
comment = WWW Root Directories
path = /home/sambashare/wwwroot
read only = No
guest ok = Yes
force user = sambashare
force group = users

[printers]
comment = All Printers
path = /var/spool/samba
printer admin = root
guest ok = Yes
printable = Yes
use client driver = Yes
browseable = No
 
Old 05-26-2005, 04:10 AM   #3
shadkong
Member
 
Registered: Apr 2005
Location: Guangzhou, China
Distribution: Slackware 10.2
Posts: 114

Original Poster
Rep: Reputation: 15
Thank you killerbob.
My shared printer is on a Windows-based server, and I have setup the CUPS. But is says:
***********************************
Description: Network Printer In Room 207
Location: Network
Printer State: processing, accepting jobs.
"Unable to connect to SAMBA host, will retry in 60 seconds..."
Device URI: smb://sadona/207printer
***********************************
 
Old 05-26-2005, 07:28 AM   #4
killerbob
Member
 
Registered: Oct 2004
Location: Ottawa, ON
Distribution: Slackware
Posts: 662

Rep: Reputation: 31
Try the IP address instead of the NetBIOS name?
 
Old 05-26-2005, 07:57 AM   #5
shadkong
Member
 
Registered: Apr 2005
Location: Guangzhou, China
Distribution: Slackware 10.2
Posts: 114

Original Poster
Rep: Reputation: 15
It does not work either.
 
  


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
Network Printer kamorm Linux - Newbie 3 02-05-2005 08:17 PM
network printer zak3 Linux - Networking 1 01-16-2004 01:59 PM
Xante Printer Network Printer, Slack 9.1 Conpen2000 Linux - Hardware 0 01-12-2004 10:08 PM
setup printer on client machine(slackware 8) to server (slackware7) network printer changwoo Slackware 9 05-02-2003 05:37 PM
Need help with Network Printer hextex Linux - Networking 0 04-19-2001 12:31 PM

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

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