P.S.: für Ubuntu gibt es wsdd, das aber offenbar nur in einem ppa verfügbar ist.
Hier aus der manpage:
Code
### Debian/Ubuntu
There are user-maintained packages for which you need to add the repository to
`/etc/apt/sources.list.d` with a file containing the following line
`deb https://pkg.ltec.ch/public/ distro main`
Replace `distro` with the name of your distro, e.g. `buster` or `xenial` (issue
`lsb-release -cs` if unsure). After an `apt update` you can install wsdd with
`apt install wsdd`. You may also add the public key to the trusted ones on your
system.
Display More
Das ermöglicht auch Windows-Clients ohne smb1 das Finden/browsen von Samba-Shares.
Meine wsdd.service sieht dann so aus:
Code
[Unit]
Description=Web Services Dynamic Discovery host daemon
; Start after the network has been configured
After=network-online.target
Wants=smbd.service
; It makes sense to have Samba running when wsdd starts, but is not required
;Wants=smb.service
[Service]
Type=simple
ExecStart=/usr/local/bin/wsdd.py --shortlog --interface eno1 -4 --workgroup=HOMNET
; Replace those with an unprivledged user/group that matches your environment,
; like nobody/nogroup or daemon:daemon or a dedicated user for wsdd
User=vdr
Group=vdr
; 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
Display More