Author Topic: How Do I Print To A Networked Printer?  (Read 12015 times)

macwiz

  • Full Member
  • ***
  • Posts: 151
    • View Profile
    • http://www.macwiz.co.uk
How Do I Print To A Networked Printer?
« Reply #30 on: December 08, 2006, 08:36:04 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
Macwiz
c860, never quite lived up to my expectations... my fault I guess
17in MacBook Pro lovely xxxx
iPhone 3G ummm
SE P990i with UIQ3. Never enough RAM.
Pocket Loox 720 used for designing ebooks. Just don't like it though!

macwiz: apple mac support in Oxfordshire
Twitter: @boffinboy

desertrat

  • Hero Member
  • *****
  • Posts: 743
    • View Profile
    • http://
How Do I Print To A Networked Printer?
« Reply #31 on: December 09, 2006, 02:31:50 am »
Because cups "just works" for me I'm bewildered by the number of posts here

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: [Select]
# 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

  # Allow shared printing...
  Order allow,deny
  Allow @LOCAL


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


  AuthType Basic
  Require user @SYSTEM
  # Restrict access to the configuration files...
  Order allow,deny
  Allow localhost


  
    Require user @OWNER @SYSTEM
    Order deny,allow
  

  
    AuthType Basic
    Require user @SYSTEM
    Order deny,allow
  

  
    Require user @OWNER @SYSTEM
    Order deny,allow
  

  # Only the owner or an administrator can cancel a job...
  
    Order deny,allow
    Require user @OWNER @SYSTEM
  

  
    Order deny,allow
  


And here's the config on the Z:
Code: [Select]
# 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...

  Order allow,deny
  Allow localhost


# Restrict access to the admin pages...

  Encryption Required
  Order allow,deny
  Allow localhost


# Restrict access to configuration files...

  AuthType Basic
  Require user @SYSTEM
  Order allow,deny
  Allow localhost


# Set the default printer/job policies...

  # Job-related operations must be done by the owner or an adminstrator...
  
    Require user @OWNER @SYSTEM
    Order deny,allow
  


  # All administration operations require an adminstrator to authenticate...
  
    AuthType Basic
    Require user @SYSTEM
    Order deny,allow
  


  # Only the owner or an administrator can cancel or authenticate a job...
  
    Require user @OWNER @SYSTEM
    Order deny,allow
  


  
    Order deny,allow
  



#
# End of "$Id: cupsd.conf.in 5454 2006-04-23 21:46:38Z mike $".
#
SL-C3100 / Ambicon WL1100C-CF / pdaXrom 1.1.0beta3 / IceWM

karlto

  • Sr. Member
  • ****
  • Posts: 343
    • View Profile
    • http://
How Do I Print To A Networked Printer?
« Reply #32 on: December 10, 2006, 01:37:30 am »
Quote
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
[div align=\"right\"][a href=\"index.php?act=findpost&pid=148580\"][{POST_SNAPBACK}][/a][/div]
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...
SL6000-L, RC12

macwiz

  • Full Member
  • ***
  • Posts: 151
    • View Profile
    • http://www.macwiz.co.uk
How Do I Print To A Networked Printer?
« Reply #33 on: December 31, 2006, 04:59:18 am »
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.
Macwiz
c860, never quite lived up to my expectations... my fault I guess
17in MacBook Pro lovely xxxx
iPhone 3G ummm
SE P990i with UIQ3. Never enough RAM.
Pocket Loox 720 used for designing ebooks. Just don't like it though!

macwiz: apple mac support in Oxfordshire
Twitter: @boffinboy

Ling

  • Sr. Member
  • ****
  • Posts: 350
    • View Profile
    • http://
How Do I Print To A Networked Printer?
« Reply #34 on: December 31, 2006, 09:16:00 am »
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.
« Last Edit: December 31, 2006, 03:00:30 pm by Ling »
SL-C3200 w/ pdaXii13 5.3
SL-C860 w/ OZ GPE 3.4.1
Accessories: 4GB Microdrive, 4GB Transcend SD, Linksys WFC12 CF 802.11b, Ambicom CF Modem, Socket Bluetooth

macwiz

  • Full Member
  • ***
  • Posts: 151
    • View Profile
    • http://www.macwiz.co.uk
How Do I Print To A Networked Printer?
« Reply #35 on: December 31, 2006, 03:37:12 pm »
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.
Macwiz
c860, never quite lived up to my expectations... my fault I guess
17in MacBook Pro lovely xxxx
iPhone 3G ummm
SE P990i with UIQ3. Never enough RAM.
Pocket Loox 720 used for designing ebooks. Just don't like it though!

macwiz: apple mac support in Oxfordshire
Twitter: @boffinboy

Ling

  • Sr. Member
  • ****
  • Posts: 350
    • View Profile
    • http://
How Do I Print To A Networked Printer?
« Reply #36 on: January 01, 2007, 09:26:08 am »
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.
« Last Edit: January 01, 2007, 09:27:06 am by Ling »
SL-C3200 w/ pdaXii13 5.3
SL-C860 w/ OZ GPE 3.4.1
Accessories: 4GB Microdrive, 4GB Transcend SD, Linksys WFC12 CF 802.11b, Ambicom CF Modem, Socket Bluetooth

Ling

  • Sr. Member
  • ****
  • Posts: 350
    • View Profile
    • http://
How Do I Print To A Networked Printer?
« Reply #37 on: January 01, 2007, 02:00:39 pm »
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.
SL-C3200 w/ pdaXii13 5.3
SL-C860 w/ OZ GPE 3.4.1
Accessories: 4GB Microdrive, 4GB Transcend SD, Linksys WFC12 CF 802.11b, Ambicom CF Modem, Socket Bluetooth

karlto

  • Sr. Member
  • ****
  • Posts: 343
    • View Profile
    • http://
How Do I Print To A Networked Printer?
« Reply #38 on: January 02, 2007, 04:57:17 pm »
Quote
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.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=149769\"][{POST_SNAPBACK}][/a][/div]
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.
SL6000-L, RC12

Ling

  • Sr. Member
  • ****
  • Posts: 350
    • View Profile
    • http://
How Do I Print To A Networked Printer?
« Reply #39 on: January 02, 2007, 05:53:09 pm »
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.
SL-C3200 w/ pdaXii13 5.3
SL-C860 w/ OZ GPE 3.4.1
Accessories: 4GB Microdrive, 4GB Transcend SD, Linksys WFC12 CF 802.11b, Ambicom CF Modem, Socket Bluetooth

sds

  • Jr. Member
  • **
  • Posts: 81
    • View Profile
How Do I Print To A Networked Printer?
« Reply #40 on: July 16, 2007, 09:37:25 pm »
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: [Select]
root-:) cp /etc/cups/cupsd.conf.default /etc/cups/cupsd.confNext, adjust the group settings to permit access through the web interface:
Code: [Select]
root-:) chgrp lp /etc/cups/*Set some workable permissions on the spool:
Code: [Select]
root-:) chmod 775 /var/spool/cups/
root-:) chmod 711 /var/spool/
Uncomment in /etc/cups/mime.convs:
Code: [Select]
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: [Select]
root-:) cp /prog/feed/hp_LaserJet_4300_Series.ppd /usr/share/cups/model/Start cups:
Code: [Select]
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).
C3100 pdaXrom