LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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
 
LinkBack Search this Thread
Old 02-22-2005, 01:45 AM   #1
jomy
Member
 
Registered: Jul 2004
Location: UAE
Distribution: RedHat
Posts: 93

Rep: Reputation: 15
Unable to print to a Windows SMB printer from Linux


Hi,

I was trying to add a Networked Windows SMB printer in my RHEL AS 3 server.I’ll explain what I did.


The printer HP officejet 4110 is installed on Win 2000 professional.It is shared and the share name is “hpoffice”.A user is added on the win machine named “printuser”.He is given permission to manage the printer and print documents.Printing is fine locally from Windows.

Now at the Linux box,

I'm using CUPS as the printing system which is the default.

I used redhat-config-printer to add the printer.I gave the queue name as “ hp” and I selected Windows Print Queue.In the next page I gave the following details.

Share : hpoffice

Host IP : 192.168.0.20

Workgroup : mygroup

User : printuser

Passwd : <password>


In the next screen, since the driver for my printer was not listed , I selected raw “Print Queue”.I finished the setup and made it the default printer. I tried to print a test page and selected ASCII Text Testpage. It showed the print is sent to the printer, but nothing printed out.I’ll list the contents of /var/log/cups/error_log

Job 1 queued on ‘hp’ by ‘root’

Started backend /usr/lib/cups/backend/smb (PID 4703 ) for job 1


Anyway I couldn’t see any printout coming out of the printer.Please help me to find out where I’ve gone wrong.

Thanks

Jomy
 
Old 02-22-2005, 06:00 AM   #2
broch
Member
 
Registered: Feb 2005
Distribution: Arch current, SuSe 10.1 32-bit, FreeBSD current, OpenBSD 4.0
Posts: 453

Rep: Reputation: 30
this is the problem with password handling incompatibility between CUPS and samba. It can be resolved, however for me worked by using lpd (tcp515)
install on the windows machine TCP printing services (Rdd/Remove windows components UNIX services). Once this is running
Open CUPS and configure URI device as
Device URI: lpd://SERVER_NAME:515/PRINTER_SHARE_NAME
or (in case yuo have problems with name resolution)
Device URI: lpd://SERVER_NAME:515/PRINTER_IP_ADDRESS
 
Old 02-22-2005, 06:25 AM   #3
jomy
Member
 
Registered: Jul 2004
Location: UAE
Distribution: RedHat
Posts: 93

Original Poster
Rep: Reputation: 15
Hi Mr. Broch,

Let me hope it to be added in /etc/cups/cupsd.conf and under the queue that is added onto the machine.And let me hope it is URL and not URI.

Thanks. Please Reply
 
Old 02-22-2005, 07:47 AM   #4
broch
Member
 
Registered: Feb 2005
Distribution: Arch current, SuSe 10.1 32-bit, FreeBSD current, OpenBSD 4.0
Posts: 453

Rep: Reputation: 30
no, that is URI. The abbreviation stands for "Uniform Resource Identifiers"

You can use your browser too (http://localhost:631)
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
networked smb printer wont print thru windows xp firewall smaudlin Linux - General 1 11-22-2005 01:43 AM
Unable to print from WinXP to my Linux-shared printer guarriman Linux - General 5 05-24-2005 10:45 AM
Unbale to take print out from a windows printer through SMB lordvishnu Linux - Newbie 4 04-21-2005 12:31 AM
print from smb to windows attached printer axelmang Linux - Networking 3 09-21-2004 06:31 AM
Can't print by using smb printer deNiro Slackware 0 06-27-2003 09:49 AM


All times are GMT -5. The time now is 11:16 AM.

Main Menu
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