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.
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 thesudo systemctl restart smbd
command.
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 withsudo systemctl restart smb
.
That's it, now you can share files and printers between Linux and Windows using Samba.