本帖最后由 jyz_0501 于 2018-12-19 17:54 编辑
如果你电脑的工作域是workgroup的话,可以在网上邻居里发现samba的共享目录,如果不是需要改变一下samba的配置
可以参考脚本中的
echo "`date +%H:%M:%S`>>>>>>>>>>安装Samba Git Screen Net-tools Nmap工具软件,配置Samba共享目录<<<<<<<<<<"
sudo apt-get install -y samba screen git net-tools nmap
echo "
[global]
netbios name = raspberrypi
server string = The Pi File Center
workgroup = WORKGROUP
hosts allow =
remote announce =
remote browse sync =
create mask = 0777
directory mask = 0777
force user = root
force create mode = 0777
force directory mode = 0777
hosts allow =
[Home Assistant]
path = /usr/share/hassio
comment = No comment
browsable = yes
read only = no
valid users =
writable = yes
guest ok = yes
public = yes
[Pi Home]
path = /
comment = No comment
browsable = yes
read only = no
valid users =
writable = yes
guest ok = yes
public = yes
[Pi Share]
path = /home/pi
comment = No comment
browsable = yes
read only = no
valid users =
writable = yes
guest ok = yes
public = yes
" >>/etc/samba/smb.conf
sudo nano /etc/samba/smb.conf 这个 然后改一下 workgroup = WORKGROUP
之后 重启samba
sudo service smbd restart
|