Cluster der kan alt/Configure NFS server, Apt cacher and SSH auto login
From Teknologisk videncenter
NFS Server
Installer NFS Server
apt-get install nfs-kernel-server -y
Edit the exports file
nano /etc/exports
Add this line at the bottom
/home/ 10.0.0.0/24(rw,no_root_squash,no_subtree_check,async)
Export the new share
exportfs
Restart the NFS server service
service nfs-kernel-server restart
Enter the idmapd.conf file
nano /etc/idmapd.conf
Change the domain to "Cluster"
Domain = Cluster
Restart the idmapd service
service idmapd restart
NFS Clienter
Installer NFS clienten
apt-get install nfs-common -y
- For at UID og GID bliver overført korrekt til Klienterne skal de have det samme
IDMAPD domain i /etc/idmapd.conf
Domain = Cluster
- genstart så idmapd servicen for at loade det nye configuration.
service idmapd restart
Mount folderen på klienten
mount 10.0.0.1:/home/ /home/
Apt-Cacher
Apt-cacher
Indtast apt-getinstall apt-cacher.
Ændre i /etc/apt-cacher/apt-cacher.conf
path_map = ubuntu de.archive.ubuntu.com/ubuntu; ubuntu-updates de.archive.ubuntu.com/ubuntu ; ubuntu-security security.ubuntu.com/ubuntu
allowed_hosts=*
Ændre i /etc/default/apt-cacher også:
AUTOSTART=1
Og genstart apt-cacher:
/etc/init.d/apt-cacher restart