
Remote file access can be accomplished by creating a shared folder, or sharing a storage device on your local network. In this article, we will take a look at the SMB protocol and USB Network Gate, with both solutions being easily available and cross-compatible between Windows and Linux.
SMB is one of the most common protocols for file sharing servers, so systems and apps often support it by default. Windows uses SMB for its built-in folder sharing capabilities, and Linux file managers, such as Nautilus, can access SMB shares by default. However, creating an SMB share on Linux will require you to install Samba. Media players like VLC also find shared folders automatically.
A shared folder accessed through SMB behaves like any other folder, but if you’re using different filesystems on the two computers, their restrictions can come into play - such as certain symbols in filenames or files with the same name in the same folder not being allowed.
\\[your ip]\[share name]
.
This tutorial has been tested on Debian, and the steps may vary on different systems. You may need to add a UFW exception on OSes that use a firewall, or install the packages through a different package manager specific to your system. There are also alternative ways to access server files remotely.
sudo apt install samba
.
sudo gedit /etc/samba/smb.conf
.[documents]
path = /home/bobby/Documents
read only = no
browsable = yes
sudo service smbd restart
and sudo smbpasswd -a [your username]
. Enter the password for your share.
ip a
and find your local IP.
\\[ip address]\[share name]
.
Network USB device sharing is a great alternative to SMB for remote file access, since not only can you share the files, but also physically remove the storage device and transfer it to a different computer.
In addition to being fast, USB Network Gate supports traffic compression and encryption, and allows you to revoke access to a shared device at any time. In addition, external storage devices allow you to format and partition them in any way you want, without the risk of damaging your operating system.
apt
. After using dpkg
, run apt-get install -f
to get the prerequisite packages.
Cloud storage solutions have the distinct advantage of being accessible over the internet, unlike the previous two solutions. Many services provide a desktop app that allows you to designate a cloud-synced folder. However, the free storage provided by these services is very limited, and the apps are not always up-to-date or guaranteed to work with your system. For local networks, we recommend trying the other methods before going for cloud sync.