Thanks Johannes and Uwe for these very usefull informations.
Indeed, the problem is not directly an autoyast problem, it is autoyast related
as with autoyast I have to create printers from command line instead of yast
GUI. The problem was that I haven't fully understood cups behavior.
Applications like firefox, evince.... seam to rely on the
/etc/cups/ppd/<queue-name>.ppd file for selecting printing options. The lpadmin
command is used to set correct values for the queue and the result is stored in
this file. I was using lpadmin to create the queue but I was also using
lpoptions command to specify some behavior (paper size, duplex....). This last
command modify /etc/cups/lpotions file where these informations are also stored
but nor firefox nor evince seams to rely on this file.
With autoyast the solution is to create printers and set options only with the
lpadmin command. For a HP laserjet 4050, the printer is created with:
...........
<scripts>
<post-scripts config:type="list">
<script>
<debug config:type="boolean">true</debug>
<filename>imprimantes</filename>
true
<interpreter>shell</interpreter>
<source><![CDATA[
#!/bin/sh
service cups start
sleep 5
service cups status
lpadmin -p laser5M -m manufacturer-PPDs/hplip/hp-laserjet_4050_series-ps.ppd.gz
-u allow:all -L "Salle A116" -v socket://batA1-most1.hmg.inpg.fr:9100 -E
lpadmin -p laser5M -o PageSize=A4 -o HPOption_Duplexer=True -o
Duplex=DuplexNoTumble -o InstalledMemory=36MB -o HPOption_Tray3=True -o
HPOption_Disk=HardDisk -o HPOption_PaperPolicy=NearestSizeAdjust -o
HPBookletPageSize=A4
lpadmin -d laser5M
]]>
</source>
</script>
</post-scripts>
</scripts>
.........
1) starts cups if it is not running
2) lpadmin create the queue
3) lpadmin sets the options for this queue (duplex, A4, hard disk, memory....)
4) lpadmin sets this queue as default
and lpoptions is not used at all.
Thanks for your usefull advices.
Patrick
--
===============================================================
| Equipe M.O.S.T. | http://most.hmg.inpg.fr |
| Patrick BEGOU | ------------ |
| LEGI | mailto:Patrick.Begou@hmg.inpg.fr |
| BP 53 X | Tel 04 76 82 51 35 |
| 38041 GRENOBLE CEDEX | Fax 04 76 82 52 71 |
===============================================================
--
To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org
To contact the owner, e-mail: opensuse-autoinstall+owner@opensuse.org