Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

linux print directly to network printer that IS NOT installed

Tags:

linux

printing

I need to build a simple web based printer server that will print a file to any given printers IP address

Using lp or lpr how can I print a file directly to a network printer by IP address? NOTE: The printer will NOT be setup in CUPS locally as it needs to have the ability to print to any IP address thrown at it.

What I have tried:

lp -d 10.11.234.75 /path/to/file
lpr -P 10.11.234.75 /path/to/file

Both give this: 'The printer or class does not exist.'

like image 512
Sean256 Avatar asked May 08 '15 18:05

Sean256


People also ask

How do I add a printer by IP address in Linux?

From the main menu on the task bar, click "System Settings" and then click "Printers." Then, click the "Add" button and "Find Network Printer." When you see the text box labeled "Host," enter either a hostname for the printer (such as myexampleprinter_) or an IP address where it can be reached (such as 192.168.


1 Answers

Try this:

cat you_file.prn | netcat -w 1 printer_ip 9100
like image 106
udp Avatar answered Oct 12 '22 11:10

udp