|
OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below. |
|
Thread Tools | Display Modes |
|
||||
Quote:
Quote:
Quote:
# pkg_add -u . You can run the command again, or find out what still requires the old library with $ pkg_info .libs-poppler-0.24.5 if necessary.* Firmware (software loaded by the OS into peripheral devices such as NICs) are not considered blobs, because they don't run in the OS, only in the device. Binary programs written for other OSes may sometimes run under limited emulation. Most are long gone, but compat_linux(8) remains available, i386-only. Last edited by jggimi; 16th November 2014 at 01:31 AM. Reason: typo, clarity |
|
||||
Based upon your post my conclusion is that you are totally confused.
1. Are you trying to set up local printer or remote printer accessible via printer server? You are mixing lp and rm in that printcap file? lp stands for local printer, rp stands for remote printer. 2. Which spooling system you are using, LPD, CUPS, something else or you don't want to use spooling system? If you are using printcap file and starting lpd daemon in /etc/rc.conf.local that means that you want to use LPD. 3. Now we came to issue of driver. Printers fall into four categories. a. Able to speak PostScript (Page description language) because they have built in PS interpreter and ASCII code. b. Speak some kind low level language like Printer Command Language PCL which puts more stress on OS. c. Speak some kind of proprietary low level language and needs firmware. d. Expect OS to do all the work. Your falls into category c. 4. Finally you have to understand the concept of Input Filter. When you sent something to printer it is not necessary PostScript which is the only allowed thing. It could be .txt file or .jpeg file. Input filter needs to detect that and call appropriate program (typically a2ps, ImageMagic or similar) which will convert that to PostScript. Now putting it all together. You decide to have local USB attached printer. When you plug it dmesg shows something like Code:
ugen1 at uhub0 port 4 configuration 1 "HP Photosmart C5200 series" rev 2.00/1.00 addr 3 You set up a /etc/printcap which will establish LPD queue. Code:
lp|HP|HP-PhotoSmart_C5200:\ :lp=/dev/ulpt0:\ :if=/etc/foomatic-rip/script.sh:\ :sh:sd=/var/spool/output:\ :lf=/var/log/lpd-errs: In the past the most common Input Filter was foomatic-rip (which is just a Perl script) but they dropped support for LPD thus I have to fake it with the script. Code:
#!/bin/sh /usr/local/bin/a2ps -BRq --columns=1 -o - | \ /usr/local/bin/foomatic-rip -P HP-PhotoSmart_C5200 --ppd /etc/foomatic-rip/direct/hp-photosmart_c5200_series-hpijs.ppd So let us understand what above script (which is called by my Input Filter line from printcap is doing) It calls a2ps which magically convert any file to post script. Then pipes it to foomatic-rip which parses PPD (PostScript Printer Description) which give instruction which driver from HPIJS set needs to be used to convert the stream to Printer Command Language. That is it. Now if above seems complicated there is an easy way out. Get a use printer for $50 in U.S. which speaks PostScript. Use a2ps to send files to printer and use use default printcap file which comes with OpenBSD. It seems that you opted for hardest option and decided to use printer which needs to be injected with firmware before it can even understand low level proprietary language. For that you will need to do little bit more reading. |
|
||||
In my case, I am using CUPS with my HP printer -- one that "speaks" Postscript natively -- due to limitations with input feed tray selection by printcap with lpd. Oko and I discussed it on the misc@ mailing list here.
Last edited by jggimi; 16th November 2014 at 01:52 AM. Reason: typo |
|
|||
You may be going where no OpenBSD user has gone before.
The OpenPrinting Data Base for your model recommends the second party driver http://foo2xqx.rkkda.com/. This same party supplies a driver for the ZjS streaming protocol for which there is an OpenBSD port: print/foo2zjs. Unfortunately, there does not seem to be an OpenBSD, FreeBSD or NetBSD port for foo2qx. You may want to contact the print/foo2zjs maintainer, Antoine Jacoutot. Antoine Jacoutot is a prolific and skilled porter. Given that the source code comes from the same site, Antoine may have already attempted the port. Last edited by shep; 16th November 2014 at 03:23 AM. Reason: edit: grammer and spelling |
|
|||||
Thanks for the input.
@shep Quote:
@jggimi Quote:
Quote:
Quote:
@Oko Quote:
I want to set up a printer for home use connected to a laptop via USB cable. I could not find any references in the documentation I have been reading explicitly concerning such a set-up. Everything refers to setting up a print server. Since OpenBSD documentation, at least most of what I read, tends to refer to the system as a server, I was hoping a simple set-up followed the same procedure. Hence my (great?) confusion. (Nicely detailed post by the way. Thanks.) When I have time to fiddle more and perhaps buy another printer, I shall update the thread with the results. |
|
||||
Quote:
Quote:
Last edited by jggimi; 16th November 2014 at 11:43 AM. Reason: I never submit without at least one typo. |
|
|||
You may be in luck. The plist for print/foo2zjs indicates that the driver supports your printer
Quote:
Quote:
A recent howto LPD Printing, from Oko also suggests that that you may be able to set this up using lpd(8). lpd(8), as compared to print/cups is simple, elegant and provides some insight into spools and print filters Last edited by shep; 16th November 2014 at 08:17 PM. |
|
||||
A couple of things have been sorted out.
The typo: When I made my notes, I only made one typo. Of course, it was in a shell command. So the /etc/rc.d/lpd issue was easily taken care of. Un-updated packages: That issue is also fixed. I believe I know what happened. I use a Japanese mirror, but for some reason the system wants to use inode Australia. I usually need to run export PKG_PATH= every time I want to install something, and occasionally it still tries Australia before using the Japanese mirror. My guess is, when I installed hpcups and tried to install CUPS, the 5.5 Australian mirror was used instead of the 5.6 Japanese mirror. At any rate, that issue has been rectified. /var/log/ldp-errs now has messages. Code:
Nov 17 13:43:20 randicus lpd[21298]: restarted Nov 18 09:36:54 randicus lpd[10350]: restarted Nov 18 21:03:50 randicus lpd[27445]: restarted Nov 19 11:53:07 randicus lpd[5305]: restarted Nov 20 11:33:59 randicus lpd[4515]: restarted Nov 21 11:39:09 randicus lpd[632]: restarted |
|
|||
Re: Cheap printers
Instead of getting a cheap consumer type of printer, you could look into a refurbished professional printer. Usually those have Postscript.
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump |
|
||||
Quote:
A decent work group printer in U.S. can be found for $75-$100 typically with less than 30-40 thousand pages. Get a toner for $40-$50 and you are good for 12K pages. I call that cheap. |
|
||||
Quote:
|
|
||||
Quote:
|
|
||||
Quote:
You may still be able to use this printer. But if it requires the firmware/"binary plug-in" to be installed by hplip, you'll need CUPS rather than lpd. Quote:
|
|
||||
Ah, yes. /etc/pkg.conf is still using an Australian mirror. I thought running
Code:
export PKG_PATH=mirror Quote:
|
|
||||
Ironic that you say that about HP--earlier today, in a printer thread on a Tokyo based Linux list, we were discussing how HP and Brother both make it fairly easy to use their equipment with Linux (and generally with the BSDs as well.)
I think that all of us who use a BSD--shucks, and those who use LInux as well, basically anyone who doesn't use WIndows or Mac for everything--would agree. Making it harder to use your product doesn't seem like good business. |
|
||||
A few years ago I called Brother customer service in Japan asking for clarification of tech spec of one of their group work printers just to find out a fellow BSD user on the another line However the real reason might be more pragmatical. Little bird told me some printer manufacturers (lets not name the names) are using NetBSD for built in printer controllers
|
|
||||
Now that my package installation problem has been solved, I installed CUPS and HPLIP. I cannot go further than that, because http://localhost:631/ is inaccessible. I thought it might be due to my location, so I tried it with a proxy service.
Quote:
But I may not need to worry about HP. I found a printer that is almost half as expensive as comparable printers. I figured there must be a catch. The machine is a Samsung ML-2161. The oldest model on Samsung's website is ML-5015! So apparently the catch is the printer is very old stock. That may be a good thing, since there should not be any problem with drivers, if Samsung has decent BSD support. Which brings up the next question. Would veteran BSD users consider Samsung and foomatic to have an amicable relationship? |
|
||||
During installation of cups, you were notified that /etc/rc.d/cupsd was installed. That's the startup script for cupsd, the daemon that runs cups, and provides a webserver at port 631 on "localhost", which is the domain name for IP address 127.0.0.1, the loopback address.
To start cupsd at boot, add the following to your /etc/rc.conf.local file: Code:
pkg_scripts=cupsd |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Unable to install FreeBSD-8.2-RELEASE | mapcorp | FreeBSD Installation and Upgrading | 1 | 20th June 2011 11:03 AM |
Unable to install php5-gd extension | schh | OpenBSD General | 6 | 16th June 2011 06:57 PM |
Unable to install on Alienware m17x | BlackSun | FreeBSD Installation and Upgrading | 3 | 10th November 2010 01:35 AM |
Unable to make install on Subversion port | Fuitad | FreeBSD Ports and Packages | 2 | 28th July 2008 04:49 PM |
unable to install Postfix from ports on OBSD 4.3 | Pollywog | OpenBSD Packages and Ports | 25 | 22nd July 2008 03:32 AM |