You are not logged in.
1. Create a folder in your home directory. For this tutorial, call it Share.
2. Install samba:
sudo apt-get install samba
3. From the command line, navigate to /etc/samba
4. Move the config file out of the way:
sudo mv smb.conf smb.conf.bkp
5. Create a new, simple smb.conf, as follows:
[global]
workgroup = WORKGROUP
server string = hostname
mangled names = no
path = /home/username/Share
[Share]
guest ok = yes
guest only = yes
writable = no
browsable = yes
Note: replace username with your actual user name.
Note: replace hostname with your actual host name.
Note: [Share] appears in some clients. It is useful to name it the same as the share folder.
Note: The mangled names=no prevents SAMBA from rewriting filenames which contain Windows special characters, such as colons, commas, and ampersands. It is better not to use Windows special characters in filenames.
6. Enter the command
testconf
and read the results. Is everything OK?
7. Start/Restart the SAMBA server with
sudo /etc/init.d/samba-ad-dc restart
Now simply populate the Share folder with your content.
Use case: this is my setup for a Kodi media source, and it works great! Within Source, I have Movies and Albums with filenames and folders corresponding Kodi protocols.
Last edited by nauved-rex (2021-02-26 23:21:56)
Offline
Sudo is a typical Ubuntu-base prefix, on Debian and Devuan by default* you don't need sudo, just su and you have root permissions. Achieve the same on Ubuntu with
sudo su
Now skip the sudo prefix from the above commands.
*this depends on whether or not you've set a root password during installation. If you have, sudo is installed, but disabled for your user. (installed because other programs need it anyway). Technically, if you set a root pw, your regular user is not added to the /etc/sudoers file.
Offline
Sudo is a typical Ubuntu-base prefix, on Debian and Devuan by default* you don't need sudo, just su and you have root permissions. Achieve the same on Ubuntu with
sudo su
Now skip the sudo prefix from the above commands.
*this depends on whether or not you've set a root password during installation. If you have, sudo is installed, but disabled for your user. (installed because other programs need it anyway). Technically, if you set a root pw, your regular user is not added to the /etc/sudoers file.
I do both. I create a password for root as the first thing I do when booting the system immediately after the install. I realize that sudo is mostly an Ubuntu thing, but I prefer the way I do things, and see no reason to modify my original post. Thanks for the feedback.
Offline
To be sure, use
su -
for Devuan Beowulf 3.0 and above.
pic from 1993, new guitar day.
Offline
To be sure, use
su -
for Devuan Beowulf 3.0 and above.
OK, thanks
Offline