How to set up a Mac Printer by the Command Line.Configure network printers via command-line on Macs by William Smith.The final command for me was: lpadmin -p "AFFA-ST-MFP-1" -v "dnssd://AFFA-ST-MFP-1._ipp._tcp.local." -P "/Volumes/Servers/AFFA_ST_MFP_1.ppd" -o printer-is-shared=false cupsenable "AFFA-ST-MFP-1" -E cupsaccept "AFFA-ST-MFP-1" Obviously you’d want to put it on a local NAS or in some other place that would be accessible by other Macs. How to get the PPD? This is easier: go to /etc/cups/ppd/ and copy the PPD file. In your web-browser open click on your printer’s name and copy the URL after “Connection”: Run the following to enable CUPS web-interface: cupsctl WebInterface=yes What follows is probably not the best way to do it, but it’s worked for me. The first step to retrieve them is to add the printer to your computer via System Preferences > Print & Scan. Probably you don’t know how to find the URL and the PPD of the printer. ppd (PostScript Printer Description) file. NAME - arbitrary name, can be anything, e.g.But recently, I've found a really nice way to install fonts from the command line if you're using macOS. In the past, I've found the process to be tedious and time consuming. Since my printer is already shared on the network, I don’t want to share it again from the Macs. One of the things that I always forget to do when I set up a new computer is to install all of the special fonts that we use at Corgibytes. “Share this printer on the network” would be ticked). -o printer-is-shared=false - the added printers are shared by default (i.e. The following commands have worked for me: lpadmin -p "NAME" -v "URL" -P "PPD" -o printer-is-shared=false -E Goal: add a network printer via Remote Desktop’s command-line to numerous Macs.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |