LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 10-30-2005, 07:00 PM   #1
jford_oldman
Member
 
Registered: Apr 2005
Location: western PA, USA - near Pittsburgh, kind of
Distribution: Debian
Posts: 36

Rep: Reputation: 17
Update/upgrade cluster through one node?


I'm pretty much a newbie at Linux. I've got four rather old PCs, each running Debian 3.1, all connected to a system running XP with freeproxy serving to allow access to the 'net. I will shortly reconfigure this cluster so that one Debian system will run Apache 2 as a web server, and - hopefully - provide IP Masquerading for the internal cluster.

My question is this: right now, I regularly use apt-get update and apt-get upgrade to keep the software current. It occurred to me today (slow learner, sorry) that each system is going out on the net and contacting the repositories, even though the first system upgraded pretty much has all the software the subsequent systems need. When I reconfigure the cluster, is there a way I can configure it so that the "Apache" system - the one providing the link between the external web and the internal network - serves as the repository for subsequent systems?

I tried searching, but I don't know enough to know what exactly I should be search for, so even advice along that line would be appreciated.

TIA.
 
Old 10-30-2005, 08:51 PM   #2
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
Information about this you might find in the Debian Reference Manual, chapter 6 "Debian Package Management"

I think you should try to create something that is named a local repository. I tried it once and I failed, but that might be because I did something wrong. I would be interested in your experiences if you succeeded, since I have more or less the same situation as you with multiple machines running Debian on the LAN

jlinkels
 
Old 11-01-2005, 07:34 AM   #3
jford_oldman
Member
 
Registered: Apr 2005
Location: western PA, USA - near Pittsburgh, kind of
Distribution: Debian
Posts: 36

Original Poster
Rep: Reputation: 17
Thanks for the pointer. I will let you know if I get it working, but I probably won't have time until Christmas to work on this.

I did find "How to build a local apt-get mirror", which describes what I think is a possible solution. And the apt-get info suggests that I should be able to installing an http or ftp daemon on the "main" node - and it will be running Apache2. However, I'm more interested in the possibility of using the file options in the sources.list files on the "other" nodes.

I'll let you know.
 
Old 11-01-2005, 10:26 AM   #4
Wells
Member
 
Registered: Nov 2004
Location: Florida, USA
Distribution: Debian, Redhat
Posts: 417

Rep: Reputation: 53
Something else you could give a shot is sharing out /var/cache/apt via NFS to the other machines in the same location. This way only one machine is actually holding onto the cached files. I have no idea whether or not this will work, however, so if it doesn't work, you may want to have the old directory lying around somewhere so that you can repair the damage this may cause.
 
Old 11-01-2005, 11:34 AM   #5
jford_oldman
Member
 
Registered: Apr 2005
Location: western PA, USA - near Pittsburgh, kind of
Distribution: Debian
Posts: 36

Original Poster
Rep: Reputation: 17
This is more in line with what I'd like to do, if I'm able to figure it out. The docs say that the sources.list can include nfs: repositories as well as http: and ftp: repositories. I just haven't seen any examples of that actually being done.
 
Old 11-01-2005, 11:43 AM   #6
yanik
Member
 
Registered: Oct 2003
Location: Montreal Beach
Distribution: Debian Unstable
Posts: 368

Rep: Reputation: 30
Look at apt-proxy

Quote:
apt-proxy automatically builds a Debian HTTP mirror based
on requests which pass through the proxy. It's great for
multiple Debian machines on the same network with a slower
internet link.
.
The archive is automatically kept up to date using http,
ftp or rsync. Cache cleaning of unused and old versions
is configurable. You can also import the contents of
your apt cache into the archive using apt-proxy-import.
.
For more information, see the apt-proxy homepage at
http://apt-proxy.sourceforge.net
You just have to change the /etc/apt/sources.list on the clients to point to the apt-proxy machine.
 
Old 11-01-2005, 07:13 PM   #7
jford_oldman
Member
 
Registered: Apr 2005
Location: western PA, USA - near Pittsburgh, kind of
Distribution: Debian
Posts: 36

Original Poster
Rep: Reputation: 17
This sounds very good. Thanks a lot.
 
Old 11-02-2005, 10:15 AM   #8
Wells
Member
 
Registered: Nov 2004
Location: Florida, USA
Distribution: Debian, Redhat
Posts: 417

Rep: Reputation: 53
Oooh...nice! This looks like an automated version of what I was talking about, sort of.
 
Old 11-02-2005, 07:09 PM   #9
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
I haven't tried it, but it looks very good... exactly the thing I was looking for.

jlinkels
 
  


Reply



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
cannot ping cluster node...pxe-error..help dogma Linux - Newbie 2 09-13-2006 11:34 AM
Problem in a Parallel program for a 4 node CLUSTER nedian123 Linux - Networking 1 07-22-2004 03:05 AM
3 node Apache WebServer Linux Cluster youngclusterman Linux - Networking 12 01-29-2004 12:13 PM
cant ping a node in a cluster.. dogma Linux - Networking 3 05-21-2003 11:06 PM
how do I SSH into a cluster node? dogma Linux - Newbie 4 05-15-2003 04:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 03:46 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