I think this link show a small python script that run this two commands :
http://scriptbrasil.com.br/forum/index.php?showtopic=136033 #!/usr/bin/env python # -*- coding: utf-8 -*- import os from threading import Thread def RunSSHKeys(): os.system("sudo /usr/sbin/ltsp-update-sshkeys") def aux(): os.system('sudo /usr/sbin/ltsp-update-image 1>img.txt &') def RunImage(): th=Thread( target=aux() ) th.start() regards -------- Mensagem original -------- From: - Thu Oct 29 13:04:43 2009 X-Account-Key: account2 X-UIDL: 93f82e1c-c491-11de-ac6b-00215ad8241c X-Mozilla-Status: 0013 X-Mozilla-Status2: 00000000 X-Mozilla-Keys: X-WebMail: true X-Folder: INBOX X-Message-Delivery: Vj0xLjE7dXM9MDtsPTA7YT0wO0Q9MTtTQ0w9MA== X-Message-Status: n:0 X-SID-PRA: [email protected] X-Message-Info: JGTYoYF78jFgC8Fkcc76j8hX2JdHCdU85azBjZdg/miASi04WKDWgI+mG2bo0ysftj5lHPZMmCNAr5xmhLxZAmf/SpUBEzDQ Received: from liszt.debian.org ([82.195.75.100]) by col0-mc1-f24.Col0.hotmail.com with Microsoft SMTPSVC(6.0.3790.3959); Thu, 29 Oct 2009 06:47:30 -0700 Received: from localhost (localhost [127.0.0.1]) by liszt.debian.org (Postfix) with QMQP id 5E9882D0FD9; Thu, 29 Oct 2009 13:47:29 +0000 (UTC) Old-Return-Path: <[email protected]> X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on liszt.debian.org X-Spam-Level: X-Spam-Status: No, score=-10.9 required=4.0 tests=FOURLA,LDOSUBSCRIBER, LDO_WHITELIST autolearn=failed version=3.2.5 X-Original-To: [email protected] Delivered-To: [email protected] Received: from localhost (localhost [127.0.0.1]) by liszt.debian.org (Postfix) with ESMTP id 39AD42D0FBA for <[email protected]>; Thu, 29 Oct 2009 13:47:22 +0000 (UTC) X-Virus-Scanned: at lists.debian.org with policy bank en-lt X-Amavis-Spam-Status: No, score=-6.9 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, FOURLA=0.1, LDO_WHITELIST=-5] autolearn=ham Received: from liszt.debian.org ([127.0.0.1]) by localhost (lists.debian.org [127.0.0.1]) (amavisd-new, port 2525) with ESMTP id jvaf0q1mz5To for <[email protected]>; Thu, 29 Oct 2009 13:47:14 +0000 (UTC) X-policyd-weight: using cached result; rate:hard: -7 Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by liszt.debian.org (Postfix) with SMTP id 9B3432D0DD7 for <[email protected]>; Thu, 29 Oct 2009 13:47:14 +0000 (UTC) Received: (qmail invoked by alias); 29 Oct 2009 13:47:11 -0000 Received: from dslb-084-060-026-181.pools.arcor-ip.net (EHLO siduxbox.localnet) [84.60.26.181] by mail.gmx.net (mp025) with SMTP; 29 Oct 2009 14:47:11 +0100 X-Authenticated: #524548 X-Provags-ID: V01U2FsdGVkX19GptRritVGRj328/n+Hk94SY01m0HDZUmMMYWTO3 Abi4N0BCgSv4n5 From: RalfGesellensetter <[email protected]> To: [email protected] Subject: Re: LTSP:ssh_known_hosts (Re: Problems cloning LTSP server) Date: Thu, 29 Oct 2009 14:47:04 +0100 User-Agent: KMail/1.12.2 (Linux/2.6.31-5.slh.2-sidux-686; KDE/4.3.2; i686; ; ) References: <[email protected]> <[email protected]> In-Reply-To: <[email protected]> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <[email protected]> X-Y-GMX-Trusted: 0 X-FuHaFi: 0.68 X-Rc-Virus: 2007-09-13_01 X-Rc-Spam: 2008-11-04_01 Resent-Message-ID: <y26lip-5iod.a.14b.xzz...@liszt> Resent-From: [email protected] X-Mailing-List: <[email protected]> archive/latest/18126 X-Loop: [email protected] List-Id: <debian-edu.lists.debian.org> List-Post: <mailto:[email protected]> List-Help: <mailto:[email protected]?subject=help> List-Subscribe: <mailto:[email protected]?subject=subscribe> List-Unsubscribe: <mailto:[email protected]?subject=unsubscribe> Precedence: list Resent-Sender: [email protected] Resent-Date: Thu, 29 Oct 2009 13:47:29 +0000 (UTC) Return-Path: [email protected] X-OriginalArrivalTime: 29 Oct 2009 13:47:30.0700 (UTC) FILETIME=[5C1D94C0:01CA589E] Am Donnerstag 22 Oktober 2009 schrieb RalfGesellensetter: > thanks for your [offlist] reply. > You suggested removing /opt/ltsp/i386/etc/ssh/ssh_known_hosts > which originally has four entries like this: > ltsp-update-sshkeys seems to be the script to be run after cloning a thin client server. However it doesn't help here. Giving it a 2nd thought, a dysfunctional TFTP server resp. a missing kernel cannot be connected to SSH which steps in much later. So, apart from re-trying the clone process (maybe on image level, this time) - any further suggestions on what might have gone wrong? Thanks for any comments! Ralf -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected] _________________________________________________________________ Windows Live: Make it easier for your friends to see what you’re up to on Facebook. http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_2:092009

