from small one page howto to huge articles all in one place

search text in:

Other sites:

Last additions:
How to make X listen on port 6000

How to make X listen on port 6000






average rating: 1.5 (4 votes) (1=very good 6=terrible)

May, 25th 2007:
April, 26th 2007:
Apr, 10th. 2007:
Druckversion . pdf icon
You are here: Misc

Portage via NFS

You have multiple gentoo installations in your network and don't want to waste disc space for the portage tree and bandwidth to sync them all?

Just read ahead :)

installing nfs server and client

First you have to install an nfs server on the server you picked and nfs utils on the clients.
emerge nfs-utils
Next you need to enable nfs server/client support in the kernel of the machines you use. (Usually this is already enabled)

Add the needed initscripts to the runlevel and nfs should work.

server: rc-update add nfs default
client: rc-update add nfsmount default

exporting your portage tree

On the server side you need to export your portage tree:
nano -w /etc/exports
(modify the ip/netmask according to your network settings)

start the nfs server and nfs clients

Now, start the init scripts.

cleaning clients old portage tree

Next step has to be repeated on all client machines, NOT on the server
cd /usr/portage
rm -r *
This cleans the existing portage tree.

mounting the server's tree

add this to the /etc/fstab file on each client  /usr/portage  nfs  rw
mount the new tree
mount /usr/portage
if all went fine, you should see the portage tree in /usr/portage

once again, this time with the cache

repeat the steps above with the directory /var/cache/edb/dep/usr/portage this way, portage uses the server's portage cache, which speeds up things a bit.


In this setup one client fetches a file, all client can use it, this saves bandwidth and time, but creates more internal network load.
Every user can sync the tree now or you could create a crontab on the server to have it sync every week. Please don't sync more than once a day.
rate this article:
current rating: average rating: 1.0 (7 votes) (1=very good 6=terrible)
Your rating:
Very good (1) Good (2) ok (3) average (4) bad (5) terrible (6)


Other free services
Shorten long
URLs to short
links like
Reverse DNS lookup
Find out which hostname(s)
resolve to a
given IP or other hostnames for the server

New Packages

- as rdf newsfeed
- as rss newsfeed
- as Atom newsfeed
rdf newsfeed | rss newsfeed | Atom newsfeed
- Powered by LeopardCMS - Running on Gentoo -
Copyright 2004-2018 Sascha Nitsch Unternehmensberatung UG(haftungsbeschänkt)
Valid XHTML1.1 : Valid CSS : buttonmaker
- Level Triple-A Conformance to Web Content Accessibility Guidelines 1.0 -
- Copyright and legal notices -
Time to create this page: 37.3 ms