updates for multiple machines [Solved]

If you are new to Linux or new to Sabayon Linux and just not sure where to post, here ya go. Post without fear of being told to RTFM :-)

Moderator: Moderators

updates for multiple machines [Solved]

Postby laughing.gravy » Sat Sep 15, 2012 10:13

Hello,
I've been using sabayon for a while now and am so happy with it that I've installed it on all 3 of my machines.
This being the case, I wonder is there any way to set up a local repository so that I can download updates to one "master" machine so that the other two can get the updates from this one over my home wireless network. It would save bandwidth etc.
I can't seem to find much literature on this.
Oh and one other thing, I just upgraded to sabayon 10 but one of my machines is still showing the sabayon 9 background. Is it easy to change this to the new one?

All help always greatly appreciated
Last edited by laughing.gravy on Sun Dec 30, 2012 21:31, edited 1 time in total.
laughing.gravy
Baby Hen
 
Posts: 7
Joined: Fri Nov 25, 2011 21:58

Re: updates for multiple machines

Postby sabayonino » Sat Sep 15, 2012 12:15

Hi I've setup a my own small server for my LAN

1 . Make a directory where store an rsync server (Examplke : /mirror/sabayon-mirror)
2 . Setup /etc/rsyncd.conf (rsync configuration file : see http://www.gentoo.org/doc/en/rsync.xml)
This is myown config files :
Code: Select all
[gentoo-portage]
        path = /usr/portage
        comment = Local Gentoo Portage Tree
        exclude = distfiles/  packages/
[sabayon]
        path = /mirror/sabayon-mirror
        comment = Local Sabayon Mirror
       


3. create a cron script for sync :
Code: Select all
#!/bin/bash
sync -az --delete --update --exclude-from=/mirror/exclude.lst rsync://na.mirror.garr.it/sabayonlinux /mirror/sabayon-mirror


exclude.lst file , contains the directories/files that I want to exclude (sorting by relative paths)
Code: Select all
games-*
*.etp
*.debug.tar.bz2
distfiles/
iso/
entropy/standard/portage/
entropy/standard/sabayon-limbo/
entropy/standard/sabayon-hell/
entropy/standard/sabayon-armel/
entropy/standard/sabayonlinux.org/database/x86/
entropy/standard/sabayonlinux.org/database/armv7l/
entropy/standard/sabayonlinux.org/database/armel/
entropy/standard/sabayonlinux.org/packages/x86/
entropy/standard/sabayonlinux.org/packages//armel/
entropy/standard/sabayonlinux.org/packages/armv7l/
entropy/standard/sabayonlinux.org/packages-nonfree/x86/
entropy/standard/sabayonlinux.org/packages-nonfree/armel/
entropy/standard/sabayonlinux.org/packages-nonfree/armv7l/
entropy/standard/sabayonlinux.org/packages-restricted/x86/
entropy/standard/sabayonlinux.org/packages-restricted/armel/
entropy/standard/sabayonlinux.org/packages-restricted/armv7l/
entropy/standard/sabayon-weekly/database/x86/
entropy/standard/sabayon-weekly/database/armv7l/
entropy/standard/sabayon-weekly/database/armel/
entropy/standard/sabayon-weekly/packages/x86/
entropy/standard/sabayonlinux.org/packages-restricted/armel/
entropy/standard/sabayonlinux.org/packages-restricted/armv7l/
entropy/standard/sabayon-weekly/database/x86/
entropy/standard/sabayon-weekly/database/armv7l/
entropy/standard/sabayon-weekly/database/armel/
entropy/standard/sabayon-weekly/packages/x86/
entropy/standard/sabayon-weekly/packages//armel/
entropy/standard/sabayon-weekly/packages/armv7l/
entropy/standard/sabayon-weekly/packages-nonfree/x86/
entropy/standard/sabayon-weekly/packages-nonfree/armel/
entropy/standard/sabayon-weekly/packages-nonfree/armv7l/

As you can see I excluded ISO's directory and some repo and arch that I don't care or to sync because most of my Pcs are 64bit

Change na.mirror.it rsync server with you preferite rsync server

4.Edit /etc/entropy/repositories.conf.d/entropy_sabayonlinux.org
(or entropy_sabayon-limbo)

and add this line at the end of the file

Code: Select all
repository = sabayonlinux.org|Local Repository|rsync://<your_IP_server>/sabayon/entropy|rsync://<you_IP_server>/sabayon/entropy|


change IP andress and/or paths with your choice.

5. start rsync service
Code: Select all
/etc/init.d/rsyncd start && rc-update add rsyncd default


6 . run rsync script that you make.
Note : first sync is very long

6 . Try if it works
Code: Select all
# equo update --force && equo install equo --relaxed


If you want your rsync mirror update , please comment all repository mirrors (except your )

Change all paths with your own. I wrote this as example refered to my configuration
User avatar
sabayonino
Sagely Hen
 
Posts: 1564
Joined: Sun Sep 21, 2008 1:12
Location: Italy

Re: updates for multiple machines

Postby laughing.gravy » Sat Sep 15, 2012 15:05

Thanks alot sabayonino for taking the time for such a detailed post.
It might take me a while to understand this but at least I've got something to try!

Cheers
laughing.gravy
Baby Hen
 
Posts: 7
Joined: Fri Nov 25, 2011 21:58


Return to Beginners|Newbies Area

Who is online

Users browsing this forum: No registered users and 3 guests