Before we start, please make sure you have the latest version of MXLinux installed.
The first step is to install Samba. Open the Terminal and enter the following command:
sudo apt-get install samba
This will install Samba on your system.
Once Samba is installed, we need to configure it. Open the Terminal and enter the following command:
sudo nano /etc/samba/smb.conf
This will open the Samba configuration file in the Nano text editor.
In the configuration file, scroll down to the [global] section. Make the following changes:
workgroup = WORKGROUP
security = user
map to guest = bad user
Next, we need to create a Samba user. In the Terminal, enter the following command:
sudo smbpasswd -a username
Replace "username" with the username you want to use for Samba.
Finally, we need to create a shared directory that can be accessed by other computers on the network. In the Terminal, enter the following command:
sudo mkdir /home/username/share
Replace "username" with your username.
In the Samba configuration file, scroll to the bottom and add the following lines:
[share]
comment = Shared Folder
path = /home/username/share
writeable = yes
browseable = yes
guest ok = yes
Replace "username" with your username.
Save and close the Samba configuration file by pressing Ctrl+X, then Y, then Enter.
To make sure our changes take effect, we need to restart the Samba service. In the Terminal, enter the following command:
sudo service smbd restart
Now we can access the shared folder on another computer on the same network. Open the file manager and enter the following in the address bar:
smb://ip-address/share
Replace "ip-address" with the IP address of the computer that has the shared folder.
In this tutorial, we have learned how to install and configure Samba on MXLinux Latest. We have also learned how to create a Samba user, a shared directory, and how to access the shared folder from another computer on the same network.
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!