Re: [Printing-architecture] [IPP] Changing defaults of a driverless printer (physical device) via CLI
Michael Sweet <[email protected]>
| Newsgroups | dev.linux.lists.printing-architecture |
|---|---|
| Message-ID | <[email protected]> |
Zdenek, > On Aug 22, 2022, at 1:08 AM, Zdenek Dohnal via ipp <[email protected]> wrote: > > Hi all, > > Fedora user brought up an interesting question for me - whether user has some CLI tool for changing default options on the printer itself (which supports one or more of driverless standards - AirPrint, IPP Everywhere etc.), without going to printer's web interface. Yes, IPP allows for this although most printers do not currently support it. Basically, the Set-Printer-Attributes operation is what you would use to set the "xxx-default" attributes (media-default, print-color-mode-default, sides-default, etc.), and you should expect that the printer will require authentication for the operation to succeed. > IMHO it might be possible - printer supports IPP 2.0+, CUPS supports IPP as well and CUPS CLI tools, which work with CUPS, have an option for setting a CUPS server which they want to send the request to. Once the local user has the correct permissions (since IPP backend is run under root, my guess is root has at least some permissions...) it could be possible. Running as root doesn't influence things - all authentication happens at the printer end. > Is my understanding incorrect? Is there a different CLI tool which can do the trick? (maybe ipptool?) To be honest I'm interested how is IPP usually implemented internally in the printer - is there some CUPS version? Or HTTPD (Apache) with proprietary IPP support on the top of that? Or whole HTTP+IPP implementation is written as a new there? Anything goes for printer firmware. There are some using CUPS and/or PAPPL, some using Apache, but most use a custom HTTP+IPP implementation. ________________________ Michael Sweet
signature.asc
(application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEkIbDzcZsP1Y8+PQFvmfHXsgfMkQFAmMDdXAACgkQvmfHXsgf MkSoyg//U4jRvVnsbReMSAQiqCNBdihImsgqMRTc5qEPXaBp2T6b41F/eRAZl0Ny g3gDklJgTHRxAzWN4FTnOaOoJkf7whVeBXxVuA0Ps3z7Enro4UTelY3c5BSVgFKl Ec3mcPKcIP+Uj9BLJpvYH+bdM29z1N/7cD4uT7CPgnnUuq198JySctl4pRHX/aHn IDFZao6HM5b1HYzLqjVw08EqQ69lvpOKtpODfDCF3AbKmwEiBerRuQS6W2hOuSRK /odc6o3KzKWEtyPJxg6ys+XXZA2jkXXYBU2mQBELfdd1+H+jeFQnxD4vmHs3ezXe PD/bbPZ71J64UK4LZM2+JoFVMH9jdbrEzmB6ofg0Y21div5UwpbQDK7OPdkluiv0 Vp5YHsAJ61mDdOjbB/h+8zJEsnSWvsKuuGyRjPU1h8xbgQypS11mJmG0Z65IOIcg 0l5YLILH8BFMBaleWHUvXIn8f+rCsJR86wGhCdEoVQ07LAV7nD75x90rhybhPGAk 2LUgcTndfsNCToNgfeYHIxUbQlm0AyPQlr39Gv2x5lcR6Z8kXiTkWH3ULG81e72r Ttsz6UDTFm3UkC50ZmXJS/IYZ8PDJIn0LlWGqz12/tcDLR2OhO/AzE5Dy96OJX2c mlhOVSM/4WHCgZKcSFaTjIOuQB/o8c2ZMndW13RSmXON7S5RKoM= =phTk -----END PGP SIGNATURE-----