Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to build a wireless shared printer by raspberry pie

2025-01-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

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.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report