*BSDThis forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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
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.
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.
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
======================================================================
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?
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.