LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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
  Search this Thread
Old 04-27-2009, 03:56 PM   #1
cybersam45
LQ Newbie
 
Registered: Apr 2009
Location: Central Florida
Distribution: Ubuntu 9.04
Posts: 8

Rep: Reputation: 0
Question Printing to networked system........................


Used to do this thru Samba aout 10 years ago.

Have 2 Ubuntu 9.04 systems. One is a tower w/ an HP 990C printer. It (the printer) works great from the tower. The other is a Gateway laptop. They are connected thru a router, the Gateway being wireless, the tower being wired. I set up the printer on the tower to be 'shared'. From the laptop, I can see the tower's name, but cannot access it.

All I want to do is print on the Tower's printer.

I'll be thankful for any help....

Sam
 
Old 04-27-2009, 06:27 PM   #2
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,207

Rep: Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845
With everything being linux, all you need is Cups on both boxes. Sounds like the tower has the printer and is working. So install cups on the lappy. I think all I had to do was go into cups through your web browser, http://localhost:631 and it should find the printer. It was that simple.

You do not need samba for printing linux to linux.
 
Old 04-30-2009, 01:48 PM   #3
cybersam45
LQ Newbie
 
Registered: Apr 2009
Location: Central Florida
Distribution: Ubuntu 9.04
Posts: 8

Original Poster
Rep: Reputation: 0
Network printing.......

Cliff,

Seem to be stuck on which URI to use. CUPS on both systems. Hardware seems not to be the problem, as the tower and the lappy, when both running windblows, I can print from the lappy to the tower all day. I can give you all the info u need. Any suggestions?

Sam
 
Old 05-01-2009, 12:40 PM   #4
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,207

Rep: Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845
Here is what works for me. URI 'ipp://192.168.1.26:631/printers/HL2040' Enter what is between the single quotes. Edit the IP address to match your server. The middle word printers has to be there. The last field is the name of the printer.

Hope this helps.
 
Old 05-01-2009, 12:46 PM   #5
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
Quote:
Seem to be stuck on which URI to use. CUPS on both systems.
I didn't find this difficult to set up, and I did it a few years ago when I was very green with linux.

On your tower, take a look at /etc/cups/cupsd.conf (which is well commented) and make sure your printer can be shared with, and is advertised to, your LAN IPs.

On your laptop set up cups to use the printer on your tower.
I seem to remember an option to scan for printer servers on my LAN, which made it easier once I had corrected the LAN IP address range from what was offered (I happen to be on a 10.x.y.x network)

My printer has an URI like this: ipp://server:631/printers/HPLaserJet6P

Obviously, if you do not have an entry for server in your /etc/hosts file, you'll need to give the numerical LAN IP of your server something like this:
ipp://192.168.0.2:631/printers/HPLaserJet6

When you add that printer to the laptop's cups, do not select a "Printer Driver" as this is all handled by your tower. Just set it as a "Raw Printer" (There's a checkbox to do allow you to do this).

Then, you are off
 
Old 05-02-2009, 01:46 PM   #6
cybersam45
LQ Newbie
 
Registered: Apr 2009
Location: Central Florida
Distribution: Ubuntu 9.04
Posts: 8

Original Poster
Rep: Reputation: 0
Still not working....................

Went thru what y'all advised.

From the client, it appears the connection to the server is not going thru.

I really don't know where to start, so I'll start w/ the printers.conf on the client at /etc/cups.

Could somebody verify if it looks OK?

------ START PRINTERS.CONF -------

# Printer configuration file for CUPS v1.3.9
# Written by cupsd on 2009-05-02 08:48
<Printer HPDesktop>
Info HP 990C printer
Location samzlaptop
DeviceURI ipp://samrdesktop:631/printers/DESKJET-990C
State Idle
StateTime 1241268514
Accepting Yes
Shared No
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy retry-job
</Printer>

-----END PRINTERS.CONF -------

Note: samrdesktop is the server, samzlaptop is the client.

Thanx in advance for any help.

Sam
 
Old 05-03-2009, 04:02 AM   #7
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
The printers.conf file is empty on my laptop, but I can still use the printer on my server.

The printers.conf on my server looks like this:
Code:
<DefaultPrinter HPLaserJet6P>
Info HP LaserJet 6P
Location
DeviceURI parallel:/dev/lp0
State Idle
Accepting Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
</Printer>
Please use your favourite search engine to search for cups HOWTO
 
Old 05-04-2009, 08:55 AM   #8
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,207

Rep: Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845
From the client, can you connect cups? Enter 'http://samrdesktop:631' If this will connect, then there is something wrong with the printer setup. If it will not connect, try replacing the name samrdesktop with the IP address of that system. If it doesn't connect then, there is something wrong on the sever.
 
Old 05-04-2009, 10:34 AM   #9
cybersam45
LQ Newbie
 
Registered: Apr 2009
Location: Central Florida
Distribution: Ubuntu 9.04
Posts: 8

Original Poster
Rep: Reputation: 0
connection timeout client -> server

Quote:
Originally Posted by camorri View Post
From the client, can you connect cups? Enter 'http://samrdesktop:631' If this will connect, then there is something wrong with the printer setup. If it will not connect, try replacing the name samrdesktop with the IP address of that system. If it doesn't connect then, there is something wrong on the sever.
I'm a little confused by your statement (if it connects, there's something wrong, if it dosen't connect there's something wrong)

Tried the system name and the ip address (192.168.2.102:631), I got a timeout from the server.

I can ping the server from the client (get quite a few dups)

Guess I gotta look @ the server now.

Anywhere else I can look?

Thanx, Sam

Last edited by cybersam45; 05-04-2009 at 10:35 AM. Reason: oops
 
Old 05-04-2009, 12:42 PM   #10
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,207

Rep: Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845
Quote:
I'm a little confused by your statement
Sorry for any confusion.

Quote:
If this will connect, then there is something wrong with the printer setup
I'm trying to find out if you can connect from the client to the server, specifically cups on the server. You connect to cups through port 631, unless you have modified the configuration to make it use some other port.

From this statement
Quote:
Tried the system name and the ip address (192.168.2.102:631), I got a timeout from the server.
you are not connecting. I see you can ping the server.

I think you need to find out if cups is running on your server. I would bet no at this point.

Open a konsole, and run the command 'ps aux | grep cups' ( just what is between the single quotes ).

It should show the dameon running, like this...

Quote:
ps aux | grep cups
root 4663 0.0 0.2 7404 2336 ? SNs 09:44 0:00 cupsd
If you do not see cupsd, then cups needs to start.
 
Old 05-07-2009, 01:50 PM   #11
cybersam45
LQ Newbie
 
Registered: Apr 2009
Location: Central Florida
Distribution: Ubuntu 9.04
Posts: 8

Original Poster
Rep: Reputation: 0
Seems cups is working.......

THANK U very much for your help on cups...

Seems that cups is working fine.

Now it looks like a network problem....

Ping either way from the client to the server or the other way, get a lotta of DUPS.

Cannot TELNET either way, get a timeout.

Guesse I gotta go somewhere else.

Winblows works fine. Printing.

Thanx!

Sam
 
Old 05-07-2009, 07:53 PM   #12
billairds
LQ Newbie
 
Registered: Feb 2007
Posts: 24

Rep: Reputation: 16
Hi,

I had the same problem and this what you need to do;
First get the cups driver for your printer.
verify cups and lpd are installed. usually this is done by default.
then you need to open a terminal as root to run the following syntax.

1) sudo aa-complain cupsd
2) sudo mkdir /usr/share/cups/model
3) ln -s /etc/init.d/cupsys /etc/init.d/lpd
4) mkdir /var/spool/lpd ( this is required if folder does not exist)

verify you have psutils installed.

make sure the printer is on.

Install LPR driver and cupswrapper driver

5) dpkg -i --force-all --force-architecture (lpr-drivername)
6) dpkg -i --force-all --force-architecture (cupswrapper-drivername)

7) Command (for dpkg) : dpkg -l | grep (your priner here)
This to check the drivers installed

8) Open a web browser and go to "http://localhost:631/printers".
Click "Modify Printer" and set following parameters.

- "LPD/LPR Host or Printer" or "AppSocket/HP JetDirect" for Device
- lpd://(Your printer's IP address)/ binary_p1 for Device URI
- your printer here for Make/Manufacturer Selection
- Your printer's name for Model/Driver Selection

the above is lower case upper case sensative

do a test print

my printer is connected to a 4 port switch and any pc in the network can print to it.


hope this helps

billairds
 
  


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
How can I get a networked photosmart 2610 printing with CUPS? MacUser Linux - Software 1 10-31-2008 08:43 AM
Non-networked printing??? lunarcloud_88 Linux - Newbie 4 07-11-2005 11:00 AM
trouble printing to networked epson 440 printer Pete Dogg Linux - Hardware 0 12-01-2003 11:16 PM
Redhat 9.0 + Printing to networked Dell A940 printer TechX Linux - Hardware 0 07-22-2003 05:07 PM
Cups printing from networked Slackware machine dickkniep Linux - Software 0 05-25-2003 04:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:24 AM.

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
Open Source Consulting | Domain Registration