* Can the script run as an init-script ? If not: * Make sure no firewall is active during post script execution * Make sure cups is ALREADY configured and running ( In case cups is needed ) * Use nmap to check all required ports. * Your say "... socket://batA1-most1.hmg.inpg.fr.:9100 ..." - is the dot "." after ".fr" correct ? *Does the name batA1-most1.hmg.inpg.fr is FQDN ? If yes try to use the IP - thus bypass name resolution. In my environment i use pretty much init scripts since all AYAST stuff is done at that time, The node has rebooted and everything should function what was under AYAST control. Just my thought Hth Hajo -----Original Message----- From: Patrick Begou [mailto:Patrick.Begou@hmg.inpg.fr] Sent: Friday, November 25, 2011 10:20 AM To: opensuse-autoinstall@opensuse.org Subject: [opensuse-autoinstall] Setting up printers with autoyast I'm a new to autoyast (2 weeks). I've setup an install procedure for my hosts but I still fail to setup properly the printer. I have a "lpadmin" and a "lpoptions" commands working when run as root after the final reboot. I've setup a post-scripts to do this automaticaly but it always fail with: "lpadmin: Unable to connect to server: Connection refused" Even if my post-script requires network and start cupsd. <post-scripts config:type="list"> <script> <debug config:type="boolean">true</debug> <filename>imprimantes</filename> <network_needed config:type="boolean">true</network_needed> <notification>Please wait while setting up printers ...</notification> <interpreter>shell</interpreter> <source><![CDATA[ #!/bin/sh service cups start 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 lpoptions -d laser5M -o PageSize=A4 -o HPOption_Duplexer=True -o InstalledMemory=36MB -o HPOption_Tray3=True -o HPOption_Disk=HardDisk -o Duplex=DuplexNoTumble ]]> </source> </script> </post-scripts> Any suggestion is welcome. Patrick -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-autoinstall+owner@opensuse.org -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-autoinstall+owner@opensuse.org