First of all, the company has a printer of the type "maid", because it is not very inconvenient to use the network printer, the company's boss asked to connect the printer to the company's intranet linux server (CentOS ), configure the samba shared printer. The start of the project is mainly divided into three steps. if your requirements are met, please continue reading. The first step is to ensure that your printer can be printed properly on the linux server. 1. the company's hp
First, the company has a printer with the HP LaserJet m1120 mfp model, which is inconvenient to use because it is not a network printer, the boss of the company asked to connect the printer to the company's intranet linux server (CentOS) and then configure the samba shared printer. The start of the project is mainly divided into three steps. if your requirements are met, please continue reading.
The first step is to ensure that your printer can be printed properly on the linux server.
1. the company's HP printer port is USB, the printer is inserted on the server, you can see that/dev/usb/lp0 is my printer
2, to http://www.linuxprinting.org/printer_list.cgi?your printer type number is supported, I choose hpand LaserJet M1120 MFP, click the show button to query, to the http://www.linuxprinting.org/show_printer.cgi? Recnum = HP-LaserJet_M1120_MFP page, I'm Mostly two little penguins, if your printer is not supported, then it's totally no longer struggling. The query results are divided into the following four situations:
(1) Perfectly: fully supports printing in linux, and can use all printer functions and print resolutions
(2) Mostly: most features support printing in linux, with some minor defects
(3) Partially: Only some functions support printing in linux, and many functions cannot be implemented. for example, color printers can only print black and white images.
(4) Paperweight: printing in linux is not supported at all.
3. there is a Recommended driver (Recommended driver) at the bottom of the query page: click (driver home page) to go to the driver page of your printer http://foo2xqx.rkkda.com/. find download and Install and add the driver according to the following steps:
# Wget http://foo2zjs.rkkda.com/foo2zjs.tar.gz
# Tar zxf foo2zjs.tar.gz
# Cd foo2zjs
# Make
# Make install
# Make install-hotplug
# Make cups
4. confirm that your cups is properly installed. you should have the following two kits:
Cups
Cups-libs
5. perform the following configuration to print data from Windows-related software:
# Vi/etc/cups/mime. convs
Application/octet-stream application/vnd. cups-raw 0-find this row and remove the comment
# Vi/etc/cups/mime. types
Application/octet-stream find the row and remove the comment
6. start the cups service by using the following two methods:
# Service cups start
#/Etc/init. d/cups start
7. open the cups management interface http: // localhost: 631. my CentOS has a graphical interface (add a printer in command mode to search for it) and perform the following operations:
(1) click Add printer to Add a printer. you can enter the following content as needed:
Name (printer Name, displayed in client samba): hp-printer
Location: localhost
Description (printer Description): HP LaserJet m1120 mfp
(2) select the device location. I chose the one with USB. if you forget it, you can choose it based on your actual situation. if you are wrong, you can move it back without being nervous.
(3) select the printer vendor: HP, model: LaserJet m1120 mfp
(4) after the printer is successfully displayed, select print test page to print a test page. The first step is complete.
Step 2: make sure that your server has configured samba with ease of use. for the installation and configuration process, refer to this article:
1. add the shared printer configuration to the samba configuration. I have no administrator or permission for the internal network:
# Vi/etc/samba/smb. conf
[Global]
Printcap name = cups
Load printers = yes
Printing = cups
[Printers]
Comment = All Printers
Path =/var/samba/printers
Browseable = yes
Guest OK = yes
Writable = yes
Printable = yes
Public = yes
2. restart cups and samba:
# Service cups restart
# Service smb restart
Step 3: install the printer driver on the client and use the printer
(1)download, this is the family meeting, I am m1210-pnp-win32-sc.exe, install this driver
(2) you should be able to see the printer hp-printer in your samba (the name you added in step 7). you will not use samba to refer to this article LaserJet m1120 mfp, print the test page to check whether the test is successful.
(3) set the printer on samba to your default printer, which is as convenient as using a local printer.
So far, all of them have been completed, but it has never been as smooth as we think. I have been praised by the leaders and turned to justice in advance, in fact, success is the small step forward when you are on the verge of despair. you must be calm and come on!