LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   *BSD (https://www.linuxquestions.org/questions/%2Absd-17/)
-   -   Need FreeBSD UBS/Parallel help (https://www.linuxquestions.org/questions/%2Absd-17/need-freebsd-ubs-parallel-help-584438/)

ezor 09-13-2007 11:37 AM

Need FreeBSD UBS/Parallel help
 
In FreeBSD v6.2, I've been trying to set up a Samsung ML2510 printer with no luck. Using the parallel port, I have gotten the printer to whirr, but no output. Using the USB connection, not a sound, nothing.

I began to think it's a FreeBSD problem, and in the CUPS log I found:

[Job 12] Unable to open USB device "usb:/dev/unlpt0": permission denied
(*there is another line like this referring to ulpt0*)
[Job 12] Backend returned status 1 (failed)
CUPS - Set - Default: unauthorized

When booting, the OS recognizes the printer by correct model number. When connected to the USB port, BASH knows when the printer is turned on or off and reports accordingly. However, when connected to parallel port, BASH doesn't respond to switching on or off.

Any help is greatly appreciated.

anomie 09-14-2007 09:38 PM

ezor,

You need to read /usr/ports/print/cups-base/pkg-message.

This message displays upon port installation, but you may have missed it then.

Dan Angelescu 09-17-2007 03:54 PM

Hi

To work printer you must have read/write permisions to /dev/ulpt0 or /dev/lpt0.
To do that for every user add in /etc/devfs.conf the following :
perm lpt0 0666
perm ulpt0 0666

Good luck

ezor 09-18-2007 06:03 PM

Thanks for the replies. I've been away for a few days and will get back to the problem tomorrow. I have a clean working BSD (no cups etc) on my slave drive and after moving it to the master, I'll start with a fresh CUPS install.

ezor 09-23-2007 07:29 PM

After a delay of a few days, I was finally able to get back to the problem.

anomie - Thanks, but no errors or problems with CUPS.

Dan Angelescu - This time, while installing ghostscript-gnu, I noticed that it seems to contain the samsung gdi.ppd. In past attempts, I have manually put ppd files, that I had downloaded, in /usr/local/share/cups/model. Anyway, I thought I'd take a chance and not do it this time. Initially, localhost:631 installed the printer but no output as before. After doing the perm 0666 for lpt0 and ulpt0, I can print a test page and print a web page. Being new to FreeBSD, I assumed that since the printer was recognized on the USB port, that nothing more had to be done. I had all but given up hope of getting this printer to work with FreeBSD. Thank you very much for solving the problem.

anomie 09-23-2007 08:32 PM

Apparently my advice wasn't clear enough. If you had read the file I pointed you to, you would have seen:
Code:

======================================================================
PLEASE NOTE:
============

To enable printing with local printer you need to give group cups
r/w access to printer device:

1) Add following to /etc/devfs.rules (create if it doesn't exist):

[system=10]
add path 'unlpt*' mode 0660 group cups
add path 'ulpt*' mode 0660 group cups
add path 'lpt*' mode 0660 group cups

2) And following to /etc/rc.conf:

devfs_system_ruleset="system"

3) Restart devfs: /etc/rc.d/devfs restart

To enable printing under Gimp and MS-Windows clients do the following:

1) Uncomment application/octet-stream line in mime.types
2) Uncomment application/octet-stream line in mime.convs
3) Restart cupsd
======================================================================

Glad the problem has been resolved anyway.

ezor 09-23-2007 10:31 PM

The file /etc/devfs.rules didn't exist, so I created it and added as per item #1. Then did items #2 and #3.

About printing with Gimp and to Windows clients - Sorry but I don't understand. However, I will never need to print to a windows client. Could you explain?

anomie 09-24-2007 08:49 AM

To be more exact, the files in the last part of the instructions live under /usr/local/etc/cups.

i.e.
  • /usr/local/etc/cups/mime.types
  • /usr/local/etc/cups/mime.convs

I believe the message is actually referring to printing from gimp or from a Windows client. If this doesn't apply to you, then you can skip that section.

ezor 09-24-2007 09:36 AM

anomie,

Okay, I see it now. Thanks very much for your help.


All times are GMT -5. The time now is 03:04 PM.