[Tutorial] Samba Configuration

Raspberry Pi related support

[Tutorial] Samba Configuration

Postby rern » 20 Jul 2017, 12:36

Last edited by rern on 15 Oct 2017, 13:45, edited 1 time in total.
rAudio @ https://github.com/rern/rAudio
Raspberry Pi 4B
Raspberry Pi 3B+ > SMSL M8 DAC
Raspberry Pi 3B
Raspberry Pi Zero 2
Raspberry Pi Zero W
User avatar
rern
 
Posts: 723
Joined: 14 Jul 2016, 08:15

Re: [Tutorial] Samba Configuration

Postby johnberg » 31 Jul 2017, 22:12

Dear Rern,

I have a raspberry pi B with v0.3-beta (29/10/2014).

How do I config all those text files, do I need wordpad or a Linux editor for this.
Maybe only need Putty?
I am completely green with Linux and don't know where to begin.

I would be very glad if samba was working.

Please can you give me some step by step explanation to edit this textfiles and where I can find them with which app or editor.

I think it is not so difficult, but I need to know where to begin.

Thanks a lot :?
johnberg
 
Posts: 16
Joined: 27 Oct 2016, 20:10

Re: [Tutorial] Samba Configuration

Postby hondagx35 » 31 Jul 2017, 22:49

User avatar
hondagx35
 
Posts: 3042
Joined: 11 Sep 2014, 22:06
Location: Germany

Re: [Tutorial] Samba Configuration

Postby johnberg » 01 Aug 2017, 21:56

Thank you Frank,
I did install winscp portable

This is my etc/samba/smb-dev.conf -file on Raspberry Pi B now:

[global]

workgroup = RUNENET
server string = RuneAudio Player
dns proxy = no
log level = 0
syslog = 0
security = share
guest account = root
map to guest = bad user
load printers = no
domain master = no
local master = no
preferred master = no


#======================= Share Definitions =======================

directory mask = 0775
create mask = 0775

[music_store]
comment = Music Datastore root (/mnt/MPD)
path = /mnt/MPD/
read only = no
public = yes
follow symlinks = yes
wide links = yes

[mpd]
comment = MPD directory (/var/lib/mpd/)
path = /var/lib/mpd/
read only = no
public = yes
follow symlinks = yes
wide links = yes

[www]
comment = RuneAudio webroot (/var/www/)
path = /var/www/
read only = no
public = yes
follow symlinks = yes
wide links = yes

[etc]
comment = RuneAudio sys config dir (/etc)
path = /etc/
read only = no
public = yes
follow symlinks = yes
wide links = yes

Do I have to delete this text now and replace completely for:

[global]
# netbios name = [name]
workgroup = WORKGROUP
server string = Samba %v on %L

wins support = yes
domain master = yes
preferred master = yes
local master = yes
os level = 255
dns proxy = no
log level = 0

socket options = IPTOS_LOWDELAY SO_RCVBUF=131072 SO_SNDBUF=131072
min receivefile size = 2048
use sendfile = yes
aio read size = 2048
aio write size = 2048
write cache size = 1024000
read raw = yes
write raw = yes
getwd cache = yes
oplocks = yes
max xmit = 32768
dead time = 15
large readwrite = yes

guest ok = yes
map to guest = bad user
encrypt passwords = yes

load printers = no
printing = bsd
printcap name = /dev/null
disable spoolss = yes

[readwrite]
comment = browseable, read, write, guess ok, no password
path = /mnt/MPD/USB/hdd/readwrite
read only = no
[read]
comment = browseable, read only, guess ok, no password
path = /mnt/MPD/USB/hdd/read
[root]
comment = hidden, read, write, root with password only, from [IP1] [IP2] only
path = /mnt/MPD/USB/root
browseable = no
read only = no
guest ok = no
valid users = root
# host allow = [IP1] [IP2]

What to type in [name] ????

The next three are this Putty commands?

Test smb.conf parameters

Fix minimum rlimit_max

Restart


Should samba work now after this 4 handlings?

By the way is this tutorial for Raspberry Pi 3 or for all versions?
I have an older Raspberry Pi B model (version sv0.3-beta (29/10/2014) should this also work with this script?
johnberg
 
Posts: 16
Joined: 27 Oct 2016, 20:10

Re: [Tutorial] Samba Configuration

Postby rern » 03 Aug 2017, 16:02

rAudio @ https://github.com/rern/rAudio
Raspberry Pi 4B
Raspberry Pi 3B+ > SMSL M8 DAC
Raspberry Pi 3B
Raspberry Pi Zero 2
Raspberry Pi Zero W
User avatar
rern
 
Posts: 723
Joined: 14 Jul 2016, 08:15

Re: [Tutorial] Samba Configuration

Postby johnberg » 03 Aug 2017, 22:18

Thanks Rern,

My smb-dev.conf page is looking completely different as yours (Pi B v0.3-beta)
Do I have to delete the complete text of this page and replace it for your version?

What to do with this??
...
[readwrite]
...
path = /mnt/MPD/USB/hdd/readwrite
...

The name of my hdd is "Elements"


Is it possible to keep it simply and leave the names away, if I get it working with a simply ip adress
(//192.168.0.100) I will be more then happy.
johnberg
 
Posts: 16
Joined: 27 Oct 2016, 20:10

Re: [Tutorial] Samba Configuration

Postby rern » 04 Aug 2017, 04:53

rAudio @ https://github.com/rern/rAudio
Raspberry Pi 4B
Raspberry Pi 3B+ > SMSL M8 DAC
Raspberry Pi 3B
Raspberry Pi Zero 2
Raspberry Pi Zero W
User avatar
rern
 
Posts: 723
Joined: 14 Jul 2016, 08:15

Re: [Tutorial] Samba Configuration

Postby johnberg » 05 Aug 2017, 10:58

johnberg
 
Posts: 16
Joined: 27 Oct 2016, 20:10

support RuneAudio Donate with PayPal


Return to Raspberry Pi

Who is online

Users browsing this forum: Bing [Bot] and 13 guests