LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to configure printer attached to windows machine in lan? (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-configure-printer-attached-to-windows-machine-in-lan-452712/)

dsids 06-08-2006 05:15 AM

how to configure printer attached to windows machine in lan?
 
Hello Everyone,
I want to use an HPLaserjet 1160 printer tp print out my documents but
the printer is attached to a windows2000 machine on my LAN. How do I
configure my linux box so that I can use the printer...

I have
$uname -a
Linux [myPCname] 2.6.16-1.2108_FC4 #1 Thu May 4 23:52:01 EDT 2006 i686
i686 i386 GNU/Linux

Thanks
Danish

Nylex 06-08-2006 05:25 AM

Do you have CUPS installed? If not, install that and then run the daemon (on my machine, it's in /usr/sbin, but may be different to yours). Then, point your browser to http://localhost:631 and you'll be able to add the printer there. Oh, you'll also need Samba installed and running, too.

dsids 06-08-2006 05:56 AM

yes I have CUPS and by doing http://localhost:631 i can go the printer configuration page. I also have samba running but is their any configuration changes I have to make in smb.conf file...eg..

by doing http://localhost:631

I gave 192.168.10.41 as location for printer

In Device I gave WINDOWS Printer VIA SAMBA

What should I give in Device URI..

These are the examples it gave me Examples:

file:/path/to/filename.prn
http://hostname:631/ipp/
http://hostname:631/ipp/port1
ipp://hostname/ipp/
ipp://hostname/ipp/port1
lpd://hostname/queue
socket://hostname
socket://hostname:9100


Thanks
Danish

Nylex 06-08-2006 06:05 AM

I don't think you'll have to change anything in your smb.conf. For my printer (also printing to Windows via Samba) I use smb://username:password@hostname/printer. You can replace hostname and printer with the IP address and whatever your printer is called. If you need to supply a username and password, then you can substitute those as well. For my printer, I don't, so I just use "guest:nopass".

HTH.

dsids 06-08-2006 06:50 AM

I tried to do wat u wrote but it didnt work..
I used I use smb://username:password@hostname/printer

adn then a test print and got the following page but nothing else

Description:
Location: 192.168.10.41
Printer State: idle, accepting jobs.
"Printing page 1, 25% complete..."
Device URI: smb://192.168.10.41/hplaserjet1160

No printing

Danish


All times are GMT -5. The time now is 05:58 AM.