A Ubuntu is installed in the virtual machine. It is very convenient to access resources using samba. samba was also installed in my Raspberry Pi 2. Note. I have mentioned how to deploy the Samba server environment in CentOS6.0. I will talk about the installation in Ubuntu today.
A Ubuntu is installed in the virtual machine. It is very convenient to access resources using samba. samba was also installed in my Raspberry Pi 2. Note.
- Install
Sudo apt-get install samba
After the installation is complete, the samba configuration directory is under/etc/samba.
Add User
Add the current user with the root permission. My username is apache, so I will write it like this:
Sudo smbpasswd-a apache
Set the password.
Edit/etc/samba/smb. conf for the added user. I use it on my own virtual machine. I only need to add the following configuration at the end of smb. conf:
[Apache] comment = Apache's Home path =/home/apache browseable = yes read only = no guest OK = no create mask = 0600
Restart samba to complete the configuration.
Sudo/etc/init. d/samba restart
Now, in Windows, press Win + R and enter \ ubuntu-ip \ apache to happily access the files in the apache user's home directory under ubuntu from windows Resource Manager :)