LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - Installation
User Name
Password
Slackware - Installation This forum is for the discussion of installation issues with Slackware.

Notices



Reply
 
Search this Thread
Old 09-07-2004, 11:40 AM   #1
Maskkkk
LQ Newbie
 
Registered: Sep 2004
Posts: 4

Rep: Reputation: 0
Post Printing to a windows shared printer using Samba


I'm trying to print to a shared printer on my windows XP box using Samba. I just installed Slackware 10, and I don't know how to get it to work.

Here is what I did.

First I checked to see what the XP box was sharing using the command:
$ smbclient -L SONY

It showed me that the printer I wish to print to was indeed shared

Sharename Type Comment
--------- ---- -------
HPDeskJe Printer HP DeskJet 820Cse

so then I typed:
lpadmin -p SONYPRINTER -v smb://SONY/HPDeskJe -P /root/HP-DeskJet 820C-pnm2ppa.ppd

no problem there...

then I typed:

enable SONYPRINTER

to which the prompt displayed:
-su: enable: SONYPRINTER: not a shell builtin

This doesn't seem right to me and this is probably why it doesn't work.

next I typed:
accept SONYPRINTER

(no problem here either)

My directions also said to type the following which also went without a problem:
accept SONYPRINTER

and after that it is supposed to print with a command such as
lp ./doc.txt

But it doesn't print instead it outputs to the shell:
Status Information, attempt 1 of 3:
sending job 'root@localhost+561' to SONYPRINTER@localhost
connecting to 'localhost', attempt 1
cannot open connection to localhost - No such file or directory
Make sure the remote host supports the LPD protocol
Waiting 10 seconds before retry

Thank you...
 
Old 09-07-2004, 08:16 PM   #2
netopia
LQ Newbie
 
Registered: Sep 2004
Location: Boston, MA
Distribution: fedora core 2
Posts: 28

Rep: Reputation: 15
I could be wrong but I don't think Linux can reliably print to Windows-shared printers. You need to hook up the printer to your Linux box, which can provide printing services to Windows clients. ("Make sure the remote host supports the LPD protocol" should be a good hint)
 
Old 09-08-2004, 10:33 AM   #3
netopia
LQ Newbie
 
Registered: Sep 2004
Location: Boston, MA
Distribution: fedora core 2
Posts: 28

Rep: Reputation: 15
I WAS wrong. Install "Print Services for Unix" in "Optional Networking Components" on the windows box to enable printing from Linux to a Windows shared printer.
 
Old 09-08-2004, 07:06 PM   #4
BrianW
Member
 
Registered: Jul 2003
Location: Montana
Distribution: Slackware
Posts: 251

Rep: Reputation: Disabled
I know when I did this, I used cups to print, and it worked fine. Install the cups package and goto localhost:631 and configure it and see what you get.

IIRC lpr-cups was the command to print with that I had to switch to since I didnt have lpr linked to cups.
 
Old 09-02-2009, 12:39 PM   #5
gh5046
LQ Newbie
 
Registered: Sep 2009
Posts: 1

Rep: Reputation: 0
I found this topic via google search. I see that it was resolved five years ago, but I felt it necessary to clarify something from the original post:

Quote:
Originally Posted by Maskkkk View Post
then I typed:

enable SONYPRINTER

to which the prompt displayed:
-su: enable: SONYPRINTER: not a shell builtin

This doesn't seem right to me and this is probably why it doesn't work.
'enable' is a builtin bash command. It's used to enable or disable other builtin bash commands (like cd, kill, pwd, set, and more. Execute 'enable -a' to get a full listing).

Use 'which' or 'whereis' to find the path to the cups 'enable' command then execute it, for example:

Code:
# which enable
/usr/bin/enable
 
  


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
Suse 10 RC1 Printing to a Windows Shared Printer genxian Linux - Networking 17 05-24-2006 09:23 AM
Printing to a Windows Shared printer rwillard Linux - Newbie 8 03-17-2005 11:05 AM
Windows printing to samba shared printer?l rohang Linux - Networking 4 09-02-2004 12:20 AM
Networking with Windows XP and printing to Windows XP shared printer AlanButler Red Hat 1 10-27-2003 07:07 AM
Samba... Printing to Win2k shared printer. buckinpgh Linux - Networking 1 10-15-2003 05:59 PM


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