Skip to content

Instantly share code, notes, and snippets.

@agyemanjp
Last active June 22, 2019 16:26
Show Gist options
  • Save agyemanjp/b456fd9b7e9c9af1cf5d70e9db3ebf26 to your computer and use it in GitHub Desktop.
Save agyemanjp/b456fd9b7e9c9af1cf5d70e9db3ebf26 to your computer and use it in GitHub Desktop.
sudo apt update
sudo apt install samba cifs-utils
echo "" | sudo tee -a /etc/samba/smb.conf
echo "[Code]" | sudo tee -a /etc/samba/smb.conf
echo " comment = CODE FOLDER" | sudo tee -a /etc/samba/smb.conf
echo " path = ~/code" | sudo tee -a /etc/samba/smb.conf
echo " read only = no" | sudo tee -a /etc/samba/smb.conf
# echo " guest ok = yes" | sudo tee -a /etc/samba/smb.conf
sudo ufw allow Samba
/etc/init.d/smbd restart
sudo mkdir -p ~/code
sudo chmod 0777 ~/code
# Relevant ports
# udp 137
# udp 138
# tcp 139
# tcp 445
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment