补充 Share printers between Windows and Ubuntu14.04


##1.Share Printer in Ubuntu14.04
1.1 install CUPS(Common UNIX Printer System)

suod apt-get install CUPS

Upon authenticating with your user password, the packages should be downloaded and installed without error.Upon the conclusion of installation, the CUPS server will be started automatically.

For troubleshooting purposes, you can access CUPS server errors via the error log file at: /var/log/cups/error_log. If the error log does not show enough information to troubleshoot any problems you encounter, the verbosity of the CUPS log can be increased by changing the LogLevel directive in the configuration file (disscussed below) to “debug” or even “debug2”, which logs everything, from the default of “info”. If you make this change,remember to change it back once you’ve solved your problem, to prevent the log file from becoming overly large.

1.2 Configuration

sudo cp /etc/cups/cupsd.conf /etc/cups/cupsd.conf.original
sudo chmod a-w /etc/cups/cupsd.conf.original

1.2.1ServerAdmin: To configure the email address of the designated administrator of the CUPS server, simply edit the /etc/cups/cups.conf configuration file with your preffered text editor, and add or modify the ServerAdmin line accordingly. For example, if you are the Administrator for the CUPS server, and your e-maill address is ‘[email protected]’, then you would modify the ServerAdmin line to appear as such:

 bjoy@somebigco.com

1.2.2Listen:By default on Ubuntu, the CUPS server installation listens only on the loopback interface