Help - Search - Members - Calendar
Full Version: How Do I Print To A Networked Printer?
OESF Forums > Distros, Development, and Model Specific Forums > Distro Support and Discussion > pdaXrom
Capn_Fish
I have a Dell 3100cn networked laser printer. I would like to be able to print to it from my Zaurus. Can anybody tell me how to do this?

Thank you.
karlto
QUOTE(Capn_Fish @ Sep 18 2006, 11:35 AM)
I have a Dell 3100cn networked laser printer. I would like to be able to print to it from my Zaurus. Can anybody tell me how to do this?

Thank you.
*

Install the cups package, start it via /etc/rc.d/init.d/cups, and point your browser to http://localhost:631. You should then have a reasonably nice gui to install the printer.
Capn_Fish
I will try that. Thanks.
Capn_Fish
I tried that, with .../cups start, .../cups reload, etc., but I get an error:

cupsd: Child exited with status 1!
cups: unable to reload scheduler

for .../cups reload.

Any tips?
desertrat
QUOTE(Capn_Fish @ Sep 18 2006, 12:22 AM)
Any tips?

Have a look in /var/log/cups/error_log, it might give a clue.
karlto
QUOTE(desertrat @ Sep 18 2006, 05:01 PM)
QUOTE(Capn_Fish @ Sep 18 2006, 12:22 AM)
Any tips?

Have a look in /var/log/cups/error_log, it might give a clue.
*


There's always a possibility... smile.gif

It's probably missing a dependent library or something silly like that
Capn_Fish
I found the log, and the cupsd.conf file was named cupsd.conf.default. Now it starts OK, but I can't get to http://localhost:631/ in firefox. I get a 404 error. What now?

Thanks for your help.
karlto
QUOTE(Capn_Fish @ Sep 19 2006, 08:58 AM)
I found the log, and the cupsd.conf file was named cupsd.conf.default. Now it starts OK, but I can't get to http://localhost:631/ in firefox. I get a 404 error. What now?

Thanks for your help.
*

Are you sure it started OK? Note that the default security settings in cupsd.conf only allow access from the local machine (but localhost should work fine...). Check out some of the other settings in the conf file to see if there are any immediately obvious problems.
Capn_Fish
I don't see anything obviously wrong with the cupsd.conf file. CUPS seems to be running OK (#.../cups status indicates that the scheduler is running). Any other ideas? You may want to note that I have almost no clue as to what to look for in the conf file. If you think there's something wrong with it, I can attach it.

Thanks for your help!
karlto
QUOTE(Capn_Fish @ Sep 19 2006, 12:27 PM)
I don't see anything obviously wrong with the cupsd.conf file. CUPS seems to be running OK (#.../cups status indicates that the scheduler is running). Any other ideas? You may want to note that I have almost no clue as to what to look for in the conf file. If you think there's something wrong with it, I can attach it.

Thanks for your help!
*

It should just work then... blink.gif

I guess you should see at least these lines in cupsd.conf:

CODE
Port 631

and

CODE
Allow From 127.0.0.1

The second one in particular is important, and contained in the security section at the bottom of the config file. I'm pretty sure the default settings are good though.

What you have now is not at all a pdaXrom-specific issue, so you could skim any cups documentation for some hints if we can't help you.
Da_Blitz
also dont forget that firefox cant really talk to the printer (it dosent understand it) however the 404 is host not found which seems to me to indicate ethire the dns lookup failed (unlikly) or that the port is firewalled at the OS or application level (ie the enable localhost to connect thingy)

in the future i would recomend using netcat or telnetting into the port or try a shell with tcp/ip support (zsh) or last but not least the gnu extensions to awk can connect to the internet (i have seen a webserver wirtten in awk)
desertrat
QUOTE(Capn_Fish @ Sep 18 2006, 07:58 PM)
... but I can't get to http://localhost:631/ in firefox. I get a 404 error. What now?

Try http://localhost:631/admin
Da_Blitz
oh, i didnt relise it has a webserver built in, how cool wink.gif
Capn_Fish
Can somebody compile a newer version of CUPS? I have 1.2.2 on my computer and it has the driver for my printer, but 1.2.0 does not.

Also, I have a (actually, two) .ppd files that I think will work, but every time I add a printer, it doesn't show up in the printer list. If this is easily fixable, I don't care about a new bersion of CUPS.

Thanks!
karlto
QUOTE(Capn_Fish @ Oct 7 2006, 11:01 AM)
Can somebody compile a newer version of CUPS? I have 1.2.2 on my computer and it has the driver for my printer, but 1.2.0 does not.

Also, I have a (actually, two) .ppd files that I think will work, but every time I add a printer, it doesn't show up in the printer list. If this is easily fixable, I don't care about a new bersion of CUPS.

Thanks!
*

Copy your .ppd files to /usr/share/cups/model/ and restart cups - should add the driver no problems.
Capn_Fish
I can now add printers, but whenever I try to print something, it doesn't work. If I go under jobs, I see that under state it says "stopped at novalue" and under pages it says "Unknown". Is this solvable?

Thanks for your help!
karlto
QUOTE(Capn_Fish @ Oct 10 2006, 07:48 AM)
I can now add printers, but whenever I try to print something, it doesn't work. If I go under jobs, I see that under state it says "stopped at novalue" and under pages it says "Unknown". Is this solvable?

Thanks for your help!
*

Sorry, never seen that one before. Some quick googling suggests that maybe this is a bug in the foomatic stuff (for printers that don't directly support postscript), so maybe you do need to upgrade to a newer version of cups after all...?

Have you tried using a different driver (ppd file)?
Capn_Fish
I tried both of the ones I have. Both had the same problem.

Thanks for helping.
macwiz
Hi

I've installed CUPS and have the same problem.

I also find that it won't let me configure the printer I have installed - permission denied, though it did let me go through the installing a printer process. It also accepts my password to let me delete jobs.

It does show printers on the network, but nothing actually gets processed.
karlto
QUOTE(macwiz @ Nov 25 2006, 02:33 PM)
Hi

I've installed CUPS and have the same problem.

I also find that it won't let me configure the printer I have installed - permission denied, though it did let me go through the installing a printer process. It also accepts my password to let me delete jobs.

It does show printers on the network, but nothing actually gets processed.
*

If you're getting 'permission denied' errors then it is most likely the settings in the cups configuration file - note that there are two areas permissions need to be given (one for using printers, one for admin).
macwiz
Nothing I am tweaking in cupsd.conf seems to work. Can you give a little more detail.

Thanks!
InSearchOf
paste you cupsd.conf here... I will look at it...

Late
macwiz
QUOTE(InSearchOf @ Nov 26 2006, 11:33 PM)
paste you cupsd.conf here... I will look at it...

Late
*

Hi

I have attached my cupsd.conf here (says .txt coz it wouldn't let me upload .conf).
Really it is now back to tne default because the last thing I tried was swopping in one from my OSX, which was a non-starter.

Thanks for any help.

John
karlto
QUOTE(macwiz @ Dec 4 2006, 07:59 AM)
QUOTE(InSearchOf @ Nov 26 2006, 11:33 PM)
paste you cupsd.conf here... I will look at it...

Late
*

Hi

I have attached my cupsd.conf here (says .txt coz it wouldn't let me upload .conf).
Really it is now back to tne default because the last thing I tried was swopping in one from my OSX, which was a non-starter.

Thanks for any help.

John
*


I'm not sure where the @LOCAL etc are defined...? My cupsd.conf is pretty simple for the Zaurus (comments omitted):

CODE
LogLevel none
PreserveJobHistory No
Port 631

<Location />
Order Deny,Allow
Deny From All
Allow From 127.0.0.1
</Location>

<Location /admin>
AuthType Basic
AuthClass System
Order Deny,Allow
Deny From All
Allow From 127.0.0.1
</Location>

... and it works fine for me. Try starting with a really basic config file like this and working your up to a more complex config if that's what you're after.
macwiz
Please don't get me wrong... the file I attached was the default it came with. Honest folks, nothing to do with me. I just want something that works. To hell with security and all. So is what you posted the full thing or some little snippet?

Just want a cupsd.conf that will allow me to print to any cups printer that is willing to accept jobs from the local network.

Thanks for the interest.
karlto
QUOTE(macwiz @ Dec 4 2006, 12:19 PM)
Please don't get me wrong... the file I attached was the default it came with. Honest folks, nothing to do with me. I just want something that works. To hell with security and all. So is what you posted the full thing or some little snippet?

Just want a cupsd.conf that will allow me to print to any cups printer that is willing to accept jobs from the local network.

Thanks for the interest.
*

That's cool - yes that's the entire file, so try it and see if it works smile.gif
macwiz
Tried it, but no. I get permission denied when trying to configure any printer. I tried printing from SciTE and got this message:

>a2ps "cupsd.conf"
sh: a2ps: command not found
>Exit code: 127

Is it that I am missing something vital?

Cups restarted with the small cupsd.conf by the way, so I am hoping nothing is too out of whack.
karlto
QUOTE(macwiz @ Dec 6 2006, 12:24 PM)
Tried it, but no. I get permission denied when trying to configure any printer. I tried printing from SciTE and got this message:

>a2ps "cupsd.conf"
sh: a2ps: command not found
>Exit code: 127

Is it that I am missing something vital?

Cups restarted with the small cupsd.conf by the way, so I am hoping nothing is too out of whack.
*

SciTE does the same thing for me (never tried printing from it before!). To fix that problem I imagine you'll need to install the package that provides a2ps (probably ghostscript?)

I have printed from Abiword, Firefox via CUPS. I would recommend simply browsing to http://localhost:631 and configuring the printer and printing a test page first though. If you're still getting permission denied, I'm not sure what is happening (you must browse from the Zaurus, not another machine as the cupsd.conf above only allows local access).
macwiz
Ghostscript already there. Whatever I do... permission denied. Logged in as root, don't get it. Will scrub the config files, uninstall, restart, reinstall, and if that doesn't do it simply give up.

Pity, printing would be simply so good.
karlto
QUOTE(macwiz @ Dec 7 2006, 08:17 AM)
Ghostscript already there. Whatever I do... permission denied. Logged in as root, don't get it. Will scrub the config files, uninstall, restart, reinstall, and if that doesn't do it simply give up.

Pity, printing would be simply so good.
*

I'm wondering if I have been leading you up the garden path from the start...

Where *exactly* are you seeing permission denied? When you use the web interface to configure printers, it asks you to manually enter a name and password - judging from earlier posts perhaps you already have this working...? Any problems with the web interface or not?

If you are seeing permission denied when trying to print to an already configured/installed printer, then it will be the configuration of that printer. What sort of printer? Networked? Does it require authentication? Or are you printing via another cups server?
macwiz
It was in the web GUI. Permission denied with configuring my networked printers but also when in the administration page it wouldn't allow changes to the config file, like hiding shared printers... and it had asked for my name and password and I was logged on as root.

I have since reflashed my Z and will have another go after I have decided which WM to stick with.

John
desertrat
Because cups "just works" for me I'm bewildered by the number of posts here smile.gif

I have recently setup a new desktop [machine], configured a printer and my existing Z setup sees the new printer (and prints to it) just fine.

Here's the config on the machine with the printer:
CODE
# desktop.cupsd.conf
# Show general information in error_log.
LogLevel info
SystemGroup lpadmin
# Allow remote access
Port 631
Listen /var/run/cups/cups.sock
# Enable printer sharing and shared printers.
Browsing On
BrowseOrder allow,deny
BrowseAllow @LOCAL
BrowseAddress @LOCAL
DefaultAuthType Basic
<Location />
 # Allow shared printing...
 Order allow,deny
 Allow @LOCAL
</Location>
<Location /admin>
 Encryption Required
 # Restrict access to the admin pages...
 Order allow,deny
 Allow localhost
</Location>
<Location /admin/conf>
 AuthType Basic
 Require user @SYSTEM
 # Restrict access to the configuration files...
 Order allow,deny
 Allow localhost
</Location>
<Policy default>
 <Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job CUPS-Move-Job>
   Require user @OWNER @SYSTEM
   Order deny,allow
 </Limit>
 <Limit Pause-Printer Resume-Printer Set-Printer-Attributes Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After CUPS-Add-Printer CUPS-Delete-Printer CUPS-Add-Class CUPS-Delete-Class CUPS-Accept-Jobs CUPS-Reject-Jobs CUPS-Set-Default>
   AuthType Basic
   Require user @SYSTEM
   Order deny,allow
 </Limit>
 <Limit CUPS-Authenticate-Job>
   Require user @OWNER @SYSTEM
   Order deny,allow
 </Limit>
 # Only the owner or an administrator can cancel a job...
 <Limit Cancel-Job>
   Order deny,allow
   Require user @OWNER @SYSTEM
 </Limit>
 <Limit All>
   Order deny,allow
 </Limit>
</Policy>


And here's the config on the Z:
CODE
# zaurus.cupsd.conf
# "$Id: cupsd.conf.in 5454 2006-04-23 21:46:38Z mike $"
#
#   Sample configuration file for the Common UNIX Printing System (CUPS)
#   scheduler.  See "man cupsd.conf" for a complete description of this
#   file.
#

# Log general information in error_log - change "info" to "debug" for
# troubleshooting...
LogLevel info

# Administrator user group...
SystemGroup sys root

# Only listen for connections from the local machine.
Listen localhost:631
Listen /var/run/cups/cups.sock

# Show shared printers on the local network.
Browsing On
BrowseOrder allow,deny
BrowseAllow @LOCAL

# Default authentication type, when authentication is required...
DefaultAuthType Basic

# Restrict access to the server...
<Location />
 Order allow,deny
 Allow localhost
</Location>

# Restrict access to the admin pages...
<Location /admin>
 Encryption Required
 Order allow,deny
 Allow localhost
</Location>

# Restrict access to configuration files...
<Location /admin/conf>
 AuthType Basic
 Require user @SYSTEM
 Order allow,deny
 Allow localhost
</Location>

# Set the default printer/job policies...
<Policy default>
 # Job-related operations must be done by the owner or an adminstrator...
 <Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job CUPS-Move-Job>
   Require user @OWNER @SYSTEM
   Order deny,allow
 </Limit>

 # All administration operations require an adminstrator to authenticate...
 <Limit Pause-Printer Resume-Printer Set-Printer-Attributes Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After CUPS-Add-Printer CUPS-Delete-Printer CUPS-Add-Class CUPS-Delete-Class CUPS-Accept-Jobs CUPS-Reject-Jobs CUPS-Set-Default>
   AuthType Basic
   Require user @SYSTEM
   Order deny,allow
 </Limit>

 # Only the owner or an administrator can cancel or authenticate a job...
 <Limit Cancel-Job CUPS-Authenticate-Job>
   Require user @OWNER @SYSTEM
   Order deny,allow
 </Limit>

 <Limit All>
   Order deny,allow
 </Limit>
</Policy>

#
# End of "$Id: cupsd.conf.in 5454 2006-04-23 21:46:38Z mike $".
#
karlto
QUOTE(macwiz @ Dec 9 2006, 02:36 PM)
It was in the web GUI. Permission denied with configuring my networked printers but also when in the administration page it wouldn't allow changes to the config file, like hiding shared printers... and it had asked for my name and password and I was logged on as root.

I have since reflashed my Z and will have another go after I have decided which WM to stick with.

John
*

OK we were on the right track then - it is the security settings in cupsd.conf.

You need to put in user 'root' and your password into the browser auth box, but then it should work with the short conf file I gave you (but only from the same machine).

Are you sure that you have the cupsd.conf in the right place? I found the one on my Z installation in non-standard place...
macwiz
Sorry, I have been away from cups for a while, setting up my Z based on xfce4/rox again.

Before I start on this again, I should perhaps ask if the fact that the cups printers are physically attached to an Apple Mac will make any difference. When I looked in the cups GUI it found the networked printers on the mac just fine, but when I did a test print from any of the printers from the GUI it said that such and such a printer could not be found...

Will get back when I have tried the various solutions mentioned above!

Thanks.
Ling
I am trying to print to an hp lj 6mp connected to a linksys wireless print server. I used your previous instructions to set it up. I downloaded the cups packages from Meanie's feed. I have:

cupsclient 1.1.20 installed to my microdrive (ext2)
cups 1.2.0 installed to my microdrive (ext2)

When I go into the web admin and try to print a test page, I get an error that says:

Unsupported format 'application/postscript'!

Any ideas?

**UPDATE** I was able to pull up an old post that said I also needed ghostscript and freetype. Freetype was already installed, so I installed ghostscript. I restarted cups and went back to the web admin and tried again to print a test page, same results. Then I rebooted and tried it again. Same results. Help.
macwiz
Hi. I don't know if this is right, but I thought that cups on the Z was a slimmed down version that required a cups printer on another computer to do the processing. Which might explain why no joy on your linksys print server. Please anyone let me know if I'm wrong.
Ling
Thanks for the feedback. I was hoping that someone would confirm. From other posts, it appears that folks have this working. Oh well. I will try printing to a shared printer on the Windows and Linux boxes and see what I get.
Ling
Well, I thought that I would try and set it up exactly like my other linux boxes. I downloaded the hpijs ppd file and installed it using the web interface. It gives me an error saying it can't find the 'foomatic-rip' filter. I downloaded that from HP, but it needs to be compiled. Has anyone already compiled this?

**PARTIAL SOLUTION** I downloaded the generic postscript ppd from the linuxprinting site and now I can print a test page. Unfortunately, the printer is not showing up in any of the applications like Abiword.
karlto
QUOTE(Ling @ Jan 2 2007, 08:00 AM)
Well, I thought that I would try and set it up exactly like my other linux boxes. I downloaded the hpijs ppd file and installed it using the web interface. It gives me an error saying it can't find the 'foomatic-rip' filter. I downloaded that from HP, but it needs to be compiled. Has anyone already compiled this?

**PARTIAL SOLUTION** I downloaded the generic postscript ppd from the linuxprinting site and now I can print a test page. Unfortunately, the printer is not showing up in any of the applications like Abiword.
*

Applications normally need to directly support cups to show a list of printers automatically, but even when they don't, you can usually enter a print command (use the cups lp or lpr commands).

As I understand it, many HP printers don't support postscript at all, and the foomatic filter converts postscript to PCL. I haven't tried using this on pdaXrom (straight postscript printers only).

You don't need a cups server to use cups on pdaXrom, but you will need the correct printer drivers (including the foomatic one for HP PCL printers). Using another machine with cups server can be a useful workaround.
Ling
Thanks. The Laserjet 6MP is a Postscript printer. I bought a 'P' model specifically to work easily with Linux. I was able to get that working from the CUPS admin page by printing a test page. I have not been able to make any of the applications print yet, but will keep working on it. I tried going to the custom section in Abiword and putting in the URI that CUPS is using. No joy. I will keep trying. My color printer is an HP PSC 1210v, one of those all-in-ones. I can print to it from my other linux boxes via SMB (it is shared from XP Home) with the hpijs+foomatic driver. Unfortunately without foomatic for the zaurus, no joy. I also don't have smbfs installed yet. I would be happy at this point just being able to print a text file and pdf to my 6MP. I have difficulty believing that there aren't folks out there who already have this working, but if so, I guess they are busy. Thanks for the feedback.
sds
First of all, get the working versions of cups, gnutls, libgcrypt from this thread.
(The feed does not appear to have been updated)
Install cupsclient and ghostscript-gpl as well.

Then,
CODE
root-:) cp /etc/cups/cupsd.conf.default /etc/cups/cupsd.conf

Next, adjust the group settings to permit access through the web interface:
CODE
root-:) chgrp lp /etc/cups/*

Set some workable permissions on the spool:
CODE
root-:) chmod 775 /var/spool/cups/
root-:) chmod 711 /var/spool/

Uncomment in /etc/cups/mime.convs:
CODE
application/vnd.cups-postscript application/vnd.cups-raster     100     pstoraster
...
application/octet-stream        application/vnd.cups-raw        0       -

Go to the printer database and find the appropriate .ppd file for your network printer.
Copy the .ppd to where the installation wizard can find it:
CODE
root-:) cp /prog/feed/hp_LaserJet_4300_Series.ppd /usr/share/cups/model/

Start cups:
CODE
root-:) /etc/rc.d/init.d/cups start
cups: started scheduler.
root-:) /etc/rc.d/init.d/cups status
cups: scheduler is running.

Go to the admin interface and add the printer. (The driver should appear in the appropriate window). Print a test page... Make it a default printer.

The web interface seems to be quite buggy and some functions (e.g. redirections/refresh, Set Printer Options etc) do not work -- might need to edit /etc/cups/printers.conf and/or other configuration files.

At first attempt to print, KO/PI asks for printer configuration and finds it.
Abiword and leafpad do not show the printer, but printing to "Generic PostScript" works.
ScITE does not work (with the a2ps error).
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2014 Invision Power Services, Inc.