Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[risolto][emerge] cumulativo x 2 pc in rete....
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
Gaspyd
Apprentice
Apprentice


Joined: 21 Nov 2004
Posts: 242
Location: Brindisi, Italy

PostPosted: Sat Jun 11, 2005 12:57 pm    Post subject: [risolto][emerge] cumulativo x 2 pc in rete.... Reply with quote

Ho un router collegato ad un data switch a cui sono collegati il mio desktop gentoo ed un portatile acer in dual boot winxp/kubuntu.
Vorrei piazzare gentoo anche sul portatile e piallare ubuntu e mi chiedevo come lanciare un emerge --sync valido per entrambi i pc.
Aggiornare portage prima su uno e poi sull'altro mi pare assurdo.
I 2 pc hanno architetture differenti (amd64 per il desk e pentium4 per il portatile) lo specifico perchè non so se emerge --sync scarica solo quel che riguarda la specifica architettura su cui è in esecuzione.
Si può fare ?

Grazie


Last edited by Gaspyd on Sat Jun 11, 2005 7:21 pm; edited 1 time in total
Back to top
View user's profile Send private message
Cazzantonio
Bodhisattva
Bodhisattva


Joined: 20 Mar 2004
Posts: 4514
Location: Somewere around the world

PostPosted: Sat Jun 11, 2005 3:59 pm    Post subject: Reply with quote

puoi installare su uno un server rsync (c'è una guida gentoo che spiega come farlo... è semplicissimo... ok... ti posto il mio file di conf) e fare il sync dall'altro su quello... io faccio così per la mia piccola rete:

/etc/rsyncd.conf:
Code:
uid = nobody
gid = nobody
use chroot = yes
read only = yes

#limit access to private LAN's
hosts allow=<indirizzi ip dei client>
hosts deny=*

max connections = 10
pid file = /var/run/rsyncd.pid
motd file = /etc/rsync/rsyncd.motd

log format = %t %a %m %f %b
syslog facility = local3
timeout = 300

[gentoo-portage]
path=/usr/portage/
comment = Gentoo Linux Portage tree mirror
exclude = distfiles/  packages/

poi metti nel make.conf dei client una riga come questa:
Code:
SYNC="rsync://<indirizzo ip del server>/gentoo-portage"

Il fatto che le architetture siano differenti non cambia nulla... portage è portage punto
_________________
Any mans death diminishes me, because I am involved in Mankinde; and therefore never send to know for whom the bell tolls; It tolls for thee.
-John Donne
Back to top
View user's profile Send private message
Gaspyd
Apprentice
Apprentice


Joined: 21 Nov 2004
Posts: 242
Location: Brindisi, Italy

PostPosted: Sat Jun 11, 2005 7:21 pm    Post subject: Reply with quote

Perfetto grazie.
Magari domenica ci metto mani e vediamo che succede ..... :wink:
Back to top
View user's profile Send private message
bender86
Guru
Guru


Joined: 18 Mar 2005
Posts: 484

PostPosted: Sun Jun 12, 2005 3:41 pm    Post subject: Reply with quote

E se invece si montasse la directory /usr/portage tramite la rete (con nfs, samba, shfs o altro)?
Il vantaggio sarebbe di avere un portage tree unico, io ho sempre fatto così, dato che il vecchio router non aveva abbastanza spazio, ma non so se ci possono essere delle controindicazioni.
Back to top
View user's profile Send private message
Ic3M4n
Advocate
Advocate


Joined: 02 Nov 2004
Posts: 3489
Location: Bergamo.

PostPosted: Sun Jun 12, 2005 4:37 pm    Post subject: Reply with quote

bender86 wrote:
ma non so se ci possono essere delle controindicazioni.

non ci sono complicazioni, io personalmente metto in condivisione solo i distfiles, almeno se sono in giro ho comunque la possibilità di fare ricerche in portage. almeno... farò così fino a quando non avrò problemi di spazio sul portatile. in ogni caso credo che avere tutto il ramo di portage in share sia samba che nfs generi molto traffico di rete, non lo farei mai su sistemi "in produzione" o comunque con molti computer collegati insieme.
Back to top
View user's profile Send private message
lavish
Bodhisattva
Bodhisattva


Joined: 13 Sep 2004
Posts: 4296

PostPosted: Sun Jun 12, 2005 4:56 pm    Post subject: Reply with quote

Ic3M4n wrote:
in ogni caso credo che avere tutto il ramo di portage in share sia samba che nfs generi molto traffico di rete, non lo farei mai su sistemi "in produzione" o comunque con molti computer collegati insieme.


Esattamente lo stesso traffico che potrebbe venire prodotto dall'avere un server rsync interno...
_________________
minimalblue.com | secgroup.github.io/
Back to top
View user's profile Send private message
Truzzone
Guru
Guru


Joined: 16 Oct 2003
Posts: 492
Location: Italy

PostPosted: Sun Jun 12, 2005 6:01 pm    Post subject: Reply with quote

@bender86 e Ic3M4n:
Potete postare la linea del vostro /etc/fstab relativa al mount della cartella distfiles in condivisione (se usate samba)?
Durante le mie prove ho sempre avuto problemi nella condivizione dei distfiles con samba, poichè durante alcuni emerge vuole scrivere nei file .locks presenti in distfiles ed ogni volta mi restituisce diversi errori perchè non riesce a farlo, ho provato anche con cifs lato client ma neinte :cry:

Ciao by Truzzone :(
Back to top
View user's profile Send private message
bender86
Guru
Guru


Joined: 18 Mar 2005
Posts: 484

PostPosted: Sun Jun 12, 2005 7:34 pm    Post subject: Reply with quote

@Truzzone:
Mi spiace ma usavo shfs: non avevo idea di come configurare nfs e samba, mentre quello funzionava senza nessun problema. Però credo sia la possibilità meno performante.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum