Installing CUPS on the Pi and Enabling Remote Access

sudo apt-get install cups
sudo usermod -a -G lpadmin pi

sudo nano /etc/cups/cupsd.conf


# Only listen for connections from the local machine
# Listen localhost:631
Port 631

< Location / >
# Restrict access to the server...
Order allow,deny
Allow @local
< /Location >

< Location /admin >
# Restrict access to the admin pages...
Order allow,deny
Allow @local
< /Location >

< Location /admin/conf >
AuthType Default
Require user @SYSTEM

# Restrict access to the configuration files...
Order allow,deny
Allow @local
< /Location >

sudo /etc/init.d/cups restart

navigate to http://[the Pi’s IP or hostname]:631
Click “Administration” tab. Add a printer and share it.

Install the new hp driver by this way.
and run hp-setup to install plugin

发表评论

电子邮件地址不会被公开。 必填项已用*标注