Installing Samba on EndeavourOS Latest

Samba is a free and open-source software suite that provides file and printer sharing services between Windows and Linux/UNIX-based systems. In this tutorial, we will be installing Samba on EndeavourOS Latest using the terminal.

Requirements

Steps

1. Update your system

It is always recommended to update your system before installing any new software. Use the following command to update your system:

sudo pacman -Syu

2. Install Samba

Use the following command to install Samba:

sudo pacman -S samba

Enter your password if asked for it and wait for the installation to complete.

3. Configure Samba

Now that Samba is installed, you need to configure it to share your files and printers with other systems.

3.1 Create a directory to share

First, create a new directory for sharing files. You can create this directory anywhere on your system.

For example, create a new directory named "shared_folder" in your home directory using the following command:

mkdir ~/shared_folder

3.2 Configure Samba

Edit the smb.conf file located at /etc/samba/smb.conf using your favorite text editor. For example, use the following command to edit the file with nano:

sudo nano /etc/samba/smb.conf

Scroll to the end of the file and add the following lines:

[shared_folder]
    comment = Shared Folder
    path = /home/{your_username}/shared_folder
    read only = no
    guest ok = yes
    public = yes
    writable = yes

Replace {your_username} with your actual username.

Save and exit the file.

4. Restart Samba

Use the following command to restart Samba and apply the changes:

sudo systemctl restart smb

5. Allow Samba through the firewall

If you have a firewall enabled on your system, you need to add rules for Samba to allow traffic.

Use the following commands to add firewall rules for Samba:

sudo firewall-cmd --permanent --zone=public --add-service=samba
sudo firewall-cmd --reload

6. Access the shared folder

You can now access the shared folder from another system on your network.

Go to another Windows system and open File Explorer. Enter the IP address of your EndeavourOS system in the address bar in the following format:

\\{ip_address}\shared_folder

For example, if the IP address of your EndeavourOS system is 192.168.0.10, enter the following in the address bar:

\\192.168.0.10\shared_folder

You should now see the shared files in the directory.

Congratulations! You have successfully installed Samba and configured it to share files and printers between Windows and Linux/UNIX-based systems.

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!