| Install Samba |
|
First :-
sudo apt update
sudo apt upgrade
|
Gets the latest repository and files plus update the system |
| sudo apt install samba |
Installs samba |
| Make the directory accessable to all |
|
| sudo chmod 777 [/media/share] |
make sure .media/share is your directory |
| Now edit the config file /etc/samba/smb.conf |
|
Add the following:-
[SharePi]
comment = RaspberryPi
public = yes
writeable = yes
browsable = yes
path = /medi/share
create mask = 0777
directory mask 0777
save
|
make sure the path is the same as the directory you chmod earlier |
| Restart Samba |
|
| sudo systemctl restart smbd |
Restart Samba to make the changes work |
| sudo testparm |
Use this to test the sttus of the smb.conf file |
| sudo systemctl status smbd |
check status of the samba server |
| sudo systemctl enable smbd |
enables auto run of samba after reboots |
| |
|
| Use |
smb://x.x.x.x and choose the share |