On 9/30/2014 2:01 AM, Hazel Russman wrote:
On Mon, 29 Sep 2014 22:49:45 -0400
Alan Feuerbacher <[email protected]> wrote:

Howdy,

I've successfully installed Gutenprint via the BLFS book systemd
instructions. The last thing it has you do is restart cups:

"/etc/rc.d/init.d/cups restart"

But this file does not exist.
...
Next I tried to print a test file: "lpr testfile" and "lp testfile". I
got responses like this:

"lpr: Error - no default destination available."

I'm probably missing something simple, but I can't find my problem.
Unfortunately I have almost no knowledge of system administration type
stuff on linux.

You're on systemd so you need a systemd service unit, not an initscript. They 
are quite easy to write.

Here's the one I use:

[Unit]
Description=CUPS printing daemon

[Service]
Type=simple
ExecStart=/usr/sbin/cupsd -f

  [Install]
WantedBy=multi-user.target

Put it in /etc/systemd/system/cups.service. Then as root run systemctl start 
cups.service . To start it on booting, use systemctl enable cups.service.

Thanks! I did all that, rebooted the system and tried both "lp" and "lpr" again. I got the same error message with both.

Should I be using lp or lpr? Or is there another command? I can't find anything about that in the Cups or Gutenprint BLFS systemd pages. And it's been a very long time since I used those commands in the Unix/Linux systems at work, so I don't remember the difference between them, and the man pages are not helpful to me. Mostly there are graphical printing tools that are used instead.

Alan



--
http://lists.linuxfromscratch.org/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to