How to Install Samba on OpenSUSE Latest
Samba is a free software suite that provides seamless file and print services between Windows and Unix-like systems. Here is a step-by-step tutorial on how to install Samba on OpenSUSE Latest:
Before you install Samba, make sure to update your system's repositories and packages:
sudo zypper refresh
sudo zypper update
Samba is available in the default OpenSUSE repositories. To install it, simply run:
sudo zypper install samba
Now that you have installed Samba, you need to configure it so that it works as expected. Start by editing the main configuration file using your favorite text editor:
sudo nano /etc/samba/smb.conf
The configuration file is well-documented, so you should be able to find your way around it. Here are a few common configurations that you might want to change:
Workgroup: By default, Samba uses the workgroup "WORKGROUP". If you are running a Windows network, you might want to change this to match your Windows workgroup.
Share: You can create new shares by adding a new section to the configuration file. Here is an example of a simple share:
[share_name]
path = /path/to/folder
read only = no
guest ok = yes
This share allows anyone to access it without a password. If you want to require a password, remove the "guest ok = yes" line and add the "valid users" line:
[share_name]
path = /path/to/folder
read only = no
valid users = user1 user2
This share allows only "user1" and "user2" to access it, and they need to provide their password.
Once you have made changes to the configuration file, you need to restart Samba for the changes to take effect:
sudo systemctl restart smb
To test if Samba is working correctly, you can try to access your shares from another computer. If you are running Windows, open File Explorer and enter the address "\samba_server_ip\share_name" in the address bar. You should be prompted for a username and password if required by the share.
Congratulations! You have successfully installed and configured Samba on OpenSUSE Latest.
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!