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:

Firefox History Statistics - Extracting from Places.sqlite

If you want to take a look at Firefox surfing activity, the about:me add-on is a good start. However, it presents only one view of data and is thus limited in its ability to present more detailed statistics. We will view that data in a different program. So let's first extract it from the browsing history stored in the Places.sqlite file into a CSV file using a Firefox add-on. Step 1 - Locate and copy Places.sqlite to a working location On Windows machines, Places.sqlite is found in a directory similar to: C:\Users\User1\AppData\Roaming\Mozilla\Firefox\Profiles\ .default\places.sqlite Copy the file to another location. The database will be locked while using Firefox, and the SQLite plugin we will use to open it.

Bloomberg JSON data into Libreoffice Calc

LibreOffice Calc has no inbuilt stock market functions, and a popular plugin which offered those has stopped working along with changes to Yahoo Finance. Luckily, we can get the latest quotes from Bloomberg. [2018-12-15] Bloomberg Finance is, understandably, blocking multiple simultaneous requests. A more flexible solution is using a Python Stock Scraper .