Methods of payment Abuse

Instructions for installing Samba in Ubuntu, Debian and CentOS

10.02.2023, 23:29

Samba is a program that allows Linux systems to communicate with Windows systems and share files and printers. Installing Samba in Linux can be done using your distribution's standard package management tools.

Ubuntu and Debian

Open a terminal and run the sudo apt update command to update your system's package list.

Then install Samba using the sudo apt install samba command.

After installing Samba, you need to configure it. Open the Samba configuration file, which is located in /etc/samba/smb.conf, using any text editor, such as Nano.

Customize the configuration file to suit your needs. Add the folders and printers you want to share between Linux and Windows.

Save your changes and restart the Samba service using the sudo systemctl restart smbd command.

CentOS

Open a terminal and run the sudo yum update command to update your system's package list.

Then install Samba using the sudo yum install samba command.

After installing Samba, you need to configure it. Open the Samba configuration file, which is located in /etc/samba/smb.conf, using any text editor such as Nano.

Customize the configuration file to suit your needs. Add the folders and printers you want to share between Linux and Windows.

Save your changes and restart the Samba service with sudo systemctl restart smb.

That's it, now you can share files and printers between Linux and Windows using Samba.