Skip to main content

A fail: networking Windows and Linux Mint using Samba

The project is to build a Linux Mint machine to have the identical functionality and ergonomics as the existing Windows 10 machine.

This stage relates to networking the Windows 10 machine to the Linux Mint machine.

Environment & required functionality

The network should be a local network - to share files and folders - between the following machines:
  • The Linux Mint Xfce 18.3 laptop "Gandalf";
  • The Windows 10 laptop "Legolas";
The network is a local area network from a domestic router, the usual 192.168.x.x thing.

Windows 10 is already configured to use Samba (wiki) (the SMB protocol, wiki) out-of-the-box, although it turned out that there was a twist to the configuration.

Alternatives

There are ways to transmit occasional data between the two machines other than peer-to-peer networking, e.g. grive2.  However, peer-to-peer networking (file sharing, simple two-way server-and-client relationship) is the most efficient way for bulk data transfers, so if the network doesn’t work, then the test has failed.

Peer-to-peer networking is also the simplest of simple networks to do, so it really should be a very easy thing to activate and just use.

Software selection

Gandalf required Samba prior to use.  Linux Mint Xfce did not have Samba installed by default.

Installation experience

Gandalf installed Samba easily and quickly, using the Software Manager.

User experience

Gandalf was set as the server, Legolas as the client.

In spite of extensive assistance from the Linux Mint community, Legolas could not discover Gandalf (network discovery failed to see Gandalf).

The community was unable to replicate the fault.  One member of the community flattened his test machine in an attempt to replicate the fault!  Away from the support forum, plenty of other users had different issues; yet an equal number say they had no issues at all.

A much more extensive test would be required to identify the root cause with this particular setup.

In view of my time taken to debug this - a total of 6h40m, well in excess of what a typical Windows user would invest into a domestic toy - this counts as a fail on the project.

However, the likely culprit is that Samba, as installed on Gandalf, was out-of-date relative to the standards defined in Windows 10.  Supposedly, Windows 10 should be Samba-ready.  But since WannaCry, Microsoft disabled the earliest protocol SMB1 on the grounds of network security.  The community doesn’t seem to have caught up with this (source, source).

Support from the community was quite fantastic, but objectively should not have been necessary at all.

Conclusion

Windows 10 was unable to network with Linux Mint Xfce after:
  • extensive re-configuration in Linux Mint Xfce; and
  • no changes at all in Windows 10.
Gandalf was never visible to Legolas via network discovery, so this test failed.

The test included an assumed timeframe from start to working functionality of 10 minutes: 6h40m is arguably excessively generous to debug something so functionally simple.

The implication for this project is to move onto the next test, and attempt again to solve this issue on a different day.

Reflections

The implication of this finding for a typical Windows user is probably more profound: a typical Windows user migrating to Linux Mint would enough friction to deter the user from migration, and thus stick with Windows.

It seems bizarre that Linux Mint, a project ostensibly aimed at poaching Windows users into the Linux fold, published a distro (in this case, Xfce) that wasn't already configured to use Samba SMB3, with a graphic user interface - somewhere in the settings - that allowed the user to switch Samba on or off.

Next tests

  • Force Samba on Linux Mint to use SMB3 and see whether Windows can then discover Linux Mint on the local network.
  • Swap the relationship, i.e. make Windows the server and Linux the client.
  • Flatten Gandalf, re-install Linux Mint from scratch, re-test the network connection with Linux Mint in its “factory-fresh” condition, installing Samba only if necessary.
  • Use WinScp instead of Samba.
  • Use ssh and/or sftp instead of Samba (although the source forum post doesn't give much hope that the desired functionality may be even possible!).
  • Wait a few months a new version of Samba that also deactivates SMB1, to mirror Windows.
  • Expect lots more bugs and general dysfunctionality.
  • Copy everything to a flash drive from Windows, copy everything from the flash drive into Linux!


End of blog post.

Comments

Popular posts from this blog

Downgrading of the project: Calc has a fatal bug - it cannot reliably link workbooks

The project is to build a Linux Mint machine to have the identical functionality and ergonomics as the existing Windows 10 machine. This stage relates to on-going work to make LibreOffice Calc workable. Unfortunately, it turns out that LibreOffice isn't fit for purpose.  Specifically, it cannot reliably link workbooks, even in its own native workbooks. As a consequence, the project is now downgraded.  My time is now better spent doing other, more productive things, with a greater chance of success. Background On 29Jul2018, I complied a detailed test using fresh, sample data created specifically for the purpose, in Excel on Windows 10, then had a virtual machine running LibreCalc on Linux Mint to import it. The basic spreadsheet functionality of linked workbooks failed haphazardly. I logged the test results on 29Jul2018 on AskLibreOffice  and, to date, have yet to see any evidence of anybody taking ownership of recognising the issue and thus fixing it. The s...

Networking using OpenSSH

The project is to build a Linux Mint machine to have the identical functionality and ergonomics as the existing Windows 10 machine.  This stage relates to networking the Windows 10 machine to the Linux Mint machine. Environment & required functionality The network should be a local network - to share files and folders - between the following machines: The Linux Mint Xfce 18.3 laptop " Gandalf "; The Windows 10 laptop " Legolas ". The network is a local area network from a domestic router, the usual 192.168.x.x thing. This is the second attempt to share files and folders between Windows and Linux Mint. Thankfully, this attempt met the core objectives. Alternatives As with the first (failed) attempt , peer-to-peer networking (file sharing, simple two-way server-and-client relationship) is the most efficient way for bulk data transfers, so if the network doesn’t work, then the test has failed. Software selection Both machines needed to have ne...

Project definition: to build a Linux Mint machine functionally identical to a Windows 10 machine

The aim of my project is to build a Linux Mint machine to have the identical functionality and ergonomics as the existing Windows 10 machine. Software The functional list of requirements, listed as software available on Windows, are: Google Chrome ; Google Earth ; Microsoft Office (but not Office 365); Foxit PDF Reader ; Google Backup & Sync for Google Drive ; Password vault ( Keepass) ; Picasa ; GPS Prune (a Java applet); XN Convert ; XN View ; a VPN client; SatSync ; ProRealTime (a Java applet); 7-ZIP ; MP3tag ; PDFill Free Tools ; device driver for an HP OfficeJet Pro 276dw , used mainly for scanning; Duplicati 2 ; a standalone media player; Treesize . Ergonomics The basic ergonomics is that keyboard access must be at least as good as Windows, if not better.  Keyboard accelerators and keyboard shortcuts must be clearly marked and traceable, without being hidden (if they are hidden, then hidden no more so than in Windows). Network To join t...