added nas section

This commit is contained in:
cedricve
2015-06-03 00:12:58 +02:00
parent 1e29b1bb78
commit 16b2004a0d
2 changed files with 50 additions and 0 deletions

25
1.0.0/42_addons/3_NAS.md Normal file
View File

@@ -0,0 +1,25 @@
# NAS
By default images are stored on the SD card of the Raspberry Pi, in the folder **/home/kerberos-web/public/capture**. However it's also possible to store the images directly on a NAS (e.g. WD MyBook). To achieve this, you will need to do some minimal modifications to the Kerberos image.
## Let's get started
First you will need to connect to the Raspberry Pi, you can find a how to [on our FAQ page](/1.0.0/FAQ#how-to-access-the-pi).
Next you will need to mount the NAS to the filesystem of your Rapsberry Pi. In order to make a permanent mount you need to edit the fstab file.
nano /etc/fstab
Add following line (replace variables with your own credentials):
//ip_address_to_your_nas/directory_on_your_nas /home/kerberos-web/public/capture cifs username=user_on_your_nas,password=password_for_your_nas,iocharset=utf8,file_mode=0777,dir_mode=0777 0 0
Mount the NAS
mount -a
Check if the mount was successful, you should see the already existing content on your referred NAS directory.
cd /home/kerberos-web/public/capture && ls -l
And that's it. From now the machinery will store it's images directly on your NAS, and the webinterface will visualize them.

25
dev/42_addons/3_NAS.md Normal file
View File

@@ -0,0 +1,25 @@
# NAS
By default images are stored on the SD card of the Raspberry Pi, in the folder **/home/kerberos-web/public/capture**. However it's also possible to store the images directly on a NAS (e.g. WD MyBook). To achieve this, you will need to do some minimal modifications to the Kerberos image.
## Let's get started
First you will need to connect to the Raspberry Pi, you can find a how to [on our FAQ page](/dev/FAQ#how-to-access-the-pi).
Next you will need to mount the NAS to the filesystem of your Rapsberry Pi. In order to make a permanent mount you need to edit the fstab file.
nano /etc/fstab
Add following line (replace variables with your own credentials):
//ip_address_to_your_nas/directory_on_your_nas /home/kerberos-web/public/capture cifs username=user_on_your_nas,password=password_for_your_nas,iocharset=utf8,file_mode=0777,dir_mode=0777 0 0
Mount the NAS
mount -a
Check if the mount was successful, you should see the already existing content on your referred NAS directory.
cd /home/kerberos-web/public/capture && ls -l
And that's it. From now the machinery will store it's images directly on your NAS, and the webinterface will visualize them.