Here we will introduce the addition of new features to sige7, which allows for file sharing among all devices in the local area network by attaching a large capacity hard drive to the Raspberry Pi, commonly known as an SMB server
Create a Directory
Create a directory in any path:
mkdir /opt/smb
sudo chmod -R 777 /opt/smb
Install smb Service
sudo apt update
sudo apt install samba -y
Create smb Password File
touch /etc/samba/smbpasswd
Add User and Set Password
sudo smbpasswd -a armsom
If you need to change your password, run sudo smbpasswd - a armsom
again;
Add Configuration File
Add the Following Configuration in /etc/samba/smb.conf
vi /etc/samba/smb.conf
[armsom]
comment = armsom
path = /opt/smb
writable = yes
valid user =armsom
available = yes
create mask = 0777
directory mask = 0777
public = yes
Restart smb Service
sudo /etc/init.d/smbd restart
SMB Space Expansion
I have a 2TB hard drive that I plan to use as storage space for smb;
we need to ensure the power supply of the sige7, the power supply needs to reach 5V 3000mA, to ensure that the sige7will not crash after the high-capacity hard drive is connected through USB.
Create a new folder 2tb
under /opt/smb/
as the mount point
sudo mkdir /opt/smb/2tb
sudo chmod 777 -R /opt/smb/2tb
sudo mount /dev/sda1 /opt/smb/2tb