- A+
Introduction
OpenWrt is an open source Linux-based operating system commonly used on routers and other embedded devices. It is popular due to its flexibility and customization, allowing users to install various software packages including printer drivers. In this article, we will guide you on how to install printer drivers on OpenWrt.
Step 1: Check Printer Compatibility
The first step is to ensure that your printer is compatible with OpenWrt. Check the printer manufacturer's website for Linux compatibility information, and ensure that the printer driver supports your printer model and OpenWrt version. If available, download the Linux driver package for your printer.
Step 2: Connect the Printer
Next, connect the printer to the OpenWrt router via USB or Ethernet cable. Ensure that the printer is turned on and ready to receive jobs. Use the "lpinfo" command to confirm that OpenWrt has detected the printer. You can issue the command "lpinfo -v" to display the printer information.
Step 3: Install Cups
Cups - Common Unix Printing System is used as the printing system on OpenWrt. It enables printers to be connected to the network and allows printing from any device on the network. To install Cups, Enter the below command:
opkg update
opkg install cups cups-filters cups-usb
Step 4: Install Printer Driver
Now it is time to install the printer driver. If you have downloaded the .ppd file for your printer, you can install it using the below command:
cd /tmp
cp myprinterdriver.ppd /usr/share/cups/model
lpinfo -m | grep myprintermanufacturer
The above command will install the driver and check whether it is installed correctly or not.
Step 5: Configure the Printer
After the driver is installed, it is time to configure the printer. Use the "lpadmin" command to add a new printer. The below command will add a new printer:
lpadmin -p myprinter -E -v usb:/dev/usb/lp0 -m myprinter.ppd
In the above command, "-p" is the printer name, "-E" is to enable the printer, "-v" is to specify the printer device and "-m" is to specify the ppd file.
Step 6: Test the Printer
Finally, test the printer to confirm that it is working correctly. You can do this by printing a test page using the "lp" command. Use the below command to print a test page:
lp -d myprinter /usr/share/cups/data/testprint
If the above test print was successful, your printer is working correctly with OpenWrt.
Conclusion
Installing printer drivers on OpenWrt may seem daunting at first, but with the right tools and instructions, it can be a seamless process. With Cups, OpenWrt users can easily connect their printers to the router and enjoy the flexibility of printing from any device on the network.
- 微信在线客服
- 这是我的微信扫一扫
-
- 我的微信公众号
- 扫一扫码上服务
-





