Introduction
With a Raspberry Pi, Samba and CORTX, this integration lets you create your NAS server (to serve network-wide files) cheaply, and automatically syncs with your CORTX storage.
What is NAS?:
Network attached storage allows you to share files from one, always-on device throughout your house. With a NAS on your network, you can use it to store your movies and play them from multiple Kodi boxes, store backups on it from your PC, or use it as a BitTorrent box that seeds your files 24/7.
Setup
- Setup RPi
Download RPI OS and BalenaEtcher.
Run sudo apt-get update && sudo apt-get upgrade
- Setup Samba
Run sudo apt install samba samba-common-bin -y
Create folders for NAS sharing
sudo mkdir -p /home/shared/public sudo chown -R root:users /home/shared/public sudo chown -R ug=rwx,o=rx /home/shared/publicUpdate Samba config files
Run sudo nano /etc/samba/smb.conf, then insert:
[your-storage-name]
path = /
writeable = yes
create mask = 0775
directory mask = 0775
public = no
- Password lock your server
Run sudo smbpasswd -a pi and configure your password
- Restart Samba service
Run sudo /etc/init.d/smbd restart
- Mount your USB/HDD/etc - it is usually SDA1
E.g. Run umount dev/sda1
- Configure AWS
pip install awscli
aws configure
- Sync NAS storage with CORTX
aws --endpoint-url http://your-endpoint s3 sync s3://bucket-name .
Built With
- amazon-web-services
- aws-cli
- cortx
- raspberry-pi
- samba
Log in or sign up for Devpost to join the conversation.