Note that this guide will create a public share with no authentications.
First, install the necessary packages
sudo apt-get update && \
apt-get upgrade -y && \
apt-get install ntfs-3g exfat-utils exfat-fuse samba samba-common -y
Create a folder to share and implement permissions
mkdir /mnt/shared
sudo chmod 777 /mnt/