XBMC SMB Linux Problems (Pls read devs)
#1
i know plenty of people have posted with problems with xbmc and samba. i'm going to try to explain my problem very in-depth and see if any of the developers know of anything currently wrong with smb or what i'm doing wrong. i've been trying to get xbmc and samba to work now for atleast 3 cvs releases with no luck. i'm trying to connect to a freebsd samba share, and i will post my smb.conf and xbmc.conf's and some log snippets.

smb.conf excerpt:

#======================= global settings =====================================
[global]

workgroup = workgroup
server string = samba server %v
hosts allow = 192.168.1. 192.168.2. 127.
log file = /var/log/log.%m
max log size = 50
security = share
encrypt passwords = yes
socket options = tcp_nodelay 2
netbios name = anarche
guest ok = yes
wins support = yes

#============================ share definitions ==============================
[files]
comment = anarches files
path = /files
valid users = anarche,xbox
public = yes
writeable = yes
printable = no

_-----------------------------------------------------------------------------------------
-------------------------------------------

xbmc.xml

<!-- ipadres,netmask,default gateway, nameserver (leave empty if you wanna use evox settings) !-->
<ipadres>-</ipadres>
<netmask>-</netmask>
<defaultgateway>-</defaultgateway>
<nameserver>-</nameserver>

<music>
<bookmark>
<name>smb</name>
<path>smb://xbox:[email protected]/files/mp3/</path>
</bookmark>
</music>

<video>
<bookmark>
<name>smb</name>
<path>smb://xbox:password@workgroup/anarche/files/movies</path>
</bookmark>
</video>


/var/log/log.myxbox:

[2003/12/07 08:57:21, 0] smbd/password.c:authorise_login(863)
authorise_login: rejected invalid user nobody


____

let me also note that xbmp works fine with samba, and here is a snippet from that config.:

<music>
<visible>true</visible>
<share>
<name>network (smb)</name>
<url>smb://xbox:password@workgroup/anarche/files/mp3</url>
<cachesize>512</cachesize>
</share>
</music>

<videos>
<visible>true</visible>
<share>
<name>network (smb)</name>
<url>smb://xbox:hacker@workgroup/anarche/files/movies</url>
<cachesize>1024</cachesize>
</share>
</videos>
#2
your samba guest account is your system user "nobody", which does propably not have permission to your "files" share. set your samba guest account to "xbox" and try if that works.

i tested xbmc with cvs from the 6th and it works with this setup. only problem is, that a movie crashs after 10minutes or so. i need to investigate into this issue, but haven't had time so far.
#3
i will give that a shot, thanks for noticing that. also the timeout after 10 minutes has been an issue for a while now, so it might be a little fruitless looking into that.
#4
Star 
hey, i have tryied to this to night..
added this line in my smb.conf

[global]
socket options = so_keepalive
deadtime = 15
keepalive = 0

and it help me in xbmp,

it´s late and i havent solved my real prob. when i use same smb line in xbmc as in xbmp and it dont work.. what does u guys have in your settings.. hope u guys anderstund me in so tierd right now..
#5
1: make sure you set your nameserver to something, do not leave it blank. point it toward your samba machine and make sure it as wins enabled

2: make sure you use the machine's samba name instead of it's ip. i have had some hugly issues when trying to access samba shares directly via the ip adress.

3: stupid question, the ip of your xbos is in host allow, right?

4: the entry should look like this
<path>smb://username:password@netbiosname/folder</path>
#6
Information 
thanks,
it was the nameserver thing....
i had it in xbmp and not i xbmc, now i realy need to get some sleep -zzzzzzz

and about the----
[global]
socket options = so_keepalive
deadtime = 15
keepalive = 0

i think socket options = so_keepalive isnt needed

byee
#7
well.. although i read everything above my xmbc does not list the files and directorys in my smb-share. it connects to my server (i hear the hdd working) but nothing appears on my tv-screen. i'm nearly fed up with this.

the xbox-username is "steffi" (girlfriend, ay?), the smb-share is named "xbox"

i'll paste my confs, both xmbc and smb and hope you can help:

smb.conf

Quote:[global]
  workgroup = home
  server string = %h server (samba %v)
;   load printers = yes
;   printcap name = /etc/printcap
;   printing = bsd
  invalid users = root
  log file = /var/log/samba/log.%m
  max log size = 1000
;   syslog only = no
  syslog = 0
  username map = /etc/samba/smbusers

  security = user
  encrypt passwords = yes
  guest account = guest
  map to guest = bad password

  bind interfaces only = yes
  interfaces = eth1 192.168.0.0/16
  socket options = tcp_nodelay

  hide dot files = yes
  hide unreadable = yes
# --- browser control options ---

  local master = yes
;   os level = 20
  domain master = auto
  preferred master = auto

# --- end of browser control options ---

   wins support = yes
;   wins server = w.x.y.z
  dns proxy = no
;   name resolve order = lmhosts host wins bcast
;   preserve case = yes
;   short preserve case = yes
;   unix password sync = false
  passwd program = /usr/bin/passwd %u
  passwd chat = *enter\snew\sunix\spassword:* %n\n *retype\snew\sunix\spassword:* %n\n .
;   pam password change = no
  obey pam restrictions = yes
;   winbind uid = 10000-20000
;   winbind gid = 10000-20000
;   template shell = /bin/bash

#======================= share definitions =======================

[homes]
       comment = home directories
       read only = no
       create mask = 0600
       directory mask = 0700
       browseable = no
       path = /mnt/data/smbhome/%s

[data-ftp]
       comment = daten - fuer ftp sichtbar !
       path = /mnt/data/data-ftp
       read only = no
       delete readonly = no
       create mask = 0644
       directory mask = 0755
guest ok = yes
       force group = +smbusers
       browsable = yes

[data-noftp]
       comment = daten - nicht fuer ftp sichtbar !
       path = /mnt/data/data-noftp
       read only = no  
delete readonly = no
       create mask = 0640
       directory mask = 0750
       force group = +ftp
       browsable = yes

[xchange]
       comment = datenaustausch - dies und das
       path = /mnt/data/xchange
       read only = no
       create mask = 0666
       directory mask = 0777
       browseable = yes

[xbox]
comment = anarches files
path = /mnt/data/data-ftp
valid users = steffi
public = yes
writeable = yes
printable = no

[printers]
  comment = all printers
  browseable = no
  path = /tmp
  printable = yes
  public = no
  writable = no
  create mode = 0700

a sample share for sharing your cd-rom with others.
[cdrom]
  comment = samba server's cd-rom
  writable = no
  locking = no
  path = /cdrom
  public = yes
;   preexec = /bin/mount /cdrom
;   postexec = /bin/umount /cdrom

xmbc.xml

Quote: <!-- my music shares !-->
 <music>
   <default></default>
   <bookmark>
     <name>c drive</name>
     <path>c:\</path>
   </bookmark>
   <bookmark>
     <name>e drive</name>
     <path>e:\</path>
   </bookmark>
   <bookmark>
     <name>f drive</name>
     <path>f:\</path>
   </bookmark>
   <bookmark>
     <name>dvd</name>
     <path>d:\</path>
   </bookmark>
<!-- expert setting: uncomment for seperate iso, udf and cdda share !-->
<!-- uncomment the bookmark named dvd to disable dvd autodetect !-->
<!-- for my music
<!--<bookmark>                   !-->
<!--  <name>iso</name>           !-->
<!--  <path>iso9660://</path>    !-->
<!--</bookmark>                  !-->
<!--<bookmark>                   !-->
<!--  <name>udf</name>           !-->
<!--  <path>udf:</path>          !-->
<!--</bookmark>                  !-->
<!--<bookmark>                   !-->
<!--  <name>cdda</name>          !-->
<!--  <path>cdda:</path>         !-->
<!--</bookmark>                  !-->
   <bookmark>
     <name>xns</name>
     <path>xns://192.168.0.1:1400/</path>
   </bookmark>
   <bookmark>
     <name>xbms</name>
     <path>xbms://192.168.0.1:1400/</path>      
   </bookmark>
   <bookmark>
     <name>smb</name>
     <path>smb://steffi:[email protected]/xbox/</path>
   </bookmark>
 </music>  
 

 <!-- my video shares !-->
 <video>
   <default></default>
   <bookmark>
     <name>c drive</name>
     <path>c:\</path>
   </bookmark>
   <bookmark>
     <name>e drive</name>
     <path>e:\</path>
   </bookmark>
   <bookmark>
     <name>f drive</name>
     <path>f:\</path>
   </bookmark>
   <bookmark>
     <name>dvd</name>
     <path>d:\</path>
   </bookmark>
<!-- expert setting: uncomment for seperate iso and udf share !-->
<!-- uncomment the bookmark named dvd to disable dvd autodetect !-->
<!-- for my video
<!--<bookmark>                   !-->
<!--  <name>iso</name>           !-->
<!--  <path>iso9660://</path>    !-->
<!--</bookmark>                  !-->
<!--<bookmark>                   !-->
<!--  <name>udf</name>           !-->
<!--  <path>udf:</path>          !-->
<!--</bookmark>                  !-->
   <bookmark>
     <name>xns</name>
     <path>xns://192.168.0.1:1400/</path>
   </bookmark>
   <bookmark>
     <name>xbms</name>
     <path>xbms://192.168.0.1:1400/</path>      
   </bookmark>
   <bookmark>
     <name>smb</name>
     <path>smb://steffi:caro12@home/router/xbox</path>
   </bookmark>
 </video>    
#8
we're working on a complete new smb implementation based on samba 3.
however this will take some time, so be patient. things will get better:-)
frodo
XBMC Project Founder (Retired), now head programmer of MediaPortal

Logout Mark Read Team Forum Stats Members Help
XBMC SMB Linux Problems (Pls read devs)0