1. Current Location: Home >  NAS >  The old laser printer had no WiFi, so plugging it into a NAS turned it into a FamilyMart print server

The old laser printer had no WiFi, so plugging it into a NAS turned it into a FamilyMart print server

NAS as a Print Server: Docker Installation CUPS Sharing the Full Process of USB Printers

When her wife's workplace phased out office equipment, she brought home an HP LaserJet 1108. Black-and-white laser machines, items from Xianyu for a few dozen yuan, compatible 2612A toner cartridges for just over forty yuan can print over a thousand images, and one sheet for papers and drafts costs two or three cents—it's like getting free pickup.

There's only one flaw: no WiFi. Whoever wants to print goes to the study, turns on the computer, plugs in the USB cable, and unplugs the cable. After a month, my wife would rather copy it by hand than touch it. Until I plugged it into the Flying Niu NAS at home—now FamilyMart phones can just tap and call, and the iPhone's air printing is still a waste.

First, let's talk about why we kept this old machine. The 1108 was a model around 2011, with 18 pages per minute, and it took only about ten seconds from standby to the first page. The L3255 ink chamber tube at home has color photos and scans ( the scan article has already written about it). The black-and-white document emphasizes tossing it casually, typing casually, and finishing without worry. This laser machine is exactly the right match.

The 2612A toner cartridge is its greatest asset. The original is expensive, the compatible ones cost just over forty yuan, and if you run out of followers, you can still buy more followers to fight again. I did the math: the papers, mistakes, and mental math cards printed by my child each semester would at most be two packs of paper a year, enough for two years. The speed was even faster than the ink chamber machine; thirty pages of papers were finished in just over a minute, and the ink chamber machine was still pausing in the middle. Some people might say there are small printer server boxes online costing just a few dozen yuan, or routers with USB ports that can carry printers—both are fine, but my NAS is always on 24/7, so it's just a container—there's no need to spend that money.

Unfortunately, it only has one USB cable. Whichever computer you plug in, only that computer can work; When the computer shuts down, the printer also "shuts down." This fatal flaw is the same as the article about Xiaomi router connected to the printer: USB printers are shared on computers, and the host must turn on. My NAS is powered on every day, so letting it serve as the main unit makes perfect sense.

First, pour cold water on the situation: the official team has already cut off Synology's old path

Before starting, I searched for "NAS print server." Out of ten tutorials, eight are about Synology: Control Panel → External Devices → Printers—just check Sharing. If you follow the search method, you'll probably end up searching the backend like I did, with no entry point at all, and start to wonder if your DSM is installed incorrectly.

After checking Synology's official compatibility list, I finally gave up. At the top of the page, there was a note: DSM and SRM platforms have stopped supporting USB printers. In other words, this feature was indeed present in the DSM 6 era, but after DSM 7, the official team removed it. All the tutorials online are outdated.

So whether your home is Synology or Feiniu, there's one common path now: install CUPS inside Docker. CUPS is the Linux world-managed printing service, and it is also the underlying layer of macOS's print system. Once the container runs, the USB printer is managed by it, and then it broadcasts to the local area network.

Feiniu Mount CUPS: Four parameters are enough

What is Docker, how to install containers, < the article on a href="https://www.shunot.com/en/nas/829.html">829 covered the concepts; if you haven't touched it, check it out. If you want to learn the system, check out the complete beginner's article

The image uses olbat/cupsd, which can be found on Docker Hub. It comes with CUPS 2.4 and avahi (the one that handles AirPrint broadcasting). When I created the container, I filled in four things:

the
Mirrorolbat/cupsd
port local 631 → container 631
mount /docker/airprint/cups mapping /etc/cups,/docker/airprint/ Enable privileged for the avahi mapping /etc/avahi
to save USB device permissions

Here's a little USB port incident: on my N100, one port is occupied by the hard drive enclosure of the download drive ( the old SSD from the warehouse drive), and the printer plugs in another port, which happens to be full. If your machine only has one port, add a power hub to prevent the printer from competing with the hard drive. If the power is insufficient, the printer will recognize and won't operate, causing paper jams and clogging of the machine.

privileged is a lazy choice; the standard approach is to map /dev/bus/usb into the container. For home internal networks, I choose 'Hassle'; if you care, follow the rules. Synology users can follow this path too: install a Container Manager in the package center, search for the same image in the registry, copy the parameters directly, no different from Feiniu—after all, Docker is Docker everywhere.

Enter the browser on page 631, and in five steps install the printer

After the container runs, the browser accesses http://NAS's IP:631, and the CUPS management page is halfway down. Don't be scared by this retro page—it hasn't been renovated for over ten years, but it's still very useful.

  • Administration tab → Click Add Printer
  • pop-up to ask for account and password, which is the default admin account for the image. The password
  • is written in the image documentation. You
  • can see the USB printer in Local Printers, with the name containing USB. Select Next
  • , enter
  • any name description, Share This Printer This box must be checked; otherwise, other devices won't see it
  • .
  • Search for model in the driver list, 1108 won't be found. I chose the same-chip LaserJet 1020 (foo2zjs driver), and everything works fine

Finally, in

Maintenance, click Print Test Page, and the printer snaps out a test page, so the issue is 90%. If the test page is listed, don't doubt the specs for now—check the USB cable and power supply later—my first trip was on the hub power supply, the printer was in the container, but when sending tasks, it never produced paper.


A

quick note about the driver step: older laser machines usually have matching model designs in the list, while the 1020, 1005, and 1108 generation use the same solution; If you really can't find it, choose Everywhere (the original queue), letting the client's own drivers do the work—Windows and iPhone can handle it.

Three devices, three connection methods

Windows 11 Device: Settings → Bluetooth and Other Devices → Printer and Scanner → Add Device. Wait for it to search on its own; most chances are not to find it. Click "Add Manually," choose "Choose shared printer by name," and enter the http://NAS IP:631/printers/queue name. The queue name is the same as the name I chose in the previous step. Here's an annoying pitfall: if the name contains a space, the URL has to be replaced with %20, so I always use only letters and numbers for my name. Click Next, Windows will install the universal driver yourself.

The iPhone is a surprise. No need to install anything—just the print sharing menu automatically shows up as the "HP LaserJet 1108," which is the AirPrint service broadcast by avahi over the local area network. The old laser machine transformed into an air printer. My wife saw it for the first time and even asked me what software I had secretly installed.

Android runs the system's default print service, adds an IPP printer, and the address is exactly the same as the Windows one. If you want to type files in WeChat, the method is the same as the phone printing post says. First, go through the mini program. If the mini program doesn't recognize the NAS, it saves the file to the phone first, then goes through the system to print.

Three pits, each more hidden than the last

Pitfall 1: Printer power-off and reboot, queue freezes. One time, after finishing a type, I casually turned off the printer's power and tried again the next day. All the tasks were piled up in the queue, and the status bar was just a line of 'Processing' hanging forever. The reason is that after re-enumerating USB devices, CUPS didn't keep up; rebooting the container worked again. The simple method is to cancel all the stuck tasks on page 631 first, then restart the container. If the order is reversed, the ghost will revive. Nowadays, printers are often powered on, with standby at two or three watts, and the annual electricity cost is just over yuan. Compared to family members who can't print, that's nothing.

Pitfall 2: The printer disappears from the iPhone. This is Avahi's broadcast name matching the host machine's, so rebooting the container usually brings it back; If that doesn't work, change the host-name in the avahi configuration to be explicitly changed. The root cause of this kind of "device not found" is the same as the mDNS article: if the broadcast can't reach, the client is blind.

Pitfall 3: After the NAS reboots, the container doesn't get up, and printers disappear collectively. Remember to set the container restart policy to always. This was discussed in the container upgrade article. Here, I'll check it again to confirm. During the power outage at my home, the UPS held the network up (1025). After the power came back, the NAS woke up on its own, and the printer container picked up on its own, so it didn't drop.

Who is worth messing with, and who is avoided

: The . the article about connecting the router to the printer is about routing the router. . The
Your suggestion
You have an old USB printer at home + NAS. This photo takes half an hour.
printer comes with built-in WiFi, so you don't need to read this post, just stick with the phone printing setup
No NAS. OnlyOut of three routes, pick one
print volume is less than ten per month. Just plug in the computer cable, don't mess around

My final layout: L3255 for color, photos, and scanning, 1108 for NAS for black-and-white drafts, anyone who wants to call can tap on their phone, and the computer in the study finally got off the job of being a printer. Once that USB cable was plugged in, no one unplugged it again.

Read More


Copyright Notice Scan to read on mobile
All Rights Reserved: 《SHUNOT》 => 《The old laser printer had no WiFi, so plugging it into a NAS turned it into a FamilyMart print server》
Article URL: https://www.shunot.com/en/nas/1167.html
Unless otherwise stated, all articles are original by 《SHUNOT》. Reposting is welcome! Please indicate the original URL when reposting, thank you.

Contact Us

Online Consultation: Click here to send me a message

WeChat ID: master_135

Scan to follow