BIGTREETECH PI development board Raspberry Pi 3B replaces wireless printing container
[Copy link]
The printer at home is an old antique that cannot connect to the Internet. Every time I print a document, I have to move my computer to the printer. If it is a mobile phone or tablet, it is even more troublesome. I have to transfer it to the computer first and then...
As the hub of the smart home, the Raspberry Pi needs to be powered on 24 hours a day, so you can simply deploy a remote print server on it, connect it to the printer for a long time and place it next to it. You can print online in the future. It is very convenient and supports Android, iOS, and PC.
Connect to the Raspberry Pi using ssh
First create three folders
sudo mkdir -p ~/hass/airprint ~/hass/airprint/config ~/hass/airprint/services
Enter a long string of commands... Here, for ease of understanding, enter them in this way
The name parameter is the name of the container, -v is the path to the volume, -e is the username and password, and finally the image used by the container
sudo docker create \
> --name=airprint \
> --restart=always \
> --net=host \
> -v ~/hass/airprint/config:/config \
> -v ~/hass/airprint/services:/services \
> -v /var/run/dbus:/var/run/dbus \
> -e CUPSADMIN="admin" \
> -e CUPSPASSWORD="admin" \
> firilith/airprint
Then start the container
docker start cups
Access the IP address + 631, you can access the web interface normally
Add a Printer
After adding, copy the IP address in the address bar. Follow the steps below to add the configured wireless printer to your computer.
Click Share on iOS and find the printer.
|