Richard Bruno
navigation
Home
admin









LPRNg
October 18th, 2016

Pb d'impression avec acrobat


pour solutionner le pb d'impression avec acrobat, netscape etc...

editer ./src/common/child.c
rechercher Max_open(
et faire les modifs suivantes

id Max_open( int fd )
{
if( fd > 0 ){
if( fd > Max_fd+10 ){
FATAL(LOG_ERR) "Max_open: fd %d and old Max_fd %d", fd, Max_fd);
}
if( fd > Max_fd ) Max_fd = fd;
}
}




devient


void Max_open( int fd )
{
/*
if( fd > 0 ){
if( fd > Max_fd+10 ){
FATAL(LOG_ERR) "Max_open: fd %d and old Max_fd %d", fd, Max_fd);
}
if( fd > Max_fd ) Max_fd = fd;
}
*/
if( fd > Max_fd ) Max_fd = fd;
}




Installation sur harpo


./configure prefix=/export/harpo1/LPRng disable-setuid
make
make install



puis mettre à jour les fichiers de config

installer ifhp

(ou copier fichiers dans libexec/filters)

installation dans /opt_bis

./configure - - prefix=/opt_bis/LPRng --disable-setuid make
make install



Avoir du debug

/export/zoe/LPRng/sbin/lpd -D1 -F



Installation sur zoe


cd LPRng-3.6.26
vi src/common/child.c (cf debut de ce fichier)
./configure - - prefix=/export/zoe/LPRng-3.6.26 --disable-setuid
make
make install


cd ifhp-3.3.21
./configure -- prefix=/export/zoe/LPRng-3.6.26
make
make install

ai installe http://www.linuxprinting.org/download/foomatic/foomatic-filters-3.1-current.tar.gz et ftp://ftp.astron.com/pub/file/file-4.16.tar.gz

make
make install



Duplex / Simplex


avec LPRNg impression en simplex :

lpr -Z simplex



avec LRPNg impression en duplex :

lpr -Z duplex



Installation sur Armen



armen:/usr/local/src/LPRng-3.8.32# more /etc/printcap
.common:
:sd=/var/spool/lpd/%P
:sh:mx=0:mc=0

hpens4:lp=19xxxx%9100

checkpc -f

chown deamon /var/log/lpd.conf


des logs :

lpd -F -D5




/etc/printcap :
hpens2:%%% :server:%%% :cm=imprimante hpens2:%%% :lp=19xxxxxx%9100:%%% :sd=/var/spool/lpd/hpens2:%%% :lf=log:%%% :af=acct:%%% :filter=/usr/lib/ifhp/ifhp:%%% :ifhp=model=hp4050,paper=a4,status,duplex,config=/usr/local/LPRng/etc/ifhp_hpens.conf:%%% :mx=0:%%% :sh:



Installation sur chico/keaton


apt-get install lprng apt-get install ifhp



fichier le + important : /etc/printcap
config lprng : /etc/lprng
config ifhp : /usr/local/LPRng/etc/

Tests en cas de pb :


sur keaton :

tcpdump src host <ip> and port 515




Dernières modifs
Systemd (October 24th, 2020)
TP - rsyslogd (June 20th, 2017)
Gestion de la memoire (June 20th, 2017)
Ansible (November 10th, 2016)
Fichiers et systèmes de fichiers (November 8th, 2016)
X (October 20th, 2016)
Obtenir des informations sur le système (October 19th, 2016)

Contact
Pour m'envoyer un mail,
Pour me laisser un commentaire :
richard.brunooo
chez
gmail.com


powered by kure, modified by Bruno