Home > other >  Iron wei horse by Docker container Airprint print server functions
Iron wei horse by Docker container Airprint print server functions

Time:02-21

This tutorial can make your iron horse turns into a print server, USB printer and make the corner into a network printer,
Mirror because the Docker (I use the image file for olbat/cupsd) customizability is high, can easily install the driver and software, so use iron horse system Docker containers, mounted on the NAS printers, achieve LAN printer sharing and mobile printing requirements, a Win10 desktops in the home, two Windows 7 laptop, a huawei Mate30 phones have test success, finally realizes the sharing of local area network (LAN), including mobile phones, computer wireless Shared print, is really a print server,
Using the environment: X86Nas my model is f2-421; Mirror for olbat/cupsd, a very old and crunching sound HP LaserJet 1022, after the installation is complete in win10, notebook computers, mobile phones on all the tests pass, make USB printer immediately become a network printer,
Send a picture first:

Point a cigarette started tutorial, this tutorial can't guarantee for optimal configuration, but guarantee can make it, because I have been using so, the
A, download image file
1, the docker pull olbat/cupsd: download the latest version of the latest - olbat/cupsd (less than a minute or so, nothing to say)

Two, three new mount folder, structure is:
/MNT/md0/appdata/docker/airprint
/MNT/md0 appdata/docker airprint/config
/MNT/md0 appdata/docker airprint/avahi

Three, began to run the mirror is critical in this step, I explain below, in order to let everyone look at the command line, I upload a photo!
Docker run - d - name=airprint -.net="host" - ring=true - e TZ="Asia/Shanghai" - p, 631:631 - v/MNT/md0/appdata docker/airprint/config/:/dev/config - v:/dev - v/MNT/md0/appdata/docker/airprint avahi/:/etc/avahi/services - v/var/run/dbus:/var/run/dbus olbat/cupsd

Above container called airprint, network as the host (don't use the bridge), port 631 user name and password for the default print (write down, in a short while to use)
Check the running status of the container, you can see already can normal operation!
Four, run in the browser (be careful to use to access https://
https://Nas IP: 631

See can access the Settings page, in fact, the tutorial here is done, and because of the following is to install a printer driver, windonw Shared ah of what, have nothing to say, however, to the integrity of the tutorial, I continue to!!!!! In a cigarette!
Five, began to increase the printer, click the Administration on the interface, and then click Add print input password, the user name and password are all print (lowercase), can see that the system has found a printer (I'm here is to use a new HP LaserJet 1022), we choose a USB printer, click continue,

Six, described the printer, position, name filled in, remember to check the finally Shared this printer is ok,

Seven, drive system has helped us to choose, choose and then click the add printer

Eight, and then again to the printer Settings, to note here is that the printer paper must choose to, otherwise there will be some puzzling questions! I choose here is A4

The test page prints out nine, set up, and the normal operation!

10, on Windows connection sharing printers for win10 (for example), in the control panel, click add printer choose I need printer is not listed, click the choose printer by name, is here to enter the address of the Web page address http://192.168.3.101:631/printers/HP_LaserJet_1022 (note here can't use HTTPS), click next,

Eleven, this step is to install the driver, Win10 drive is full, it is ok to directly select,

Twelve to check printer has been installed successfully, print test pages, can normal printing, wireless laptop connection is normal also, desktop cable connection is normal!

Thirteen, Shared printers, print normal!

Here is to, printer sharing has been installed, test is normal, wireless, mobile phone connection, can be normal print, note here:
1, this connection sharing USES port 631,
2, in the use of web site is https://Nas used when installing the printer IP: 631, (IP using http://Nas: 631 access can also install the printer, but after sharing can't print, I don't know why), but in the use of Windows sharing connections to use http://,
3, run the docker mirror network to choose the host
4, add printer user name and password are used in the print
Why use this mirror olbat/cupsd, due to the mirror driver special full!
  • Related