FreeBSD 上的 CUPS:手动放置各个 PPD 文件的合适路径

Gra*_*rin 5 freebsd directory cups ppd trueos

背景

\n\n

我下载了一些适用于 Linux 的 PPD 文件,希望它们能够在 TrueOS\xc2\xa0Desktop 上运行,而 TrueOS\xc2\xa0Desktop 目前基于 FreeBSD\xc2\xa012.0-CURRENT。

\n\n

我知道,通过 CUPS \xe2\x80\x93 的 Web 界面,通常为http://localhost:631/ \xe2\x80\x93,其中有“或提供 PPD 文件:\”,其中包含浏览文件系统,但我更喜欢在选择相关制造商/制造商后列出驱动程序。

\n\n

成功,还有问题

\n\n

我尝试将 PPD 文件放置/usr/local/share/cups/model/otherother我创建的目录

\n\n

成功(下面的示例),但是:

\n\n
    \n
  • 我想知道不同的路径是否更合适
  • \n
\n\n
\n\n

例子

\n\n
[gjp4@momh167-gjp4-hpelitebook850g2-trueos /usr/local/share/cups]% ls -l\ntotal 796\ndrwxr-xr-x  2 root  wheel       9 30 Oct 14:10 banners\n-rw-r--r--  1 root  wheel  331836 28 Oct 02:33 calibrate.ppm\ndrwxr-xr-x  2 root  wheel       5 30 Oct 14:10 charsets\ndrwxr-xr-x  2 root  wheel      15 30 Oct 14:10 data\ndrwxr-xr-x  2 root  wheel       4 30 Oct 14:10 drv\ndrwxr-xr-x  2 root  wheel      13 29 Oct 18:03 examples\ndrwxr-xr-x  2 root  wheel       9 30 Oct 14:10 mime\ndrwxr-xr-x  3 root  wheel       5 30 Oct 14:14 model\ndrwxr-xr-x  2 root  wheel      10 30 Oct 14:10 ppdc\ndrwxr-xr-x  2 root  wheel       2 14 Oct 20:33 profiles\ndrwxr-xr-x  7 root  wheel      77 29 Oct 18:03 templates\ndrwxr-xr-x  2 root  wheel       4 30 Oct 14:10 usb\n[gjp4@momh167-gjp4-hpelitebook850g2-trueos /usr/local/share/cups]% cd model\n[gjp4@momh167-gjp4-hpelitebook850g2-trueos /usr/local/share/cups/model]% ls -l\ntotal 19\n-rw-r--r--  1 root  wheel  20940  5 Oct 22:52 CUPS-PDF.ppd\nlrwxr-xr-x  1 root  wheel     39 24 Oct 23:43 foomatic-db-ppds -> /usr/local/share/foomatic/db/source/PPD\ndrwxr-xr-x  3 root  wheel      3 30 Oct 14:10 gutenprint\n[gjp4@momh167-gjp4-hpelitebook850g2-trueos /usr/local/share/cups/model]% sudo mkdir other\nPassword:\n[gjp4@momh167-gjp4-hpelitebook850g2-trueos /usr/local/share/cups/model]% cd other \n[gjp4@momh167-gjp4-hpelitebook850g2-trueos /usr/local/share/cups/model/other]% sudo cp /usr/home/gjp4/Desktop/BH754ePPDLinux_300000000/English/CUPS1.2/* .\n[gjp4@momh167-gjp4-hpelitebook850g2-trueos /usr/local/share/cups/model/other]% sudo cp /usr/home/gjp4/Desktop/BHP1250PPDLinux_320/English/CUPS1.2/* .\n[gjp4@momh167-gjp4-hpelitebook850g2-trueos /usr/local/share/cups/model/other]% ls -l\ntotal 284\n-rw-r--r--  1 root  wheel   22590 30 Oct 17:39 KO1250opn.ppd\n-rw-r--r--  1 root  wheel  497755 30 Oct 17:39 KO1250UX.ppd\n-rw-r--r--  1 root  wheel   24262 30 Oct 17:39 KO754opn.ppd\n-rw-r--r--  1 root  wheel  199193 30 Oct 17:39 KO754UX.ppd\n[gjp4@momh167-gjp4-hpelitebook850g2-trueos /usr/local/share/cups/model/other]% \n
Run Code Online (Sandbox Code Playgroud)\n\n

选择与我放置在以下位置的四个文件之一相关的驱动程序/usr/local/share/cups/model/other

\n\n

选择驱动程序的屏幕截图

\n\n

使用该驱动程序,打印对话框:

\n\n

打印对话框中所需选项的屏幕截图

\n

Kur*_*fle 1

回答你的问题:你选择的目录是好的。

没有其他目录更合适了