NFS Protocol
For security reasons this is not recommended for unexperienced users.
The eManager runs a NFS server. This allows remote file navigation through your PC file manager.
Setting up a NFS server (steps to follow on an eManager)
In this example we expose the eManager folder /srv/nfs/emanager_shared
to the NFS protocol.
-
Open an eManager terminal with Internet connection and type
-
Choose a folder to be shared. In this example we choose
/srv/nfs/emanager_shared
. Create it if it doesn't exist. -
Add the absolute path to
and edit the/etc/nfs-utils.conf
as follows. Open the filePROCNFSD_MOUNTPOINT
field. -
Edit
/etc/exports
-
Enable and restart the nfs server
-
Add permissions to the folder. In this case, only read permissions are given:
Permissions
Files and folders in /srv/nfs/emanager_shared
may miss read permissions when accessed from PC. Execute chmod 555 -R /srv/nfs/emanager_shared
at the eManager terminal in order to recursively add permissions to the whole folder tree under /srv/nfs/emanager_shared
. It may be necessary to execute this command every time new files are added by the eManager user or system.
Now /srv/nfs/emanager_shared
should be accessible via NFS.
How to stop the NFS server
Stop the NFS server in the eManager with
Setting up a NFS client (steps to follow on a PC)
In this section the steps that must be followed to access a NFS server from a PC are detailed for different operating systems.
-
Install
nfs-common
packages. This step may vary depending on your package manager. The following commands should work on any Debian-based distros such as Ubuntu, MX Linux or Deepin. -
Choose a place in your PC to mount the shared directory. In this example we placed it at
/mnt/client_sharedfolder
-
Connect the PC to the eManager, either using Ethernet or WiFi eManager Hotspot.
-
Mount the folder
whereField Description Examples SERVER Either IP address to eManager
or
hostname.localeManager-Pro-ABCDEF.local
emanager-pro-abcdef.local
192.168.137.1
NFS_export Absolute path to the shared directory on
the eManager system/srv/nfs/emanager_shared
Local_mountpoint Mount point directory on the PC /mnt/client_sharedfolder/
In our example it looks like
The content of/srv/nfs/emanager_shared
from the eManager should be visible at/mnt/client_sharedfolder
in your PC.
-
Choose a place in your Mac to mount the shared directory. In this example we placed it at
/private/nfs/client_sharedfolder
-
Connect the Mac to the eManager, either using Ethernet or WiFi eManager Hotspot.
-
Open a terminal on your Mac and mount the remote folder
whereField Description Examples SERVER Either IP address to eManager
or
hostname.localeManager-Pro-ABCDEF.local
emanager-pro-abcdef.local
192.168.137.1
NFS_export Absolute path to the shared directory on
the eManager system/srv/nfs/emanager_shared
Local_mountpoint Mount point directory on the PC /private/nfs/client_sharedfolder
In our example this looks like
The content ofsudo mount -o rw,bg,hard,resvport,intr,noac,nfc,tcp eManager-Pro-ABCDEF.local:/srv/nfs/emanager_shared /private/nfs/client_sharedfolder
/srv/nfs/emanager_shared
from the eManager should be visible at/private/nfs/client_sharedfolder
in your Mac. It also should be visible at the Computer window (while in Finder press Shift+Cmd+C).
Keep in mind
The mount
step is persistent on eManager reboots. However, the mount
command should be executed on every PC/Mac boot.
To unmount the shared folder type in your PC use sudo umount /mnt/client_sharedfolder/
.