In this post I will teach you how to create a Samba share on your Raspberry pi, this means that you will be able to access it from any device!
What you will need to have.
– a raspberry pi with wifi access
– a keyboard to type commands
So first of all, you should have any version of Raspbian installed on your Raspberry pi.
Let’s make a folder first, this will be the folder that we can access from our other devices. Just type:
Now open up a terminal and type:
sudo apt-get install samba samba-common-bin
Press Y on your keyboard when asked to.
Now we are going to edit the configuration file. To do this, simply type:
sudo nano /etc/samba/smb.conf
You will see a bunch of text, search for “wins support = no” and change the “no” to “yes” like this:
wins support = yes
Now scroll all the way to the bottom of the file and add the following:
comment= My shared folder
Now press CTRL+X, type y and press enter to save and exit. Now to set the password type:
smbpasswd -a pi
And then enter the password you want to use.
Now reboot the pi and you can access the folder from any device! In Windows, just go to file explorer and then network.