HowtoForge offers excellent instructions on how to install applications, servers and tools on multiple Linux distributions. Instead of recreating what’s already done at HowtoForge, here’s the installation instructions to install Samba fileserver on Debian 9. It walks you through the installation, adding Samba shares, managing users, and accessing Samba from a Windows machine. Here’s the link.