HL-L2320D
常見問題&故障排除 |
我想在啟用 SELinux 的同時使用 CUPS 進行列印。 (Linux)
- 在對原始文件進行任何更改之前備份“/etc/selinux/targeted/contexts/files/file_contexts”文件。
- 檢查“/usr/local/Brother/”文件夾以查找其下的文件夾。
-
- 如果您的系統在“/usr/local/Brother”下有“inf”、“lpd”、“cupswrapper”文件夾,請將以下 3 行添加到文件末尾 (/etc/selinux/targeted/contexts/files/file_contexts ).
-
/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
-
如果您的系統在“/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/.*”的配置相同。
-
在以下目錄中運行命令“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 - 重啟電腦。
相關的產品
ADS-1100W, ADS-1600W, ADS-2000, ADS-2100, ADS-2600W, DCP-1510, DCP-1610W, DCP-195C, DCP-375CW, DCP-7030, DCP-7040, DCP-7060D, DCP-8060, DCP-8065DN, DCP-8070D, DCP-8085DN, DCP-J100, DCP-J105, DCP-J152W, DCP-L2540DW, DCP-T220, DCP-T300, DCP-T310, DCP-T420W, DCP-T426W, DCP-T500W, DCP-T510W, DCP-T520W, DCP-T700W, DCP-T710W, DCP-T820DW, DS-620, DS-720D, FAX-2820, FAX-2840, HL-1110, HL-1210W, HL-2040, HL-2140, HL-2170W, HL-2220, HL-2240D, HL-3040CN, HL-3170CDW, HL-4040CDN, HL-5240, HL-5250DN, HL-5340D, HL-5350DN, HL-5370DW, HL-5440D, HL-5450DN, HL-5470DW, HL-L2320D, HL-L2360DN, HL-L2365DW, HL-L2375DW, HL-L3270CDW, HL-L5100DN, HL-L6400DW, HL-L8350CDW, HL-L8360CDW, HL-T4000DW, MFC-1815, MFC-1910W, MFC-210C, MFC-255CW, MFC-290C, MFC-3360C, MFC-4800, MFC-490CW, MFC-6490CW, MFC-7220, MFC-7290, MFC-7340, MFC-7360, MFC-7420, MFC-7440N, MFC-7460DN, MFC-7820N, MFC-7860DW, MFC-790CW, MFC-795CW, MFC-8370DN, MFC-8380DN, MFC-8440, MFC-8460N, MFC-8480DN, MFC-8510DN, MFC-8840DN, MFC-8860DN, MFC-8880DN, MFC-8890DW, MFC-8910DW, MFC-9010CN, MFC-9120CN, MFC-9330CDW, MFC-9440CN, MFC-9840CDW, MFC-J200, MFC-J2310, MFC-J2320, MFC-J2720, MFC-J3520, MFC-J3720, MFC-J3930DW, MFC-J410, MFC-J415W, MFC-J430W, MFC-J4340DW(XL), MFC-J4540DW(XL), MFC-J5910DW, MFC-J625DW, MFC-J6710DW, MFC-J6910DW, MFC-J825DW, MFC-L2700D, MFC-L2700DW, MFC-L2715DW, MFC-L2740DW, MFC-L2750DW, MFC-L2770DW, MFC-L3750CDW, MFC-L5700DN, MFC-L6900DW, MFC-L8600CDW, MFC-L8850CDW, MFC-L8900CDW, MFC-L9550CDW, MFC-T4500DW, MFC-T800W, MFC-T810W, MFC-T910DW, MFC-T920DW