LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-04-2009, 02:46 AM   #1
mashcaster
Member
 
Registered: Dec 2008
Posts: 67

Rep: Reputation: 15
Update ALL LAN PCs


Is it possible to update all LAN PCs without going to each and every PC individually? For example, I may want to apply a security update to all PCs or I may want to add or remove a package from all PCs. Is this possible?
 
Old 02-04-2009, 04:00 AM   #2
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
Yes:
ssh to the PC
login
Become root
Apply the update
logout
 
Old 02-04-2009, 04:07 AM   #3
mashcaster
Member
 
Registered: Dec 2008
Posts: 67

Original Poster
Rep: Reputation: 15
tredegar: That is going to each and every PC individually via ssh which I do not want to do. I want to update all PCs at once. It will take a long time to update 100+ PCs by ssh'ing into each and every PC individually.

For example, a mass update
 
Old 02-04-2009, 04:43 AM   #4
theYinYeti
Senior Member
 
Registered: Jul 2004
Location: France
Distribution: Arch Linux
Posts: 1,897

Rep: Reputation: 66
I don't know what distribution you use, but to my knowledge, Mandriva's “drakxtools” contain a GUI administration tool to do just that.

Yves.
 
Old 02-04-2009, 06:05 AM   #5
mashcaster
Member
 
Registered: Dec 2008
Posts: 67

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by theYinYeti View Post
I don't know what distribution you use, but to my knowledge, Mandriva's “drakxtools” contain a GUI administration tool to do just that.

Yves.
I use Debian stable.
 
Old 02-04-2009, 06:14 AM   #6
skuzye
Member
 
Registered: Jul 2008
Location: São Paulo - Brazil
Distribution: Fedora 17
Posts: 97

Rep: Reputation: 15
If you know bash scripting you can make a script to log in (using ssh), execute a command to update via apt-get, logoff and go to the next computer. Don't forget to use nohup when running apt-get.

For the script itself you can make a "for" loop with ip address. It would be nice if you test connection before trying to directly connect via ssh and to add a sleep time between connections.

For a resource with scripting you can always go to this howto.

Skuzye
 
Old 02-04-2009, 06:29 AM   #7
mashcaster
Member
 
Registered: Dec 2008
Posts: 67

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by skuzye View Post
If you know bash scripting you can make a script to log in (using ssh), execute a command to update via apt-get, logoff and go to the next computer. Don't forget to use nohup when running apt-get.

For the script itself you can make a "for" loop with ip address. It would be nice if you test connection before trying to directly connect via ssh and to add a sleep time between connections.

For a resource with scripting you can always go to this howto.

Skuzye
Looks like this is the only way.
 
Old 02-04-2009, 06:59 AM   #8
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Cfengine is sometimes used to centrally manage a number of hosts.

If you read the Filesystem Hierarchy Standard, there are many directories which can be mounted static/shared. If all of the hosts use the same directory for /lib/,/bin/,/usr/bin/,/usr/sbin/, etcetera you can update the shared directories on the server.

If you use slim clients, then there is only one installation which can be updated.

Another idea could be to allow autoupdates by all of the hosts, but use your own mirror. That way you could control which updates are performed.
 
Old 02-04-2009, 07:02 AM   #9
skuzye
Member
 
Registered: Jul 2008
Location: São Paulo - Brazil
Distribution: Fedora 17
Posts: 97

Rep: Reputation: 15
I personally liked this one suggested by jschiwal:

Quote:
Another idea could be to allow autoupdates by all of the hosts, but use your own mirror. That way you could control which updates are performed.
That would be by far the easier.
 
Old 02-04-2009, 07:12 AM   #10
mashcaster
Member
 
Registered: Dec 2008
Posts: 67

Original Poster
Rep: Reputation: 15
I like the mirror idea, sounds the easiest. However, if you look at my original question, it also asks about installing or removing software from all networked computers. is this also possible from a mirror to automatically add or remove software from all computers?
 
Old 02-04-2009, 07:16 AM   #11
skuzye
Member
 
Registered: Jul 2008
Location: São Paulo - Brazil
Distribution: Fedora 17
Posts: 97

Rep: Reputation: 15
The good thing about the script and ssh is that once you've made the script you can run anything in each computer with just some edition to the script.

If you're in a hurry to update you can try using the mirror while you make the script

Skuzye

Last edited by skuzye; 02-04-2009 at 07:18 AM.
 
Old 02-04-2009, 12:19 PM   #12
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
I've heard great things about using apt-proxy for making your own partial mirror. But getting back to the centralized update management issue: Have you searched the Debian repositories for a solution? Honestly, I'd be surprised if they didn't have a package for this sort of thing.

Last edited by win32sux; 02-04-2009 at 12:20 PM.
 
Old 02-04-2009, 04:00 PM   #13
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
puppet could be your answer
http://reductivelabs.com/

http://reductivelabs.com/trac/puppet/wiki/PuppetDebian
 
Old 02-04-2009, 05:44 PM   #14
mashcaster
Member
 
Registered: Dec 2008
Posts: 67

Original Poster
Rep: Reputation: 15
what is the difference between apt-catcher, apt-mirror, and apt-proxy?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ssh does not work between two PCs of the LAN binary_dreamer Ubuntu 6 04-13-2007 10:43 PM
How to connect other PCs in RHEL4 using LAN sundararaman Linux - Networking 1 02-25-2007 08:03 PM
Setting up a direct LAN between 2 PCs Mr_Nightmare Linux - Networking 3 08-31-2005 07:58 PM
help to join 2 network ID PCs in single LAN cranium2004 Linux - Networking 2 10-27-2004 02:58 AM
Linux as Gateway in a LAN out of 20 PCs stormblast Linux - Newbie 2 04-30-2004 12:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:35 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration