Hi Claus: USB printers are kind of difficult to set up on OpenBSD. You can read the instructions on USB setup in /usr/local/share/doc/pkg-readmes/cups. I never get USB printing to work on my OpenBSD 6.6. Instead I used a wireless Xerox Laser printer. Here is how I did it for a Xerox 6022 laser printer. I paid $150.00 USD for my Xerox 6022 Phasor
To get this laser printer running over WiFi do: 0) Connect the Xerox Phaser 6022 to your wireless access point. I did this using a spare windows computer. I suppose you can do this through the little setup screen, on top of the laser printer. 1) Install the CUPS package. 2) Add the following line to your /etc/rc.conf.local file: pkg_scripts=cupsd. Reboot the computer to make sure CUPS is running. See man (8) rc.conf.local 3) From the CD that came with my Phaser 6022, I removed the file xerox-phaser-6022_1.0-22_all.deb. 4) This is an archive file. It contains your *.ppd. Do $ ar x xerox-phaser-6022_1.0-22_all.deb (See man (1) ar) 5) After extraction you will see data.tar.gz. That tarball contains the Xerox_Phaser_6022.ppd. Get the *.ppd with $ tar zxvf data.tar.gz 6) Move Xerox_Phaser_6022.ppd to /root. 7) Start a web browser and point it to "http://localhost:631". 8) Select add a printer and login. I had to use my user account to login. Logging in as root would not work. You CUPS will probe your wireless network and you should see an address like 192.168.1.X, where X can be any number. It will also identify the printer as Xerox Phaser 6022. 9) Since there is no entry for Xerox, load the Xerox_Phaser_6022.ppd. 10) Complete the CUPS setup and you are ready to print You have to use the absolute path name /usr/local/bin/lpr, /usr/local/bin/lprm, /usr/local/bin/lpq and /usr/local/bin/lp to print with CUPS. LibreOffice prints with out modification. You can print photos and graphics (*jpeg, *.png , etc) with Firefox xpdf reguires the following line in the .xpdfrc: -------------------------------------------------------------------- # Set the default PostScript file or command. psFile "|/usr/local/bin/lpr" # Set the default PostScript paper size -- this can be letter, legal, # A4, or A3. You can also specify a paper size as width and height # (in points). Sent: Wednesday, February 05, 2020 at 12:56 PM From: "Claus Assmann" <ca+openbsd_m...@esmtp.org> To: misc@openbsd.org Subject: suggestions for USB printer (maybe even with scanner)? I need to buy a printer to connect to one of my OpenBSD machines and I prefer a USB connection (as I don't control the network at my current place). Can I just buy any USB printer or are there printers which do not work with OpenBSD? If so, what do I need to check / avoid? Any suggestion for something "cheap" (to print just a few documents as needed)? I never had to buy a printer before, so I'm not familiar with this area -- if possible I would like to get a printer/scanner but I have no idea what I can buy locally :-( A HP laserjet (which was a gift but broke today) worked only with one of my OpenBSD machines which seemingly was related to the USB HW, using a printcap entry like this: usb:lp=/dev/ulpt0:sd=/var/spool/output/usb:sf:sh:tr=^D: -- Address is valid for this mailing list only, please do not reply to it direcly, but to the list.