/[gentoo]/xml/htdocs/doc/en/home-router-howto.xml
Gentoo

Diff of /xml/htdocs/doc/en/home-router-howto.xml

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.28 Revision 1.29
1<?xml version='1.0' encoding='UTF-8'?> 1<?xml version='1.0' encoding='UTF-8'?>
2<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/home-router-howto.xml,v 1.28 2005/07/02 09:59:11 swift Exp $ --> 2<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/home-router-howto.xml,v 1.29 2005/08/04 00:18:20 vapier Exp $ -->
3<!DOCTYPE guide SYSTEM "/dtd/guide.dtd"> 3<!DOCTYPE guide SYSTEM "/dtd/guide.dtd">
4 4
5<guide link="/doc/en/home-router-howto.xml"> 5<guide link="/doc/en/home-router-howto.xml">
6 6
7<title>Home Router Guide</title> 7<title>Home Router Guide</title>
13<abstract> 13<abstract>
14This document details how to turn an old Gentoo machine into a router 14This document details how to turn an old Gentoo machine into a router
15for connecting your home network to the internet. 15for connecting your home network to the internet.
16</abstract> 16</abstract>
17 17
18<version>1.8</version> 18<version>1.9</version>
19<date>2005-07-02</date> 19<date>2005-08-03</date>
20 20
21<chapter> 21<chapter>
22<title>Introduction</title> 22<title>Introduction</title>
23<section> 23<section>
24<body> 24<body>
681<pre caption="Setting up a NTP client"> 681<pre caption="Setting up a NTP client">
682# <i>nano /etc/conf.d/ntp-client</i> 682# <i>nano /etc/conf.d/ntp-client</i>
683<comment>Change the 'pool.ntp.org' server in the NTPCLIENT_OPTS variable to '192.168.0.1'</comment> 683<comment>Change the 'pool.ntp.org' server in the NTPCLIENT_OPTS variable to '192.168.0.1'</comment>
684# <i>rc-update add ntp-client default</i> 684# <i>rc-update add ntp-client default</i>
685# <i>/etc/init.d/ntp-client start</i> 685# <i>/etc/init.d/ntp-client start</i>
686</pre>
687
688</body>
689</section>
690
691<section>
692<title>Rsync Server</title>
693<body>
694
695<p>
696For those who run multiple Gentoo boxes on the same lan, you often want to
697keep from having every machine running <c>emerge sync</c> with remote
698servers. By setting up a local rsync, you save on both your bandwidth and
699the Gentoo rsync servers' bandwidth. It's pretty simple to do.
700</p>
701<note>
702For a much more in-depth rsync guide, please see the official <uri
703link="/doc/en/rsync.xml#doc_chap4">rsync guide</uri>
704</note>
705
706<p>
707Since every Gentoo machine requires rsync, theres no need to emerge it. Edit
708the default <path>/etc/rsyncd.conf</path> config file, uncomment the
709<c>[gentoo-portage]</c> section, and make sure you add an <c>address</c>
710option. All the other defaults should be fine.
711</p>
712
713<pre caption="Rsync server config">
714pid file = /var/run/rsyncd.pid
715use chroot = yes
716read only = yes
717address = 192.168.0.1
718
719[gentoo-portage]
720 path = /mnt/space/portage
721 comment = Gentoo Linux Portage tree
722 exclude = /distfiles /packages
723</pre>
724
725<p>
726Then you need to start the service (again, the defaults are OK).
727</p>
728
729<pre caption="Starting the rsync server">
730# <i>/etc/init.d/rsyncd start</i>
731# <i>rc-update add rsyncd default</i>
732</pre>
733
734<p>
735Only thing left is to set tell your clients to sync against the router.
736</p>
737
738<pre caption="Client SYNC settings in make.conf">
739SYNC="rsync://192.168.0.1/gentoo-portage"
686</pre> 740</pre>
687 741
688</body> 742</body>
689</section> 743</section>
690 744

Legend:
Removed from v.1.28  
changed lines
  Added in v.1.29

  ViewVC Help
Powered by ViewVC 1.1.20