samba share raspberry pi code example Example 1: pi samba config sudo nano /etc/samba/smb.conf Example 2: configure samba on RPI sudo smbpasswd -a pi