Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

How to build a wireless shared printer by raspberry pie

Shulou Source: shulou.com Published: 2022-06-01 23:04:51 11月13日 Update

Raspberry pie how to build wireless shared printer, many novices are not very clear about this, in order to help you solve this problem, the following editor will explain for you in detail, people with this need can come to learn, I hope you can gain something.

Recently bought a printer, only the usb interface does not have a network port, and does not support network printing, so I intend to use raspberry pie to do a printer server, nonsense, the tutorial begins!

Preparatory work:

1. Internet-connected raspberry pie

Printer with 2.usb interface

Although many articles have mentioned how raspberry raspberry pie installs cups to share printer service, I tried it myself and found that HP P1007 always couldn't be used. After a long struggle, I finally found a way to record it.

The default raspberry raspberry pie has been set up, and things like IP,SSH have been OK.

First of all, perform the update. I did not perform the update before, resulting in an error in the subsequent operation. When downloading and installing, it will prompt 404 that the file cannot be found.

Sudo apt-get update

After an update, install the latest HPLIP, according to foreign accounts, after installation should be able to solve most of the use of HP printer problems.

Sudo apt-get install hplip

When you install hplip, you should have installed Cups synchronously. If not, you can execute the following command to continue with the installation.

Sudo apt-get install cups

After installing hplip, configure the user and add pi to lpadmin. If it is another user, remember to change the user name.

Sudo usermod-a-G lpadmin pi

Now replace the configuration file of CUPS and stop the service first.

Sudo service cups stop

Back up the original files

Sudo mv / etc/cups/cupsd.conf / etc/cups/cupsd.conf.bak

/ / September 21, 2015. It seems that the update configuration file cannot be downloaded.

/ / download a new configuration file from the server

Now cd / etc/cups/

And then sudo nano cupsd.conf

Change the configuration file and paste the following paragraph. As follows:

# Only listen for connections from the local machine.

# Listen localhost:631

# CHANGED TO LISTEN TO LOCAL LAN

Port 631

# Restrict access to the server...

Order allow,deny

Allow @ Local

# Restrict access to the admin pages...

Order allow,deny

Allow @ Local

# Restrict access to configuration files...

AuthType Default

Require user @ SYSTEM

Order allow,deny

Allow @ Local

Save and exit cupsd.conf.

Done, now you can start the service.

Sudo service cups start

The next step is to set up the printer, first connect the printer

4.PC uses IE browser to open the website "https:// raspberry pie ip:631/". It is recommended to operate directly on raspberry pie. Raspberry pie browser visits 127.0.0.1 ip:631/.

5. Click the "Administrator" interface to add the corresponding printer. The login account and password are the passwords of the pi users of raspberry pie.

Find the printer connected to usb in local printers with the name "HP." Check share this Printer

At this point, the printer setting for raspberry pie is complete!

6. The address of the network printer is "http:// raspberry pie ip:631/printers/scx3405". The PC side can add the network printer and driver according to this address.

Now all the friends in the office can share this printer.

Is it helpful for you to read the above content? If you want to know more about the relevant knowledge or read more related articles, please follow the industry information channel, thank you for your support.

Tags: Printer raspberry file service configuration user network update address password interface article server browser installed help support browsing wireless clear Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno macOS Xiaomi NVidia MySQL Huawei