cupsctl command builder
Change the print system's settings
Pick what to turn on or off on a Mac or Linux computer: the CUPS web page at localhost:631, printer sharing, remote admin, debug logging. Get one cupsctl line, the line that puts it back, and paste what cupsctl prints to read it in plain words. It runs in your browser: nothing you type is sent to us.
Paste this in Terminal
Open Terminal from Applications, Utilities. sudo asks for an administrator password.
sudo cupsctl WebInterface=yes
cupsctlEach setting
WebInterface=yesTurns on the CUPS pages at http://localhost:631 to see queues, jobs and printers in a browser. Off by default on a Mac.
Then open http://localhost:631 in a browser on this computer. The admin pages ask for this Mac's administrator name and password.
To put it back
sudo cupsctl WebInterface=noRead the settings back
Run cupsctl with nothing after it and paste what it prints. The example is a Mac as it comes.
- Off
_debug_loggingDebug logging is off. - Off
_remote_adminRemote administration is off. - Off
_remote_anyAllow any network is off. - Off
_share_printersShare printers is off. - Off
_user_cancel_anyAnyone can cancel any job is off. - Off
WebInterfaceWeb page at localhost:631 is off.
When it does not take
cupsctl changes CUPS, the print system on every Mac and most Linux computers, which keeps each print queue and talks to printers over IPP. A computer sharing its printers this way is a small print server.
cupsctl WebInterface=yes is not working
Run it with sudo, then load http://localhost:631 again. If the page still does not open, CUPS is not running: on Linux sudo systemctl restart cups; on a Mac print any page, which starts it.
The web page says Forbidden
The admin pages open only from the computer itself unless remote administration is on. From another computer, turn it on here, and use https with the computer's name.
What is the username and password for localhost:631?
There is no separate CUPS password. On a Mac it is an administrator's own name and password; on Linux, root or a user in the lpadmin group (sys or wheel on some systems).
Sharing is on but other computers do not see the printer
Each queue shares on its own too. Add its name above, or run lpadmin -p NAME -o printer-is-shared=true. Other computers find it over Bonjour, so they need to be on the same network.
Take it further
- lpstat command builderCheck each printer's state and the jobs waiting, and read lpstat's answer in plain words.
- lpadmin add printer builderNo queue yet? One lpadmin line adds the printer, with its sides, colour and paper defaults.
- lp print command builderSend a job to a queue from Terminal with copies, sides and paper set.
- Print queue clear commandA job stuck in the queue: the cancel and restart lines for a Mac, Linux or Windows.
- Printer port checkerWhether port 631 and port 9100 answer, before you share or add a printer.
No computer has to share its printers.
Sharing a printer from one Mac makes that Mac a print server that has to stay on. In KyberCopy the relay in the copy room reaches each printer over IPP or port 9100, and teachers send from the request form on any device.
Book a demo