Networking Forums

Networking Forums > Computer Networking > Linux Networking > Linux remote script

Reply
Thread Tools Display Modes

Linux remote script

 
 
zabutimaxim@gmail.com
Guest
Posts: n/a

 
      07-04-2007, 07:52 PM
Hi,

I have system where server is Windows and there are about 500 Linux
automatic clients (KIOSK).
I have some upgrade (RPM) to distribute over all those Linux clients.
All I need is to run script on all the Linuxes which will download
from FTP server and
install the RPM.
How can I do this?

Thanks,
Maxim.

 
Reply With Quote
 
 
 
 
Jack Snodgrass
Guest
Posts: n/a

 
      07-05-2007, 01:05 PM
On Wed, 04 Jul 2007 12:52:18 -0700, zabutimaxim wrote:

> Hi,
>
> I have system where server is Windows and there are about 500 Linux
> automatic clients (KIOSK).
> I have some upgrade (RPM) to distribute over all those Linux clients.
> All I need is to run script on all the Linuxes which will download
> from FTP server and
> install the RPM.
> How can I do this?
>
> Thanks,
> Maxim.



First of all... you ( who ever set this up ) should have thought of this
before the systems were deployed.

I'll be setting up something like this for about 100 linux boxes so I'll
be looking at the best way to do this myself.

If you've already got the 500 boxes out there in the field and you haven't
planeed for this, then the short, quick answer is your probably screwed.

If you are still designing this then you can look at something where the
clients connect ( via the web ) and see if there is a 'install.script'
file in a specific directory. If it exists, the client would download the
file and run it. The install.script would do the install for you. Instead
of having 500 clients connect at the same time and download the same set
of files... you might configure them to do multicast recieve and send
the files to all clients at the same time using multitcast tcp and
let the routers on your network / internet spread the load and deliver
the files in one mass send.

If the boxes are out in the field and you havn't set this up already..
then... IF you have ssh to the boxes or some other way to get in ( that
no one else can acess... ssh with keys maybe ) then you might be ok...
you'd have to have a script ssh to each box, login, transfer your
install.script and then let the remote box execute it.... this assumes
that you can connect to each remote box from your server and that
they have ssh setup on them... and no one has already figured this
out and made up their own 500 node bot net out of them.

--
D.A.M. - Mothers Against Dyslexia

see http://www.jacksnodgrass.com for my contact info.

jack - Grapevine/Richardson
 
Reply With Quote
 
zabutimaxim@gmail.com
Guest
Posts: n/a

 
      07-05-2007, 10:02 PM


On Jul 5, 4:05 pm, Jack Snodgrass <jacks_temp_id_ind...@verizon.net>
wrote:
> On Wed, 04 Jul 2007 12:52:18 -0700, zabutimaxim wrote:
> > Hi,

>
> > I have system where server is Windows and there are about 500Linux
> > automatic clients (KIOSK).
> > I have some upgrade (RPM) to distribute over all thoseLinuxclients.
> > All I need is to runscripton all the Linuxes which will download
> > from FTP server and
> > install the RPM.
> > How can I do this?

>
> > Thanks,
> > Maxim.

>
> First of all... you ( who ever set this up ) should have thought of this
> before the systems were deployed.
>
> I'll be setting up something like this for about 100linuxboxes so I'll
> be looking at the best way to do this myself.
>
> If you've already got the 500 boxes out there in the field and you haven't
> planeed for this, then the short, quick answer is your probably screwed.
>
> If you are still designing this then you can look at something where the
> clients connect ( via the web ) and see if there is a 'install.script'
> file in a specific directory. If it exists, the client would download the
> file and run it. The install.scriptwould do the install for you. Instead
> of having 500 clients connect at the same time and download the same set
> of files... you might configure them to do multicast recieve and send
> the files to all clients at the same time using multitcast tcp and
> let the routers on your network / internet spread the load and deliver
> the files in one mass send.
>
> If the boxes are out in the field and you havn't set this up already..
> then... IF you have ssh to the boxes or some other way to get in ( that
> no one else can acess... ssh with keys maybe ) then you might be ok...
> you'd have to have ascriptssh to each box, login, transfer your
> install.scriptand then let theremotebox execute it.... this assumes
> that you can connect to eachremotebox from your server and that
> they have ssh setup on them... and no one has already figured this
> out and made up their own 500 node bot net out of them.
>
> --
> D.A.M. - Mothers Against Dyslexia
>
> seehttp://www.jacksnodgrass.comfor my contact info.
>
> jack - Grapevine/Richardson



Thanks for response, but the problem is that I don't develop anything
on Linux,
there is just Firefox that has my windows WEB server as a homepage.

Now I see that Adobe released a new version of embedded Flash player
for Linux and I just want to perform upgrade.
Until now if I need to do some job on Linux side, I prepare a script
(for
script that does reboot) and in my system I select which clients
should run this script.
The system just executes PUTTY with the script on all the selected
Linuxes.
But now I have to run interactive script, which will login to ftp, run
ftp command, etc.
PUTTY doesn't run interactive commands, so this is my ptoblem.

 
Reply With Quote
 
Jack Snodgrass
Guest
Posts: n/a

 
      07-06-2007, 01:10 PM
On Thu, 05 Jul 2007 15:02:31 -0700, zabutimaxim wrote:

> On Jul 5, 4:05 pm, Jack Snodgrass <jacks_temp_id_ind...@verizon.net>
> wrote:
>> On Wed, 04 Jul 2007 12:52:18 -0700, zabutimaxim wrote:
>> > Hi,

>>
>> > I have system where server is Windows and there are about 500Linux
>> > automatic clients (KIOSK).
>> > I have some upgrade (RPM) to distribute over all thoseLinuxclients.
>> > All I need is to runscripton all the Linuxes which will download
>> > from FTP server and
>> > install the RPM.
>> > How can I do this?

>>
>> > Thanks,
>> > Maxim.

>>
>> First of all... you ( who ever set this up ) should have thought of this
>> before the systems were deployed.
>>
>> I'll be setting up something like this for about 100linuxboxes so I'll
>> be looking at the best way to do this myself.
>>
>> If you've already got the 500 boxes out there in the field and you haven't
>> planeed for this, then the short, quick answer is your probably screwed.
>>
>> If you are still designing this then you can look at something where the
>> clients connect ( via the web ) and see if there is a 'install.script'
>> file in a specific directory. If it exists, the client would download the
>> file and run it. The install.scriptwould do the install for you. Instead
>> of having 500 clients connect at the same time and download the same set
>> of files... you might configure them to do multicast recieve and send
>> the files to all clients at the same time using multitcast tcp and
>> let the routers on your network / internet spread the load and deliver
>> the files in one mass send.
>>
>> If the boxes are out in the field and you havn't set this up already..
>> then... IF you have ssh to the boxes or some other way to get in ( that
>> no one else can acess... ssh with keys maybe ) then you might be ok...
>> you'd have to have ascriptssh to each box, login, transfer your
>> install.scriptand then let theremotebox execute it.... this assumes
>> that you can connect to eachremotebox from your server and that
>> they have ssh setup on them... and no one has already figured this
>> out and made up their own 500 node bot net out of them.
>>
>> --
>> D.A.M. - Mothers Against Dyslexia
>>
>> seehttp://www.jacksnodgrass.comfor my contact info.
>>
>> jack - Grapevine/Richardson

>
>
> Thanks for response, but the problem is that I don't develop anything
> on Linux,
> there is just Firefox that has my windows WEB server as a homepage.
>
> Now I see that Adobe released a new version of embedded Flash player
> for Linux and I just want to perform upgrade.
> Until now if I need to do some job on Linux side, I prepare a script
> (for
> script that does reboot) and in my system I select which clients
> should run this script.
> The system just executes PUTTY with the script on all the selected
> Linuxes.
> But now I have to run interactive script, which will login to ftp, run
> ftp command, etc.
> PUTTY doesn't run interactive commands, so this is my ptoblem.


.... time to learn.

I'd use scp / ssh from the cygwin stuff ( linux commands on
windows ) or just use a linux box.... you are going to have
to have access to one to use for testing... you can't just
do this on a remote live system if you trying to figure out
how to do something...

You can use scp to copy something ( script or .rpm ) from your
server to the clients. If the server uses scp to send any
files to the clients... then say your install script was called
update_flash.sh
you scp the update_flash.sh script and the flash .rpm to the
client and then something like
ssh root@client sh /root/update_flash.sh
to have the root accout on client run your script. Your script
would do something like

#!/bin/bash
rpm -Uhv flash.rpm
shutdown -r now

or something like that... you'll HAVE to know what commands to
put in your script that will work on your client. You might have
rpm locally... but not on your clients... ... you'll have to be
able to test this locally before you send it out to 500 clients

jack


--
D.A.M. - Mothers Against Dyslexia

see http://www.jacksnodgrass.com for my contact info.

jack - Grapevine/Richardson
 
Reply With Quote
 
David Schwartz
Guest
Posts: n/a

 
      07-07-2007, 11:15 AM
On Jul 5, 3:02 pm, zabutima...@gmail.com wrote:

> But now I have to run interactive script, which will login to ftp, run
> ftp command, etc.
> PUTTY doesn't run interactive commands, so this is my ptoblem.- Hide quoted text -


Either learn how to use 'expect' or use non-interactive versions of
those same tools (such as wget or scp).

DS

 
Reply With Quote
 
Michael Heiming
Guest
Posts: n/a

 
      07-08-2007, 08:47 AM
In comp.os.linux.networking (E-Mail Removed):
> Hi,


> I have system where server is Windows and there are about 500 Linux
> automatic clients (KIOSK).
> I have some upgrade (RPM) to distribute over all those Linux clients.
> All I need is to run script on all the Linuxes which will download
> from FTP server and
> install the RPM.
> How can I do this?


Unsure what you are talking about?

rpm -Uhv ftp://ftpserver.tld/file.rpm

Hint
man rpm

Good luck

--
Michael Heiming (X-PGP-Sig > GPG-Key ID: EDD27B94)
mail: echo (E-Mail Removed) | perl -pe 'y/a-z/n-za-m/'
#bofh excuse 345: Having to manually track the satellite.
 
Reply With Quote
 
zabutimaxim@gmail.com
Guest
Posts: n/a

 
      08-27-2007, 10:26 PM
On Jul 8, 11:47 am, Michael Heiming <michael+USE...@www.heiming.de>
wrote:
> In comp.os.linux.networking zabutima...@gmail.com:
>
> > Hi,
> > I have system where server is Windows and there are about 500 Linux
> > automatic clients (KIOSK).
> > I have some upgrade (RPM) to distribute over all those Linux clients.
> > All I need is to run script on all the Linuxes which will download
> > from FTP server and
> > install the RPM.
> > How can I do this?

>
> Unsure what you are talking about?
>
> rpm -Uhvftp://ftpserver.tld/file.rpm
>
> Hint
> man rpm
>
> Good luck
>
> --
> Michael Heiming (X-PGP-Sig > GPG-Key ID: EDD27B94)
> mail: echo zvpu...@urvzvat.qr | perl -pe 'y/a-z/n-za-m/'
> #bofh excuse 345: Having to manually track the satellite.



Guys,

Thanks you all I did it and it works, from now my server can
distribute any rpm and run it over 500 machines
clients machines :-)

Maxim.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
a script to enable remote desktop at registery!!! Ahmad Sabry Windows Networking 1 06-26-2007 09:14 PM
Script on remote shut the windows pc from Linux diffuser78@gmail.com Linux Networking 2 05-16-2006 09:19 PM
RedHat Linux Enterprise WS network lan dhcp script problem. CaptWiggum@gmail.com Linux Networking 0 04-21-2005 03:17 PM
Trouble Installing Linux/Cisco VPN Client Has anyone had trouble compiling the linux cisco vpn client? Here is the output of the install script: # uname -rviosm Linux 2.4.22-1.2188.nptl #1 Wed Apr 21 20:19:18 EDT 2004 x86_64 x86_64 GNU/Linux JSH Linux Networking 4 07-02-2004 12:48 PM
linux script from windows Tom Spencer Linux Networking 2 04-15-2004 01:19 PM



1 2 3 4 5 6 7 8 9 10 11