ubuntu与windows的互联与共享
ubuntu与windows的互联与共享
ubuntu与windows的互联与共享
windows访问ubuntu
www.2cto.com
1. ubuntu 安装 samba
Shell代码
sudo apt-get install samba
2. 修改 /etc/samba/smb.conf文件
Conf代码
[global]
workgroup = WORKGROUP
server string = %h server (Samba, Ubuntu)
; wins support = no
wins server = (用ipconfig /all里看, 或者直接填网关ip)
dns proxy = no
name resolve order = lmhosts host wins bcast
security = share
usershare allow guests = yes
[share]
path = /home/ubuntu/
available = yes
browseable = yes
public = yes
writable = yes
www.2cto.com
3. 重启服务
Shell代码
sudo restart smbd
sudo restart nmbd
* smbd 是 samba 的文件共享服务
* nmbd 是 windows name 解析服务
4. OK
这样,windows 就可以ping 通,且能查看unbutu的共享文件
-----------------------
ubuntu 访问windows
1. 安装服务
Shell代码
sudo apt-get install cifs
2. mount
Shell代码
sudo mount -t cifs //hostname/share /mnt/path/to/name -o username=user
评论暂时关闭