Re: Can you ACTUALLY print from FreeBSD?

2009-04-24 Thread Gonzalo Nemmi
On Monday 20 April 2009 11:58:39 am Keith Seyffarth wrote:
 I'm trying to print from my FreeBSD machine. I've been through a
 number of online tutorials and instructions on printing from Unix or
 FreeBSD in particular, but they all seem to start with the assumption
 that printing from the machine is possible. I'm trying to get to that
 starting point.

 I have installed:

 cups-base-1.3.9_3   Common UNIX Printing System
 cups-pdf-2.5.0  A virtual printer for CUPS to produce PDF files
 cups-pstoraster-8.15.4_2 Postscript interpreter for CUPS printing to
 non-PS printers gutenprint-cups-5.1.7_3 GutenPrint Printer Driver
 libgnomecups-0.2.3_1,1 Support library for gnome cups admistration
 hplip-2.8.2_4   Drivers and utilities for HP Printers and
 All-in-One device

 The printer I'm working with is a HP Officejet 4110.

Hello Keith !

Ok .. first and to answer the topic: Yes, I can, and it has been that 
way since day 1 with FreeBSD in here.

Your printed seems  to be supported by hplip ...
http://hplipopensource.com/hplip-web/models/officejet/officejet_4100_series.html

 There seem to be several issues with printing. First, since this is a
 USB printer,

And so it's mine (an Hp LaserJet 1015)

 the pinter is always owned by root:operator with read 
 permissions for user, group, and world.


 Adding these lines to /etc/devfs.conf
 link ulpt0 printer
 own ulpt0 cups:cups
 perm ulpt0 0666

Maybe you should have taken a look at the hplip post install message ...
Here, take a look at this:

[gonz...@inferna ~]% pkg_info -xD hplip
Information for hplip-2.8.2_3:

Install notice:
**

 UPGRADE FROM 1.X NOTICE *

NOTE: If you are upgrading from 1.x you will need to
change your devfs ruleset as hpiod is now gone, so remove
it from you rc.conf.  The printer communication now runs
through cupsd.  You will need to make the devfs ruleset
changes to allow cups to access the usb bus and ugen
devices so that it can enumerate the printers.  You will
also need to update your hplip.conf.  See the instructions
below.

 UPGRADE FROM 1.X NOTICE *

Add the following to your rc.conf:

hpssd_enable=YES

So all you have to do if you have a custom ruleset setup
is add the following to that ruleset in devfs.rules:

add path 'usb*' group cups
add path 'usb*' mode 0660
add path 'ugen*' group cups
add path 'ugen*' mode 0660

If you have never setup devfs.rules please read the
manpage and see:
http://am-productions.biz/docs/devfs.rules.php

The printer MUST attach as a ugen(4) device.  This means
that you must NOT have device ulpt in your kernel and
ulpt must NOT be loaded as a kernel module.

If you are seeing device connection errors restart the
printing chain with the following command.  NOTE: It MUST
be restarted in the stated order.
%%PREFIX%%/etc/rc.d/hpssd restart  \
%%PREFIX%%/etc/rc.d/cupsd restart

If upgrading from a version  2.7.9 copy the new
hplip.conf.sample config.
cp %%PREFIX%%/etc/hp/hplip.conf.sample \
   %%PREFIX%%/etc/hp/hplip.conf

If you are still having problems check:
http://am-productions.biz/docs/hplip.php
If you are still having problems send the relevant part
of your /var/log/messages, console output from the hp-*
utility that you are trying to run, and your rc.conf +
devfs.rules files and the output of ls -l /dev to the
maintainer.
**
[gonz...@inferna ~]%


So .. basically .. get rid of ulpt ... recompile your kernel if you 
have to, but get rid of it .. the printer MUST attach as a ugen(4) 
device ...

Plug your printer in, turn it on and .. add this lines to devfs.rules 
(change the [system=10]  to suit your needs if you have to)

[system=10] 
add path 'usb*' group cups
add path 'usb*' mode 0660
add path 'ugen*' group cups
add path 'ugen*' mode 0660

after that, issue the following commands:

cp /usr/local/etc/hp/hplip.conf.sample /usr/local/etc/hp/hplip.conf 
/etc/rc.d/devfs restart 
/usr/local/etc/rc.d/hpssd start 
/usr/local/etc/rc.d/cupsd start 

log in to the cups config page and follow the steps to configure your 
printer ...

when prompted for a printer URI, make use of hp-makeuri to determine 
what URI you should use .. I use it like this:

hp-makeuri printer_serial_number

and it will return something along this way:

hp:/usb/hp_LaserJet_1015?serial=MYSERIALGOESINHERE

feed that to the URI field and then move on to choose the ppd file which 
you'll be able to find under /usr/local/share/ppd/HP ...

And that's about it .. 

 will set the ownership to cups:cups and the permissions to read and
 write for user, group, and world on startup if the printer is already
 turned on and plugged in. However, if the printer is not turned on at
 startup, or if it is disconnected or turned off after system startup,
 ownership and permissions revert.

 Trying chown or chmod to the device at /dev/ulpt0 gives an invalid
 path error, and 

Re: Can you ACTUALLY print from FreeBSD?

2009-04-22 Thread Keith Seyffarth

 What version of FreeBSD are you using? There was a problem with certain
 USB devices in the 6.x branch with timing out.

What would the symptoms of this timing out be? what I'm seeing is
pretty instantaneous. In fact, printing to lpr instead of cups (with
cups disabled), I usually can't catch the job in the print spool
folder (because I can't hit the up arrow twice fast enough to pull it
out of my history before it thinks it has finished printing).
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Can you ACTUALLY print from FreeBSD?

2009-04-22 Thread Keith Seyffarth

 What kind of printing do you need to do?

For the moment there are two things:
1. Create .pdf files from HTML/XHTML documents viewed in Firefox or
   Opera
2. Print HTML/XHTML documents viewed in Firefox or Opera to a
   printer.

 To send files to some either attached or network attached printer,
 you just need to:
 
   set up an entry in  /etc/printcap  
   for a printer named myprt,  make something like: 
 
 lp|myprt|HP OfficeJet 4110 N:\
   :lp=:rp=myprt:rm=myprt.prt.full.hostname:\
   :sh:mx#0:\
   :sd=/var/spool/myprt:\
   :lf=/var/log/printer.log:
 (Of course, change myprt.prt.full.hostname to a real address)

I have this:
lp|OfficeJet:\
:lp=/dev/ulpt0:\
:af=/usr/local/share/ppd/HP//HP-OfficeJet_4110-hpijs.ppd.gz:\
:if=/usr/local/bin/foomatic-rip:\
:sd=/var/spool/print.hp:\
:lf=/var/log/print.hp.log:\
:sh:

   create a spool directory for it in /var/spool 
 (eg for a printer named myprt in printcap, 
  create a /var/spool/myprt directory 

created directory /var/spool/print.hp

   create an empty log file for it
  touch /var/log/printer.log

touched /var/log/print.hp.log

   then enable lpd in /etc/rc.conf -  lpd_enable=YES

added this

 This sets up a 'standard' printer destination (named lp)
 Then you can print using lpr(1)

I can send files to the print spool this way, but then they just
disappear from the print spool. There is no evidence of attempted
communication with the printer, and certainly no printing going on.

 Some utilities want to use cups and other heavy stuff, but
 just for regular printing - of a file or from firefox or openoffice, etc
 you don't need that.

Never used OpenOffice...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Can you ACTUALLY print from FreeBSD?

2009-04-21 Thread Wojciech Puchar

I'm trying to print from my FreeBSD machine. I've been through a


yes. i do

cat file /dev/lpt0

:)


never used cups and never will. but i use lpd and postscript to pcl filter
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Can you ACTUALLY print from FreeBSD?

2009-04-21 Thread Vincent Hoffman
On 20/4/09 23:36, Keith Seyffarth wrote:
 Googling that shows it to be a file shared with Windows boxes when you're 
 running samba.  I don't know if you set up samba or not, but I would ignore 
 this error for now.  It's likely unrelated to the printing problem that 
 you're 
 having.
 

 OK. Thanks. I guess. I was kind of hoping that figuring that out might
 be the fix...

   
 Do you have the startup script:
 /usr/local/etc/rc.d/cupsd ?
 
 yes

   
 If so, what is the output of /usr/local/etc/rc.d/cupsd status?
 
 currently it's:
 cupsd is running as pid 721.

 but I did start cups manually since my last reboot.

   
 Cupsd was started automatically on reboot by the script.  So that part is 
 working fine.
 

 after rebooting the machine, it's:
 cupsd is not running.

 config info snipped

   
 It appears the problem is the printer.  Try changing the perms to 0777 for 
 testing purposes.  If you're able to print, the problem is permissions.  
 You'll 
 have to figure out what permissions you need to get it working.
 

 That doesn't help. I get the same behavior with the permissions set to
 0777.

   
 One person mentioned that you should be using the ugen device instead of 
 /dev/ultp0.  This thread might be relevant - 
 http://foo2zjs.rkkda.com/forum/read.php?9,546,547

 You might have to abandon using cupsd for this printer.
 

 Yeah. We may not be using this printer long anyway, since it is nearly
 out of ink, and the ink will be $95. It would just be nice to be able
 to demonstrate that printing is an option.

 Also, from what I've been seeing in my testing and so on since
 Thursday, it looks like if you use CUPS at all, you can't use anything
 else, since CUPS overwrites things like /etc/printcap with its own
 settings frequently. And since I've been successfully using cups-pdf
 for several months, I'd need a replacement for that. At least with
 that, despite all the shortcomings of .pdf format, we can still get
 stuff printed. Just not in our office.

   
 If so, this might be helpful:
 http://www.onlamp.com/pub/a/bsd/2004/07/08/FreeBSD_Basics.html?page=last
 

 I had read through that several times. It is one of several places
 pointing out that the device has to be at ultp*, and if it's at ugen*
 you likely have a problem...

   
However the pkg-message for hplip says differently. I had to recompile
without ulpt in the kernel to get my hp c3180 psc to work, but it prints
(and scans) fine from freebsd now.
read the output from pkg_info -xD hplip  It has got full instructions on
what needs doing.  Recompiling the kernel isnt actually all that hard,
and is detailed fully in the handbook.
Actually to any devs who might be reading, is there any reason we have
ulpt built in rather than as a module?

Vince

 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
   

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Can you ACTUALLY print from FreeBSD?

2009-04-20 Thread Jerry McAllister
On Mon, Apr 20, 2009 at 08:58:39AM -0600, Keith Seyffarth wrote:

 
 I'm trying to print from my FreeBSD machine. I've been through a
 number of online tutorials and instructions on printing from Unix or
 FreeBSD in particular, but they all seem to start with the assumption
 that printing from the machine is possible. I'm trying to get to that
 starting point.

What kind of printing do you need to do?
To send files to some either attached or network attached printer,
you just need to:

  set up an entry in  /etc/printcap  
  for a printer named myprt,  make something like: 

lp|myprt|HP OfficeJet 4110 N:\
  :lp=:rp=myprt:rm=myprt.prt.full.hostname:\
  :sh:mx#0:\
  :sd=/var/spool/myprt:\
  :lf=/var/log/printer.log:
(Of course, change myprt.prt.full.hostname to a real address)

  create a spool directory for it in /var/spool 
(eg for a printer named myprt in printcap, 
 create a /var/spool/myprt directory 

  create an empty log file for it
 touch /var/log/printer.log

  then enable lpd in /etc/rc.conf -  lpd_enable=YES

This sets up a 'standard' printer destination (named lp)
Then you can print using lpr(1)

Some utilities want to use cups and other heavy stuff, but
just for regular printing - of a file or from firefox or openoffice, etc
you don't need that.

jerry



 
 I have installed:
 
 cups-base-1.3.9_3   Common UNIX Printing System
 cups-pdf-2.5.0  A virtual printer for CUPS to produce PDF files
 cups-pstoraster-8.15.4_2 Postscript interpreter for CUPS printing to non-PS 
 printers
 gutenprint-cups-5.1.7_3 GutenPrint Printer Driver
 libgnomecups-0.2.3_1,1 Support library for gnome cups admistration
 hplip-2.8.2_4   Drivers and utilities for HP Printers and All-in-One 
 device
 
 The printer I'm working with is a HP Officejet 4110.
 
 
 There seem to be several issues with printing. First, since this is a
 USB printer, the pinter is always owned by root:operator with read
 permissions for user, group, and world.
 
 Adding these lines to /etc/devfs.conf
 link ulpt0 printer
 own ulpt0 cups:cups
 perm ulpt0 0666
 
 will set the ownership to cups:cups and the permissions to read and
 write for user, group, and world on startup if the printer is already
 turned on and plugged in. However, if the printer is not turned on at
 startup, or if it is disconnected or turned off after system startup,
 ownership and permissions revert.
 
 Trying chown or chmod to the device at /dev/ulpt0 gives an invalid
 path error, and trying to do so following the instructions in the man
 page for devfs give 'operation not supported by device' errors.
 
 When th device is owned by root, attempting to print the test page
 generates a 'permission denied' error in CUPS. When the device is
 owned by cups, attempting to print the test page generates a failed
 error in CUPS.
 
 When the device is owned by cups, this error is reported in the error
 log in CUPS, if debug logging is enabled:
 
 [CGI] /usr/local/share/cups/drivers/pscript5.dll: No such file or directory
 
 There isn't a drivers directory in /usr/local/share/cups. I can make
 one, but where do I get the pscript5.dll, and what else is it going to
 rely on?
 
 CUPS et al were installed using portinstall, and CUPS is working well
 to produce .pdf files. I tried portupgrade last night on all the (I
 think) relevant ports, but the system thinks they are all up to date.
 
 So, questions:
 
 1. how can I get permissions on the device to stick, so that I do not
have to reboot the machine every time we want to print or have to
power cycle the printer?
 2. Am I correct that the missing .dll (that seems awfully Windows to
me) is the problem in getting a filter to print? If so, what do I
need to do to install it?
 
 
 And, actually, a third printing-related issue: How do I get cupsd to
 start on startup? I have these two lines in /etc/rc.conf:\
 
 cupsd_enable=YES # enable cups printing management
 devfs_system_ruleset=system # something else they say cups needs
 
 but CUPS has to be manually started by root after each reboot. what
 else needs to be done to get cupsd to start at startup?
 
 Keith
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


RE: Can you ACTUALLY print from FreeBSD?

2009-04-20 Thread Ramiro Caso

 I'm trying to print from my FreeBSD machine. I've been through a
 number of online tutorials and instructions on printing from Unix or
 FreeBSD in particular, but they all seem to start with the assumption
 that printing from the machine is possible. I'm trying to get to that
 starting point.
 
 I have installed:
 
 cups-base-1.3.9_3   Common UNIX Printing System
 cups-pdf-2.5.0  A virtual printer for CUPS to produce PDF files
 cups-pstoraster-8.15.4_2 Postscript interpreter for CUPS printing to non-PS 
 printers
 gutenprint-cups-5.1.7_3 GutenPrint Printer Driver
 libgnomecups-0.2.3_1,1 Support library for gnome cups admistration
 hplip-2.8.2_4   Drivers and utilities for HP Printers and All-in-One 
 device
 
 The printer I'm working with is a HP Officejet 4110.
 
 
 There seem to be several issues with printing. First, since this is a
 USB printer, the pinter is always owned by root:operator with read
 permissions for user, group, and world.
 
 Adding these lines to /etc/devfs.conf
 link ulpt0 printer
 own ulpt0 cups:cups
 perm ulpt0 0666
 
 will set the ownership to cups:cups and the permissions to read and
 write for user, group, and world on startup if the printer is already
 turned on and plugged in. However, if the printer is not turned on at
 startup, or if it is disconnected or turned off after system startup,
 ownership and permissions revert.
 
 Trying chown or chmod to the device at /dev/ulpt0 gives an invalid
 path error, and trying to do so following the instructions in the man
 page for devfs give 'operation not supported by device' errors.

 When th device is owned by root, attempting to print the test page
 generates a 'permission denied' error in CUPS. When the device is
 owned by cups, attempting to print the test page generates a failed
 error in CUPS.
 
 When the device is owned by cups, this error is reported in the error
 log in CUPS, if debug logging is enabled:
 
 [CGI] /usr/local/share/cups/drivers/pscript5.dll: No such file or directory
 
 There isn't a drivers directory in /usr/local/share/cups. I can make
 one, but where do I get the pscript5.dll, and what else is it going to
 rely on?
 
 CUPS et al were installed using portinstall, and CUPS is working well
 to produce .pdf files. I tried portupgrade last night on all the (I
 think) relevant ports, but the system thinks they are all up to date.
 
 So, questions:
 
 1. how can I get permissions on the device to stick, so that I do not
have to reboot the machine every time we want to print or have to
power cycle the printer?


You should use /etc/devfs.rules instead, adding something like:



add path 'ulpt*' mode 0660 group cups



This will set the right permissions when the node is created.


 2. Am I correct that the missing .dll (that seems awfully Windows to
me) is the problem in getting a filter to print? If so, what do I
need to do to install it?
 
 
 And, actually, a third printing-related issue: How do I get cupsd to
 start on startup? I have these two lines in /etc/rc.conf:\
 
 cupsd_enable=YES # enable cups printing management
 devfs_system_ruleset=system # something else they say cups needs
 
 but CUPS has to be manually started by root after each reboot. what
 else needs to be done to get cupsd to start at startup?
 
 Keith
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org

_

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Can you ACTUALLY print from FreeBSD?

2009-04-20 Thread Glyn Millington
Keith Seyffarth w...@weif.net writes:

 I'm trying to print from my FreeBSD machine. I've been through a
 number of online tutorials and instructions on printing from Unix or
 FreeBSD in particular, but they all seem to start with the assumption
 that printing from the machine is possible. I'm trying to get to that
 starting point.


A laudable ambition!

 cups-base-1.3.9_3   Common UNIX Printing System
 cups-pdf-2.5.0  A virtual printer for CUPS to produce PDF files
 cups-pstoraster-8.15.4_2 Postscript interpreter for CUPS printing to non-PS 
 printers
 gutenprint-cups-5.1.7_3 GutenPrint Printer Driver
 libgnomecups-0.2.3_1,1 Support library for gnome cups admistration
 hplip-2.8.2_4   Drivers and utilities for HP Printers and All-in-One 
 device

Looks good so far.

 The printer I'm working with is a HP Officejet 4110.

 1. how can I get permissions on the device to stick, so that I do not
have to reboot the machine every time we want to print or have to
power cycle the printer?

Wrong file  - add the changes to /etc/devfs.rules

/etc/devfs.conf is for fixed devices - devfs.rules for plug-in stuff.

 2. Am I correct that the missing .dll (that seems awfully Windows to
me) is the problem in getting a filter to print? If so, what do I
need to do to install it?

I don't know - try it with the permissions set as above.


 And, actually, a third printing-related issue: How do I get cupsd to
 start on startup? I have these two lines in /etc/rc.conf:\

 cupsd_enable=YES # enable cups printing management

That should be enough to get it running.

 devfs_system_ruleset=system # something else they say cups needs

in which  case the first line in /etc/devfs.rules should be

[system=10] 

that line starts a new ruleset with the name system and the number 10


atb


Glyn
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Can you ACTUALLY print from FreeBSD?

2009-04-20 Thread Manolis Kiagias
Keith Seyffarth wrote:
 I'm trying to print from my FreeBSD machine. I've been through a
 number of online tutorials and instructions on printing from Unix or
 FreeBSD in particular, but they all seem to start with the assumption
 that printing from the machine is possible. I'm trying to get to that
 starting point.

 I have installed:

 cups-base-1.3.9_3   Common UNIX Printing System
 cups-pdf-2.5.0  A virtual printer for CUPS to produce PDF files
 cups-pstoraster-8.15.4_2 Postscript interpreter for CUPS printing to non-PS 
 printers
 gutenprint-cups-5.1.7_3 GutenPrint Printer Driver
 libgnomecups-0.2.3_1,1 Support library for gnome cups admistration
 hplip-2.8.2_4   Drivers and utilities for HP Printers and All-in-One 
 device

 The printer I'm working with is a HP Officejet 4110.

 SNIP

Follow the instructions here:

http://desktopbsd.net/wiki/doku.php?id=doc:printing

(prefer to build from ports rather than adding the packages as the
instructions suggest)

Note there are two files with permissions, devfs.conf and devfs.rules -
you must make entries in both.
One is for devices found during startup, the other for devices that are
hot-plugged afterwards.
cupsd_enable=YES should do the trick in rc.conf - nothing else needed
to start cups as a service.
Also note that cups has an lpr compatible interface, but should you wish
to print from the command line using cups, you will have to usr
/usr/local/bin/lpr to make sure you are running the cups' executable of
lpr. Generally you should not need to touch any other cups related files
to make it work. Just visit the web interface at http://localhost:631
and make any settings there.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Can you ACTUALLY print from FreeBSD?

2009-04-20 Thread Glyn Millington

Sorry - meant to add this to post

Take a look here:- 

http://openprinting.org/show_printer.cgi?recnum=HP-OfficeJet_4110

A free driver is available, rather than the windows .dll


Good luck :-)

atb


Glyn
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Can you ACTUALLY print from FreeBSD?

2009-04-20 Thread Keith Seyffarth

snip

 Follow the instructions here:
 
 http://desktopbsd.net/wiki/doku.php?id=doc:printing

I'm currently four days of troubleshooting after having done all
that's listed on that wiki entry (though I didn't find that page until
yesterday), and still trying to get close. That would be one of the
pages I obliquely referred to as assuming that printing was
possible...

snip

 cupsd_enable=YES should do the trick in rc.conf - nothing else
 needed to start cups as a service.

I'd have to disagree with this statement, based on experience. That
line has been in rc.conf since Januray, and cupsd *never* starts on
boot. I'd guess that there has to be something else done somewhere to
get it to actually start.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Can you ACTUALLY print from FreeBSD?

2009-04-20 Thread Manolis Kiagias
Keith Seyffarth wrote:
 snip

   
 Follow the instructions here:

 http://desktopbsd.net/wiki/doku.php?id=doc:printing
 

 I'm currently four days of troubleshooting after having done all
 that's listed on that wiki entry (though I didn't find that page until
 yesterday), and still trying to get close. That would be one of the
 pages I obliquely referred to as assuming that printing was
 possible...

   

When I read that the first time, I didn't have much idea of CUPS and
devfs rules. I could still make it work.

 cupsd_enable=YES should do the trick in rc.conf - nothing else
 needed to start cups as a service.
 

 I'd have to disagree with this statement, based on experience. That
 line has been in rc.conf since Januray, and cupsd *never* starts on
 boot. I'd guess that there has to be something else done somewhere to
 get it to actually start.
   

There must be some problem in your system - there is nothing else in my
rc.conf  about cups, and it does start at boot on my system.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Can you ACTUALLY print from FreeBSD?

2009-04-20 Thread Keith Seyffarth

 Sorry - meant to add this to post
 
 Take a look here:- 
 
 http://openprinting.org/show_printer.cgi?recnum=HP-OfficeJet_4110
 
 A free driver is available, rather than the windows .dll

Downloaded and installed that ppd and selected it fro the printer. It
still errors that the pscript5.dll is missing.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Can you ACTUALLY print from FreeBSD?

2009-04-20 Thread Keith Seyffarth
  I'm trying to print from my FreeBSD machine. I've been through a
  number of online tutorials and instructions on printing from Unix or
  FreeBSD in particular, but they all seem to start with the assumption
  that printing from the machine is possible. I'm trying to get to that
  starting point.
 
 
 A laudable ambition!

OK, honestly, am I working under a valid assumption that it *is*
possible to print from FreeBSD? Or is this just going to engender
greater frustration?

  cups-base-1.3.9_3   Common UNIX Printing System
  cups-pdf-2.5.0  A virtual printer for CUPS to produce PDF files
  cups-pstoraster-8.15.4_2 Postscript interpreter for CUPS printing to non-PS 
  printers
  gutenprint-cups-5.1.7_3 GutenPrint Printer Driver
  libgnomecups-0.2.3_1,1 Support library for gnome cups admistration
  hplip-2.8.2_4   Drivers and utilities for HP Printers and All-in-One 
  device
 
 Looks good so far.

Thanks.

  The printer I'm working with is a HP Officejet 4110.
 
  1. how can I get permissions on the device to stick, so that I do not
 have to reboot the machine every time we want to print or have to
 power cycle the printer?
 
 Wrong file  - add the changes to /etc/devfs.rules
 
 /etc/devfs.conf is for fixed devices - devfs.rules for plug-in stuff.

OK. I created and edited this file. At least now on attaching the
printer, the permissions are other than root:operator.

  2. Am I correct that the missing .dll (that seems awfully Windows to
 me) is the problem in getting a filter to print? If so, what do I
 need to do to install it?
 
 I don't know - try it with the permissions set as above.

That doesn't change the behavior. It still fails to print, and seems
to error on a missing dll.

  And, actually, a third printing-related issue: How do I get cupsd to
  start on startup? I have these two lines in /etc/rc.conf:\
 
  cupsd_enable=YES # enable cups printing management
 
 That should be enough to get it running.

it doesn't. :(

  devfs_system_ruleset=system # something else they say cups needs
 
 in which  case the first line in /etc/devfs.rules should be
 
 [system=10] 
 
 that line starts a new ruleset with the name system and the number 10

got that. However, it doesn't seem to have changed the behavior of the
system - well, other than the printer ownership s different when it is
plugged in.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Can you ACTUALLY print from FreeBSD?

2009-04-20 Thread Keith Seyffarth
  Follow the instructions here:
 
  http://desktopbsd.net/wiki/doku.php?id=doc:printing
  
 
  I'm currently four days of troubleshooting after having done all
  that's listed on that wiki entry (though I didn't find that page until
  yesterday), and still trying to get close. That would be one of the
  pages I obliquely referred to as assuming that printing was
  possible...
 

 
 When I read that the first time, I didn't have much idea of CUPS and
 devfs rules. I could still make it work.

yeah, the instructions there work great up to:

  I then selected the Printer tab, clicked the Print test page,
  and successfully printed a test page.

I can go to the Printer tab and click Print test page, but what
happens next is not even evidence of communication with the printer,
just a failed message.

  cupsd_enable=YES should do the trick in rc.conf - nothing else
  needed to start cups as a service.
  
 
  I'd have to disagree with this statement, based on experience. That
  line has been in rc.conf since Januray, and cupsd *never* starts on
  boot. I'd guess that there has to be something else done somewhere to
  get it to actually start.

 
 There must be some problem in your system - there is nothing else in my
 rc.conf  about cups, and it does start at boot on my system.

Yeah, I'm guessing that there is something missing somewhere, or
something that CUPS doesn't install by default, or something that is
supposed to be set in some other file, or something, I just haven't
got a clue where to look or what to look for.

Having to start cups manually isn't really all that bad, but it would
ne nice not to have to. However, that's all pretty moot if there isn't
a way to get ink to paper from a FreeBSD machine...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


RE: Can you ACTUALLY print from FreeBSD?

2009-04-20 Thread Ramiro Caso

 cups-base-1.3.9_3   Common UNIX Printing System
 cups-pdf-2.5.0  A virtual printer for CUPS to produce PDF files
 cups-pstoraster-8.15.4_2 Postscript interpreter for CUPS printing to non-PS 
 printers
 gutenprint-cups-5.1.7_3 GutenPrint Printer Driver
 libgnomecups-0.2.3_1,1 Support library for gnome cups admistration
 hplip-2.8.2_4   Drivers and utilities for HP Printers and All-in-One 
 device

Just a question: do you have foomatic filters installed? OpenPrinting suggests 
them, and I don't see them above.
 
 Keith
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org

_
¿Querés saber cómo va a estar el clima mañana? Ingresá ahora a MSN
http://tiempo.ar.msn.com/ ___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Can you ACTUALLY print from FreeBSD?

2009-04-20 Thread Keith Seyffarth

  cups-base-1.3.9_3   Common UNIX Printing System
  cups-pdf-2.5.0  A virtual printer for CUPS to produce PDF files
  cups-pstoraster-8.15.4_2 Postscript interpreter for CUPS printing to non-=
 PS printers
  gutenprint-cups-5.1.7_3 GutenPrint Printer Driver
  libgnomecups-0.2.3_1=2C1 Support library for gnome cups admistration
  hplip-2.8.2_4   Drivers and utilities for HP Printers and All-in-One =
 device
 
 Just a question: do you have foomatic filters installed? OpenPrinting sugge=
 sts them=2C and I don't see them above.

yes:
foomatic-filters-3.0.2_4 Foomatic wrapper scripts

sorry I didn't list them previously.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Can you ACTUALLY print from FreeBSD?

2009-04-20 Thread Jon Radel

Keith Seyffarth wrote:

I'm trying to print from my FreeBSD machine. I've been through a
number of online tutorials and instructions on printing from Unix or
FreeBSD in particular, but they all seem to start with the assumption
that printing from the machine is possible. I'm trying to get to that
starting point.


A laudable ambition!


OK, honestly, am I working under a valid assumption that it *is*
possible to print from FreeBSD? Or is this just going to engender
greater frustration?


Unfortunately the frustration level tends to be inversely proportional 
to the brain power of the printer.  Things are relatively easy if you 
have a printer which directly accepts PostScript.  Unfortunately, this 
is not the case with an HP OfficeJet 4110, hence all the extra bits and 
fiddling.


But you can actually print from FreeBSD.  I've seen it with my very own 
eyes.  :-)


--

--Jon Radel
j...@radel.com


smime.p7s
Description: S/MIME Cryptographic Signature


Re: Can you ACTUALLY print from FreeBSD?

2009-04-20 Thread Andrew Gould
On Mon, Apr 20, 2009 at 12:53 PM, Keith Seyffarth w...@weif.net wrote:


   cups-base-1.3.9_3   Common UNIX Printing System
   cups-pdf-2.5.0  A virtual printer for CUPS to produce PDF files
   cups-pstoraster-8.15.4_2 Postscript interpreter for CUPS printing to
 non-=
  PS printers
   gutenprint-cups-5.1.7_3 GutenPrint Printer Driver
   libgnomecups-0.2.3_1=2C1 Support library for gnome cups admistration
   hplip-2.8.2_4   Drivers and utilities for HP Printers and
 All-in-One =
  device
 
  Just a question: do you have foomatic filters installed? OpenPrinting
 sugge=
  sts them=2C and I don't see them above.

 yes:
 foomatic-filters-3.0.2_4 Foomatic wrapper scripts

 sorry I didn't list them previously.
 ___
  freebsd-questions@freebsd.org


See the instructions here:  http://am-productions.biz/docs/hplip.php

One of the items is mentions is that hplip requires that ulpt be disabled so
that the printer appears as a 'ugen' device.  I think this requires
recompiling the kernel.

Also, remember that lpd has lp* files (in /usr/bin/ ?) that may conflict
with CUPS files of the same name in /usr/local/bin/.  Did you rename/move
the lpd versions?

I struggled with cups and hplip for weeks.  PCBSD seems to have these things
working well; but for my FreeBSD server, I've switched from an HP printer to
a used postscript Okidata.

Best of luck,

Andrew
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Can you ACTUALLY print from FreeBSD?

2009-04-20 Thread Andrew Gould
On Mon, Apr 20, 2009 at 1:11 PM, Andrew Gould andrewlylego...@gmail.comwrote:

 On Mon, Apr 20, 2009 at 12:53 PM, Keith Seyffarth w...@weif.net wrote:


   cups-base-1.3.9_3   Common UNIX Printing System
   cups-pdf-2.5.0  A virtual printer for CUPS to produce PDF files
   cups-pstoraster-8.15.4_2 Postscript interpreter for CUPS printing to
 non-=
  PS printers
   gutenprint-cups-5.1.7_3 GutenPrint Printer Driver
   libgnomecups-0.2.3_1=2C1 Support library for gnome cups admistration
   hplip-2.8.2_4   Drivers and utilities for HP Printers and
 All-in-One =
  device
 
  Just a question: do you have foomatic filters installed? OpenPrinting
 sugge=
  sts them=2C and I don't see them above.

 yes:
 foomatic-filters-3.0.2_4 Foomatic wrapper scripts

 sorry I didn't list them previously.
 ___
  freebsd-questions@freebsd.org


 See the instructions here:  http://am-productions.biz/docs/hplip.php

 One of the items is mentions is that hplip requires that ulpt be disabled
 so that the printer appears as a 'ugen' device.  I think this requires
 recompiling the kernel.

 Also, remember that lpd has lp* files (in /usr/bin/ ?) that may conflict
 with CUPS files of the same name in /usr/local/bin/.  Did you rename/move
 the lpd versions?

 I struggled with cups and hplip for weeks.  PCBSD seems to have these
 things working well; but for my FreeBSD server, I've switched from an HP
 printer to a used postscript Okidata.

 Best of luck,

 Andrew


I should have added that the Okidata is printing via apsfilter.

Andrew
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Can you ACTUALLY print from FreeBSD?

2009-04-20 Thread Paul Schmehl
--On Monday, April 20, 2009 12:36:03 -0500 Keith Seyffarth w...@weif.net 
wrote:


A laudable ambition!


OK, honestly, am I working under a valid assumption that it *is*
possible to print from FreeBSD? Or is this just going to engender
greater frustration?



I can print from my FreeBSD box using CUPS.  Whether you can from yours I can't 
say.



 cups-base-1.3.9_3   Common UNIX Printing System
 cups-pdf-2.5.0  A virtual printer for CUPS to produce PDF files
 cups-pstoraster-8.15.4_2 Postscript interpreter for CUPS printing to
 non-PS printers gutenprint-cups-5.1.7_3 GutenPrint Printer Driver
 libgnomecups-0.2.3_1,1 Support library for gnome cups admistration
 hplip-2.8.2_4   Drivers and utilities for HP Printers and All-in-One
 device



This is what I have:

pa...@utd65257# pkg_info -a | grep cups | sort -u
Information for cups-base-1.3.9_3:
Information for cups-pstoraster-8.15.4_2:
WWW: http://www.cups.org/
WWW: http://www.cups.org/ghostscript.html
cups-base-1.3.9_3
cups-pstoraster-8.15.4_2
that use these filters. This software is available in the cups-pstoraster


OK. I created and edited this file. At least now on attaching the
printer, the permissions are other than root:operator.



I never had to do this to get printing working, and my devfs.conf file is a 
sample file with no lines uncommented.  Printing works fine.  (Note that I am 
not printing to a local printer.)


That doesn't change the behavior. It still fails to print, and seems
to error on a missing dll.



This makes no sense at all.  DLLs are a Windows version of a library.  FreeBSD 
doesn't use them.  Are you by any chance trying to print through Wine?




 And, actually, a third printing-related issue: How do I get cupsd to
 start on startup? I have these two lines in /etc/rc.conf:\

 cupsd_enable=YES # enable cups printing management

That should be enough to get it running.


it doesn't. :(



Do you have the startup script:
/usr/local/etc/rc.d/cupsd ?

If so, what is the output of /usr/local/etc/rc.d/cupsd status?

You should have the following files and folders:

/usr/local/etc/cups/
classes.confinterfaces/ mime.types.Npstoraster.convs
cupsd.conf  mime.convs  ppd/snmp.conf
cupsd.conf.Nmime.convs.Nprinters.conf   snmp.conf.N
cupsd.conf.default  mime.types  printers.conf.O ssl/

What's the output of this command?
# grep -v # /usr/local/etc/cups/cupsd.conf

What's the output of this command?
# cat /usr/local/etc/cups/printer.conf

Have you read the CUPS documentation?
http://www.cups.org/documentation.php/overview.html

--
Paul Schmehl, Senior Infosec Analyst
As if it wasn't already obvious, my opinions
are my own and not those of my employer.
***
Check the headers before clicking on Reply.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Can you ACTUALLY print from FreeBSD?

2009-04-20 Thread Keith Seyffarth

snip

 This makes no sense at all.  DLLs are a Windows version of a library.  
 FreeBSD 

That's what I thought.  Here's the line in question:
D [20/Apr/2009:13:07:46 -0600] [CGI] 
/usr/local/share/cups/drivers/pscript5.dll: No such file or directory

 doesn't use them.  Are you by any chance trying to print through Wine?

Nope. Don't have Wine installed.

snip

 Do you have the startup script:
 /usr/local/etc/rc.d/cupsd ?

yes

 If so, what is the output of /usr/local/etc/rc.d/cupsd status?

currently it's:
cupsd is running as pid 721.

but I did start cups manually since my last reboot.

 You should have the following files and folders:
 
 /usr/local/etc/cups/
 classes.confinterfaces/ mime.types.Npstoraster.convs
 cupsd.conf  mime.convs  ppd/snmp.conf
 cupsd.conf.Nmime.convs.Nprinters.conf   snmp.conf.N
 cupsd.conf.default  mime.types  printers.conf.O ssl/

$ ls /usr/local/etc/cups/
classes.confcupsd.conf.default  printers.conf
classes.conf.O  interfaces  printers.conf.O
command.types   mime.convs  pstoraster.convs
cups-pdf.conf   mime.convs.Nsnmp.conf
cups-pdf.conf.samplemime.types  snmp.conf.N
cupsd.conf  mime.types.Nssl
cupsd.conf.Oppd


 What's the output of this command?
 # grep -v # /usr/local/etc/cups/cupsd.conf

LogLevel debug
SystemGroup wheel
Listen localhost:631
Listen /var/run/cups.sock
Browsing On
BrowseOrder allow,deny
BrowseAllow all
DefaultAuthType Basic
Location /
  Order allow,deny
/Location
Location /admin
  Encryption Required
  Order allow,deny
/Location
Location /admin/conf
  AuthType Default
  Require user @SYSTEM
  Order allow,deny
/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 CUPS-Add-Modify-Printer CUPS-Delete-Printer
  CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default
AuthType Default
Require user @SYSTEM
Order deny,allow
  /Limit
  Limit Pause-Printer Resume-Printer 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-Accept-Jobs
  CUPS-Reject-Jobs
AuthType Default
Require user @SYSTEM
Order deny,allow
  /Limit
  Limit Cancel-Job CUPS-Authenticate-Job
Require user @OWNER @SYSTEM
Order deny,allow
  /Limit
  Limit All
Order deny,allow
  /Limit
/Policy

 What's the output of this command?
 # cat /usr/local/etc/cups/printer.conf

$ cat /usr/local/etc/cups/printers.conf
# Printer configuration file for CUPS v1.3.9
# Written by cupsd on 2009-04-20 12:51
DefaultPrinter HP
Info HP Officejet 4100
Location wherever
DeviceURI usb:/dev/ulpt0
State Idle
StateTime 1240253002
Accepting Yes
Shared Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy stop-printer
/Printer
Printer PDFWriter
Info Creates PDF files in /var/spool/cups-pdf/
Location Internal
DeviceURI cups-pdf:/
State Idle
StateTime 1231089826
Accepting Yes
Shared Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy stop-printer
/Printer

 Have you read the CUPS documentation?
 http://www.cups.org/documentation.php/overview.html

Most of that, plus the information in the FreeBSD handbook and FAQ,
and several sites instructions on setting up CUPS, and several pages
specifically on getting an OfficeJet 4110 working on Unix in general
or FreeBSD in particular, with or without CUPS, and a bunch of the
stuff in the online documentation in CUPS (from the Documentation/Help
tab; which seems to be the same as the documentation from CUPS.org).

It works well for creating .pdf files, but, from what I've seen so far
(with only one piece of hardware to try to work with), not very well
for getting a hardcopy directly.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Can you ACTUALLY print from FreeBSD?

2009-04-20 Thread Paul Schmehl
--On Monday, April 20, 2009 14:20:48 -0500 Keith Seyffarth w...@weif.net 
wrote:


snip


This makes no sense at all.  DLLs are a Windows version of a library.
FreeBSD


That's what I thought.  Here's the line in question:
D [20/Apr/2009:13:07:46 -0600] [CGI]
/usr/local/share/cups/drivers/pscript5.dll: No such file or directory



Googling that shows it to be a file shared with Windows boxes when you're 
running samba.  I don't know if you set up samba or not, but I would ignore 
this error for now.  It's likely unrelated to the printing problem that you're 
having.





Do you have the startup script:
/usr/local/etc/rc.d/cupsd ?


yes


If so, what is the output of /usr/local/etc/rc.d/cupsd status?


currently it's:
cupsd is running as pid 721.

but I did start cups manually since my last reboot.



Cupsd was started automatically on reboot by the script.  So that part is 
working fine.




$ ls /usr/local/etc/cups/
classes.confcupsd.conf.default  printers.conf
classes.conf.O  interfaces  printers.conf.O
command.types   mime.convs  pstoraster.convs
cups-pdf.conf   mime.convs.Nsnmp.conf
cups-pdf.conf.samplemime.types  snmp.conf.N
cupsd.conf  mime.types.Nssl
cupsd.conf.Oppd



What's the output of this command?
# grep -v # /usr/local/etc/cups/cupsd.conf


LogLevel debug
SystemGroup wheel
Listen localhost:631
Listen /var/run/cups.sock
Browsing On
BrowseOrder allow,deny
BrowseAllow all
DefaultAuthType Basic
Location /
  Order allow,deny
/Location
Location /admin
  Encryption Required
  Order allow,deny
/Location
Location /admin/conf
  AuthType Default
  Require user @SYSTEM
  Order allow,deny
/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 CUPS-Add-Modify-Printer CUPS-Delete-Printer
  CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default
AuthType Default
Require user @SYSTEM
Order deny,allow
  /Limit
  Limit Pause-Printer Resume-Printer 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-Accept-Jobs
  CUPS-Reject-Jobs
AuthType Default
Require user @SYSTEM
Order deny,allow
  /Limit
  Limit Cancel-Job CUPS-Authenticate-Job
Require user @OWNER @SYSTEM
Order deny,allow
  /Limit
  Limit All
Order deny,allow
  /Limit
/Policy



All of that looks perfectly normal.


What's the output of this command?
# cat /usr/local/etc/cups/printer.conf


$ cat /usr/local/etc/cups/printers.conf
# Printer configuration file for CUPS v1.3.9
# Written by cupsd on 2009-04-20 12:51
DefaultPrinter HP
Info HP Officejet 4100
Location wherever
DeviceURI usb:/dev/ulpt0
State Idle
StateTime 1240253002
Accepting Yes
Shared Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy stop-printer
/Printer
Printer PDFWriter
Info Creates PDF files in /var/spool/cups-pdf/
Location Internal
DeviceURI cups-pdf:/
State Idle
StateTime 1231089826
Accepting Yes
Shared Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy stop-printer
/Printer


Have you read the CUPS documentation?
http://www.cups.org/documentation.php/overview.html


Most of that, plus the information in the FreeBSD handbook and FAQ,
and several sites instructions on setting up CUPS, and several pages
specifically on getting an OfficeJet 4110 working on Unix in general
or FreeBSD in particular, with or without CUPS, and a bunch of the
stuff in the online documentation in CUPS (from the Documentation/Help
tab; which seems to be the same as the documentation from CUPS.org).

It works well for creating .pdf files, but, from what I've seen so far
(with only one piece of hardware to try to work with), not very well
for getting a hardcopy directly.


It appears the problem is the printer.  Try changing the perms to 0777 for 
testing purposes.  If you're able to print, the problem is permissions.  You'll 
have to figure out what permissions you need to get it working.


One person mentioned that you should be using the ugen device instead of 
/dev/ultp0.  This thread might be relevant - 
http://foo2zjs.rkkda.com/forum/read.php?9,546,547


You might have to abandon using cupsd for this printer.

If so, this might be helpful:
http://www.onlamp.com/pub/a/bsd/2004/07/08/FreeBSD_Basics.html?page=last

--
Paul Schmehl, Senior Infosec Analyst
As if it wasn't already obvious, my opinions
are my own and not those of my employer.
***
Check the headers before 

Re: Can you ACTUALLY print from FreeBSD?

2009-04-20 Thread Modulok
On 4/20/09, Keith Seyffarth w...@weif.net wrote:

 I'm trying to print from my FreeBSD machine. I've been through a
 number of online tutorials and instructions on printing from Unix or
 FreeBSD in particular, but they all seem to start with the assumption
 that printing from the machine is possible. I'm trying to get to that
 starting point.

What version of FreeBSD are you using? There was a problem with certain
USB devices in the 6.x branch with timing out.

-Modulok-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Can you ACTUALLY print from FreeBSD?

2009-04-20 Thread Keith Seyffarth

 Googling that shows it to be a file shared with Windows boxes when you're 
 running samba.  I don't know if you set up samba or not, but I would ignore 
 this error for now.  It's likely unrelated to the printing problem that 
 you're 
 having.

OK. Thanks. I guess. I was kind of hoping that figuring that out might
be the fix...

  Do you have the startup script:
  /usr/local/etc/rc.d/cupsd ?
 
  yes
 
  If so, what is the output of /usr/local/etc/rc.d/cupsd status?
 
  currently it's:
  cupsd is running as pid 721.
 
  but I did start cups manually since my last reboot.
 
 
 Cupsd was started automatically on reboot by the script.  So that part is 
 working fine.

after rebooting the machine, it's:
cupsd is not running.

config info snipped

 It appears the problem is the printer.  Try changing the perms to 0777 for 
 testing purposes.  If you're able to print, the problem is permissions.  
 You'll 
 have to figure out what permissions you need to get it working.

That doesn't help. I get the same behavior with the permissions set to
0777.

 One person mentioned that you should be using the ugen device instead of 
 /dev/ultp0.  This thread might be relevant - 
 http://foo2zjs.rkkda.com/forum/read.php?9,546,547
 
 You might have to abandon using cupsd for this printer.

Yeah. We may not be using this printer long anyway, since it is nearly
out of ink, and the ink will be $95. It would just be nice to be able
to demonstrate that printing is an option.

Also, from what I've been seeing in my testing and so on since
Thursday, it looks like if you use CUPS at all, you can't use anything
else, since CUPS overwrites things like /etc/printcap with its own
settings frequently. And since I've been successfully using cups-pdf
for several months, I'd need a replacement for that. At least with
that, despite all the shortcomings of .pdf format, we can still get
stuff printed. Just not in our office.

 If so, this might be helpful:
 http://www.onlamp.com/pub/a/bsd/2004/07/08/FreeBSD_Basics.html?page=last

I had read through that several times. It is one of several places
pointing out that the device has to be at ultp*, and if it's at ugen*
you likely have a problem...

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Can you ACTUALLY print from FreeBSD?

2009-04-20 Thread Michael David Crawford

/usr/local/share/cups/drivers/pscript5.dll: No such file or directory



Googling that shows it to be a file shared with Windows boxes when 
you're running samba.  I don't know if you set up samba or not, but I 
would ignore this error for now.  It's likely unrelated to the printing 
problem that you're having.


Windows client computers can download printer drivers from their print 
servers.  I imagine the above DLL is meant to enable that.


Mike
--
Michael David Crawford
m...@prgmr.com

   prgmr.com - We Don't Assume You Are Stupid.

  Xen-Powered Virtual Private Servers: http://prgmr.com/xen
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Can you ACTUALLY print from FreeBSD?

2009-04-20 Thread Adam Vande More

Keith Seyffarth wrote:
Googling that shows it to be a file shared with Windows boxes when you're 
running samba.  I don't know if you set up samba or not, but I would ignore 
this error for now.  It's likely unrelated to the printing problem that you're 
having.



OK. Thanks. I guess. I was kind of hoping that figuring that out might
be the fix...

  

Do you have the startup script:
/usr/local/etc/rc.d/cupsd ?


yes

  

If so, what is the output of /usr/local/etc/rc.d/cupsd status?


currently it's:
cupsd is running as pid 721.

but I did start cups manually since my last reboot.

  
Cupsd was started automatically on reboot by the script.  So that part is 
working fine.



after rebooting the machine, it's:
cupsd is not running.

config info snipped

  
This seems to me to be area to focus on.  Have you tried starting if 
from cli and seeing if any errors show.  Also check logs etc recompile 
cups w/ debugging info if applicable.  I suspect it's not so you may 
have to increase the verbosity in a config file somewhere.  It's been 
awhile since I printed from FreeBSD, but my last experience was positive 
and not nearly as much issue as you're having.  Anyways I suspect 
following cupsd not starting to it's end will result in either solving 
the issue or at least getting to a point where it's easy to resolve.  
You can also try to trace back /usr/local/etc/rc.d/cupsd to see where 
it's failing.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org