安装Samba 服务器
如果想在Ubuntu and Windows 电脑上共享文件, 最好使用Samba文件共享.
在Ubuntu 上安装Samba服务端:
1.安装Samba,进入命令行输入如下命令:
sudo apt-get install samba smbfs
sudo gedit /etc/samba/smb.conf
####### Authentication ######## “security = user” is always a good idea. This will require a Unix account# in this server for every user accessing the server. See# /usr/share/doc/samba-doc/htmldocs/Samba-HOWTO-Collection/ServerType.html# in the samba-doc package for details.; security = user
security = userusername map = /etc/samba/smbusers
useradd username
sudo smbpasswd -a username
sudo service smbd restart
ps -aux