1197 views|3 replies

2929

Posts

0

Resources
The OP
 

【BIGTREETECH CB1】Build a network shared print server [Copy link]

 

The print server provides a simple and efficient network printing solution. The print server is connected to the printer at one end and connected to the LAN at the other end via wired or wireless means. The print server can provide shared printing for all users in the LAN. There is no limit on the number of computers connected to the LAN, so that multiple users can share a shared printer for printing, greatly improving the utilization rate of the printer.

Advantages of using BIGTREETECH CB1 to build a network shared print server: Compared with the way of connecting a computer to a printer to share the network, the print server built by the development board has the characteristics of unlimited placement, low cost, small size, and low power consumption.
Network topology diagram of a network shared print server

My printer model is HP LaserJet P1008, and this is the actual picture of the connection with the development board.

----------------------------------------------------------- There are two ways
to install an HP printer on Linux . One is to download the installation package from the HP official website and follow the prompts to install it. This is the recommended way. The other is to download the HP driver package hplip and then install the print sharing program cups.

Method 1: Download the installation package from the HP official website and follow the prompts to install it. This is the method recommended by HP (but I did not succeed)
. First, go to the following website to download the HPLIP software.
https://developers.hp.com/hp-linux-imaging-and-printing/gethplip
Select Debian under ---select distros---Select the distribution, and then Download HPLIP>>

Depending on the Linux version, you need to download different files. I downloaded the hplip-3.22.10.run version.
The installation instructions are below, click here for installation instructions.

Installation steps:
Step 1: Download the Automatic Installer (.run file) Download HPLIP 3.22.10
:
Step 2: Run the Automatic Installer
Step
3: Select the Install Type
Automatic
(enter "a") or Custom (enter "c"). We recommend that most users choose the Automatic installation mode.

Step 4: Verify your Linux Distribution
Make
sure the installer detects the correct Linux distribution. Different Linux versions use different installation procedures. If you select the incorrect version, the installer may fail.
Step 5: Enter Your root/Superuser
User PasswordStep
6: Read the Installation NotesStep
7
: Detect Any
Missing DependenciesStep
8: Download and Install
Any Missing Dependencies
I have a few warnings here

Step 9: './configure' and 'make' will run
./configure
prepares to install HPLIP and verifies that your system has all the dependencies required by HPLIP.

Then execute "make". Generate compiled ("build") HPLIP for your system.
I got an error here and couldn't "make" normally. If other netizens can continue to read the steps below if it works normally.

Step 10: 'make install' is Run
Using 'hp-setup' to configure your printerStep
11
: Select How Your Printer will be Connected to Your ComputerStep
12
: Select the Printer to be ConfiguredStep
13 : Select the PPD file (or driver)
to be Used for Your PrinterStep 14: Confirm the Printer Settings and Finish the Configuration Process


Method 2: Install the HP driver package hplip, then install and set up the print sharing program cups.
1. Install the HP driver package hplip
sudo apt-get install hplip
sudo hp-setup -i and press Enter, then press d to download.

After successful installation, a test page will be printed


2. Install and set up the print sharing program cups
Install cups
sudo apt install cups

Configure cupsAfter
installing cups but before configuring it, users can only use local access to the cups service. You need to manually set the config file to add access permissions for other users and addresses.
cd /etc/cups
sudo nano cupsd.conf
needs to be modified in 4 places.
①Change Listen localhost:631 to Listen 631
②Add Allow all under Order allow,deny of Restrict access to the server... ③Add Allow all under
Order allow,deny of Restrict access to the admin pages... ④Add Allow
all under Order allow,deny of Restrict access to configuration files..

Then press Ctrl+X, Y, and Enter to save.


Restart the service
sudo service cups restart

Set up cups
and enter your IP address: port number. Mine is http://192.168.1.3:631. If you want to jump to https, confirm the jump.
1. Add a printer

2. Check Share this printer

3. Set the printer options to A4 paper

4. You can print a test page and remember the web page address


My address is http://192.168.1.3:631/printers/HP_LaserJet_P1008

To add a printer on Windows
1, in Control Panel\Hardware and Sound\Devices and Printers page, right-click Add Printer and select Add Network Printer.....

2, then select the printer driver

3. The test page is added and printed successfully. Now the shared printer can be used in the same LAN.


Summary : Building a network shared print server under Linux is much more troublesome than building one under Windows. But fortunately, this solution is based on the Linux system, which has strong scalability, low power consumption, and small size. There are already many similar mature products on the market.


This post is from Domestic Chip Exchange

Latest reply

This kind of upgrade is also very good, as it saves you the trouble of upgrading the printer.   Details Published on 2023-1-31 09:18
 
 

6748

Posts

2

Resources
2
 

It seems that many printers can be shared nowadays, right? Or are there local printers that must be connected to a computer to print? I don't know much about this.

This post is from Domestic Chip Exchange

Comments

Some of today's printers have network sharing functions. If the printer has a network port or WIFI, it supports shared printing. However, old-fashioned printers only have a USB data port, so they can only share printing in my way.  Details Published on 2023-1-30 21:39
 
 
 

2929

Posts

0

Resources
3
 
wangerxian posted on 2023-1-30 17:46 It seems that many printers can be shared now? Or are there local printers that must be connected to the computer to print? I don't know much about this.

Some of today's printers have network sharing functions. If the printer has a network port or WIFI, it supports shared printing. However, old-fashioned printers only have a USB data port, so they can only share printing in my way.

This post is from Domestic Chip Exchange

Comments

This kind of upgrade is also very good, as it saves you the trouble of upgrading the printer.  Details Published on 2023-1-31 09:18
 
 
 

6748

Posts

2

Resources
4
 
tagetage posted on 2023-1-30 21:39 Some current printers have network sharing functions. If the printer has an Ethernet port or WIFI, it supports shared printing, but the old printers only have one US ...

This kind of upgrade is also very good, as it saves you the trouble of upgrading the printer.

This post is from Domestic Chip Exchange
 
 
 

Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list