At home, I use a Windows on a desktop, that has a virtual machine with Debian 6 configured to be my web server (NGINX, MySQL, PHP).
I was tired of using FTP plugins to program with my text editors, so I thought “Why the hell not using a sharing between Linux and Windows?”. To do that I was going to need SAMBA, but how would I share without having to input user and password, since I’m on a VM and I’m the only one acessing because it’s inside my own desktop?
After installing SAMBA, I opened the file /etc/samba/smb.conf and used the following lines:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
[global] workgroup = WORKGROUP netbios name = WEBSERVER security = share guest ok = yes guest account = heitor map archive = no #===== Share Definitions ===== [public_html] comment = WebServer Root path = /home/heitor/public_html public = yes browseable = yes writeable = yes read only = no |
This way, the VM appeared on Windows network and became browseable without having to input user and password, also being able to write on the folder I wanted. Read SAMBA documentation to understand each option I used, and please, DO NOT USE THIS KIND OF CONFIGURATION ON A COMPANY ENVIRONMENT!
Thank you Emelina!
My server is a NGINX with some tricks for performance… that’s why it loads fast I guess.
=)