Skip to content

Instantly share code, notes, and snippets.

@fbrnc
Created June 15, 2014 15:32
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fbrnc/147bc6eaf187a15f1f75 to your computer and use it in GitHub Desktop.
Save fbrnc/147bc6eaf187a15f1f75 to your computer and use it in GitHub Desktop.
Setup Samba on devbox
sudo apt-get -y install samba
# Set a password for your user in Samba (use "vagrant" as password)
sudo smbpasswd -a vagrant
# Add this to /etc/samba/smb.conf
[www]
path = /var/www
available = yes
valid users = vagrant
follow symlinks = no
read only = no
browseable = yes
public = yes
writable = yes
hide dot files = no
veto files = /.git/
map archive = yes
map system = yes
map hidden = yes
# Restart samba
sudo service smbd restart
Mount folder in Windows (directly accessing it will show the folders in explorer, but not in PHPStorm)
net use A: \\ip\www /persistent:no /user:vagrant
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment