Re: Installing Samsung CLX-2160 color laser printer on USB using CUPS
On Sun, 26 Feb 2012 22:29:12 +0100, Jerome Herman wrote: Not at all, the web admin for adding a printer is basically an html version of lpadmin. It is just easier with the web site. Easier as in: It leaves _essential_ options aside so that you can't perform some of the tasks. :-) OK this means the ppd does not handle everything. Might get a little complicated. When I use the foo2qpdl-wrapper which I assume does use the same PPD file, it works as intended. They did, then they got bought by Apple... I should make myself more familiar with the command line tool. Still I hope I won't need CUPS anytime soon. :-) No, please don't blame CUPS, it is earnestly trying to cope with everything thrown at him (stupid printers, gnome DBus autoconfig, Apple Mac OSX and so on), and it is doing a fairly good job at it. I know that printing currently isn't as easy as I (with my simple mind) assume. I've been using CUPS in the _past_ without major trouble, and even impossible things (like using parallel dotmatrix printers) were easily configurable even through the web interface. Seems that some parts got disimproved to please a certain audience... I for one do not want to go back to the time where one had to learn 2 lines long LPD command just to print in color, double side, with an ICM profile. I have several printers for varying _how_ to print. However, I like the idea of selecting duplex / no duplex in the printing dialog (which I currently do by selecting a different virtual printer: Laserjet = b/w two-sided, Laserjet-nodup = b/w single-sided, Samsung = color single-sided). Getting back to your problem. Apparently you are using an old version of foo2qpdl, you may want to grab it from the web site directly and compile it by hand (One of the very rare case where using the default package/port is not a good idea at all) You can find the howto here : http://foo2qpdl.rkkda.com/ You will need to download and link the ICM profile to have acceptable print quality. The latest PPD is 24 874 bytes in size. I will try that. I have installed the packages foo2zjs-20110609 foomatic-db-20090530_2 foomatic-db-engine-4.0.7,2 gutenprint-foomatic-5.2.4_2 where foo2qpdl and foo2qpdl-wrapper come from. I'm happy that I now have the fallback method of stopping CUPS, starting lpd, and using -PSamsung in order to use the color printer (not often required, it's my _first_ one, I've never needed one, really). Using a Linksys Wireless-G WPS54GU2 print server (WLAN, LAN, USB, parallel) - following Jerry's suggestion - I'll try tp get rid of the USB cable at the next step. Wireless printing isn't urgently needed (as I'm happily wired here), but real networking is much better than this local fiddling with USB (so I can print to the color printer from all of my systems when it's _real_ networked, just as the HP Laserjet 4000d which even runs its own lpd server). -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Installing Samsung CLX-2160 color laser printer on USB using CUPS
On Mon, 27 Feb 2012 22:24:32 +0100 Polytropon articulated: Using a Linksys Wireless-G WPS54GU2 print server (WLAN, LAN, USB, parallel) - following Jerry's suggestion - I'll try tp get rid of the USB cable at the next step. I spoke to an associate yesterday who claims he used a USB to Ethernet adapter on an older Canon printer and it worked fine. Everything was detected automatically. Obviously, that was on a Windows machine, WinXP to be exact. I still think it should work on FreeBSD although it will undoubtedly need a lot more user intervention. The router was a Netgate wireless model. He did not remember which model. Good luck! -- Jerry ♔ Disclaimer: off-list followups get on-list replies or get ignored. Please do not ignore the Reply-To header. __ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Installing Samsung CLX-2160 color laser printer on USB using CUPS
On 27/02/2012 22:24, Polytropon wrote: On Sun, 26 Feb 2012 22:29:12 +0100, Jerome Herman wrote: Not at all, the web admin for adding a printer is basically an html version of lpadmin. It is just easier with the web site. Easier as in: It leaves _essential_ options aside so that you can't perform some of the tasks. :-) Technically speaking, it doesn't leaves essential options aside, it just forgets to mention them. But I get your point. OK this means the ppd does not handle everything. Might get a little complicated. When I use the foo2qpdl-wrapper which I assume does use the same PPD file, it works as intended. Nope, the wrapper is just used to convert ps to QPDL in a plain file. The PPD does a lot more, including a bit of dialog with the printer to make sure it is configured correctly. Most of the time it also helps handling different parameters such as paper size and orientation, color or BW etc. They did, then they got bought by Apple... I should make myself more familiar with the command line tool. Still I hope I won't need CUPS anytime soon. :-) No, please don't blame CUPS, it is earnestly trying to cope with everything thrown at him (stupid printers, gnome DBus autoconfig, Apple Mac OSX and so on), and it is doing a fairly good job at it. I know that printing currently isn't as easy as I (with my simple mind) assume. I've been using CUPS in the _past_ without major trouble, and even impossible things (like using parallel dotmatrix printers) were easily configurable even through the web interface. Seems that some parts got disimproved to please a certain audience... Well Apple way of handling devices : if it doesn't work the way we want, it doesn't exist. I for one do not want to go back to the time where one had to learn 2 lines long LPD command just to print in color, double side, with an ICM profile. I have several printers for varying _how_ to print. However, I like the idea of selecting duplex / no duplex in the printing dialog (which I currently do by selecting a different virtual printer: Laserjet = b/w two-sided, Laserjet-nodup = b/w single-sided, Samsung = color single-sided). Normally that is what PPD is for, giving you a bit of control on all those parameters, so you do not have to create dozens of config per printer. (This said quite a lot of my users love to have dozens of configure for one printer, even under windows and mac. They prefer choosing a printer called Graphic_A3_Color_2side than having to choose options themselves) Getting back to your problem. Apparently you are using an old version of foo2qpdl, you may want to grab it from the web site directly and compile it by hand (One of the very rare case where using the default package/port is not a good idea at all) You can find the howto here : http://foo2qpdl.rkkda.com/ You will need to download and link the ICM profile to have acceptable print quality. The latest PPD is 24 874 bytes in size. I will try that. I have installed the packages foo2zjs-20110609 foomatic-db-20090530_2 foomatic-db-engine-4.0.7,2 gutenprint-foomatic-5.2.4_2 where foo2qpdl and foo2qpdl-wrapper come from. I'm happy that I now have the fallback method of stopping CUPS, starting lpd, and using -PSamsung in order to use the color printer (not often required, it's my _first_ one, I've never needed one, really). Using a Linksys Wireless-G WPS54GU2 print server (WLAN, LAN, USB, parallel) - following Jerry's suggestion - I'll try tp get rid of the USB cable at the next step. Wireless printing isn't urgently needed (as I'm happily wired here), but real networking is much better than this local fiddling with USB (so I can print to the color printer from all of my systems when it's _real_ networked, just as the HP Laserjet 4000d which even runs its own lpd server). On small printers, nothing beats socket connections. But the USB to ethernet transform can be quite tricky sometimes. Usually QPDL is well supported, it is after all a real interpreter. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Installing Samsung CLX-2160 color laser printer on USB using CUPS
On Sun, 26 Feb 2012 02:42:08 +0100, Jerome Herman wrote: You did nothing wrong, on the contrary. You now have a prefectly working printer. You just need to tell cups it exists. Since # foo2qpdl-wrapper -p 2 -c cupstest.ps cupstest.xqx # cat cupstest.xqx /dev/ulpt0 works, you should be able to create a new printer using a direct device. So go on as if you wanted to create a network printer, choose HPJetDirect (for example) when asked about the connection. Then when you have to input the uri remove the socket:// and type usb:///dev/ulpt0. (Yes triple / before dev) The you can process as usual for name, options and PPD. If it doesn't work try parallel:///dev/ulpt0 Interesting approach. Fully unimaginable from the CUPS guide to things (i. e. how normal users _assume_ things should be done!), but interesting. I'll try that. The option to enter such kind of data (parallel:// and usb:// isn't mentioned): Add Printer --- Connection: _ Examples: http://hostname:631/ipp/ http://hostname:631/ipp/port1 ipp://hostname/ipp/ ipp://hostname/ipp/port1 lpd://hostname/queue socket://hostname socket://hostname:9100 See Network Printers for the correct URI to use with your print [ Continue ] See? Nothing for parallel or USB to enter manually. It's like going to a car salesman, buying a car, but before driving home from his yard, quickly exchanging the car you bought for the car you initially wanted. :-) Normally one should work. Today, I tried to add the printer again. Unlike yesterday, it got detected! (Note: System shut down during night.) It also accepts print jobs, but they are stuck somewhere. % lpq -PSamsung_CLX-216x_Series Samsung_CLX-216x_Series is ready RankOwner Job File(s)Total Size 1st poly202 Unbenannt1 7563264 bytes This is from an OpenOffice session. The printer doesn't print anything. No action. Basically in cups choosing network connection allows you to input any URI you want, including file and raw (now defunct I think - it was mainly for debug anyway). Why haven't the CUPS people thought of a kind of know what you want mode where you can simply enter what you think is correct, no matter if any auto-detection magic did work (or not)? I never tried this specific printer, but this trick worked well on a few HP and Canon. Tell us how it went. I tried both of your suggestions for specifying the connection and chose the PPD file for the printer CLX-216xsplc.ppd (size 12208 bytes). Jobs get queued, printer is ready, but no action on the printer. However, when I issue a command like this: % foo2qpdl-wrapper -p 2 -c /tmp/testpage.ps /dev/ulpt0 pcache: unable to open '/home/poly/.ghostscript/cache/gs_cache' pcache: unable to open '/home/poly/.ghostscript/cache/gs_cache' pcache: unable to open '/home/poly/.ghostscript/cache/gs_cache' pcache: unable to open '/home/poly/.ghostscript/cache/gs_cache' The printer works. The result is _very_ dark. But hey, it's stupid commodity hardware, and RGB and CMY are a little bit different, and nothing of the cheap crap is calibrated. :-) In the system log, I get those: ugen1.5: Samsung Electronics Co., Ltd. at usbus1 ulpt0: Samsung Electronics Co., Ltd. CLX-216x Series, class 0/0, rev 2.00/1.00, addr 5 on usbus1 ulpt0: using bi-directional mode ulpt0: output error ulpt0: output error ulpt0: output error ulpt0: output error Unlike yesterday, the printer now is on ugen1.5. I'll have to play with the permissions a bit, maybe that's the reason why nothing can be printed, even though the changes I made for device permissions should cover all imaginable cases - all devices /dev/usb/* now are root:cups with crwxrwx--- permissions, the /dev/u(n)lpt0 devices are also root:cups with crw-rw permissions. Really, I _need_ to dump CUPS relapse to _standard_ system tools that seem to be easily capable of what the web-driven autodetected elastic-legged program magic of CUPS can't. :-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Installing Samsung CLX-2160 color laser printer on USB using CUPS
On Sun, 26 Feb 2012 10:08:52 +1000, Da Rock wrote: I don't know that I can add anything to the cups discussion here, but I understand you'd rather use lpr anyway. You are aware that the printer will only speak splix the samsung universal driver language? So any config would have to be based on that. The foo2qpdl-wrapper program seems to support that fine. Once you have that working maybe you can manually add the printer in cups using lpd. Maybe? For sure! It's quite easy to do it (make entry in /etc/printcap, create spool directories, write printer filter one-liner foo2qpdl-wrapper -p 2 -c which is the essential part). I just hope printing will be possible from applications (Opera, OpenOffice and Gimp are the primary candidates) afterwards. You know, many modern programs _expect_ CUPS to be present, some have hardcoded calls to CUPS programs, some seem to even _not_ output PS (which should be standard), but instead PCL or whatnot. JIC you haven't considered this yet... HIH :) Considered - yes, but I thought I would be able to avoid it and use the modern CUPS toolkit for something simple like printing. :-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Installing Samsung CLX-2160 color laser printer on USB using CUPS
On Sat, 25 Feb 2012 23:03:58 +0100 Polytropon articulated: I _never_ would buy a USB printer, and I would also never buy something that doesn't talk PS (or at least PCL). Both PS and to a lesser extent PCL are becoming passé. You might want to seriously consider PDF. The better Brother printers fully support it as do some of the better printers from other manufacturers. You might want to check out http://www.linuxfoundation.org/collaborate/workgroups/openprinting for further details. The PS format is going to become considerably less important in a relatively short time in my estimation. By the way, have you considered a USB to Ethernet adapter? Totally untested with a printer, but it might work quite well. If it works, you could plug it into a wireless router and print from anywhere sans nasty cables, etcetera. I print wirelessly, and I love it. It just works and it makes my life simpler. -- Jerry ♔ Disclaimer: off-list followups get on-list replies or get ignored. Please do not ignore the Reply-To header. __ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Installing Samsung CLX-2160 color laser printer on USB using CUPS
On Sun, 26 Feb 2012, Polytropon wrote: On Sun, 26 Feb 2012 10:08:52 +1000, Da Rock wrote: I don't know that I can add anything to the cups discussion here, but I understand you'd rather use lpr anyway. You are aware that the printer will only speak splix the samsung universal driver language? So any config would have to be based on that. The foo2qpdl-wrapper program seems to support that fine. Once you have that working maybe you can manually add the printer in cups using lpd. Maybe? For sure! It's quite easy to do it (make entry in /etc/printcap, create spool directories, write printer filter one-liner foo2qpdl-wrapper -p 2 -c which is the essential part). I just hope printing will be possible from applications (Opera, OpenOffice and Gimp are the primary candidates) afterwards. Opera, I have not tried. OpenOffice and LibreOffice print through lpd fine. Printing through Gutenprint in Gimp also works without CUPS. Something has a probably-unnecessary dependency on cups-client, so it's installed here, but none of the rest of CUPS. PS: using the non-resetting unlpt0 device is often helpful. A network connection is still better. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Installing Samsung CLX-2160 color laser printer on USB using CUPS
On 26/02/2012 18:46, Polytropon wrote: On Sun, 26 Feb 2012 02:42:08 +0100, Jerome Herman wrote: You did nothing wrong, on the contrary. You now have a prefectly working printer. You just need to tell cups it exists. Since # foo2qpdl-wrapper -p 2 -c cupstest.ps cupstest.xqx # cat cupstest.xqx /dev/ulpt0 works, you should be able to create a new printer using a direct device. So go on as if you wanted to create a network printer, choose HPJetDirect (for example) when asked about the connection. Then when you have to input the uri remove the socket:// and type usb:///dev/ulpt0. (Yes triple / before dev) The you can process as usual for name, options and PPD. If it doesn't work try parallel:///dev/ulpt0 Interesting approach. Fully unimaginable from the CUPS guide to things (i. e. how normal users _assume_ things should be done!), but interesting. I'll try that. The option to enter such kind of data (parallel:// and usb:// isn't mentioned): Add Printer --- Connection: _ Examples: http://hostname:631/ipp/ http://hostname:631/ipp/port1 ipp://hostname/ipp/ ipp://hostname/ipp/port1 lpd://hostname/queue socket://hostname socket://hostname:9100 See Network Printers for the correct URI to use with your print [ Continue ] See? Nothing for parallel or USB to enter manually. It's like going to a car salesman, buying a car, but before driving home from his yard, quickly exchanging the car you bought for the car you initially wanted. :-) Not at all, the web admin for adding a printer is basically an html version of lpadmin. It is just easier with the web site. Normally one should work. Today, I tried to add the printer again. Unlike yesterday, it got detected! (Note: System shut down during night.) It also accepts print jobs, but they are stuck somewhere. % lpq -PSamsung_CLX-216x_Series Samsung_CLX-216x_Series is ready RankOwner Job File(s)Total Size 1st poly202 Unbenannt1 7563264 bytes This is from an OpenOffice session. The printer doesn't print anything. No action. OK this means the ppd does not handle everything. Might get a little complicated. Basically in cups choosing network connection allows you to input any URI you want, including file and raw (now defunct I think - it was mainly for debug anyway). Why haven't the CUPS people thought of a kind of know what you want mode where you can simply enter what you think is correct, no matter if any auto-detection magic did work (or not)? They did, then they got bought by Apple... I never tried this specific printer, but this trick worked well on a few HP and Canon. Tell us how it went. I tried both of your suggestions for specifying the connection and chose the PPD file for the printer CLX-216xsplc.ppd (size 12208 bytes). Jobs get queued, printer is ready, but no action on the printer. However, when I issue a command like this: % foo2qpdl-wrapper -p 2 -c /tmp/testpage.ps /dev/ulpt0 pcache: unable to open '/home/poly/.ghostscript/cache/gs_cache' pcache: unable to open '/home/poly/.ghostscript/cache/gs_cache' pcache: unable to open '/home/poly/.ghostscript/cache/gs_cache' pcache: unable to open '/home/poly/.ghostscript/cache/gs_cache' The printer works. The result is _very_ dark. But hey, it's stupid commodity hardware, and RGB and CMY are a little bit different, and nothing of the cheap crap is calibrated. :-) In the system log, I get those: ugen1.5:Samsung Electronics Co., Ltd. at usbus1 ulpt0:Samsung Electronics Co., Ltd. CLX-216x Series, class 0/0, rev 2.00/1.00, addr 5 on usbus1 ulpt0: using bi-directional mode ulpt0: output error ulpt0: output error ulpt0: output error ulpt0: output error Unlike yesterday, the printer now is on ugen1.5. I'll have to play with the permissions a bit, maybe that's the reason why nothing can be printed, even though the changes I made for device permissions should cover all imaginable cases - all devices /dev/usb/* now are root:cups with crwxrwx--- permissions , the /dev/u(n)lpt0 devices are also root:cups with crw-rw permissions. Really, I _need_ to dump CUPS relapse to _standard_ system tools that seem to be easily capable of what the web-driven autodetected elastic-legged program magic of CUPS can't. :-) No, please don't blame CUPS, it is earnestly trying to cope with everything thrown at him (stupid printers, gnome DBus autoconfig, Apple Mac OSX and so on), and it is doing a fairly good job at it. I for one do not want to go back to the time where one had to learn 2 lines long LPD command just to print in color, double side, with an ICM profile. Getting back to your
Installing Samsung CLX-2160 color laser printer on USB using CUPS
I have a problem installing a Samsung CLX-2160 color laser printer using CUPS. In the http://localhost:631 web-based configuration, none of the methods that are supposed to be used for installing a printer works. The Add Printer button leads to this: Add Printer --- Local Printers: Discovered Network Printers: Other Network Printers: o Internet Printing Protocol (http) o Internet Printing Protocol (ipp) o LPD/LPR Host or Printer o AppSocket/HP JetDirect [ Continue ] No local printers can be selected (even though the printer is connected, switched on and woken up). And Find New Printers shows this: Available Printers -- No printers found. Excellent auto detection. :-) The corresponding device for the printer is this: ulpt0: Samsung Electronics Co., Ltd. CLX-216x Series, class 0/0, rev 2.00/1.00, addr 2 on usbus4 ulpt0: using bi-directional mode ugen4.2: CLX-216x Series Samsung Electronics Co., Ltd. at usbus4, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON crw-rw 1 root cups0, 142 Feb 25 21:42 /dev/ulpt0 I have installed all packages I can imagine: cups-1.4.6 cups-base-1.4.6_6 cups-client-1.4.6 cups-image-1.4.6 cups-pstoraster-8.15.4_6 gutenprint-cups-5.2.4_2 foo2zjs-20110609 foomatic-db-20090530_2 foomatic-db-engine-4.0.7,2 gutenprint-foomatic-5.2.4_2 foo2zjs-20110609 I also have the CLX-216xsplc.ppd PPD file available which I think I'd like to hand over to CUPS somewhere. ALTERNATIVE: If someone could explain how it's easier to make a lpr filter (for the system's printer service), I'd also appreciate this. I've already tried this: # foo2xqx-wrapper cupstest.ps cupstest.xqx # cat cupstest.xqx /dev/ulpt0 It causes the LED of the printer to blink, but nothing is printed, even though the printer startes to make sounds (involving the print mechanism, but not the sheet feeder). If I use # foo2qpdl-wrapper cupstest.ps cupstest.xqx # cat cupstest.xqx /dev/ulpt0 the CUPS test page is printed, but not in color (only b/w). After looking into the manpage, # foo2qpdl-wrapper -p 2 -c cupstest.ps cupstest.xqx # cat cupstest.xqx /dev/ulpt0 makes the printer print properly. Okay, it works. How am I supposed to use a PPD file with CUPS when no local printer is shown? I need CUPS (or at least my programs seem to think that), how should it be done? Okay, I could make a simple printer filter. I could then integrate that with /etc/printcap (as I do with my PCL HP Laserjet 4000d). I think it should be possible to code that similar to a parallel printer (with ulpt instead of lpt device specification for the lp= parameter... What am I doing wrong? :-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Installing Samsung CLX-2160 color laser printer on USB using CUPS
On Sat, Feb 25, 2012 at 3:14 PM, Polytropon free...@edvax.de wrote: I have a problem installing a Samsung CLX-2160 color laser printer using CUPS. In the http://localhost:631 web-based configuration, none of the methods that are supposed to be used for installing a printer works. The Add Printer button leads to this: Add Printer --- Local Printers: Discovered Network Printers: Other Network Printers: o Internet Printing Protocol (http) o Internet Printing Protocol (ipp) o LPD/LPR Host or Printer o AppSocket/HP JetDirect [ Continue ] No local printers can be selected (even though the printer is connected, switched on and woken up). And Find New Printers shows this: Available Printers -- No printers found. Excellent auto detection. :-) The corresponding device for the printer is this: ulpt0: Samsung Electronics Co., Ltd. CLX-216x Series, class 0/0, rev 2.00/1.00, addr 2 on usbus4 ulpt0: using bi-directional mode ugen4.2: CLX-216x Series Samsung Electronics Co., Ltd. at usbus4, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON crw-rw 1 root cups 0, 142 Feb 25 21:42 /dev/ulpt0 I have installed all packages I can imagine: cups-1.4.6 cups-base-1.4.6_6 cups-client-1.4.6 cups-image-1.4.6 cups-pstoraster-8.15.4_6 gutenprint-cups-5.2.4_2 foo2zjs-20110609 foomatic-db-20090530_2 foomatic-db-engine-4.0.7,2 gutenprint-foomatic-5.2.4_2 foo2zjs-20110609 I also have the CLX-216xsplc.ppd PPD file available which I think I'd like to hand over to CUPS somewhere. ALTERNATIVE: If someone could explain how it's easier to make a lpr filter (for the system's printer service), I'd also appreciate this. I've already tried this: # foo2xqx-wrapper cupstest.ps cupstest.xqx # cat cupstest.xqx /dev/ulpt0 It causes the LED of the printer to blink, but nothing is printed, even though the printer startes to make sounds (involving the print mechanism, but not the sheet feeder). If I use # foo2qpdl-wrapper cupstest.ps cupstest.xqx # cat cupstest.xqx /dev/ulpt0 the CUPS test page is printed, but not in color (only b/w). After looking into the manpage, # foo2qpdl-wrapper -p 2 -c cupstest.ps cupstest.xqx # cat cupstest.xqx /dev/ulpt0 makes the printer print properly. Okay, it works. How am I supposed to use a PPD file with CUPS when no local printer is shown? I need CUPS (or at least my programs seem to think that), how should it be done? Okay, I could make a simple printer filter. I could then integrate that with /etc/printcap (as I do with my PCL HP Laserjet 4000d). I think it should be possible to code that similar to a parallel printer (with ulpt instead of lpt device specification for the lp= parameter... What am I doing wrong? :-) -- Polytropon Hope this can help: http://forums.freebsd.org/showthread.php?t=27666 There are many things that could be interfering? - Create /etc/devfs.rules with the following, which sets the permissions and associates print devices with the cups group: [system=10] add path 'unlpt*' mode 0660 group cups add path 'ulpt*' mode 0660 group cups add path 'lpt*' mode 0660 group cups - Add root and other users to cups group in /etc/group - Enable CUPS and the above rules at startup by adding these lines to /etc/rc.conf: cupsd_enable=YES devfs_system_ruleset=system Then hopefully the printer shows up in cups http://localhost:631 :) If none of this works, you may try adding the apsfilter port and use it to configure the printer? But see if the above helps. Regards, Antonio ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Installing Samsung CLX-2160 color laser printer on USB using CUPS
On Sat, 25 Feb 2012 22:14:33 +0100 Polytropon articulated: I have a problem installing a Samsung CLX-2160 color laser printer using CUPS. In the http://localhost:631 web-based configuration, none of the methods that are supposed to be used for installing a printer works. USB sucks on FreeBSD. Sorry, I don't care who gets pissed off about that remark. Apparently, your printer only supports USB. If you have just purchased it, I might recommend returning it and getting one that is wireless ready. Believe me, you will appreciate the flexibility that offers. -- Jerry ♔ Disclaimer: off-list followups get on-list replies or get ignored. Please do not ignore the Reply-To header. __ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Installing Samsung CLX-2160 color laser printer on USB using CUPS
On Sat, 25 Feb 2012 15:26:29 -0600, Antonio Olivares wrote: Hope this can help: http://forums.freebsd.org/showthread.php?t=27666 There are many things that could be interfering? Done as explained in the thread. Even # cp /usr/local/share/examples/cups/ulpt-cupsd.conf /usr/local/etc/devd has been done. - Create /etc/devfs.rules with the following, which sets the permissions and associates print devices with the cups group: [system=10] add path 'unlpt*' mode 0660 group cups add path 'ulpt*' mode 0660 group cups add path 'lpt*' mode 0660 group cups Checked and already present. I think I should not have to fiddle with the ugen* devices? Note: The scanner is currently not interesting to me, but sane-find-scanners reports it: found USB scanner (vendor=0x04e8 [Samsung Electronics Co., Ltd.], product=0x3425 [CLX-216x Series]) at libusb:/dev/usb:/dev/ugen4.2 The printer should be on a similar address, but it does already pop up as ulpt device which should be good. :-) An additional ulpt0: output error message appear in the system log after the device is recognized (plugged in). I also made a comparable set of settings in /etc/devfs.conf if the printer is detected at boot time. own ulpt0 root:cups permulpt0 0666 own unlpt0 root:cups permunlpt0 0666 That should be fine. - Add root and other users to cups group in /etc/group Done. - Enable CUPS and the above rules at startup by adding these lines to /etc/rc.conf: cupsd_enable=YES devfs_system_ruleset=system Also already done. I'm already running CUPS to address the HP Laerjet 4000d via LAN (what a waste, I know). Then hopefully the printer shows up in cups http://localhost:631 :) No auto-detection, no local printers to be configured. :-( If none of this works, you may try adding the apsfilter port and use it to configure the printer? But see if the above helps. I've been using apsfilter in the past happily as it could even to things like % lpr sometext.txt but CUPS truncates the output as soon as an Umlaut or Eszett appears. Great multilingual tool. :-) As I said, I have (note the quotes) to use CUPS because many programs say so. For example, Opera doesn't play with system's lpr anymore, Gimp has hardcoded stuff in it, and I believe many programs will follow this road... Anyway, I will surely dump CUPS as it doesn't work for me. Brings no benefit, even the simplest things (adding a printer by specifying port and type) is _impossible_). I'll begin to write a lpr printer filter instead. That has been proven to work (see initial message). :-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Installing Samsung CLX-2160 color laser printer on USB using CUPS
On Sat, 25 Feb 2012 16:55:36 -0500, Jerry wrote: On Sat, 25 Feb 2012 22:14:33 +0100 Polytropon articulated: I have a problem installing a Samsung CLX-2160 color laser printer using CUPS. In the http://localhost:631 web-based configuration, none of the methods that are supposed to be used for installing a printer works. USB sucks on FreeBSD. In regards to some devices - yes, I fully agree. Sorry, I don't care who gets pissed off about that remark. I don't. It's not the first time I get annoyed by USB. :-) Apparently, your printer only supports USB. Sadly yes, it's the no-letter variant (no N for networked or W for wireless). CUPS seems to be unable to detect that printer even though it is connected (as I could print to it without CUPS successfully). However, CUPS always seemed to have some trouble with connected _local_ printers, I remember that it was impossible to install a locally connected parallel printer (needed for specific forms), and it was also impossible to install a printer that's _currently_ not connected (even though I knew all its paramters). If you have just purchased it, I might recommend returning it and getting one that is wireless ready. No such deal, I got this printer as payment (others would say, for free), just purchased new toner cartridges, and the press button and make a color copy function works quite well. As I've mostly used this printer as a dull copier, I thought I could _easily_ (in CUPS's terminology!) use it as a printer. Ha ha. :-) I _never_ would buy a USB printer, and I would also never buy something that doesn't talk PS (or at least PCL). Believe me, you will appreciate the flexibility that offers. Regular wired networking printer would have been fine too. I use my HP Laserjet 4000 duplex that way - works like a charm, out of the box, no fiddling with annoying details. However, that HP is _office_ equipment, while the Samsung is for living room use. :-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Installing Samsung CLX-2160 color laser printer on USB using CUPS
On Sat, Feb 25, 2012 at 10:14 PM, Polytropon free...@edvax.de wrote: I have a problem installing a Samsung CLX-2160 color laser printer using CUPS. In the http://localhost:631 web-based configuration, none of the methods that are supposed to be used for installing a printer works. (... snip ...) What am I doing wrong? :-) Have you heeded *all* the advices here? /usr/ports/print/cups-base/pkg-message Permissions are usually the culprit when CUPS doesn't work. -cpghost. -- Cordula's Web. http://www.cordula.ws/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Installing Samsung CLX-2160 color laser printer on USB using CUPS
On Sat, 25 Feb 2012 23:07:36 +0100, C. P. Ghost wrote: On Sat, Feb 25, 2012 at 10:14 PM, Polytropon free...@edvax.de wrote: I have a problem installing a Samsung CLX-2160 color laser printer using CUPS. In the http://localhost:631 web-based configuration, none of the methods that are supposed to be used for installing a printer works. (... snip ...) What am I doing wrong? :-) Have you heeded *all* the advices here? /usr/ports/print/cups-base/pkg-message Permissions are usually the culprit when CUPS doesn't work. Done (even with the variation of 0660 vs. 0770 as suggested in that file): [system=10] add path 'unlpt*' mode 0660 group cups add path 'ulpt*' mode 0660 group cups add path 'lpt*' mode 0660 group cups add path 'usb/4.2.*' mode 0660 group cups add path 'usb*' mode 0770 group cups Same result == no result. :-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Installing Samsung CLX-2160 color laser printer on USB using CUPS
On 02/26/12 08:14, Polytropon wrote: On Sat, 25 Feb 2012 23:07:36 +0100, C. P. Ghost wrote: On Sat, Feb 25, 2012 at 10:14 PM, Polytroponfree...@edvax.de wrote: I have a problem installing a Samsung CLX-2160 color laser printer using CUPS. In the http://localhost:631 web-based configuration, none of the methods that are supposed to be used for installing a printer works. (... snip ...) What am I doing wrong? :-) Have you heeded *all* the advices here? /usr/ports/print/cups-base/pkg-message Permissions are usually the culprit when CUPS doesn't work. Done (even with the variation of 0660 vs. 0770 as suggested in that file): [system=10] add path 'unlpt*' mode 0660 group cups add path 'ulpt*' mode 0660 group cups add path 'lpt*' mode 0660 group cups add path 'usb/4.2.*' mode 0660 group cups add path 'usb*' mode 0770 group cups Same result == no result. :-) I don't know that I can add anything to the cups discussion here, but I understand you'd rather use lpr anyway. You are aware that the printer will only speak splix the samsung universal driver language? So any config would have to be based on that. Once you have that working maybe you can manually add the printer in cups using lpd. JIC you haven't considered this yet... HIH :) ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Installing Samsung CLX-2160 color laser printer on USB using CUPS
On 25/02/2012 22:14, Polytropon wrote: I have a problem installing a Samsung CLX-2160 color laser printer using CUPS. In the http://localhost:631 web-based configuration, none of the methods that are supposed to be used for installing a printer works. The Add Printer button leads to this: Add Printer --- Local Printers: Discovered Network Printers: Other Network Printers: o Internet Printing Protocol (http) o Internet Printing Protocol (ipp) o LPD/LPR Host or Printer o AppSocket/HP JetDirect [ Continue ] No local printers can be selected (even though the printer is connected, switched on and woken up). And Find New Printers shows this: Available Printers -- No printers found. Excellent auto detection. :-) The corresponding device for the printer is this: ulpt0:Samsung Electronics Co., Ltd. CLX-216x Series, class 0/0, rev 2.00/1.00, addr 2 on usbus4 ulpt0: using bi-directional mode ugen4.2:CLX-216x Series Samsung Electronics Co., Ltd. at usbus4, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON crw-rw 1 root cups0, 142 Feb 25 21:42 /dev/ulpt0 I have installed all packages I can imagine: cups-1.4.6 cups-base-1.4.6_6 cups-client-1.4.6 cups-image-1.4.6 cups-pstoraster-8.15.4_6 gutenprint-cups-5.2.4_2 foo2zjs-20110609 foomatic-db-20090530_2 foomatic-db-engine-4.0.7,2 gutenprint-foomatic-5.2.4_2 foo2zjs-20110609 I also have the CLX-216xsplc.ppd PPD file available which I think I'd like to hand over to CUPS somewhere. ALTERNATIVE: If someone could explain how it's easier to make a lpr filter (for the system's printer service), I'd also appreciate this. I've already tried this: # foo2xqx-wrapper cupstest.ps cupstest.xqx # cat cupstest.xqx /dev/ulpt0 It causes the LED of the printer to blink, but nothing is printed, even though the printer startes to make sounds (involving the print mechanism, but not the sheet feeder). If I use # foo2qpdl-wrapper cupstest.ps cupstest.xqx # cat cupstest.xqx /dev/ulpt0 the CUPS test page is printed, but not in color (only b/w). After looking into the manpage, # foo2qpdl-wrapper -p 2 -c cupstest.ps cupstest.xqx # cat cupstest.xqx /dev/ulpt0 makes the printer print properly. Okay, it works. How am I supposed to use a PPD file with CUPS when no local printer is shown? I need CUPS (or at least my programs seem to think that), how should it be done? Okay, I could make a simple printer filter. I could then integrate that with /etc/printcap (as I do with my PCL HP Laserjet 4000d). I think it should be possible to code that similar to a parallel printer (with ulpt instead of lpt device specification for the lp= parameter... What am I doing wrong? :-) You did nothing wrong, on the contrary. You now have a prefectly working printer. You just need to tell cups it exists. Since # foo2qpdl-wrapper -p 2 -c cupstest.ps cupstest.xqx # cat cupstest.xqx /dev/ulpt0 works, you should be able to create a new printer using a direct device. So go on as if you wanted to create a network printer, choose HPJetDirect (for example) when asked about the connection. Then when you have to input the uri remove the socket:// and type usb:///dev/ulpt0. (Yes triple / before dev) The you can process as usual for name, options and PPD. If it doesn't work try parallel:///dev/ulpt0 Normally one should work. Basically in cups choosing network connection allows you to input any URI you want, including file and raw (now defunct I think - it was mainly for debug anyway). I never tried this specific printer, but this trick worked well on a few HP and Canon. Tell us how it went. Jerome Herman ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org