Operating System - Linux
1827822 Members
2777 Online
109969 Solutions
New Discussion

How to add a network printer in Linux

 
frederick hannah
Super Advisor

How to add a network printer in Linux

Using command line, how would I add a network printer to a Linux server? I tried "lpadmin -E - h (server name) -d (printer name) and I received a connection refused response. What am I doing wrong?
2 REPLIES 2
Ivan Ferreira
Honored Contributor

Re: How to add a network printer in Linux

The syntax is:

lpadmin -p queue -v device-URI \
-P PPD-file -E

Examples:

lpadmin -p ps -v parallel:/dev/lp0 -P \
/usr/share/cups/model/Postscript.ppd.gz -E

lpadmin -p ps -v socket://192.168.1.0:9100/ -P \
/usr/share/cups/model/Postscript-level1.ppd.gz -E


Check this link:

http://www.togaware.com/linux/survivor/CUPS_Command.html

Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
frederick hannah
Super Advisor

Re: How to add a network printer in Linux

The commands worked