下面是win7和linux下打印机的设置:

下面是win7和linux下打印机的设置:

我的笔记本电脑上同时使用 Linux Mint 和 Windows 7。

我可以在 Windows 7 中完美地使用办公室区域的网络打印机,它似乎使用 LPR 协议并且需要我的 ID 和密码。

当我转到Linux时,问题就来了。我用CUPS设置了网络打印机,但找不到任何地方设置打印服务的ID和密码。事实证明,我可以成功将要打印的文件发送到打印机(CUPS状态中显示),但打印机什么也没做,只是提示错误。

下面是win7和linux下打印机的设置:

Windows 7的:

win7 1

另一个网址:

win7 2

Linux:

Linux 1

我试过了id@"printer address",但似乎无法保存此设置("printer address"按下“应用”后,设备 URI 会恢复。)

以下是@slm 找到的解决方案:

查看这个 ubuntu 问题,bugs.launchpad.net/ubuntu/+bug/124442,转到 #8 评论,他展示了一种向 lpd 提供我认为你需要的信息的方法。 – slm 1 小时前

答案1

你能从终端运行该应用程序system-config-printer吗?如果可以,它将像这样出现:

           打印对话框

点击添加按钮会弹出此对话框。笔记”您很可能会至少被提示输入 root 密码一次或两次。

       新的打印机对话框

选择通过 SAMBA 的 Windows 打印机

      新的 samba 打印机对话框

编辑#1

与@Lagrange讨论后,确定他有以下富士施乐打印机“FX DocuCentre-II C7500 PS”。在Ubuntu问题跟踪器上找到了以下页面。

富士施乐 CUPS 引擎

#8 评论此线程包含解决方案。我将其摘录如下,以便此问题/答案可以独立存在。

Hi,

based on the above comments, I've made some .deb packages:

1) original source code from ftp://download.fujixerox.co.jp/pub/exe/apeosport/c4300series/fxlinuxprint-src-1.0.1.tar.gz, licensed under GNU GPLv2
2) get the driver to output the required headers for printing to printers with mandatory auditing (FXUserName setting)

Also:
3) fixed a slight problem with the PPD file that meant the printer wasn't visible in the GUI "add printer" dialogs
4) tried to fix up some potential insecure uses of strcat() function.

.deb packages and my changes to the source code are available at http://www.wlug.org.nz/~jrm/fxlinuxprint/

To set the FXUserName variable for auditing, do one of:

a) [GNOME]
  click on System -> Administration -> Printing
  right-click on the printer, go to Properties, go to Job Options.
  At the bottom, enter "FXUserName" (case-sensitive) into the "add a new option" box, and click Add. Then set the value to the correct printer accounting code.

b) [command line, requires root permissions]
  stop the printing service (CUPS) with '/etc/init.d/cups stop'
   edit /etc/cups/printers.conf, and inside the <Printer> or <DefaultPrinter> blocks, add a new line like 'Option FXUserName 123456'.
  Now restart the printing service with '/etc/init.d/cups start'.

c) (change setting for local user only)
  From the command line, enter "lpoptions -p (printername) FXUserName=123456",
  replacing "123456" with the correct printer accounting code for your department. You can find the printername for the already known printers with 'lpstat -a'
  Note! some applications that don't fully support the CUPS printing system
  (such as Open Office) will not correctly apply the option if it's set using this method.
  http://user.services.openoffice.org/en/forum/viewtopic.php?f=16&t=36474

@ryanau - I couldn't find any way to get the CUPS interface to allow a text entry dialog like that (except for adding your own option like in step a) above). I think the PPD interface only allows "PickOne"-style options.

相关内容