This is an old revision of the document!
Table of Contents
Introduction
A fileserver is a machine other than your workstation, that keeps your files.
Usually, a single fileserver provides filesharing between multiple workstations.
NFS server
The following is a simple recipy for setting up a NFS server that is available to all machines in a subnet.
To set up a NFS server under TinyCore, you need 2 packages. (To setup a NFS client, you only need the first package.)
- nfs-utils.tcz
- filesystems-`uname -r`.tcz (note: shell backquotes to insert output of `uname -r` command.)
The appropriate install option for both packages is OnBoot
NFS server configuration files
The NFS server is configured by 3 files:
- /etc/hosts.deny
- /etc/hosts.allow
- /etc/exports
You can get away with leaving hosts.deny and hosts.allow empty, but this arrangement is only secure enough within a home network behind a firewall.
To share the directory /home/nfs for read-write access, create the file /etc/exports, and add a line like the following
/home/nfs 192.168.2.0/255.255.255.0(rw,async,no_subtree_check)
This will make the directory available for any machine in the IP subnet (192.168.2.xxx).
You can also specify exact IP adresses.
Starting the NFS server
"/usr/local/etc/init.d/nfs-server start"
Approaching the NFS server by a client
If your TinyCore box with the NFS server has IP address 192.168.2.252, then you can access its files from any machine with an IP address like 192.168.2.xxx ; by entering the following command.
sudo mount 192.168.2.252:/home/nfs /mnt/nfs
( See boot option nodhcp to obtain a fixed IP address )
See also:
Samba server
(Under construction)
rsync server
(Under construction)