[Tutorials] deep安装网络发现软件,实现与windows或其它电脑组成网络邻居
Tofloor
poster avatar
李胜茂
deepin
2026-02-23 06:39
Author

WSDD 是 Web Service Discovery host daemon的简称,实现了web服务可以被windows主机发现,这可以有效的帮助smb服务被发现。

安装

安装wsdd

DEEPIN

# cd tmp
cd /tmp

# 下载和解压
wget https://github.com/christgau/wsdd/archive/master.zip
unzip master.zip

# 重命名wsdd.py
sudo mv wsdd-master/src/wsdd.py wsdd-master/src/wsdd

# 复制到bin中
sudo cp wsdd-master/src/wsdd /usr/bin

# 将wsdd配置为服务
sudo cp wsdd-master/etc/systemd/wsdd.service /etc/systemd/system
sudo nano /etc/systemd/system/wsdd.service

#########################################################################
[Unit]
Description=Web Services Dynamic Discovery host daemon
; Start after the network has been configured
After=network-online.target
Wants=network-online.target
; It makes sense to have Samba running when wsdd starts, but is not required
;Wants=smb.service

[Service]
Type=simple
ExecStart=/usr/bin/wsdd --shortlog
; Replace those with an unprivledged user/group that matches your environment,
; like nobody/nogroup or daemon:daemon or a dedicated user for wsdd
; User=nobody 
; Group=nobody
; The following lines can be used for a chroot execution of wsdd.
; Also append '--chroot /run/wsdd/chroot' to ExecStart to enable chrooting
;AmbientCapabilities=CAP_SYS_CHROOT
;ExecStartPre=/usr/bin/install -d -o nobody -g nobody -m 0700 /run/wsdd/chroot
;ExecStopPost=rmdir /run/wsdd/chroot

[Install]
WantedBy=multi-user.target

# reload start and enable
sudo systemctl daemon-reload
sudo systemctl start wsdd
sudo systemctl enable wsdd

# 查看状态

sudo service wsdd status

然后重新加载 systemd 配置并尝试启动服务:

sudo systemctl daemon-reload
sudo systemctl start wsdd.service

sudo systemctl enable wsdd

捕获.PNG

Reply Favorite View the author
All Replies
李胜茂
deepin
2026-02-23 10:04
#1

2C31E30485AA7602FE2C04FB3F5AF36E.gif

Reply View the author
erdospj
deepin
2026-02-23 17:34
#2

可以直接在25下

sudo apt install wsdd wsdd-server

sudo service wsdd-server start

deepin25里是有wsdd包的。

Reply View the author
李胜茂
deepin
2026-02-23 18:04
#3
erdospj

可以直接在25下

sudo apt install wsdd wsdd-server

sudo service wsdd-server start

deepin25里是有wsdd包的。

要设置 `wsdd.service很麻烦

Reply View the author