- sudo apt-get insall samba
- sudo cp /etc/samba/smb.conf /etc/samba/smb.conf.bak
- sudo gedit /etc/samba/smb.conf
[share]
path = /home/phinecos/share
available = yes
browsealbe = yes
public = yes
writable = yes
-
sudo touch /etc/samba/smbpasswd
sudo smbpasswd -a kayv
然后会要求你输入samba帐户的密码
sudo /etc/init.d/samba restart -
使用
可以到windows下输入ip使用了,在文件夹处输入 "" + "Ubuntu机器的ip或主机名" + "" + "share"