1

I'm running Ubuntu server with Openbox on an old computer -- everything is running smoothly.

Supposing I got a PDF document or so, how can I print it to the printer?

I guess I have to install something first to configure the printer. What program should I install (probably via apt-get)?

1 Answer 1

1

You can add printers using lpadmin from cups-client package. Take a look for this tutorial.

to print you can use one of these two commandslpr and lp:

Install lpr:

sudo apt-get install cups-bsd

Install lp:

sudo apt-get install cups-client

Now you can use it easily:

lp /path-to-file-to-print

Or

lpr /path-to-file-to-print

Take a look for man lp and man lpr for more information

8
  • I suppose I have to apt-get install cups-client first, right? Jul 14, 2015 at 9:02
  • When I run lp, I get lp: Error - scheduler not responding.. Jul 14, 2015 at 9:04
  • what about lpr?
    – Maythux
    Jul 14, 2015 at 9:05
  • $ lpr The program 'lpr' can be found in the following packages: * cups-bsd * gnuspool * lpr * lprngTry: sudo apt-get install <selected package> -- which to install? Jul 14, 2015 at 9:10
  • check edit, sudo apt-get install cups-bsd
    – Maythux
    Jul 14, 2015 at 9:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.