列印  |  關閉

HL-5370DW

常見問題&故障排除

常見問題&故障排除

我想在啟用 SELinux 的同時使用 CUPS 進行列印。 (Linux)

  1. 在對原始文件進行任何更改之前備份“/etc/selinux/targeted/contexts/files/file_contexts”文件。
  2. 檢查“/usr/local/Brother/”文件夾以查找其下的文件夾。
    1. 如果您的系統在“/usr/local/Brother”下有“inf”、“lpd”、“cupswrapper”文件夾,請將以下 3 行添加到文件末尾 (/etc/selinux/targeted/contexts/files/file_contexts ).
    2. /usr/local/Brother/inf/.* -- system_u:object_r:cupsd_etc_t:s0
      /usr/local/Brother/lpd/.* -- system_u:object_r:bin_t:s0
      /usr/local/Brother/cupswrapper/.* -- system_u:object_r:bin_t:s0
       
    3. 如果您的系統在“/usr/local/Brother/Printer/[您的打印機名稱]/”下有“inf”、“lpd”、“cupswrapper”文件夾,請在文件末尾添加以下 3 行(/etc/ selinux/targeted/contexts/files/file_contexts)。

      /usr/local/Brother/Printer/(printer name)/inf/.* -- system_u:object_r:cupsd_etc_t:s0
      /usr/local/Brother/Printer/(printer name)/lpd/.* -- system_u:object_r:bin_t:s0
      /usr/local/Brother/Printer/(printer name)/cupswrapper/.* -- system_u:object_r:bin_t:s0

    雙連字符後的部分可能因分佈而異。 請參閱以下內容以確認您的分發的正確聲明。


     

    • 對於“lpd”和“cupswrapper”,該部分應與“file_contexts”中“/usr/lib(64)/cups/deamon/.*”的配置相同。
    • 對於“in”,該部分應與“file_contexts”中“/etc/cups/ppd/.*”的配置相同。
  3. 在以下目錄中運行命令“restorecon *”:
    (對於步驟 3-a。)
    /usr/lib/cups/filter
    /usr/lib64/cups/filter <===這僅對 64 位操作系統用戶是必需的
    /usr/local/Brother/lpd
    /usr/local/Brother/inf
    /usr/local/Brother/cupswrapper

    (對於步驟 3-b。)
    /usr/lib/cups/filter
    /usr/lib64/cups/filter <===這僅對 64 位操作系統用戶是必需的
    /usr/local/Brother/Printer/(printer name)/inf
    /usr/local/Brother/Printer/(printer name)/lpd
    /usr/local/Brother/Printer/(printer name)/cupswrapper
  4. 重啟電腦。
列印  |  關閉