Re: print usb printer by [ Google Cloud Print for Chromium ]
hi . it is fun that i do the print command on OpenBSD's chrome at the company , then i get the printing at my home's printer which is registerd on ArchLinux's chromium . namely internet printing ! [Google Cloud Print for Chromium] is interesting ! --- http://openbsd-akita.blogspot.com/2018/06/use-openbsds-x-as-daily-use-inclluting.html
Re: print usb printer by [ Google Cloud Print for Chromium ]
On 2018-06-01, Tuyosi T wrote: > hi all . > i do not understand lpr . > > so my settings are > > # ls -l /usr/bin/lpr > lrwxr-xr-x 1 root wheel 18 Jun 1 05:52 /usr/bin/lpr -> > /home/snap/lpr.bat > > # cat /home/snap/lpr.bat > lp -dEP-901A > > then > seamonkey and leafpad print easily . > > --- > regards > Normally for printing via CUPS from Gtk+2 applications like seamonkey and leafpad, you would install gtk+2-cups (similar with gtk+3-cups for newer applications). This is mentioned in the pkg-readme for cups but is quite easy to miss.
Re: print usb printer by [ Google Cloud Print for Chromium ]
hi all . i do not understand lpr . so my settings are # ls -l /usr/bin/lpr lrwxr-xr-x 1 root wheel 18 Jun 1 05:52 /usr/bin/lpr -> /home/snap/lpr.bat # cat /home/snap/lpr.bat lp -dEP-901A then seamonkey and leafpad print easily . --- regards
Re: print usb printer by [ Google Cloud Print for Chromium ]
On 05/16/18 01:10, Erling Westenvik wrote: On Wed, May 16, 2018 at 12:45:12AM -0700, Jordan Geoghegan wrote: On 05/16/18 00:27, Tuyosi T wrote: hi i can not distinguish between lp and lpr . lpr(1) is a program used to print to an lpd server, wheras lp(4) is a driver that doesn't appear to have been ported from 4.4BSD yet. lp(1) gets installed as part of cups(1). Thanks for the clarification on lp. I'm a bit of a luddite when it comes to the software I run. If it ain't in base, I try to avoid having to run it. I got what I deserved: https://www.cups.org/doc/man-lp.html
Re: print usb printer by [ Google Cloud Print for Chromium ]
On Wed, May 16, 2018 at 12:45:12AM -0700, Jordan Geoghegan wrote: > On 05/16/18 00:27, Tuyosi T wrote: > > hi > > i can not distinguish between lp and lpr . > > > lpr(1) is a program used to print to an lpd server, wheras lp(4) is a driver > that doesn't appear to have been ported from 4.4BSD yet. lp(1) gets installed as part of cups(1). > https://man.openbsd.org/lpr.1 > https://man.openbsd.org/NetBSD-7.1/lp.4
Re: print usb printer by [ Google Cloud Print for Chromium ]
On 05/16/18 00:27, Tuyosi T wrote: hi i can not distinguish between lp and lpr . lpr(1) is a program used to print to an lpd server, wheras lp(4) is a driver that doesn't appear to have been ported from 4.4BSD yet. https://man.openbsd.org/lpr.1 https://man.openbsd.org/NetBSD-7.1/lp.4
Re: print usb printer by [ Google Cloud Print for Chromium ]
hi i can not distinguish between lp and lpr . anyway /etc/printcap 709a-wifi|709a-wifi:rm=bsd.my.domain:rp=709a-wifi: and the setting of print on leafpad is 'lp -d709a-wifi ' . it goes well . regards ps my /etc/cups/cupsd.conf is LogLevel warn PageLogFormat Listen localhost:631 Listen /var/run/cups/cups.sock Browsing On BrowseLocalProtocols dnssd DefaultAuthType Basic WebInterface Yes Order allow,deny Order allow,deny AuthType Default Require user @SYSTEM Order allow,deny AuthType Default Require user @SYSTEM Order allow,deny JobPrivateAccess default JobPrivateValues default SubscriptionPrivateAccess default SubscriptionPrivateValues default Order deny,allow Require user @OWNER @SYSTEM Order deny,allow AuthType Default Require user @SYSTEM Order deny,allow AuthType Default Require user @SYSTEM Order deny,allow Require user @OWNER @SYSTEM Order deny,allow Order deny,allow JobPrivateAccess default JobPrivateValues default SubscriptionPrivateAccess default SubscriptionPrivateValues default AuthType Default Order deny,allow AuthType Default Require user @OWNER @SYSTEM Order deny,allow AuthType Default Require user @SYSTEM Order deny,allow AuthType Default Require user @SYSTEM Order deny,allow AuthType Default Require user @OWNER @SYSTEM Order deny,allow Order deny,allow JobPrivateAccess default JobPrivateValues default SubscriptionPrivateAccess default SubscriptionPrivateValues default AuthType Negotiate Order deny,allow AuthType Negotiate Require user @OWNER @SYSTEM Order deny,allow AuthType Default Require user @SYSTEM Order deny,allow AuthType Default Require user @SYSTEM Order deny,allow AuthType Negotiate Require user @OWNER @SYSTEM Order deny,allow Order deny,allow
Re: print usb printer by [ Google Cloud Print for Chromium ]
On 05/15/18 18:19, IL Ka wrote: Hello Jordan, >> you can do some neat things and avoid having to remove the ulpt(4) driver from the kernel What can be the reason to remove it? Some people remove the ulpt driver to allow CUPS to interface easier with their printer. This solution has always irritated me, and I prefer using lpd to manage my printers. CUPS can still be used to print to an lpd based print server, the only difference is that CUPS isn't handling the spooling and network print jobs etc server-side. Obsd does not have FAQ about that, but freebsd has pretty good article: https://www.freebsd.org/doc/handbook/printing.html And almost everything covered by it is true for openbsd. This here is a good place to start: https://man.openbsd.org/lpd.8 No FAQ for printing, but the man pages are your friend. Many moons ago, I as complete rookie at Unix printing, managed to set up my friends restaurant using an OpenBSD lpd print server to drive all of his receipt and kitchen print jobs. I managed to pull this off using only the man pages. The OpenBSD man pages are a treasure trove of knowledge-- don't always depend on the FAQ's entirely! The FAQ serves to supplement the man pages, not replace them.
Re: print usb printer by [ Google Cloud Print for Chromium ]
Hello Jordan, >> you can do some neat things and avoid having to remove the ulpt(4) driver from the kernel What can be the reason to remove it? If I understand it correctly, this driver provides support for "USB printer class" ( http://www.usb.org/developers/docs/devclass_docs/usbprint11a021811.pdf ) It creates some kind of "channel" (like LPT port) which can be used to query printer status, obtain its ID etc. Application then sends plaintext or PCL or PostScript or whatever printer supports to this "channel". Sysadmin configures "printcap" by adding filters that convert data to PCL or postscript, and lpd creates "pool", while CUPS ties all layers providing IP Printing and other protocols to submit print jobs. Obsd does not have FAQ about that, but freebsd has pretty good article: https://www.freebsd.org/doc/handbook/printing.html And almost everything covered by it is true for openbsd.
Re: print usb printer by [ Google Cloud Print for Chromium ]
On 05/15/18 13:04, Tuyosi T wrote: i think it is impossible to print USB only printers . I have successfully printed to several USB based printers in my time with OpenBSD, ranging from USB thermal receipt printers, USB restaurant dot matrix kitchen printers all the way up to your modern day consumer throw away HP printer. I also have had great success utilizing DB9/DB25 serial line printers with OpenBSD. With a bit of playing around with lpd(8) and your printcap(5) file, you can do some neat things and avoid having to remove the ulpt(4) driver from the kernel while still making the printer fully usable and available to CUPS and over the network.
Re: print usb printer by [ Google Cloud Print for Chromium ]
hi all . i at last find i can print if i use the printer which has both cups driver and wifi interface (for example EP-709A). so i do not need to use [ Google Cloud Print for Chromium ] . and i think it is impossible to print USB only printers . at this sate openbsd become everyday OS . --- regards
Re: print usb printer by [ Google Cloud Print for Chromium ]
using [ Google Cloud Print for Chromium ] , i also print text files besides pdf files . for example 1) chrome test.txt 2) right click , then the print menu appears . (cups is not installed)
Re: print usb printer by [ Google Cloud Print for Chromium ]
i write down in more detailed manner but in japanese in https://qiita.com/tyokai/items/0cb47bd08cf6ec45de93 . - regards