How to set account and password in Linux for using a network printer

Lagrange

I am using both Linux Mint and Windows 7 on my laptop.

I can use the network printer in my office area flawlessly in Windows 7, which seems to use the LPR protocol and requires my ID and password.

When I go to Linux, here comes the problem. I set up the network printer with CUPS but cannot find anywhere to set my ID and password for the print service. It turns out that I can send the file for print to the printer successfully (indicated in the CUPS status) while the printer dose nothing but prompts an error.

Here are the settings for the printer under win7 and linux:

Win7:

win7 1

url for another:

win7 2

Linux:

linux 1

I tried id@"printer address", but it seems this setting cannot be saved (the device URI gets back to "printer address" after I press Apply.)

HERE IS THE SOLUTION kindly found by @slm:

Check out this ubuntu issue, bugs.launchpad.net/ubuntu/+bug/124442, go to the #8 comment, he shows a way to provide the info I think you need to lpd. – slm 1 hour ago

slm

Can you run the app, system-config-printer from a terminal? If so it will come up like so:

           printing dialog

Click the Add button brings up this dialog. NOTE" You'll most likely be prompted for root's password at least once or twice.

       new printer dialog

Select Windows Printer via SAMBA.

      new samba printer dialog

EDIT #1

After a discussion with @Lagrange it was determined that he had the following Fuji Xerox printer "FX DocuCentre-II C7500 PS". The following page was found over on the Ubuntu issue tracker.

Fuji-Xerox engine for CUPS

The #8 comment on this thread contained the solution. I'm excerpting it below so this question/answer can stand on their own.

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.

이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.

침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제

에서 수정
0

몇 마디 만하겠습니다

0리뷰
로그인참여 후 검토

관련 기사

분류에서Dev

Sending pdf files directly to a network printer, using Windows command line

분류에서Dev

How to set password for MySQL?

분류에서Dev

How to add a guest account without a password?

분류에서Dev

How do I add a network printer in Ubuntu 12.04?

분류에서Dev

How to set DNS resolver in Fedora using network-manager?

분류에서Dev

linux + single user mode and set network

분류에서Dev

Android: how to get network coordinates witout signining up in google account

분류에서Dev

How to set cx and cy with only one function using d3.js, force and network?

분류에서Dev

Use network adapter in Kali Linux using vmbox?

분류에서Dev

How to set a password for Program (Application) in Windows 8?

분류에서Dev

How to get root Password in Kali Linux?

분류에서Dev

How to prevent wireless network asking password when briefly out of range

분류에서Dev

How to view WiFi's password or forget this network in Windows 8.1

분류에서Dev

How to encrypt/hide password in /etc/network/interfaces file on debian?

분류에서Dev

List Every Network Printer With ListBox Powershell

분류에서Dev

How can I set a default profile for a network interface in network manager?

분류에서Dev

What's the best place to set up a VPN network in Linux

분류에서Dev

Gentoo: how to set hostname for local network?

분류에서Dev

How to forward traffic between Linux network namespaces?

분류에서Dev

How to sign into "root" account by default on Windows Subsystem for Linux Bash terminal

분류에서Dev

linux + wget + print the files from URL address using login and password

분류에서Dev

How to reset password on rails api? [Not using devise]

분류에서Dev

Printer on a ARM Linux (CUPS) - general theories/questions

분류에서Dev

Yii Security Risk : How to set to null email and password on form

분류에서Dev

How to set Windows not to prompt for password on resume from sleep

분류에서Dev

How to set password-less ssh login for multiple remote severs?

분류에서Dev

How to bind CUPS printer to user?

분류에서Dev

How to access domain users' calendar using service account in .net?

분류에서Dev

How to access domain users' calendar using service account in .net?

Related 관련 기사

  1. 1

    Sending pdf files directly to a network printer, using Windows command line

  2. 2

    How to set password for MySQL?

  3. 3

    How to add a guest account without a password?

  4. 4

    How do I add a network printer in Ubuntu 12.04?

  5. 5

    How to set DNS resolver in Fedora using network-manager?

  6. 6

    linux + single user mode and set network

  7. 7

    Android: how to get network coordinates witout signining up in google account

  8. 8

    How to set cx and cy with only one function using d3.js, force and network?

  9. 9

    Use network adapter in Kali Linux using vmbox?

  10. 10

    How to set a password for Program (Application) in Windows 8?

  11. 11

    How to get root Password in Kali Linux?

  12. 12

    How to prevent wireless network asking password when briefly out of range

  13. 13

    How to view WiFi's password or forget this network in Windows 8.1

  14. 14

    How to encrypt/hide password in /etc/network/interfaces file on debian?

  15. 15

    List Every Network Printer With ListBox Powershell

  16. 16

    How can I set a default profile for a network interface in network manager?

  17. 17

    What's the best place to set up a VPN network in Linux

  18. 18

    Gentoo: how to set hostname for local network?

  19. 19

    How to forward traffic between Linux network namespaces?

  20. 20

    How to sign into "root" account by default on Windows Subsystem for Linux Bash terminal

  21. 21

    linux + wget + print the files from URL address using login and password

  22. 22

    How to reset password on rails api? [Not using devise]

  23. 23

    Printer on a ARM Linux (CUPS) - general theories/questions

  24. 24

    Yii Security Risk : How to set to null email and password on form

  25. 25

    How to set Windows not to prompt for password on resume from sleep

  26. 26

    How to set password-less ssh login for multiple remote severs?

  27. 27

    How to bind CUPS printer to user?

  28. 28

    How to access domain users' calendar using service account in .net?

  29. 29

    How to access domain users' calendar using service account in .net?

뜨겁다태그

보관