Skip to main content

Make Samba share visible to Windows

Problem: Samba shares do not appear in Windows File/Network Explorer.

Cause: Because of 2017 ransomware, Windows stopped supporting the SMB1 protocol - the primary way Samba hosts are discovered on the network. Samba developers are not going fix it.

If, like me, you've found your Raspberry Pi (Raspbian) file server suddenly invisible, solutions follow.

Mainstream Linux distributions like Ubuntu support other forms of network discovery, so this might not be a problem for you.

Complicating matters is that many windows programs like VLC also support other network discovery methods, so your samba shares may be visible there, but not in Explorer.

Workaround

You can still manually map to your file server in Windows Explorer by typing in the top bar:

\\<servername>

But this is cumbersome.

Solution

WSDD is a Python based fix for many distributions. It's lightweight and fairly easy to install, but the install notes are confusing, and this simplified install doesn't work.

You're going to have to install a package from an unofficial source.

In a terminal:

Check your distro

lsb_release -cs

This will give your distribution or 'distro' name, e.g. 'stretch'.

Edit the sources list

sudo pico /etc/apt/sources.list.d/raspi.list

Add the line:

deb https://pkg.ltec.ch/public/ distro main

replacing 'distro' with your distribution name.

Add key

This part is more involved than the docs would have you think because some dependencies are not installed in Raspbian by default.

sudo apt install dirmngr
sudo apt-key adv --fetch-keys https://pkg.ltec.ch/public/conf/ltec-ag.gpg.key

Install wsdd

sudo apt update
sudo apt install wsdd

Although the docs say Python 3.6+ is needed, it seems that the executable works fine. Just keep this in mind if something goes wrong.

Start wsdd

The installation will urge you to edit /etc/wsdd.conf but this is optional.

You'll notice that a systemd service has been added as part of the installation. This means it will start with the next boot. If you can't wait that long:

systemctl start wsdd.service

Check Windows File/Network Manager and see your Raspberry Pi return!

Comments

Popular posts from this blog

Transcode to PSP using Handbrake

Source: Handbrake 0.9.9.5530 64-bit edition Target: (Phat) Playstation Portable PSP-1000 , System Software: 6.60 Many internet articles on how to transcode video to PSP using Handbrake have not worked for me. Even the most helpful are incomplete. I hope this post will help fill in the blanks. There is no longer any PSP preset for Handbrake, but from what I can gather, the preset had only limited success as the x264 encoder would change syntax and settings between versions. Other presets that may have worked before, like 'iPod' and 'Apple-Universal' now do not. Here is what worked for me, step by step:

Scatterbox - build an Android Tor Socks Proxy Server

Cloak your location and create a firewall bypass device with a smartphone. 🕵Uses the Tor network . Does not require root. 1 - from Google Play, download and install: Orbot Orweb browser Socks Server Ultimate (Optional)

Dismissing Racism

Whenever white people kill people of colour, as in 2021's anti-Asian shootings in Atlanta Georgia , this sort of counter-commentary appears: "Since the killing of six Asian women who worked in massage parlors in Atlanta, the media has amplified the false narrative that “white supremacy” is to blame.  ... official crime stats show that white people are significantly underrepresented in terms of the violent crime threat they pose to Asians."  ... citing FBI statistics , whereas whites comprise 62% of the population, they committed 24% of crimes against Asians in 2018.  In comparison, blacks, who comprise 13% of the population, committed 27.5% of all violent crimes against Asian Americans in 2018.  So clearly, white people do not represent the biggest crime threat to Asian Americans." Not only is this an attack on the media and its imagined agenda, it also implies that Asians can't tell who's assaulting them.