Différences
Ci-dessous, les différences entre deux révisions de la page.
Prochaine révision | Révision précédente | ||
elearning:workbooks:debian:10:junior:l115 [2022/05/17 08:18] – created admin | elearning:workbooks:debian:10:junior:l115 [2024/03/08 08:42] (Version actuelle) – admin | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
~~PDF: | ~~PDF: | ||
- | Version : **2022.01** | + | Version : **2024.01** |
Dernière mise-à-jour : ~~LASTMOD~~ | Dernière mise-à-jour : ~~LASTMOD~~ | ||
- | ======LCF509 | + | ======LDF509 |
=====Contenu du Module===== | =====Contenu du Module===== | ||
- | * **LCF509 | + | * **LDF509 |
* Contenu du Module | * Contenu du Module | ||
* Présentation de Cups | * Présentation de Cups | ||
Ligne 23: | Ligne 23: | ||
* 1.1 - La Commande lpstat | * 1.1 - La Commande lpstat | ||
* 1.2 - La Commande lpadmin | * 1.2 - La Commande lpadmin | ||
- | * 1.3 - Les Commandes | + | * 1.3 - Les Commandes |
* 1.4 - Classe d' | * 1.4 - Classe d' | ||
* 1.5 - Le fichier / | * 1.5 - Le fichier / | ||
Ligne 53: | Ligne 53: | ||
**cupsd** est le daemon principal du système CUPS. Quand cupsd traite une impression, il transmet les données à un **filtre** en fonction du modèle d' | **cupsd** est le daemon principal du système CUPS. Quand cupsd traite une impression, il transmet les données à un **filtre** en fonction du modèle d' | ||
- | |||
- | ====Installation==== | ||
- | |||
- | Afin d' | ||
- | |||
- | < | ||
- | [root@centos8 ~]# dnf install cups -y | ||
- | </ | ||
- | |||
- | Ensuite activez et démarrez le service cups : | ||
- | |||
- | < | ||
- | [root@centos8 ~]# systemctl status cups | ||
- | ● cups.service - CUPS Scheduler | ||
- | | ||
- | | ||
- | Docs: man: | ||
- | [root@centos8 ~]# systemctl enable cups | ||
- | [root@centos8 ~]# systemctl start cups | ||
- | [root@centos8 ~]# systemctl status cups | ||
- | ● cups.service - CUPS Scheduler | ||
- | | ||
- | | ||
- | Docs: man: | ||
- | Main PID: 32727 (cupsd) | ||
- | | ||
- | Tasks: 1 (limit: 23720) | ||
- | | ||
- | | ||
- | | ||
- | |||
- | Jun 03 14:06:35 centos8.ittraining.loc systemd[1]: Starting CUPS Scheduler... | ||
- | Jun 03 14:06:35 centos8.ittraining.loc systemd[1]: Started CUPS Scheduler. | ||
- | </ | ||
====Le Fichier / | ====Le Fichier / | ||
Ligne 100: | Ligne 66: | ||
< | < | ||
- | [root@centos8 | + | root@debian11:~# more / |
- | MaxLogSize 0 | + | |
# | # | ||
# Configuration file for the CUPS scheduler. | # Configuration file for the CUPS scheduler. | ||
Ligne 110: | Ligne 75: | ||
# for troubleshooting... | # for troubleshooting... | ||
LogLevel warn | LogLevel warn | ||
+ | PageLogFormat | ||
+ | # Specifies the maximum size of the log files before they are rotated. | ||
+ | MaxLogSize 0 | ||
+ | |||
+ | # Default error policy for printers | ||
+ | ErrorPolicy retry-job | ||
# Only listen for connections from the local machine. | # Only listen for connections from the local machine. | ||
Listen localhost: | Listen localhost: | ||
- | Listen | + | Listen / |
# Show shared printers on the local network. | # Show shared printers on the local network. | ||
Ligne 128: | Ligne 99: | ||
# Restrict access to the server... | # Restrict access to the server... | ||
< | < | ||
- | Order allow, | + | --More--(12%) |
- | </ | + | |
- | + | ||
- | # Restrict access to the admin pages... | + | |
- | < | + | |
- | Order allow, | + | |
- | </ | + | |
- | + | ||
- | # Restrict access to configuration files... | + | |
- | < | + | |
- | AuthType Default | + | |
- | Require user @SYSTEM | + | |
- | Order allow, | + | |
- | </ | + | |
- | + | ||
- | # Restrict access to log files... | + | |
- | < | + | |
- | AuthType Default | + | |
- | Require user @SYSTEM | + | |
- | Order allow, | + | |
- | </ | + | |
- | + | ||
- | # Set the default printer/job policies... | + | |
- | <Policy default> | + | |
- | # Job/ | + | |
- | JobPrivateAccess default | + | |
- | JobPrivateValues default | + | |
- | SubscriptionPrivateAccess default | + | |
- | SubscriptionPrivateValues default | + | |
- | + | ||
- | # Job-related operations must be done by the owner or an administrator... | + | |
- | <Limit Create-Job Print-Job Print-URI Validate-Job> | + | |
- | Order deny, | + | |
- | </ | + | |
- | + | ||
- | <Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job Cancel-My-Jobs Close-Job CUPS-Move-Job CUPS-Get-Document> | + | |
- | Require user @OWNER @SYSTEM | + | |
- | Order deny, | + | |
- | </ | + | |
- | + | ||
- | # All administration operations require an administrator to authenticate... | + | |
- | <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default CUPS-Get-Devices> | + | |
- | AuthType Default | + | |
- | Require user @SYSTEM | + | |
- | Order deny, | + | |
- | </ | + | |
- | + | ||
- | # All printer operations require a printer operator to authenticate... | + | |
- | <Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After Cancel-Jobs CUPS-Accept-Jobs CUPS-Reject-Jobs> | + | |
- | AuthType Default | + | |
- | Require user @SYSTEM | + | |
- | Order deny, | + | |
- | </ | + | |
- | + | ||
- | # Only the owner or an administrator can cancel or authenticate a job... | + | |
- | <Limit Cancel-Job CUPS-Authenticate-Job> | + | |
- | Require user @OWNER @SYSTEM | + | |
- | Order deny, | + | |
- | </ | + | |
- | + | ||
- | <Limit All> | + | |
- | Order deny, | + | |
- | </ | + | |
- | </ | + | |
- | + | ||
- | # Set the authenticated printer/job policies... | + | |
- | <Policy authenticated> | + | |
- | # Job/ | + | |
- | JobPrivateAccess default | + | |
- | JobPrivateValues default | + | |
- | SubscriptionPrivateAccess default | + | |
- | SubscriptionPrivateValues default | + | |
- | + | ||
- | # Job-related operations must be done by the owner or an administrator... | + | |
- | <Limit Create-Job Print-Job Print-URI Validate-Job> | + | |
- | AuthType Default | + | |
- | Order deny, | + | |
- | </ | + | |
- | + | ||
- | <Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job Cancel-My-Jobs Close-Job CUPS-Move-Job CUPS-Get-Document> | + | |
- | AuthType Default | + | |
- | Require user @OWNER @SYSTEM | + | |
- | Order deny, | + | |
- | </ | + | |
- | + | ||
- | # All administration operations require an administrator to authenticate... | + | |
- | <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default> | + | |
- | AuthType Default | + | |
- | Require user @SYSTEM | + | |
- | Order deny, | + | |
- | </ | + | |
- | + | ||
- | # All printer operations require a printer operator to authenticate... | + | |
- | <Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After Cancel-Jobs CUPS-Accept-Jobs CUPS-Reject-Jobs> | + | |
- | AuthType Default | + | |
- | Require user @SYSTEM | + | |
- | Order deny, | + | |
- | </ | + | |
- | + | ||
- | # Only the owner or an administrator can cancel or authenticate a job... | + | |
- | <Limit Cancel-Job CUPS-Authenticate-Job> | + | |
- | AuthType Default | + | |
- | Require user @OWNER @SYSTEM | + | |
- | Order deny, | + | |
- | </ | + | |
- | + | ||
- | <Limit All> | + | |
- | Order deny, | + | |
- | </ | + | |
- | </ | + | |
- | + | ||
- | # Set the kerberized printer/job policies... | + | |
- | <Policy kerberos> | + | |
- | # Job/ | + | |
- | JobPrivateAccess default | + | |
- | JobPrivateValues default | + | |
- | SubscriptionPrivateAccess default | + | |
- | SubscriptionPrivateValues default | + | |
- | + | ||
- | # Job-related operations must be done by the owner or an administrator... | + | |
- | <Limit Create-Job Print-Job Print-URI Validate-Job> | + | |
- | AuthType Negotiate | + | |
- | Order deny, | + | |
- | </ | + | |
- | + | ||
- | <Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job Cancel-My-Jobs Close-Job CUPS-Move-Job CUPS-Get-Document> | + | |
- | AuthType Negotiate | + | |
- | Require user @OWNER @SYSTEM | + | |
- | Order deny, | + | |
- | </ | + | |
- | + | ||
- | # All administration operations require an administrator to authenticate... | + | |
- | <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default> | + | |
- | AuthType Default | + | |
- | Require user @SYSTEM | + | |
- | Order deny, | + | |
- | </ | + | |
- | + | ||
- | # All printer operations require a printer operator to authenticate... | + | |
- | <Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After Cancel-Jobs CUPS-Accept-Jobs CUPS-Reject-Jobs> | + | |
- | AuthType Default | + | |
- | Require user @SYSTEM | + | |
- | Order deny, | + | |
- | </ | + | |
- | + | ||
- | # Only the owner or an administrator can cancel or authenticate a job... | + | |
- | <Limit Cancel-Job CUPS-Authenticate-Job> | + | |
- | AuthType Negotiate | + | |
- | Require user @OWNER @SYSTEM | + | |
- | Order deny, | + | |
- | </ | + | |
- | + | ||
- | <Limit All> | + | |
- | Order deny, | + | |
- | </ | + | |
- | </ | + | |
</ | </ | ||
Ligne 291: | Ligne 107: | ||
< | < | ||
- | [root@centos8 | + | root@debian11:~# ls / |
- | bannertopdf | + | bannertopdf |
- | brftoembosser | + | brftoembosser |
- | brftopagedbrf | + | brftopagedbrf |
- | cgmtopdf | + | cgmtopdf |
- | cmxtopdf | + | cmxtopdf |
- | commandtoescpx | + | commandtoescpx |
</ | </ | ||
Ligne 305: | Ligne 121: | ||
< | < | ||
- | [root@centos8 | + | root@debian11:~# ls / |
- | beh cups-brf | + | beh cups-brf |
</ | </ | ||
Ligne 312: | Ligne 128: | ||
< | < | ||
- | [root@centos8 | + | root@debian11:~# lpinfo -v |
+ | file cups-brf:/ | ||
+ | network beh | ||
+ | network ipps | ||
network http | network http | ||
+ | network socket | ||
+ | network lpd | ||
network https | network https | ||
network ipp | network ipp | ||
- | network ipps | ||
- | network lpd | ||
- | network socket | ||
- | network beh | ||
</ | </ | ||
Ligne 336: | Ligne 153: | ||
< | < | ||
- | [root@centos8 | + | root@debian11:~# ls -l / |
- | total 12 | + | total 36 |
- | -rw-------. 1 root lp 166 Jun | + | -rw-r----- 1 root adm 415 Jun 6 09:58 access_log |
- | -rw-------. 1 root lp 166 Jun 3 14:02 error_log | + | -rw-r----- 1 root adm 649 Jun |
- | -rw-------. 1 root lp 166 Jun | + | -rw-r----- 1 root adm 201 Jun 5 00:00 access_log.2.gz |
+ | -rw-r----- 1 root adm 201 Jun 4 00:00 access_log.3.gz | ||
+ | -rw-r----- | ||
+ | -rw-r----- 1 root adm 200 Jun 2 00:00 access_log.5.gz | ||
+ | -rw-r----- 1 root adm 205 Jun 1 00:00 access_log.6.gz | ||
+ | -rw-r----- | ||
+ | -rw-r----- 1 root adm 172 Jun | ||
</ | </ | ||
Ligne 348: | Ligne 171: | ||
< | < | ||
- | [root@centos8 | + | root@debian11:~# lpinfo -m | more |
- | lsb/ | + | drv:/// |
- | drv:/// | + | |
drv:/// | drv:/// | ||
drv:/// | drv:/// | ||
+ | lsb/ | ||
drv:/// | drv:/// | ||
drv:/// | drv:/// | ||
Ligne 380: | Ligne 203: | ||
drv:/// | drv:/// | ||
drv:/// | drv:/// | ||
+ | drv:/// | ||
--More-- | --More-- | ||
</ | </ | ||
Ligne 404: | Ligne 228: | ||
< | < | ||
- | [root@centos8 | + | root@debian11:~# lpstat -t |
scheduler is running | scheduler is running | ||
no system default destination | no system default destination | ||
Ligne 418: | Ligne 242: | ||
< | < | ||
- | [root@centos8 | + | root@debian11:~# lpadmin -p imp1 -v socket:// |
+ | lpadmin: Raw queues are deprecated and will stop working in a future version of CUPS. | ||
</ | </ | ||
Ligne 443: | Ligne 268: | ||
< | < | ||
- | [root@centos8 | + | root@debian11:~# lpstat -t |
scheduler is running | scheduler is running | ||
no system default destination | no system default destination | ||
device for imp1: socket:// | device for imp1: socket:// | ||
- | imp1 not accepting requests since Thu 03 Jun 2021 02:10:02 PM EDT - | + | imp1 not accepting requests since Mon 06 Jun 2022 10:01:43 AM CEST - |
- | reason unknown | + | reason unknown |
- | printer imp1 disabled since Thu 03 Jun 2021 02:10:02 PM EDT - | + | printer imp1 disabled since Mon 06 Jun 2022 10:01:43 AM CEST - |
- | reason unknown | + | reason unknown |
</ | </ | ||
Ligne 458: | Ligne 283: | ||
< | < | ||
- | [root@centos8 | + | root@debian11:~# cupsaccept |
- | [root@centos8 | + | |
+ | root@debian11:~# lpstat -t | ||
scheduler is running | scheduler is running | ||
no system default destination | no system default destination | ||
device for imp1: socket:// | device for imp1: socket:// | ||
- | imp1 accepting requests since Thu 03 Jun 2021 02:10:02 PM EDT | + | imp1 accepting requests since Mon 06 Jun 2022 10:01:43 AM CEST |
- | printer imp1 disabled since Thu 03 Jun 2021 02:10:02 PM EDT - | + | printer imp1 disabled since Mon 06 Jun 2022 10:01:43 AM CEST - |
- | reason unknown | + | reason unknown |
- | [root@centos8 | + | |
- | [root@centos8 | + | root@debian11:~# cupsenable imp1 |
+ | |||
+ | root@debian11:~# lpstat -t | ||
scheduler is running | scheduler is running | ||
no system default destination | no system default destination | ||
device for imp1: socket:// | device for imp1: socket:// | ||
- | imp1 accepting requests since Thu 03 Jun 2021 02:11:17 PM EDT | + | imp1 accepting requests since Mon 06 Jun 2022 10:03:48 AM CEST |
- | printer imp1 is idle. enabled since Thu 03 Jun 2021 02:11:17 PM EDT | + | printer imp1 is idle. enabled since Mon 06 Jun 2022 10:03:48 AM CEST |
</ | </ | ||
<WRAP center round important> | <WRAP center round important> | ||
- | **Important** : Notez que les deux commandes **accept** et **cupsenable** ont leurs opposées : **reject** et **cupsdisable**. | + | **Important** : Notez que les deux commandes **cupsaccept** et **cupsenable** ont leurs opposées : **cupsreject** et **cupsdisable**. |
</ | </ | ||
Ligne 482: | Ligne 310: | ||
< | < | ||
- | [root@centos8 | + | root@debian11:~# lpadmin -d imp1 |
- | [root@centos8 | + | |
+ | root@debian11:~# lpstat -t | ||
scheduler is running | scheduler is running | ||
system default destination: | system default destination: | ||
device for imp1: socket:// | device for imp1: socket:// | ||
- | imp1 accepting requests since Thu 03 Jun 2021 02:11:17 PM EDT | + | imp1 accepting requests since Mon 06 Jun 2022 10:03:48 AM CEST |
- | printer imp1 is idle. enabled since Thu 03 Jun 2021 02:11:17 PM EDT | + | printer imp1 is idle. enabled since Mon 06 Jun 2022 10:03:48 AM CEST |
</ | </ | ||
Vous allez maintenant créer une file d' | Vous allez maintenant créer une file d' | ||
- | Sous RHEL/ | + | Sous Debian 11, pour créer |
< | < | ||
- | [root@centos8 | + | root@debian11:~# mknod /dev/lp0 c 6 0 |
- | crw-rw----. 1 root lp 6, 0 Jun | + | |
+ | root@debian11: | ||
+ | crw-r--r-- 1 root root 6, 0 Jun 6 10:22 /dev/lp0 | ||
+ | |||
+ | root@debian11: | ||
+ | |||
+ | root@debian11: | ||
+ | |||
+ | root@debian11: | ||
+ | crw-rw---- 1 root lp 6, 0 Jun | ||
</ | </ | ||
- | Créez | + | Créez |
< | < | ||
- | [root@centos8 | + | root@debian11:~# lpadmin -p Imprimante1 -E -v parallel:/ |
- | [root@centos8 | + | lpadmin: Printer drivers are deprecated and will stop working in a future version of CUPS. |
+ | |||
+ | root@debian11:~# lpstat -t | ||
scheduler is running | scheduler is running | ||
system default destination: | system default destination: | ||
device for imp1: socket:// | device for imp1: socket:// | ||
device for Imprimante1: | device for Imprimante1: | ||
- | imp1 accepting requests since Thu 03 Jun 2021 02:11:17 PM EDT | + | imp1 accepting requests since Mon 06 Jun 2022 10:03:48 AM CEST |
- | Imprimante1 accepting requests since Thu 03 Jun 2021 02:17:25 PM EDT | + | Imprimante1 accepting requests since Mon 06 Jun 2022 10:37:26 AM CEST |
- | printer imp1 is idle. enabled since Thu 03 Jun 2021 02:11:17 PM EDT | + | printer imp1 is idle. enabled since Mon 06 Jun 2022 10:03:48 AM CEST |
- | printer Imprimante1 is idle. enabled since Thu 03 Jun 2021 02:17:25 PM EDT | + | printer Imprimante1 is idle. enabled since Mon 06 Jun 2022 10:37:26 AM CEST |
</ | </ | ||
<WRAP center round important> | <WRAP center round important> | ||
- | **Important** : Notez que l' | + | **Important** : Notez que l' |
</ | </ | ||
Ligne 522: | Ligne 362: | ||
< | < | ||
- | [root@centos8 | + | root@debian11:~# echo "Test Printer File" > / |
- | [root@centos8 | + | |
- | [root@centos8 | + | root@debian11:~# lpadmin -d Imprimante1 |
+ | |||
+ | root@debian11:~# lpstat -t | ||
scheduler is running | scheduler is running | ||
system default destination: | system default destination: | ||
device for imp1: socket:// | device for imp1: socket:// | ||
device for Imprimante1: | device for Imprimante1: | ||
- | imp1 accepting requests since Thu 03 Jun 2021 02:11:17 PM EDT | + | imp1 accepting requests since Mon 06 Jun 2022 10:03:48 AM CEST |
- | Imprimante1 accepting requests since Thu 03 Jun 2021 02:17:25 PM EDT | + | Imprimante1 accepting requests since Mon 06 Jun 2022 10:37:26 AM CEST |
- | printer imp1 is idle. enabled since Thu 03 Jun 2021 02:11:17 PM EDT | + | printer imp1 is idle. enabled since Mon 06 Jun 2022 10:03:48 AM CEST |
- | printer Imprimante1 is idle. enabled since Thu 03 Jun 2021 02:17:25 PM EDT | + | printer Imprimante1 is idle. enabled since Mon 06 Jun 2022 10:37:26 AM CEST |
- | [root@centos8 | + | root@debian11:~# lp / |
request id is Imprimante1-1 (1 file(s)) | request id is Imprimante1-1 (1 file(s)) | ||
</ | </ | ||
Ligne 545: | Ligne 387: | ||
< | < | ||
- | [root@centos8 | + | root@debian11:~# lpadmin -p Imprimante2 -E -v parallel:/ |
+ | lpadmin: Printer drivers are deprecated and will stop working in a future version of CUPS. | ||
+ | |||
+ | root@debian11: | ||
scheduler is running | scheduler is running | ||
system default destination: | system default destination: | ||
Ligne 551: | Ligne 396: | ||
device for Imprimante1: | device for Imprimante1: | ||
device for Imprimante2: | device for Imprimante2: | ||
- | imp1 accepting requests since Thu 03 Jun 2021 02:11:17 PM EDT | + | imp1 accepting requests since Mon 06 Jun 2022 10:03:48 AM CEST |
- | Imprimante1 accepting requests since Thu 03 Jun 2021 02:23:03 PM EDT | + | Imprimante1 accepting requests since Mon 06 Jun 2022 10:39:32 AM CEST |
- | Imprimante2 accepting requests since Thu 03 Jun 2021 02:23:46 PM EDT | + | Imprimante2 accepting requests since Mon 06 Jun 2022 10:41:06 AM CEST |
- | printer imp1 is idle. enabled since Thu 03 Jun 2021 02:11:17 PM EDT | + | printer imp1 is idle. enabled since Mon 06 Jun 2022 10:03:48 AM CEST |
- | printer Imprimante1 now printing Imprimante1-1. | + | printer Imprimante1 now printing Imprimante1-1. |
- | Printer not connected; will retry in 30 seconds. | + | Printer not connected; will retry in 30 seconds. |
- | printer Imprimante2 is idle. enabled since Thu 03 Jun 2021 02:23:46 PM EDT | + | printer Imprimante2 is idle. enabled since Mon 06 Jun 2022 10:41:06 AM CEST |
- | Imprimante1-1 | + | Imprimante1-1 |
</ | </ | ||
Ligne 568: | Ligne 413: | ||
< | < | ||
- | [root@centos8 | + | root@debian11:~# lpadmin -p Imprimante1 -c classe1 |
- | [root@centos8 | + | root@debian11:~# lpadmin -p Imprimante2 -c classe1 |
</ | </ | ||
Ligne 575: | Ligne 420: | ||
< | < | ||
- | [root@centos8 | + | root@debian11:~# lpstat -t |
scheduler is running | scheduler is running | ||
system default destination: | system default destination: | ||
members of class classe1: | members of class classe1: | ||
- | Imprimante1 | + | |
- | Imprimante2 | + | Imprimante2 |
device for classe1: ///dev/null | device for classe1: ///dev/null | ||
device for imp1: socket:// | device for imp1: socket:// | ||
device for Imprimante1: | device for Imprimante1: | ||
device for Imprimante2: | device for Imprimante2: | ||
- | classe1 not accepting requests since Thu 03 Jun 2021 02:24:25 PM EDT - | + | classe1 not accepting requests since Mon 06 Jun 2022 10:43:24 AM CEST - |
- | reason unknown | + | reason unknown |
- | imp1 accepting requests since Thu 03 Jun 2021 02:11:17 PM EDT | + | imp1 accepting requests since Mon 06 Jun 2022 10:03:48 AM CEST |
- | Imprimante1 accepting requests since Thu 03 Jun 2021 02:23:03 PM EDT | + | Imprimante1 accepting requests since Mon 06 Jun 2022 10:39:32 AM CEST |
- | Imprimante2 accepting requests since Thu 03 Jun 2021 02:23:46 PM EDT | + | Imprimante2 accepting requests since Mon 06 Jun 2022 10:41:06 AM CEST |
- | printer classe1 disabled since Thu 03 Jun 2021 02:24:25 PM EDT - | + | printer classe1 disabled since Mon 06 Jun 2022 10:43:24 AM CEST - |
- | reason unknown | + | reason unknown |
- | printer imp1 is idle. enabled since Thu 03 Jun 2021 02:11:17 PM EDT | + | printer imp1 is idle. enabled since Mon 06 Jun 2022 10:03:48 AM CEST |
- | printer Imprimante1 now printing Imprimante1-1. | + | printer Imprimante1 now printing Imprimante1-1. |
- | Printer not connected; will retry in 30 seconds. | + | Printer not connected; will retry in 30 seconds. |
- | printer Imprimante2 is idle. enabled since Thu 03 Jun 2021 02:23:46 PM EDT | + | printer Imprimante2 is idle. enabled since Mon 06 Jun 2022 10:41:06 AM CEST |
- | Imprimante1-1 | + | Imprimante1-1 |
</ | </ | ||
Ligne 604: | Ligne 449: | ||
< | < | ||
- | [root@centos8 | + | root@debian11:~# cat / |
- | # Printer configuration file for CUPS v2.2.6 | + | # Printer configuration file for CUPS v2.3.3op2 |
- | # Written by cupsd on 2021-06-03 14:24 | + | # Written by cupsd |
# DO NOT EDIT THIS FILE WHEN CUPSD IS RUNNING | # DO NOT EDIT THIS FILE WHEN CUPSD IS RUNNING | ||
+ | NextPrinterId 9 | ||
<Printer imp1> | <Printer imp1> | ||
- | UUID urn:uuid:2af2862a-9a4d-3095-59d5-ca108d8d9837 | + | PrinterId 1 |
+ | UUID urn:uuid:8322102e-e029-325b-42eb-ed63c7904196 | ||
Info imp1 | Info imp1 | ||
DeviceURI socket:// | DeviceURI socket:// | ||
State Idle | State Idle | ||
- | StateTime | + | StateTime |
- | ConfigTime | + | ConfigTime |
Type 4 | Type 4 | ||
Accepting Yes | Accepting Yes | ||
Ligne 623: | Ligne 470: | ||
KLimit 0 | KLimit 0 | ||
OpPolicy default | OpPolicy default | ||
- | ErrorPolicy | + | ErrorPolicy |
</ | </ | ||
< | < | ||
- | UUID urn:uuid:ea6f22ce-ee8f-3447-4e09-f8659ccfe929 | + | PrinterId 7 |
+ | UUID urn:uuid:ba7e38f7-0547-387e-6189-7bb341799a36 | ||
Info Imprimante1 | Info Imprimante1 | ||
MakeModel HP Color LaserJet Series PCL 6 CUPS | MakeModel HP Color LaserJet Series PCL 6 CUPS | ||
DeviceURI parallel:/ | DeviceURI parallel:/ | ||
State Idle | State Idle | ||
- | StateTime | + | StateTime |
- | ConfigTime | + | ConfigTime |
Type 8400972 | Type 8400972 | ||
Accepting Yes | Accepting Yes | ||
Ligne 641: | Ligne 489: | ||
KLimit 0 | KLimit 0 | ||
OpPolicy default | OpPolicy default | ||
- | ErrorPolicy | + | ErrorPolicy |
</ | </ | ||
<Printer Imprimante2> | <Printer Imprimante2> | ||
- | UUID urn:uuid:1f7e7401-6bc4-306a-50ef-b07f2c78bf65 | + | PrinterId 8 |
+ | UUID urn:uuid:751df4ab-afb6-3fce-4a26-80d0f2d131bd | ||
Info Imprimante2 | Info Imprimante2 | ||
MakeModel HP Color LaserJet Series PCL 6 CUPS | MakeModel HP Color LaserJet Series PCL 6 CUPS | ||
DeviceURI parallel:/ | DeviceURI parallel:/ | ||
State Idle | State Idle | ||
- | StateTime | + | StateTime |
- | ConfigTime | + | ConfigTime |
Type 8400972 | Type 8400972 | ||
Accepting Yes | Accepting Yes | ||
Ligne 659: | Ligne 508: | ||
KLimit 0 | KLimit 0 | ||
OpPolicy default | OpPolicy default | ||
- | ErrorPolicy | + | ErrorPolicy |
</ | </ | ||
</ | </ | ||
Ligne 668: | Ligne 517: | ||
< | < | ||
- | [root@centos8 | + | root@debian11:~# cat / |
- | # Class configuration file for CUPS v2.2.6 | + | # Class configuration file for CUPS v2.3.3op2 |
- | # Written by cupsd on 2021-06-03 14:24 | + | # Written by cupsd |
# DO NOT EDIT THIS FILE WHEN CUPSD IS RUNNING | # DO NOT EDIT THIS FILE WHEN CUPSD IS RUNNING | ||
<Class classe1> | <Class classe1> | ||
- | UUID urn:uuid:989a4f91-8d00-30f1-7322-63fbacfefb7f | + | PrinterId 9 |
+ | UUID urn:uuid:f0d54c11-d472-380d-70ba-1da156d82965 | ||
Info classe1 | Info classe1 | ||
State Stopped | State Stopped | ||
- | StateTime | + | StateTime |
Accepting No | Accepting No | ||
Shared Yes | Shared Yes | ||
Ligne 695: | Ligne 545: | ||
< | < | ||
- | [root@centos8 | + | root@debian11:~# lpstat |
- | Imprimante1-1 | + | Imprimante1-1 |
- | [root@centos8 | + | |
- | [root@centos8 | + | root@debian11:~# cancel |
- | [root@centos8 | + | |
+ | root@debian11:~# lpstat | ||
+ | root@debian11:~# | ||
</ | </ | ||
Ligne 709: | Ligne 561: | ||
< | < | ||
- | [root@centos8 | + | root@debian11:~# lpadmin -d imp1 |
</ | </ | ||
Ligne 715: | Ligne 567: | ||
< | < | ||
- | [root@centos8 | + | root@debian11:~# lp / |
request id is imp1-2 (1 file(s)) | request id is imp1-2 (1 file(s)) | ||
- | [root@centos8 | + | root@debian11:~# lpstat |
- | imp1-2 | + | imp1-2 |
</ | </ | ||
Ligne 724: | Ligne 576: | ||
< | < | ||
- | [root@centos8 | + | root@debian11:~# lpmove imp1 classe1 |
- | [root@centos8 | + | root@debian11:~# lpstat |
- | classe1-2 | + | classe1-2 |
</ | </ | ||
Ligne 732: | Ligne 584: | ||
< | < | ||
- | [root@centos8 | + | root@debian11:~# lpadmin -p Imprimante1 -r classe1 |
- | [root@centos8 | + | |
- | [root@centos8 | + | root@debian11:~# lpadmin -p Imprimante2 -r classe1 |
+ | |||
+ | root@debian11:~# lpstat -t | ||
scheduler is running | scheduler is running | ||
system default destination: | system default destination: | ||
Ligne 740: | Ligne 594: | ||
device for Imprimante1: | device for Imprimante1: | ||
device for Imprimante2: | device for Imprimante2: | ||
- | imp1 accepting requests since Thu 03 Jun 2021 02:30:23 PM EDT | + | imp1 accepting requests since Mon 06 Jun 2022 10:50:11 AM CEST |
- | Imprimante1 accepting requests since Thu 03 Jun 2021 02:28:33 PM EDT | + | Imprimante1 accepting requests since Mon 06 Jun 2022 10:46:34 AM CEST |
- | Imprimante2 accepting requests since Thu 03 Jun 2021 02:23:46 PM EDT | + | Imprimante2 accepting requests since Mon 06 Jun 2022 10:41:06 AM CEST |
- | printer imp1 is idle. enabled since Thu 03 Jun 2021 02:30:23 PM EDT | + | printer imp1 is idle. enabled since Mon 06 Jun 2022 10:50:11 AM CEST |
- | printer Imprimante1 is idle. enabled since Thu 03 Jun 2021 02:28:33 PM EDT | + | printer Imprimante1 is idle. enabled since Mon 06 Jun 2022 10:46:34 AM CEST |
- | printer Imprimante2 is idle. enabled since Thu 03 Jun 2021 02:23:46 PM EDT | + | printer Imprimante2 is idle. enabled since Mon 06 Jun 2022 10:41:06 AM CEST |
</ | </ | ||
Ligne 755: | Ligne 609: | ||
< | < | ||
- | [root@centos8 | + | root@debian11:~# lpadmin -x Imprimante1 |
- | [root@centos8 | + | |
- | [root@centos8 | + | root@debian11:~# lpadmin -x Imprimante2 |
- | [root@centos8 | + | |
+ | root@debian11:~# lpadmin -x Imp1 | ||
+ | |||
+ | root@debian11:~# lpstat -t | ||
scheduler is running | scheduler is running | ||
no system default destination | no system default destination | ||
Ligne 770: | Ligne 627: | ||
CUPS peut également être administré en utilisant l' | CUPS peut également être administré en utilisant l' | ||
- | </ | ||
----- | ----- | ||
- | Copyright © 2022 Hugh Norris. | + | |
+ | Copyright © 2024 Hugh Norris. |