Re: Guix Printing Problems
Hi Tobias Thanks very much for your response. Sadly, my situation is unchanged. Not entirely unchanged, as your suggestions helped me realise what I was doing wrong regarding the web-interface. I can now access the full CUPS data via http://localhost:631, but all that gives me is more commands to try that Guix won't run! Advice I can't follow. I added 'lp' (and also 'lpadmin' from someone else's suggestion) to the groups section, but that's made no difference either. The annoying reality remains: the system can host the discovery of every imaginable detail about the printer -- down to how many pages I've ever printed! -- but having made sufficient connection to pull in all that data, claims it cannot find the printer. Checkmate. Nonsense. On the good side, I've learned a lot during the struggle, and I'll leave the installation in place for the moment. However, unless something turns up to turn 'foxed' into 'fixed', a system that doesn't print just isn't practical. Can we persuade the legendary RMS to turn his fruitful attention to the cause he promotes! But sincere thanks once again, and all the best to you and yours. Peter
Re: Guix Printing Problems
Peter, Peter 写道: Greetings! This is my first post. I hope I'm doing it right, and please forgive me if I'm not. Welcome! You absolutely are. http//:localhost:631 brings up a CUPS interface, but produces an error message: "The web interface is currently disabled. Run "cupsctl WebInterface=yes" to enable it." Ah, that wouldn't work anyway: Guix uses read-only configuration files. $ sudo cupsctl WebInterface=yes Password for root on localhost? *** cupsctl: Internal Server Error I try that but "command not found". Aside from it not working, you can make cupsctl (along with the other cups commands like lp) available for your user with $ guix install cups or for all users by adding it to the (packages …) field in your system configuration. Commands I have used like 'systemctl start cups.service' etc don't work on Guix either. Is there a Guix equivalent? Guix doesn't have systemd. The equivalent service manager is the GNU Shepherd: $ sudo herd restart cups Attempts to enable the Web interface via the config.scm (GNU Guix Reference Manual 10.8.7) have also failed. Now that's odd, because it definitely should. Could you edit your system configuration to read: (service cups-service-type (cups-configuration (web-interface? #t))) and then apply it by running: $ sudo guix system reconfigure [your system .scm] $ sudo herd restart cups and confirm that you still get the same error? This ought to be encouraging, but when I attempt to print a working text document (e.g. via Gedit) although the printer is listed (along with IP address and all usual data) it says "Processing - Not connected?", despite the system clearly knowing the address etc. Yeah, this should work even without a Web interface and with zero configuration. Or so I thought… Are you a member of the ‘lp’ group? IIRC printing is only allowed to its members. Try: (supplementary-groups '("wheel" "lp" "netdev" "audio" "video"))) I set the printer up normally in Gnome Print Settings, but if I look at the View Print Queue, it says "Document Print Status: Processing - Not connected?". If I go into Server Settings to check the 'Publish shared printers connected to this system' setting the troubleshooter recommended, I get "CUPS server error: There was an error during CUPS operation: 'Failed to set settings'". Troubleshooting's final verdict is "There is no obvious solution to this problem." Heh :-) As you've probably guessed by now this is due to the read-only configuration file. Only Guix can change CUPS settings through your cups-service-type; not any other helpful programmes. However, ‘Publish shared printers’ shouldn't need to be on to print from the local host. It controls whether known printers are further advertised to others over DNS-SD. The upstream Boolean ‘Browsing’ (exposed by Guix as cups-configuration's ‘browsing?’) is exceptionally poorly named in this regard. I'm foxed, and frustrated, and as a desperate work-round I have to ssh the file to another machine to be printed. By the way, I have successfully set up printing for MacOS, nixOS, Debian, and Arch, but GUIX (alone) fails to find the printer, except via the Brother utility. Thanks for so clearly describing your problem and attempted solutions. Let's hope we can unfox you and get you hooked. Kind regards, T G-R signature.asc Description: PGP signature
Re: Guix Printing Problems
On Thu, Sep 23, 2021 at 09:30:44PM +1000, Peter wrote: > Greetings! This is my first post. I hope I'm doing it right, and please > forgive me if I'm not. > > I have installed GUIX (including CUPS) onto a Lenovo ThinkCentre P520c, > successfully except that I cannot print from within the Guix installation. I > have a trusty Brother HL-5350DN laser printer connected via ethernet to my > local network. Pointing the browser to http//:localhost:631 brings up a CUPS > interface, but produces an error message: "The web interface is currently > disabled. Run "cupsctl WebInterface=yes" to enable it." I try that but > "command not found". Commands I have used like 'systemctl start cups.service' > etc don't work on Guix either. Is there a Guix equivalent? Attempts to enable > the Web interface via the config.scm (GNU Guix Reference Manual 10.8.7) have > also failed. > > And yet: if I type the IP address of the printer '192.168.1.108' directly > into the browser, it shows up as "http://192.168.1.108/printer/main.html; and > I find myself in a Brother utility for the printer, from which I can > successfully do a test print. The Brother utility has a number of screens: > Home Page, View Configuration, Maintenance Information, Find Device, Printer > Settings, Administrator Settings, Reset & Test, Network Configuration. > > This ought to be encouraging, but when I attempt to print a working text > document (e.g. via Gedit) although the printer is listed (along with IP > address and all usual data) it says "Processing - Not connected?", despite > the system clearly knowing the address etc. > > I set the printer up normally in Gnome Print Settings, but if I look at the > View Print Queue, it says "Document Print Status: Processing - Not > connected?". If I go into Server Settings to check the 'Publish shared > printers connected to this system' setting the troubleshooter recommended, I > get "CUPS server error: There was an error during CUPS operation: 'Failed to > set settings'". Troubleshooting's final verdict is "There is no obvious > solution to this problem." > > I'm foxed, and frustrated, and as a desperate work-round I have to ssh the > file to another machine to be printed. By the way, I have successfully set up > printing for MacOS, nixOS, Debian, and Arch, but GUIX (alone) fails to find > the printer, except via the Brother utility. > > Any clues? I earnestly want this FSF-endorsed distribution to work. > > I'm including my config.scm, and the troubleshooting report. > Try adding yourself to the 'lp' group, under supplementary-groups. I have myself added to the lp and the lpadmin group, I can never remember which is the correct one. -- Efraim Flashner רנשלפ םירפא GPG key = A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted signature.asc Description: PGP signature
Guix Printing Problems
Greetings! This is my first post. I hope I'm doing it right, and please forgive me if I'm not. I have installed GUIX (including CUPS) onto a Lenovo ThinkCentre P520c, successfully except that I cannot print from within the Guix installation. I have a trusty Brother HL-5350DN laser printer connected via ethernet to my local network. Pointing the browser to http//:localhost:631 brings up a CUPS interface, but produces an error message: "The web interface is currently disabled. Run "cupsctl WebInterface=yes" to enable it." I try that but "command not found". Commands I have used like 'systemctl start cups.service' etc don't work on Guix either. Is there a Guix equivalent? Attempts to enable the Web interface via the config.scm (GNU Guix Reference Manual 10.8.7) have also failed. And yet: if I type the IP address of the printer '192.168.1.108' directly into the browser, it shows up as "http://192.168.1.108/printer/main.html; and I find myself in a Brother utility for the printer, from which I can successfully do a test print. The Brother utility has a number of screens: Home Page, View Configuration, Maintenance Information, Find Device, Printer Settings, Administrator Settings, Reset & Test, Network Configuration. This ought to be encouraging, but when I attempt to print a working text document (e.g. via Gedit) although the printer is listed (along with IP address and all usual data) it says "Processing - Not connected?", despite the system clearly knowing the address etc. I set the printer up normally in Gnome Print Settings, but if I look at the View Print Queue, it says "Document Print Status: Processing - Not connected?". If I go into Server Settings to check the 'Publish shared printers connected to this system' setting the troubleshooter recommended, I get "CUPS server error: There was an error during CUPS operation: 'Failed to set settings'". Troubleshooting's final verdict is "There is no obvious solution to this problem." I'm foxed, and frustrated, and as a desperate work-round I have to ssh the file to another machine to be printed. By the way, I have successfully set up printing for MacOS, nixOS, Debian, and Arch, but GUIX (alone) fails to find the printer, except via the Brother utility. Any clues? I earnestly want this FSF-endorsed distribution to work. I'm including my config.scm, and the troubleshooting report. config.scm Description: Binary data Page 1 (): {'cups_connection_failure': False} Page 2 (): {'local_server_exporting_printers': False} Page 3 (): {'cups_dest': , 'cups_instance': None, 'cups_queue': 'Brother-HL-5350DN-series', 'cups_queue_listed': True} Page 4 (): {'cups_device_uri_scheme': 'dnssd', 'cups_printer_dict': {'device-uri': 'dnssd://Brother%20HL-5350DN%20series._pdl-datastream._tcp.local/', 'printer-info': 'Brother HL-5350DN series', 'printer-is-shared': True, 'printer-location': '', 'printer-make-and-model': 'Generic PCL Laser Printer', 'printer-state': 4, 'printer-state-message': 'Unable to locate printer ' '"BRN001BA9239259.local".', 'printer-state-reasons': ['connecting-to-device'], 'printer-type': 143444, 'printer-uri-supported': 'ipp://localhost:631/printers/Brother-HL-5350DN-series'}, 'cups_printer_remote': False, 'is_cups_class': False, 'local_cups_queue_attributes': {'charset-configured': 'utf-8', 'charset-supported': ['us-ascii', 'utf-8'], 'color-supported': False, 'compression-supported': ['none', 'gzip'], 'copies-default': 1, 'copies-supported': (1, ), 'cups-version': '2.3.3', 'device-uri': 'dnssd://Brother%20HL-5350DN%20series._pdl-datastream._tcp.local/', 'document-format-default': 'application/octet-stream', 'document-format-supported': ['application/octet-stream', 'application/pdf', 'application/postscript', 'application/vnd.adobe-reader-postscript', 'application/vnd.cups-pdf', 'application/vnd.cups-pdf-banner', 'application/vnd.cups-postscript', 'application/vnd.cups-raster',