You are not logged in.

#1 2017-07-11 19:12:42

phunni
Member
From: Bristol, UK
Registered: 2003-08-13
Posts: 768

Is there a realistic alternative to CUPS?

From the searches that I've done, I'm thinking there isn't, but I just wanted to ask on here to be sure.

I realise that CUPS is the standard Linux printing system, I just hate that I now have to run a full server (as well as avahi because my printer is on the network) on clients as well as the main print server.  I've read the reasons why this is the case and client.conf has been deprecated, but I don't see any of those problems actually being a problem for me.  At least not as much of a problem as having to run redundant servers...

I've looked at Google Cloud Print and, while it seems like a fairly elegant solution, I am concerned about security etc.

Does anyone have any thoughts on this?  Are there native alternatives? What about cloud services - does anyone use them as their primary print system?

Offline

#2 2017-07-11 19:50:55

drcouzelis
Member
From: Connecticut, USA
Registered: 2009-11-09
Posts: 4,092
Website

Re: Is there a realistic alternative to CUPS?

phunni wrote:

I just hate that I now have to run a full server

Why do you hate it?

Offline

#3 2017-07-11 19:52:26

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,523
Website

Re: Is there a realistic alternative to CUPS?

What do you mean by alternative?  If you want something that does everything CUPS does in exactly the way CUPS does it, then no, there is no alternative.  If you just mean any other way to print, there are many.  I've not used CUPS in ages.  This is all I use to print at work (IP address and accounting codes removed):

#!/bin/bash

STAPLE=''
#STAPLE='-F finishing=1%20Staple'
HOLES=''
#HOLES='-F punch=2%20Hole%20Punch'
#HOLES='-F punch=3%20Hole%20Punch'
COPY=""
PLAIN=""
PLEX="-F plex=duplex"
while getopts "bc:hps" arg; do case $arg in
   b) PLAIN="yes"; PLEX="-F plex=tumble" ;;
   c) COPY="-F copy-count=$OPTARG" ;;
   h) echo "$(basename $0) [ -b | -c copies | -h | -s ]" ;;
   p) PLAIN="yes" ;;
   s) PLEX="" ;;
esac; done
shift $((OPTIND-1))
[[ -z $1 ]] && exit

[[ -z $PLAIN ]] && pdfjoin "$1" --fitpaper false --paper letter --outfile /tmp/preprint.pdf || cp "$1" /tmp/preprint.pdf

curl -X POST -H 'Content-Type:multipart/form-data' -A 'Mozilla/4.0' \
   -F 'NextPage=/print/print.php?submitted=true' \
   -F 'job_type=print' \
   -F 'noname=' \
   $COPY $PLEX $STAPLE $HOLES \
   -F 'accounting_information_avp="XRX_USERID,XXXXXX"' \
   -F '_adm_SJ=@/tmp/preprint.pdf' \
   -F 'CSRFToken=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' \
   http://00.00.00.00/upload/xerox.set

This first makes sure the pdf is on the right size paper, then it sends it directly to the xerox printer via it's network connection.

I also have a label printer with a USB connection.  I have a script to send the ZPL (printer control language) code directly to the /dev/ node.

So yes, there are many options.  If you want to learn to speak your printer's language, no software nor servers are necessary.  If you want to printer to understand your language, and print documents from word processors and other such programs, then you will need CUPS.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#4 2017-07-11 19:57:06

loqs
Member
Registered: 2014-03-06
Posts: 17,323

Re: Is there a realistic alternative to CUPS?

If dynamic printer detection / configuration is not needed you could disable AVAHI.  Without AVAHI you could then switch to socket based activation so cups its not started on boot.

Offline

#5 2017-07-11 21:28:35

phunni
Member
From: Bristol, UK
Registered: 2003-08-13
Posts: 768

Re: Is there a realistic alternative to CUPS?

drcouzelis wrote:
phunni wrote:

I just hate that I now have to run a full server

Why do you hate it?

because it's redundant and a waste of resources.

Offline

#6 2017-07-11 21:37:23

headkase
Member
Registered: 2011-12-06
Posts: 1,976

Re: Is there a realistic alternative to CUPS?

phunni wrote:
drcouzelis wrote:
phunni wrote:

I just hate that I now have to run a full server

Why do you hate it?

because it's redundant and a waste of resources.

Resources exist to be consumed. And consumed they will be, if not by this generation then by some future. By what right does this forgotten future seek to deny us our birthright? None I say! Let us take what is ours, chew and eat our fill.

CEO Nwabudike Morgan
"The Ethics of Greed"

Last edited by headkase (2017-07-11 21:38:21)

Offline

#7 2017-07-11 21:39:32

phunni
Member
From: Bristol, UK
Registered: 2003-08-13
Posts: 768

Re: Is there a realistic alternative to CUPS?

loqs wrote:

If dynamic printer detection / configuration is not needed you could disable AVAHI.  Without AVAHI you could then switch to socket based activation so cups its not started on boot.

Interesting.  I suppose I could use avahi to identify the URL and then not use it again.  This socket-based activation you talk about is very interesting to me...

Offline

#8 2017-07-11 21:56:36

loqs
Member
Registered: 2014-03-06
Posts: 17,323

Re: Is there a realistic alternative to CUPS?

https://bbs.archlinux.org/viewtopic.php … 9#p1720219 covers the changes needed to switched to socket based activation.

Offline

#9 2017-07-12 14:16:18

drcouzelis
Member
From: Connecticut, USA
Registered: 2009-11-09
Posts: 4,092
Website

Re: Is there a realistic alternative to CUPS?

phunni wrote:

because it's redundant and a waste of resources.

What is the resource usage? If you were to install an alternative to CUPS that has all of the features you need, what would you do to compare the two?

This is a serious question. (I'm not trying to be annoying!) smile On my computer, according to "ps aux --sort -rss | grep cups" and "top | grep cups", CUPS is using 0% of the CPU and 0% of the memory...

Offline

#10 2017-07-12 16:02:35

phunni
Member
From: Bristol, UK
Registered: 2003-08-13
Posts: 768

Re: Is there a realistic alternative to CUPS?

@drcouzelis it just annoys my sense of neatness that I have to run the same server on multiple machines - including what should be simple clients - for reason that make no sense to me.

Offline

#11 2017-07-12 18:55:01

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,355

Re: Is there a realistic alternative to CUPS?

phunni wrote:

@drcouzelis it just annoys my sense of neatness that I have to run the same server on multiple machines - including what should be simple clients - for reason that make no sense to me.

The 'server' is effectively free. Do you run, for example, ntpd? Or acpid? Or dbus? Maybe sshd?


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

#12 2017-07-12 22:37:18

phunni
Member
From: Bristol, UK
Registered: 2003-08-13
Posts: 768

Re: Is there a realistic alternative to CUPS?

ngoonee wrote:
phunni wrote:

@drcouzelis it just annoys my sense of neatness that I have to run the same server on multiple machines - including what should be simple clients - for reason that make no sense to me.

The 'server' is effectively free. Do you run, for example, ntpd? Or acpid? Or dbus? Maybe sshd?

Yes, but in this case, the server is supposed to be running on both what is the actual print server and the client machines. That's just ugly design imho.

Offline

#13 2017-07-12 22:56:33

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: Is there a realistic alternative to CUPS?

phunni wrote:

That's just ugly design imho.

It's more like, real life is ugly.

E.g., you print a 2-page document, which goes into a printer's queue, while the printer is busy printing someone else's document. The printer runs out of paper, after printing the first page of your document. The printer is in a diferent room. By what mechanism, if not a local daemon, would you like to be informed about the incomplete situation?

Offline

#14 2017-07-13 15:10:57

drcouzelis
Member
From: Connecticut, USA
Registered: 2009-11-09
Posts: 4,092
Website

Re: Is there a realistic alternative to CUPS?

Can someone help me find a video?? I'm going crazy trying to find it!

It was in the past few years, at something like a Linux developer conference, and the speaker was advocating a new lightweight display manager. The speaker spends the first five minutes of his talk by explaining how horrible and convoluted and bloated and stupid GNOME Display Manager was. Then one of the GNOME developers in the audience stands up and (in a rather uncomfortable exchange) absolutely DESTROYS the speaker's whole argument by explaining why GDM needs to be the way it is, and how it's actually a good design.

It seems applicable to this thread. big_smile

(...I hope you don't mind me derailing the thread just a tad...)

Last edited by drcouzelis (2017-07-13 15:11:29)

Offline

#15 2017-07-13 16:22:52

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,665

Re: Is there a realistic alternative to CUPS?

I'm fairly certain you are talking about https://www.youtube.com/watch?v=ZTdUmlGxVo0 but this really only tangentially relates to this thread.

Offline

#16 2017-07-14 06:18:30

HiImTye
Member
From: Halifax, NS, Canada
Registered: 2012-05-09
Posts: 1,072

Re: Is there a realistic alternative to CUPS?

my printer is a network printer, and I've never run avahi. CUPS also is listed as 0% for both memory and CPU for me. for a poorly designed implimentation, it seems to be very CPU and memory efficient

edit: I just watched that video, and it was very entertaining lol

Last edited by HiImTye (2017-07-14 06:51:31)

Offline

#17 2017-07-14 16:40:03

seth
Member
Registered: 2012-09-03
Posts: 51,046

Re: Is there a realistic alternative to CUPS?

Print by sending mails, see eg. https://blog.thomashampel.com/blog/tomc … errypi.htm

(Yes, this technically means to print emails ... ;-)

Offline

#18 2017-07-14 17:08:03

Alad
Wiki Admin/IRC Op
From: Bagelstan
Registered: 2014-05-04
Posts: 2,412
Website

Re: Is there a realistic alternative to CUPS?

seth wrote:

Print by sending mails, see eg. https://blog.thomashampel.com/blog/tomc … errypi.htm

(Yes, this technically means to print emails ... ;-)

NET::ERR_CERT_AUTHORITY_INVALID


Mods are just community members who have the occasionally necessary option to move threads around and edit posts. -- Trilby

Offline

#19 2017-07-14 17:15:49

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,523
Website

Re: Is there a realistic alternative to CUPS?

Seth, how is that guide "a realistic alternative to CUPS" when that guide includes "Step 5 - Install and Configure CUPS"?


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#20 2017-07-14 17:19:32

seth
Member
Registered: 2012-09-03
Posts: 51,046

Re: Is there a realistic alternative to CUPS?

It's not my blog m'key?
He's got a StartCom certificate - and should certainly replace that, yes.

Offline

#21 2017-07-14 17:24:27

seth
Member
Registered: 2012-09-03
Posts: 51,046

Re: Is there a realistic alternative to CUPS?

@Trilby
You're using CUPS on *one* machine - your print server.
Afaiu the OP, he dislikes the fact that he needs cups on every client - this way he'll only need a mailclient on n-1 machines.

Obviously the approach does not necessarily cover "how do I talk to my printer itfp" - because that vastly depends on the capabilities of the printer.

Edit: moved a comma for better readability.

Last edited by seth (2017-07-15 06:15:10)

Offline

#22 2017-07-14 18:03:52

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,523
Website

Re: Is there a realistic alternative to CUPS?

Well in that case, my alternative would be to just use a flash drive.  Put the files to print on a flash drive, move it to the computer with CUPS, then print.

Heck, while we're at it, you could actually do away with CUPS entirely if emailing the files or transfering them via the flash drive are viable options: just email the files to a collegue who runs Windows and ask them to print the documents.  Or use a flash drive to carry the files to a windows computer: no CUPS needed.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#23 2017-07-14 18:35:14

seth
Member
Registered: 2012-09-03
Posts: 51,046

Re: Is there a realistic alternative to CUPS?

Now you're being absurd again. Walk a usb key??? Us fat neckbeards? Out of the basement?
You got crazy...


https://bbs.archlinux.org/viewtopic.php … 3#p1689853

Offline

#24 2017-07-15 04:46:42

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: Is there a realistic alternative to CUPS?

Let's not veer off-topic folks.

Offline

#25 2017-07-15 06:50:26

seth
Member
Registered: 2012-09-03
Posts: 51,046

Re: Is there a realistic alternative to CUPS?

I thought that was the plan ...? ;-)

Ok, sum up:
You need to be able to print "somehow", ie. either you've got a sufficiently capable printer (as Trilby's Xerox) or "build" a print server using cups (and some cheap hardware)
Then you can use up to random ways to get the print-data to the print server, be it http POST, mail, s/ftp, ... or yes, a usb key.

The advantage of the self-build server are costs. You can do this with any whatsoever cheap consumer printer (good in case of low print volume)
Also you've more freedom on getting the data there (and most office suits allow sending data by mail)
On top of that you still *can* use cups on selected clients.
And ultimately the OP suggests he's already running CUPS on a print server (so he's half-way through)


Everything else is unreasonable for general purpose printing.
You can write PCL directly into the device, just two problems:
a) "the device" (local printer, known device)
b) get PCL out of *.docx (or whatever)
In the end, you'd implement a neat daemon that does this conversion, maybe detects attached printers and perhaps even interprets return codes ....
iow, implement a crippled any probably buggy and more ressource consuming version of CUPS.

--- this is really all I can say to clarify the matter, so I'm out as of here.

Offline

Board footer

Powered by FluxBB