friedl_jan Absent Member.
Absent Member.
2047 views

connection CUPS and iPrint

Hello,

I share on the server the raw printer for students via CUPS.

Now, i can use this raw printer, to print via iPrint.
It mean, that I can add remote CUPS printer to iPrint.

oes2sp1:iManager

-> iPrint->Create Printer:
Printer name: raw_from_server
Container name: $CONTAINER
Print Manager name: $PRINT_MANAGER
DNS name or IP address: $SERVER_DNS_NAME
LPR Printer name: raw

->modify printer object-> configuration->Gateway autoload command:
iprintgw PORT=LPR HOSTNAME=$SERVER
PRINTERNAME=raw


server:
Cups -> printer raw (this is queue name)
I can print to raw printer prom Linux and from windows without problem.

http://oes2sp1/ipp/raw_from_server
Printer State Error Printing, LPR Communication Failed


Do you any idea, where is problem?

Thanks Jan

P.S. CUPS server - SLES11_64, OES2SP1_64
0 Likes
5 Replies
friedl_jan Absent Member.
Absent Member.

Re: connection CUPS and iPrint

Hello,

I found solution on this webpage:
How to make CUPS a JetDirect/AppSocket print server - Linux Forums

How easy it is. 😉

It really works. 🙂

Jan
0 Likes
WeeZel Absent Member.
Absent Member.

Re: connection CUPS and iPrint

Hello Jan,
i tried your solution in our environment and it works. But, our cups printer is a PDF printer.
The script in the cups backend, which converts the postscript datastream to pdf, does not recognize the username from the user who started the print job.
But this is necessary for our pdf print script to mail the converted pdf back to the user.
In the original postscript data stream the username will be reported, but when the stream is transmitted via the app socket, the username is not present in the stream.

Do you have an idea, how i could get the username back to the data stream?

greets, weezel
0 Likes
friedl_jan Absent Member.
Absent Member.

Re: connection CUPS and iPrint

Hello Weezel,

it is the parameter user, you can remove it or tray change it to $USER?

The print user is stored in /var/log/cups/page_log, there you is the user.

Which command you use to send jobs to the print server?

Now i don't have any idea. 😞

Honza
0 Likes
WeeZel Absent Member.
Absent Member.

Re: connection CUPS and iPrint

Ok, i modified the /etc/xinetd.d/jetdirect file. But the xinetd daemon fails to start if the user parameter is set to $USER or if its missing.

In the /var/log/cups/page_log file are only the users listed who printed directly via ipp to the cups printer. But when a user prints via iprint over the app socket to the cups printer, they will not listed in this file. Only on the cups webinterface are these print jobs listed and there is the user listed which is specified in the /etc/xinetd.d/jetdirect file.

The /etc/xinetd.d/jetdirect file specifies the lp command which is used to print the file to the cups printer.
Do you know a other command which i can use to send the datastream to our cups printer?

Greets, WeeZel
0 Likes
friedl_jan Absent Member.
Absent Member.

Re: connection CUPS and iPrint

So, i know only lp and lpr. 😞

I found, that exist: ghostscript, mpage, encript, but i newer use it. 😞

New idea, but i don't no if good 🙂

- in linux you can print echo "text" | lp -d ..... or cat $file | lp -d ....

try this command give into script, separe username a print it

file in /etc/xinetd.d/jetdirect
...
server = /bin/bash
server_args = /path/to/the/file
...

but i don't know if it is good idea. 🙂

Good luck
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.