From: Peter <stuffbox@tpg.com.au>
To: help-guix@gnu.org
Subject: Guix Printing Problems
Date: Thu, 23 Sep 2021 21:30:44 +1000 [thread overview]
Message-ID: <A1089AC0-3721-4B73-8280-EDCA902D35EB@tpg.com.au> (raw)
[-- Attachment #1: Type: text/plain, Size: 2389 bytes --]
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.
[-- Attachment #2: config.scm --]
[-- Type: application/octet-stream, Size: 2535 bytes --]
;; This is an operating system configuration generated
;; by the graphical installer.
(use-modules (gnu)(nongnu packages linux))
(use-service-modules
cups
desktop
networking
ssh
xorg)
(operating-system
(kernel linux)
(firmware (list linux-firmware))
(locale "en_AU.utf8")
(timezone "Australia/Sydney")
(keyboard-layout (keyboard-layout "us"))
(host-name "GX3")
(users (cons* (user-account
(name "peter")
(comment "Peter")
(group "users")
(home-directory "/home/peter")
(supplementary-groups
'("wheel" "netdev" "audio" "video")))
%base-user-accounts))
(packages
(append
(list (specification->package "openbox")
(specification->package "i3-wm")
(specification->package "i3status")
(specification->package "dmenu")
(specification->package "st")
(specification->package "emacs")
(specification->package "emacs-exwm")
(specification->package
"emacs-desktop-environment")
(specification->package "nss-certs"))
%base-packages))
(services
(append
(list (service gnome-desktop-service-type)
(service mate-desktop-service-type)
(service openssh-service-type)
(service tor-service-type)
(service cups-service-type)
(set-xorg-configuration
(xorg-configuration
(keyboard-layout keyboard-layout))))
%desktop-services))
(bootloader
(bootloader-configuration
(bootloader grub-efi-bootloader)
(target "/boot/efi")
(keyboard-layout keyboard-layout)))
(swap-devices
(list (uuid "85fe704d-6540-4e99-92f1-0b6cf46c7842")))
(file-systems
(cons* (file-system
(mount-point "/boot/efi")
(device (uuid "29D8-45D0" 'fat32))
(type "vfat"))
(file-system
(mount-point "/")
(device
(uuid "0d56ecfa-635a-4a26-b0da-c9c5ee5412ae"
'ext4))
(type "ext4"))
%base-file-systems)))
;; I have also tried a more detailed "cups-service" entry, as listed in the Manual
;; with 'brlaser' replacing the epsom example. It made no difference whatsoever.
;;
;; (service cups-service-type
;; (cups-configuration
;; (web-interface #t)
;; (extensions
;; (list brlaser cups-filters))))
[-- Attachment #3: Type: text/plain, Size: 2 bytes --]
[-- Attachment #4: troubleshoot.txt --]
[-- Type: text/plain, Size: 32951 bytes --]
Page 1 (<troubleshoot.SchedulerNotRunning.SchedulerNotRunning object at 0x7fcf300e9e20>):
{'cups_connection_failure': False}
Page 2 (<troubleshoot.CheckLocalServerPublishing.CheckLocalServerPublishing object at 0x7fcf300fad30>):
{'local_server_exporting_printers': False}
Page 3 (<troubleshoot.ChoosePrinter.ChoosePrinter object at 0x7fcf300faf40>):
{'cups_dest': <cups.Dest Brother-HL-5350DN-series (default)>,
'cups_instance': None,
'cups_queue': 'Brother-HL-5350DN-series',
'cups_queue_listed': True}
Page 4 (<troubleshoot.CheckPrinterSanity.CheckPrinterSanity object at 0x7fcf300fabe0>):
{'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, 9999),
'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',
'application/vnd.cups-raw',
'application/x-cshell',
'application/x-csource',
'application/x-perl',
'application/x-shell',
'image/gif',
'image/jpeg',
'image/png',
'image/pwg-raster',
'image/tiff',
'image/urf',
'image/x-bitmap',
'image/x-photocd',
'image/x-portable-anymap',
'image/x-portable-bitmap',
'image/x-portable-graymap',
'image/x-portable-pixmap',
'image/x-sgi-rgb',
'image/x-sun-raster',
'image/x-xbitmap',
'image/x-xpixmap',
'image/x-xwindowdump',
'text/css',
'text/html',
'text/plain'],
'finishings-default': 3,
'finishings-supported': [3],
'generated-natural-language-supported': ['en'],
'ipp-features-supported': ['subscription-object'],
'ipp-versions-supported': ['1.0',
'1.1',
'2.0',
'2.1'],
'ippget-event-life': 15,
'job-cancel-after-default': 10800,
'job-cancel-after-supported': (0, 2147483647),
'job-creation-attributes-supported': ['copies',
'finishings',
'finishings-col',
'ipp-attribute-fidelity',
'job-hold-until',
'job-name',
'job-priority',
'job-sheets',
'media',
'media-col',
'multiple-document-handling',
'number-up',
'number-up-layout',
'orientation-requested',
'output-bin',
'page-delivery',
'page-ranges',
'print-color-mode',
'print-quality',
'print-scaling',
'printer-resolution',
'sides'],
'job-hold-until-default': 'no-hold',
'job-hold-until-supported': ['no-hold',
'indefinite',
'day-time',
'evening',
'night',
'second-shift',
'third-shift',
'weekend'],
'job-ids-supported': True,
'job-k-limit': 0,
'job-k-octets-supported': (0, 955953548),
'job-page-limit': 0,
'job-priority-default': 50,
'job-priority-supported': [100],
'job-quota-period': 0,
'job-settable-attributes-supported': ['copies',
'finishings',
'job-hold-until',
'job-name',
'job-priority',
'media',
'media-col',
'multiple-document-handling',
'number-up',
'output-bin',
'orientation-requested',
'page-ranges',
'print-color-mode',
'print-quality',
'printer-resolution',
'sides'],
'job-sheets-default': ('none', 'none'),
'job-sheets-supported': ['none',
'classified',
'confidential',
'form',
'secret',
'standard',
'topsecret',
'unclassified'],
'jpeg-k-octets-supported': (0, 955953548),
'jpeg-x-dimension-supported': (0, 65535),
'jpeg-y-dimension-supported': (1, 65535),
'marker-change-time': 0,
'media-bottom-margin-supported': [423],
'media-col-default': '(unknown IPP value tag '
'0x34)',
'media-col-supported': ['media-bottom-margin',
'media-left-margin',
'media-right-margin',
'media-size',
'media-source',
'media-top-margin',
'media-type'],
'media-default': 'iso_a4_210x297mm',
'media-left-margin-supported': [635],
'media-right-margin-supported': [635],
'media-size-supported': ['(unknown IPP value '
'tag 0x34)',
'(unknown IPP value '
'tag 0x34)',
'(unknown IPP value '
'tag 0x34)',
'(unknown IPP value '
'tag 0x34)',
'(unknown IPP value '
'tag 0x34)',
'(unknown IPP value '
'tag 0x34)',
'(unknown IPP value '
'tag 0x34)',
'(unknown IPP value '
'tag 0x34)',
'(unknown IPP value '
'tag 0x34)',
'(unknown IPP value '
'tag 0x34)',
'(unknown IPP value '
'tag 0x34)',
'(unknown IPP value '
'tag 0x34)',
'(unknown IPP value '
'tag 0x34)'],
'media-source-supported': ['auto',
'tray-1',
'tray-2',
'tray-3',
'tray-4',
'manual',
'envelope'],
'media-supported': ['na_letter_8.5x11in',
'na_legal_8.5x14in',
'na_executive_7.25x10.5in',
'na_ledger_11x17in',
'iso_a3_297x420mm',
'iso_a4_210x297mm',
'iso_a5_148x210mm',
'jis_b5_182x257mm',
'iso_b5_176x250mm',
'na_number-10_4.125x9.5in',
'iso_c5_162x229mm',
'iso_dl_110x220mm',
'na_monarch_3.875x7.5in'],
'media-top-margin-supported': [423],
'multiple-document-handling-supported': ['separate-documents-uncollated-copies',
'separate-documents-collated-copies'],
'multiple-document-jobs-supported': True,
'multiple-operation-time-out': 300,
'multiple-operation-time-out-action': 'process-job',
'natural-language-configured': 'en',
'notify-attributes-supported': ['printer-state-change-time',
'notify-lease-expiration-time',
'notify-subscriber-user-name'],
'notify-events-default': ['job-completed'],
'notify-events-supported': ['job-completed',
'job-config-changed',
'job-created',
'job-progress',
'job-state-changed',
'job-stopped',
'printer-added',
'printer-changed',
'printer-config-changed',
'printer-deleted',
'printer-finishings-changed',
'printer-media-changed',
'printer-modified',
'printer-restarted',
'printer-shutdown',
'printer-state-changed',
'printer-stopped',
'server-audit',
'server-restarted',
'server-started',
'server-stopped'],
'notify-lease-duration-default': 86400,
'notify-lease-duration-supported': (0,
2147483647),
'notify-max-events-supported': [100],
'notify-pull-method-supported': ['ippget'],
'notify-schemes-supported': ['mailto', 'rss'],
'number-up-default': 1,
'number-up-layout-supported': ['btlr',
'btrl',
'lrbt',
'lrtb',
'rlbt',
'rltb',
'tblr',
'tbrl'],
'number-up-supported': [1, 2, 4, 6, 9, 16],
'operations-supported': [2,
4,
5,
6,
8,
9,
10,
11,
12,
13,
16,
17,
18,
19,
20,
21,
22,
23,
24,
25,
26,
27,
28,
34,
35,
37,
38,
56,
57,
59,
16385,
16386,
16387,
16388,
16389,
16390,
16391,
16392,
16393,
16394,
16395,
16396,
16397,
16398,
16399,
16423,
14],
'orientation-requested-default': None,
'orientation-requested-supported': [3,
4,
5,
6],
'output-bin-default': 'face-down',
'output-bin-supported': ['face-down'],
'page-delivery-supported': ['reverse-order',
'same-order'],
'page-ranges-supported': True,
'pages-per-minute': 8,
'pdf-k-octets-supported': (0, 955953548),
'pdf-versions-supported': ['adobe-1.2',
'adobe-1.3',
'adobe-1.4',
'adobe-1.5',
'adobe-1.6',
'adobe-1.7',
'iso-19005-1_2005',
'iso-32000-1_2008',
'pwg-5102.3'],
'pdl-override-supported': ['attempted'],
'port-monitor': 'none',
'port-monitor-supported': ['none'],
'print-color-mode-default': 'monochrome',
'print-color-mode-supported': ['monochrome'],
'print-quality-default': 4,
'print-quality-supported': [4],
'print-scaling-supported': ['auto',
'auto-fit',
'fill',
'fit',
'none'],
'printer-commands': 'none',
'printer-config-change-date-time': '(IPP_TAG_DATE)',
'printer-config-change-time': 1632337775,
'printer-current-time': '(IPP_TAG_DATE)',
'printer-device-id': 'CMD:PCL;',
'printer-dns-sd-name': None,
'printer-error-policy': 'stop-printer',
'printer-error-policy-supported': ['abort-job',
'retry-current-job',
'retry-job',
'stop-printer'],
'printer-geo-location': '(unknown IPP value '
'tag 0x12)',
'printer-get-attributes-supported': ['document-format'],
'printer-icons': 'http://localhost:631/icons/Brother-HL-5350DN-series.png',
'printer-id': 1,
'printer-info': 'Brother HL-5350DN series',
'printer-is-accepting-jobs': True,
'printer-is-shared': True,
'printer-is-temporary': False,
'printer-location': '',
'printer-make-and-model': 'Generic PCL Laser '
'Printer',
'printer-more-info': 'http://localhost:631/printers/Brother-HL-5350DN-series',
'printer-name': 'Brother-HL-5350DN-series',
'printer-op-policy': 'default',
'printer-op-policy-supported': ['default'],
'printer-organization': '',
'printer-organizational-unit': '',
'printer-resolution-default': (300, 300, 3),
'printer-resolution-supported': [(300, 300, 3),
(600,
600,
3)],
'printer-settable-attributes-supported': ['printer-geo-location',
'printer-info',
'printer-location',
'printer-organization',
'printer-organizational-unit'],
'printer-state': 4,
'printer-state-change-date-time': '(IPP_TAG_DATE)',
'printer-state-change-time': 1632392975,
'printer-state-message': 'Unable to locate '
'printer '
'"BRN001BA9239259.local".',
'printer-state-reasons': ['connecting-to-device'],
'printer-strings-uri': 'http://localhost:631/strings/Brother-HL-5350DN-series.strings',
'printer-type': 143444,
'printer-up-time': 1632393101,
'printer-uri-supported': ['ipp://localhost:631/printers/Brother-HL-5350DN-series'],
'printer-uuid': 'urn:uuid:7ea0baad-6757-3d33-7bed-aff7b6daa5bd',
'pwg-raster-document-resolution-supported': [(300,
300,
3)],
'pwg-raster-document-sheet-back': 'normal',
'pwg-raster-document-type-supported': ['black_1',
'sgray_8'],
'queued-job-count': 1,
'server-is-sharing-printers': False,
'sides-default': 'one-sided',
'sides-supported': ['one-sided',
'two-sided-long-edge',
'two-sided-short-edge'],
'uri-authentication-supported': ['requesting-user-name'],
'uri-security-supported': ['none'],
'which-jobs-supported': ['completed',
'not-completed',
'aborted',
'all',
'canceled',
'pending',
'pending-held',
'processing',
'processing-stopped']}}
Page 5 (<troubleshoot.CheckPPDSanity.CheckPPDSanity object at 0x7fcf3010c250>):
{'cups_printer_ppd_defaults': {'General': {'Duplex': 'None',
'InputSlot': 'Default',
'PageRegion': 'A4',
'PageSize': 'A4',
'Resolution': '300dpi'},
'InstallableOptions': {'Option1': 'True'}},
'cups_printer_ppd_valid': True,
'missing_pkgs_and_exes': ([], [])}
Page 6 (<troubleshoot.LocalOrRemote.LocalOrRemote object at 0x7fcf3010c940>):
{'printer_is_remote': False}
Page 7 (<troubleshoot.DeviceListed.DeviceListed object at 0x7fcf3010cf70>):
{'cups_device_dict': {'device-class': 'network',
'device-id': 'MFG:Brother;MDL:HL-5350DN series;CMD:PCL;',
'device-info': 'Brother HL-5350DN series',
'device-make-and-model': 'Brother HL-5350DN series'}}
Page 8 (<troubleshoot.PrinterStateReasons.PrinterStateReasons object at 0x7fcf30116f10>):
{'printer-state-message': 'Unable to locate printer "BRN001BA9239259.local".',
'printer-state-reasons': ['connecting-to-device']}
Page 9 (<troubleshoot.ErrorLogCheckpoint.ErrorLogCheckpoint object at 0x7fcf3011ee80>):
{'cups_server_settings': {'BrowseLocalProtocols': 'dnssd',
'DefaultAuthType': 'Basic',
'JobPrivateAccess': 'default',
'JobPrivateValues': 'default',
'PageLogFormat': '',
'SubscriptionPrivateAccess': 'default',
'SubscriptionPrivateValues': 'default',
'WebInterface': 'Yes',
'_debug_logging': '0',
'_remote_admin': '0',
'_remote_any': '0',
'_share_printers': '0',
'_user_cancel_any': '0'},
'error_log_checkpoint': 0}
Page 10 (<troubleshoot.Locale.Locale object at 0x7fcf30122fa0>):
{'printer_page_size': 'A4',
'system_locale_lang': None,
'user_locale_ctype': 'en_AU',
'user_locale_messages': 'en_AU'}
next reply other threads:[~2021-09-23 12:08 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-23 11:30 Peter [this message]
2021-09-23 12:11 ` Guix Printing Problems Tobias Geerinckx-Rice
2021-09-23 18:50 ` Peter
2021-09-23 12:16 ` Efraim Flashner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=A1089AC0-3721-4B73-8280-EDCA902D35EB@tpg.com.au \
--to=stuffbox@tpg.com.au \
--cc=help-guix@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).