Installing Samba on Manjaro

Samba is an open-source software suite used to enable file and print services between different operating systems. In this tutorial, we will cover how to install Samba on Manjaro.

Prerequisites

Before installing Samba on Manjaro, make sure your system is up to date by running the following command in your terminal:

sudo pacman -Syu

Installing Samba

To install Samba, follow the steps outlined below:

  1. Open your terminal and run the following command to install Samba:
sudo pacman -S samba
  1. Once the installation is complete, you need to configure Samba. The main Samba configuration file is located at /etc/samba/smb.conf. Open this file in your preferred text editor by using the following command:
sudo nano /etc/samba/smb.conf
  1. In the configuration file, you can define shared directories and set permissions for each shared folder.

  2. After making your desired changes, save the file and exit.

Configuring Samba

When Samba is installed, a default user is also created by the system called nobody. To allow the nobody user to share files, you need to create a password for the user using the following command:

sudo smbpasswd -a nobody

Next, you can create a folder that you want to share using Samba. For example:

sudo mkdir /home/user/share

To define a directory as a shared folder, add the following to the configuration file /etc/samba/smb.conf:

[share]
path = /home/user/share
read only = no
guest ok = yes

This configuration will allow anyone to read and write to the shared folder without a password.

Finally, to start the Samba daemon, you need to run the following command:

sudo systemctl start smb.service

You can also enable Samba to start automatically on system boot using:

sudo systemctl enable smb.service

Conclusion

In this tutorial, we have covered how to install Samba on Manjaro and configure it to share a folder. By configuring Samba, you can enable file and print services between different operating systems easily.

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!