LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
LinkBack Search this Thread
Old 06-08-2006, 05:15 AM   #1
dsids
Member
 
Registered: Mar 2006
Distribution: FC4
Posts: 184

Rep: Reputation: 31
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
 
Old 06-08-2006, 05:25 AM   #2
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
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.
 
Old 06-08-2006, 05:56 AM   #3
dsids
Member
 
Registered: Mar 2006
Distribution: FC4
Posts: 184

Original Poster
Rep: Reputation: 31
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
 
Old 06-08-2006, 06:05 AM   #4
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
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://usernameassword@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.
 
Old 06-08-2006, 06:50 AM   #5
dsids
Member
 
Registered: Mar 2006
Distribution: FC4
Posts: 184

Original Poster
Rep: Reputation: 31
I tried to do wat u wrote but it didnt work..
I used I use smb://usernameassword@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
 
  


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
Printer problems, can't find a printer that is attached to a windows network. ahalfapint Linux - Networking 2 04-12-2006 04:29 PM
how to configure two lan cards on one machine b0nd Linux - Networking 4 10-06-2005 09:55 AM
Printer(attached to windows machine) configuration RohanShrivastav Suse/Novell 1 06-07-2005 08:09 PM
print from smb to windows attached printer axelmang Linux - Networking 3 09-21-2004 06:31 AM
Printing on PC (Windows ) attached printer from a linux application on same Network shankar_hn Linux - Newbie 0 10-24-2003 04:32 AM


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