Difference between revisions of "Cluster der kan alt/Configure NFS server, Apt cacher and SSH auto login"
From Teknologisk videncenter
(→NFS Clienter) |
(→Apt-Cacher) |
||
Line 37: | Line 37: | ||
=Apt-Cacher= | =Apt-Cacher= | ||
− | + | Install the apt-cacher program | |
− | + | <source lang=cli> | |
+ | apt-get install apt-cacher | ||
+ | </source> | ||
− | + | Enter the apt-cacher.conf file | |
+ | <source lang=cli> | ||
+ | nano /etc/apt-cacher/apt-cacher.conf | ||
+ | </source> | ||
+ | Instert the following | ||
<source lang=cli> | <source lang=cli> | ||
path_map = ubuntu de.archive.ubuntu.com/ubuntu; ubuntu-updates de.archive.ubuntu.com/ubuntu ; ubuntu-security security.ubuntu.com/ubuntu | path_map = ubuntu de.archive.ubuntu.com/ubuntu; ubuntu-updates de.archive.ubuntu.com/ubuntu ; ubuntu-security security.ubuntu.com/ubuntu | ||
allowed_hosts=* | allowed_hosts=* | ||
</source> | </source> | ||
− | + | ||
+ | Enter the apt-cacher file | ||
+ | <source lang=cli> | ||
+ | nano /etc/default/apt-cacher | ||
+ | </source> | ||
+ | set the autostart to 1 | ||
<source lang=cli> | <source lang=cli> | ||
AUTOSTART=1 | AUTOSTART=1 | ||
</source> | </source> | ||
− | + | ||
+ | Restart the apt-cacher service | ||
<source lang=cli> | <source lang=cli> | ||
− | /etc/init.d/apt-cacher restart | + | sudo /etc/init.d/apt-cacher restart |
</source> | </source> | ||
− |
Revision as of 13:24, 6 November 2013
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
Apt-Cacher
Install the apt-cacher program
apt-get install apt-cacher
Enter the apt-cacher.conf file
nano /etc/apt-cacher/apt-cacher.conf
Instert the following
path_map = ubuntu de.archive.ubuntu.com/ubuntu; ubuntu-updates de.archive.ubuntu.com/ubuntu ; ubuntu-security security.ubuntu.com/ubuntu
allowed_hosts=*
Enter the apt-cacher file
nano /etc/default/apt-cacher
set the autostart to 1
AUTOSTART=1
Restart the apt-cacher service
sudo /etc/init.d/apt-cacher restart