{"id":387,"date":"2020-06-10T21:25:01","date_gmt":"2020-06-10T19:25:01","guid":{"rendered":"http:\/\/www.emperial.dk\/?p=387"},"modified":"2020-06-10T21:39:29","modified_gmt":"2020-06-10T19:39:29","slug":"how-to-see-samba-shares-on-a-windows-10-network","status":"publish","type":"post","link":"https:\/\/www.emperial.dk\/?p=387","title":{"rendered":"How to See Samba Shares on a Windows 10 Network"},"content":{"rendered":"\r\n<p>wsdd is a service by christgau on GitHub, which implements a Web Service Discovery host daemon for Ubuntu. This enables Samba hosts to be found by Web Service Discovery Clients like Windows 10.<\/p>\r\n\r\n\r\n\r\n<p>If you are experiencing any issues with this service, please let us know in the comments or submit an issue on GitHub.<\/p>\r\n\r\n\r\n\r\n<p>Change to \/tmp directory.<\/p>\r\n\r\n\r\n\r\n<pre>cd \/tmp<\/pre>\r\n\r\n\r\n\r\n<p>Download and unzip the archive.<\/p>\r\n\r\n\r\n\r\n<p>wget https:\/\/github.com\/christgau\/wsdd\/archive\/master.zip<\/p>\r\n\r\n\r\n\r\n<pre>unzip master.zip<\/pre>\r\n\r\n\r\n\r\n<p>Rename wsdd.py to wsdd.<\/p>\r\n\r\n\r\n\r\n<pre>sudo mv wsdd-master\/src\/wsdd.py wsdd-master\/src\/wsdd<\/pre>\r\n\r\n\r\n\r\n<p>Copy to \/usr\/bin.<\/p>\r\n\r\n\r\n\r\n<pre>sudo cp wsdd-master\/src\/wsdd \/usr\/bin<\/pre>\r\n\r\n\r\n\r\n<p>Copy wsdd to \/etc\/systemd\/system.<\/p>\r\n\r\n\r\n\r\n<pre>sudo cp wsdd-master\/etc\/systemd\/wsdd.service \/etc\/systemd\/system<\/pre>\r\n\r\n\r\n\r\n<p>Open wsdd.service in nano and comment out User=nobody and Group=nobody with a ; semicolon.<\/p>\r\n\r\n\r\n\r\n<pre>sudo nano \/etc\/systemd\/system\/wsdd.service<\/pre>\r\n\r\n\r\n\r\n\r\n\r\n<pre>[Unit]<br \/>Description=Web Services Dynamic Discovery host daemon<br \/>; Start after the network has been configured<br \/>After=network-online.target<br \/>Wants=network-online.target<br \/>; It makes sense to have Samba running when wsdd starts, but is not required<br \/>;Wants=smb.service<br \/><br \/>\r\n\r\n<br \/><br \/>[Service]<br \/>Type=simple<br \/>ExecStart=\/usr\/bin\/wsdd --shortlog<br \/>; Replace those with an unprivledged user\/group that matches your environment,<br \/>; like nobody\/nogroup or daemon:daemon or a dedicated user for wsdd<br \/>; User=nobody<br \/>; Group=nobody<br \/>; The following lines can be used for a chroot execution of wsdd.<br \/>; Also append '--chroot \/run\/wsdd\/chroot' to ExecStart to enable chrooting<br \/>;AmbientCapabilities=CAP_SYS_CHROOT<br \/>;ExecStartPre=\/usr\/bin\/install -d -o nobody -g nobody -m 0700 \/run\/wsdd\/chroot<br \/>;ExecStopPost=rmdir \/run\/wsdd\/chroot<br \/><br \/>\r\n\r\n<br \/><br \/>[Install]<br \/>WantedBy=multi-user.target<\/pre>\r\n\r\n\r\n\r\n<p>Save and exit (press CTRL + X, press Y and then press ENTER)<\/p>\r\n\r\n\r\n\r\n\r\n\r\n<p>Start and enable wsdd.<\/p>\r\n\r\n\r\n\r\n<pre>sudo systemctl start wsdd<\/pre>\r\n\r\n\r\n\r\n<pre>sudo systemctl enable wsdd<\/pre>\r\n\r\n\r\n\r\n<p>Output:<\/p>\r\n\r\n\r\n\r\n<pre>Created symlink \/etc\/systemd\/system\/multi-user.target.wants\/wsdd.service \u2192 \/etc\/systemd\/system\/wsdd.service.<\/pre>\r\n\r\n\r\n\r\n<p>Now check that the service is running.<\/p>\r\n\r\n\r\n\r\n<pre>sudo service wsdd status<\/pre>\r\n\r\n\r\n\r\n<p>Output:<\/p>\r\n\r\n\r\n\r\n<pre>wsdd.service - Web Services Dynamic Discovery host daemon<br \/>Loaded: loaded (\/etc\/systemd\/system\/wsdd.service; enabled; vendor preset: enabled)<br \/>Active: active (running) since Wed 2020-06-10 10:51:39 CEST; 8s ago<br \/>Main PID: 40670 (python3)<br \/>Tasks: 1 (limit: 6662)<br \/>Memory: 10.8M<br \/>CGroup: \/system.slice\/wsdd.service<br \/>\u2514\u250040670 python3 \/usr\/bin\/wsdd --shortlog<br \/><br \/>\r\n\r\n<br \/><br \/>jun 10 10:51:39 ubuntu systemd[1]: Started Web Services Dynamic Discovery host daemon.<br \/>jun 10 10:51:40 ubuntu wsdd[40670]: WARNING: no interface given, using all interfaces<\/pre>\r\n\r\n\r\n\r\n<p>You should now be able to browse your Ubuntu machines and Samba shares in the Windows 10 file explorer. You may need to restart the Windows 10 machines to force discovery.<\/p>\r\n\r\n\r\n\r\n<p>You may also want to reboot the Ubuntu server just to make sure the wsdd service starts up automatically without issue.<br \/>How to Uninstall wsdd<\/p>\r\n\r\n\r\n\r\n<p><strong>If you want to completely uninstall wsdd, stop and disable the service.<\/strong><\/p>\r\n\r\n\r\n\r\n<pre>sudo systemctl stop wsdd<\/pre>\r\n\r\n\r\n\r\n<pre>sudo systemctl disable wsdd<\/pre>\r\n\r\n\r\n\r\n<p>Remove wsdd from \/usr\/bin.<\/p>\r\n\r\n\r\n\r\n<pre>sudo rm \/usr\/bin\/wsdd<\/pre>\r\n\r\n\r\n\r\n<p>Remove service file.<\/p>\r\n\r\n\r\n\r\n<pre>sudo rm \/etc\/systemd\/system\/wsdd.service<\/pre>\r\n","protected":false},"excerpt":{"rendered":"<p>wsdd is a service by christgau on GitHub, which implements a Web Service Discovery host daemon for Ubuntu. This enables Samba hosts to be found by Web Service Discovery Clients like Windows 10. If you are experiencing any issues with &hellip; <a href=\"https:\/\/www.emperial.dk\/?p=387\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,24,4,17,25],"tags":[46,12,19,13,60,9,29],"class_list":["post-387","post","type-post","status-publish","format-standard","hentry","category-debian","category-debian-linux","category-linux","category-network","category-ubuntu-linux","tag-debian","tag-linux-2","tag-network-2","tag-samba","tag-smb","tag-ubuntu","tag-windows-2"],"_links":{"self":[{"href":"https:\/\/www.emperial.dk\/index.php?rest_route=\/wp\/v2\/posts\/387","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.emperial.dk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.emperial.dk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.emperial.dk\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.emperial.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=387"}],"version-history":[{"count":3,"href":"https:\/\/www.emperial.dk\/index.php?rest_route=\/wp\/v2\/posts\/387\/revisions"}],"predecessor-version":[{"id":392,"href":"https:\/\/www.emperial.dk\/index.php?rest_route=\/wp\/v2\/posts\/387\/revisions\/392"}],"wp:attachment":[{"href":"https:\/\/www.emperial.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=387"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.emperial.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=387"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.emperial.dk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=387"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}