LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices


Reply
  Search this Thread
Old 09-13-2007, 11:37 AM   #1
ezor
Member
 
Registered: Mar 2006
Location: Toytown, NY
Distribution: Suse10.2 FreeBSD6.2
Posts: 83

Rep: Reputation: 15
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.
 
Old 09-14-2007, 09:38 PM   #2
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
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.
 
Old 09-17-2007, 03:54 PM   #3
Dan Angelescu
RoFreeSBIE
 
Registered: Oct 2001
Posts: 81

Rep: Reputation: 15
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
 
Old 09-18-2007, 06:03 PM   #4
ezor
Member
 
Registered: Mar 2006
Location: Toytown, NY
Distribution: Suse10.2 FreeBSD6.2
Posts: 83

Original Poster
Rep: Reputation: 15
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.
 
Old 09-23-2007, 07:29 PM   #5
ezor
Member
 
Registered: Mar 2006
Location: Toytown, NY
Distribution: Suse10.2 FreeBSD6.2
Posts: 83

Original Poster
Rep: Reputation: 15
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.
 
Old 09-23-2007, 08:32 PM   #6
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
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.
 
Old 09-23-2007, 10:31 PM   #7
ezor
Member
 
Registered: Mar 2006
Location: Toytown, NY
Distribution: Suse10.2 FreeBSD6.2
Posts: 83

Original Poster
Rep: Reputation: 15
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?
 
Old 09-24-2007, 08:49 AM   #8
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
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.
 
Old 09-24-2007, 09:36 AM   #9
ezor
Member
 
Registered: Mar 2006
Location: Toytown, NY
Distribution: Suse10.2 FreeBSD6.2
Posts: 83

Original Poster
Rep: Reputation: 15
anomie,

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


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
updating FreeBSD 6.0 to FreeBSD 6.2 without Console (single user access) kur1j *BSD 2 08-17-2007 07:12 AM
booting zipslack from an UBS drive schop Linux - General 2 10-13-2006 10:09 AM
Mount ubs pen spots Linux - Hardware 1 07-12-2005 09:36 PM
ubs istead of cdrom iso alexrait1 DamnSmallLinux 3 07-28-2004 02:00 AM
Ubs JMK Linux - Newbie 1 12-22-2003 07:04 AM

LinuxQuestions.org > Forums > Other *NIX Forums > *BSD

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration