sudo apt-get install samba
sudo apt-get install samba-client
sudo apt-get install cifs-utils
配置下 /etc/samba/smb.conf( 将下面的配置加到文件最后)
[server_sharename]
path = /home/username/sharepath
public = yes
writable = yes
保存然后重启服务
sudo /etc/init.d/samba restart
file://ip/server_sharename/
就可以访问了