Mount your Shadow in your filesystem
Linux is very efficient to mount distant filesystem in your local one, providing a seemlessly integration in your favorite file browser. For this tutorial, ZeroTier and Samba will be used.
Explanations
Samba is a Linux effort to support the SMB protocol, proprietary protocol of Microsoft for Windows. We use this protocol as it is already implemented in Windows and do not need an additional server. SMB is mainly designed for local sharing.
This is where ZeroTier becomes handy. It will create a VPN tunnel between all members of the network. This network can be compared to a local network where all computers are linked together through a secured tunnel. So, with this network, we can seemlessly use the SMB protocol!
ZeroTier setup
First things first, we need to install ZeroTier. To do so, create your account here, follow the instruction of the download page and create your own network.
Both your Linux desktop and Shadow should have the ZeroTier client installed now, and they should both have join the same network. Checkout the network tab to find the IP address of your Shadow. This will be useful.
Sharing setup
Your computers are now on the same network, we can start the SMB configuration. The first step will be to create a dedicated user with a password for the share to separate the share from your administrator account.
Go into the parameters, select Accounts, Family and other users and finally, click on "Add a new user".
Please consider for security to make this account non administrator.
Set a simple user name (all lower case to fit the UNIX standard) and a password.
For this tutorial, we consider that the user is
nover
. Please change them to the one you actually typed.
Now we need to allow the share for Windows. It sounds scary but we will use commands on Windows... Open a terminal on your Shadow by searching "cmd" and right click on the result, execute as Administrator. When openned, type the following commands:
netsh advfirewall firewall set rule group="File and Printer Sharing" new enable=Yes
netsh advfirewall firewall set rule group="Network Discovery" new enable=Yes
Right click on the folder you want to share and click on parameters. For the next screen, I chose
to share the whole user folder called "Nicolas Guilloux". Under the "Share" tab, click on
"Advanced share". Check the checkbox to share it, give it a pretty name if you want and then click
Authorizations. My advice is to remove all users already present in the window, especially "All".
Then click on "Add", type
nover
, click on verify and then validate. You can manage specific rights for specific users, I chose to
give a full access to my user. You can now close all windows by clicking on "OK".
Back on your Linux, install Samba and start your favorite file browser. Get the IP of your Shadow
from Hamachi too. You can now access to your share by going to
smb://ZEROTIER_IP_ADDRESS
and entering the share user and his password. On Dolphin, you can add a shortcut for instance under Network.