Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

These instructions are a basic guide for a super-user to install and configure NFS on Linux.

Installation

The basic installation commands are as follows.

For CentOS-RHEL:

yum -y install nfs-utils nfs-utils-lib

For Ubuntu:

sudo apt-get install nfs-kernel-server
Configuration

Edit /etc/exports and add the following line:

/opt/vm_repository *(rw,no_root_squash,subtree_check,insecure)

Edit /etc/samba/smb.conf, empty the file, and add this configuration:

[global]
workgroup = WORKGROUP
server string = %h server
dns proxy = no
log file = /var/log/samba/log.%m
max log size = 1000
syslog = 0
panic action = /usr/share/samba/panic-action %d
security = share
guest account = root
encrypt passwords = true
passdb backend = tdbsam
obey pam restrictions = yes
unix password sync = yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
pam password change = yes

[vm_repository]
path = /opt/vm_repository
guest ok = yes
read only = false
locking = yes

The NFS shared directory must have an empty file named .abiquo_repository (the dot prefix is required). 
To create the file, run the following command:

touch /<path-to-shared-dir>/.abiquo_repository
  • No labels