sudo mkdir -m 777 /home/pi/videostream

sudo apt-get install samba samba-common-bin (Install Samba framework )

sudo cp /etc/samba/smb.conf /etc/samba/smbconf.backup  ( Make a back up of the current smb.conf file into a new file called smbconf.backup )

sudo nano /etc/samba/smb.conf  ( Use Nano the word editor to edit the file smb.conf)

GUARDARE file smb.conf

sudo service smbd restart

sudo service nmbd restart

sudo smbpasswd -a pi ( To give user pi a new password for Samba to use while logging in from a network machine )

for domain Active Directory

realm = NAME_DOMAIN
security = ADS
