LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-13-2014, 12:07 PM   #1
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,657

Rep: Reputation: 255Reputation: 255Reputation: 255
Printing over Network with only cups-client !


Hello,

Why to install cups server if you do not need a server?

A printer on a network has an IP. A modern printer/fax... so that can be surely understanding PS and PDF format. (type xerox).

Well, since there is no information on the web about using cups-client, then, everyone uses apt-get install cups

OK. so the target of this mission is to print with only the minimum requirement:

Code:
ii  cups-client                          1.5.3-5+deb7u1                     i386         Common UNIX Printing System(tm) - client programs (SysV)

If you add :
Code:
mkdir ~/.cups
touch ~/.cups/client.conf
vim ~/.cups/client.conf
With the following content of .cups/client.conf :
Code:
Encryption IfRequested
#Encryption Never
#Encryption Required
ServerName 192.xxx.xxx.xxx
lpr -S <-- is not available on debian stable, so you must add to /etc/hosts the name of the printer for using -P option with LPR. you may add myprinter to the given ip of hosts.

Code:
ping myprinter
might now work.

so far so good, the following command might eventually print.
Code:
curl http://www.gnuplot.info/docs/tutorial.pdf > /tmp/mydocument.pdf 
lpr -P myprinter /tmp/mydocument.pdf
However a quick check of lpq tells you that the pdf is awaiting to be printed, and hangs forever...
lpq

Likely there is something wrong...

A great expert my help !! ex. our master Tobi


I am looking forward to reading and exchanging.

Many Thanks
 
Old 05-13-2014, 03:57 PM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,138

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
cups-client forwards requests to port 631 (internet print protocol) of the ServerName that you configured in the conf file. That's great if your printer speaks ipp. If not, then you need cupsd running, because it maintains a printer database and print queues and can talk to any kind of printer.

I haven't seen lpq or lpr in at least 10 years. I have cupsd talking to a shared printer on a Windows 7 machine. For any of you who tried to do this some years back, you may remember this story:

http://www.catb.org/esr/writings/cups-horror.html

Anyway, the cups browser-based management is greatly improved since the above was written, and the error messages will tell you what's in the queue, why it's stuck, and will let you restart it once the problem is fixed.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
cups to cups printing through network on usb printer checkmate3001 Linux - Server 2 02-16-2009 12:12 PM
Slackware 12, CUPS, problem printing to client printer walteramg Slackware 0 06-06-2008 05:40 PM
cups server + samba + windows client not printing maddox1976 Slackware 6 10-15-2006 05:47 PM
cups client not printing on server solar1951 Linux - Networking 2 09-08-2006 02:06 PM
CUPS not printing - client-error-not-found xmnemonic Linux - Hardware 1 05-22-2004 02:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:26 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration