Welcome to our community

Be apart of something great, join today!

Samba config and i.p/host mapping

ToneDeff

Inactive User
Just been tidying up some of my personal configs to use in an Enigma image, and started looking at smb.conf i use for samba

and noticed when setup properly it ties the box i.p to a host name on my local network... never seen this mentioned before for Enigma and saves users having to know what box i.p is...

e.g
i can connect to webui using:
http://tm600/?screenWidth=1280

tlenet:
tm600:23

ftp:
tm600:21

zapstream:
http://tm600:31344

samba network share:
\\tm600

at the moment config is
[global]
socket options = TCP_NODELAY SO_SNDBUF=8192 SO_RCVBUF=8192
load printers = no
guest ok = yes
guest account = root
encrypt passwords = yes
password server = none
log file = /tmp/smb.log
security = share
server string = TM600
netbios name = TM600
workgroup = Mshome
interfaces = 192.168.1.2
allow hosts = 192.168.

[Configuration]
comment = Configuration files - take care!
path = /var
read only = no
public = yes
guest ok = yes

[USB_Front]
comment = The USB harddisk
path = /mnt/usb
read only = no
public = yes
guest ok = yes

[USB_Back]
comment = The USB1 harddisk
path = /mnt/usb1
read only = no
public = yes
guest ok = yes
writeable = yes
valid users = root, nobody

[USB_Internal]
comment = The USB2 harddisk
path = /mnt/usb2
read only = no
public = yes
guest ok = yes

only problem is i can't figure out how to get it to work without having to manually put i.p in config
Code:
You don't have permission to view the code content. Log in or register now.

Code:
You don't have permission to view the code content. Log in or register now.

eth0 doesn't seem to work with host name but you can still connect to the share using box i.p

e.g
\\192.168.1.2

anyone got any ideas about how to set box i.p in config without actually puting i.p there..
 
Last edited:
Umh, if I remember correctly, "interfaces" is optional. That just limits the possible interface addresses, usually the box IP plus the loopback IP. Anyway, for the SAT box that can only have one interface address (on eth0) you don't need this option.
Might be useful for TM800HD with WiFi though...

The reason why your PC can see the box by it's name is because of "netbios name" option.
 
Back
Top