Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How-To TIP - How To setup Internet Printing Protocol (IPP everywhere) to print to any printer from CIAB #1

Open
bmullan opened this issue Oct 12, 2021 · 0 comments

Comments

@bmullan
Copy link
Owner

bmullan commented Oct 12, 2021

Step 1

On your local linux system use ippfind to get IPP address of local printers

example:

$ ippfind

might return something like the following, which would tell me I have at least one IPP enabled printer

$ ipp://BRW6814019ED515.local:631/ipp/print

Step 2

On your work/home WiFi router configure PORT forward to forward "some port" to IP address of local Printer and its Port 631

Step 3

Then on your CIAB Host/Server (Cloud/VM/physical server). Log into both the ciab-guac and the cn1 LXD containers and do the following steps in both containers:

make CIAB Admin User ID a member of "lpadmin" group

Step 4 - create the CUPS IPP printer configuration

then as sudo or root use lpadmin to add the remote printer locally on CIAB

-p = printer_name = the name of the printer as it will appear on the Linux system in the Print dialog boxes

-v = ip_address = the PUBLIC IP address of home Wifi Router that the Printer is attached to via wifi
port_ID = the WIFI "source PORT" for the Port Forward config statement

-L = location of remote printer (any name you want to ID where the printer is located)

The command line to create the Printer, all one line, and executed as sudo is:

# lpadmin -E -p printer_name -v http://<wifi_ip_address:wifi_port_ID/ipp/print -L printer_location -E -m everywhere

example - assuming you set your wifi router to port forward port 6993 to port 633 and that your wifi
router's PUBLIC IP address is 45.24.77.191 then on the CN1 container enter:

# lpadmin -E -p home_printer htttp://45.24.77.191:6993/ipp/print -L my_home -E -m everywhere
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant