====== Setup NAS related features ======
===== SMB/CIFS - Samba =====
Install the stock samba package using ''apt-get'' to provide SMB/CIFS support.
To let the root fs stay in ReadOnly mode, edit ''/etc/default/voyage-util'' and set:
VOYAGE_SYNC_DIRS="var/lib/samba"
This effectively will move ''/var/lib/samba'' to tmpfs.
Then, reboot to take effect.
===== Web Access - PHP File Navigator =====
Install [[pfn:pfn|PHP File Navigator]](PFN) to allow file upload/download via web.
===== Web Access - eXtplorer (voyage 0.7.5) =====
Install eXtplorer from http://sourceforge.net/projects/extplorer/ to allow file upload/download via web.
==== Install ====
Extracted the downloaded package, {{:voyage:extplorer_2.1.0rc3.zip|}},to usb hard disk at ''/mnt/usbhd/php/extp''.
The whole thing is 8M, you may put it in tmpfs, if RAM is not an issue.
==== Configure nginx and php ====
Edit ''/etc/nginx/sites-enabled/default'', set alias:
server {
...
location ~ ^/extp/(.*\.php)$ {
alias /mnt/usbhd/php/extp/$1;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fastcgi_params;
}
location ~ ^/extp($|/.*) {
alias /mnt/usbhd/php/extp$1;
}
Edit ''/etc/nginx/nginx.conf'', set upload size limit related settings:
client_max_body_size 200M;
client_body_temp_path /mnt/usbhd/nginx_tmp 1 2;
Edit ''/etc/php5/fpm/php.ini'', set upload size limit related settings:
upload_max_filesize = 200M
post_max_size = 200M
==== Configure ====
Open the web site at http://hostname/extp/ to configure.
===== FTP - Pure-FTP Server =====
Install pure-ftpd using ''apt-get'' to provide FTP service.
===== Rsync =====
Install rsync using ''apt-get'' to provide rsync service.
----