LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 01-12-2007, 03:35 PM   #1
pusrob
Member
 
Registered: Jan 2006
Distribution: Debian
Posts: 463

Rep: Reputation: 35
Question sharing & using a printer on network WITHOUT Samba


Hello.

The situation:
I have a HP USB printer, and it is connected to the "big" PC. I have a laptop too, and it is in an other room. I have a wireless router too, and both computers are connected to it ("big" PC with LAN, laptop with WLAN). I have Mepis Linux on both computers.
The question:
How to use my printer from my laptop, WITHOUT using Samba? What to configure and where (router, firewall, CUPS...)? For simplicity: I need a linux to linux networked printer.
Thanks.
 
Old 01-12-2007, 04:01 PM   #2
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,284

Rep: Reputation: 136Reputation: 136
That's pretty easy, i.e. linux to linux printer sharing. You set it up using cups and the kde printer configuration tools. On the big machine, configure your printer in the kde control center>peripherals>printers using the HP hpijs driver. On the laptop, you do the same except you select the "Network Printer" option or "Remote Cups"(I think either will work), instead of "local printer".. You will need to select the hpijs driver during the laptop printer configuration as well IIRC. You will also have to know the ip address of the big box on the LAN which is given by the router and you may have to adjust your firewall settings but I didn't have to do anything on mine. However, I'm not running mepis. Actually, this was much easier than doing samba printer configuration. Just dive right in to the kde control center printer configuration section and tick add new printer; it's pretty self explanatory.
 
Old 01-13-2007, 12:49 PM   #3
pusrob
Member
 
Registered: Jan 2006
Distribution: Debian
Posts: 463

Original Poster
Rep: Reputation: 35
Hello kilgoretrout!

Well, I have to tell you, that it is not that simple. I tried what you said, but I don't know what to write to one part. So: I go to the KControl, peripherials, printers, admin mode, add new printer, Remote CUPS server (IPP/HTTP). Here comes the user identification. Should I write here my username and password, or the root and password, or Anonymous? After that the remote IPP server comes. What to write to the Host part? The name of big computer, the IP of big computer, or what? If I write the name, it sais it cannot connect to it. If I type the IP, it doesn't do anything (maybe it freezes). What next? If I go to the Network printer w/IPP (IPP/HTTP) section, it asks for printer URI. What to write here? I typed a lot of things here, and when I press the IPP report button an error message comes:
Code:
Unable to generate report. IPP request failed with message: client-error-forbidden (0x401)
. On my big comp this is written to the printer URI in kcontrol:
Code:
ipp://localhost.localdomain:631/printers/PhotoSmart7660
What is localhost, and what is localdomain? Thanks.
 
Old 01-13-2007, 04:00 PM   #4
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,284

Rep: Reputation: 136Reputation: 136
Choose anonymous login. Under host, type in the numeric ip of the big box. If you don't know what that is, go to the big box, open a console, su to root and run:

# ifconfig

Look at the "inet address" entry for eth0. On many home routers this will be in the form 192.168.1.xxx. After entering the ip, hit the Next button and you should see your HP printer on the big box listed. If you get this far, it means cups successfully found your printer through the network. Now you continue through the configuration choosing the hpijs driver just like you did for the big box; it's pretty much identical from here to what you did on the big box.
 
Old 01-15-2007, 07:18 AM   #5
pusrob
Member
 
Registered: Jan 2006
Distribution: Debian
Posts: 463

Original Poster
Rep: Reputation: 35
Cool

Dear kilgoretrout!

Thanks for your kind help. I tried the IP thing again, but it didn't work first. I didn't know why. Than, I checked out my firewall on both systems, but IPP was allowed. I still didn't understand what's the problem. Than I realised, that my firewall config prog (guarddog) uses the internet and local zones, and the firewall config is not the same for them. I check out the IPP in the local section, and it wasn't checked. I checked it in on both systems, and now, the printer setup tool can see the printer.
Why didn't I think about this in the first time? Such a little and stupid problem...
Now, I can see the printer, but it does not print anything. Why? It shows, that the printer is stopped. I press the start button, and it sais "processing", than it is stopped again. I can't start the printer (It is turned on in the same time). One more thing. How can I delete out a printer from cups? When I press the delete button, it sais, it is forbidden. Any ideas?

Last edited by pusrob; 01-15-2007 at 07:42 AM.
 
  


Reply

Tags
network, printer


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
samba w/printer & file sharing ? westverg Linux - Networking 8 05-12-2005 10:42 PM
Samba and printer sharing onelung02 Linux - Software 2 02-28-2005 01:50 PM
how to get primary logon network, Access control,File sharing & printer sharing info dileepkk Linux - Networking 2 07-06-2004 06:54 AM
samba printer sharing nithin_bhaskar Linux - Networking 1 06-17-2004 05:17 PM
Sharing Printer with Samba ritris Slackware 8 05-09-2003 09:40 PM


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