PDA

View Full Version : Samba problems


seph200x
2003-10-03, 02:51
i just copied my old smb path across from my xbmp config.xml file, and it couldn't connect. it's in the following format:

smb://xbox:xbox@workgroup/pcname/sharename

it seems to be having the same problems i have with any of xport's emulators, which also fail to recognise smb shares in this format. i eventually managed to get mameox to see a share with this format:

smb://:@ipaddress/sharename

but this won't work with xbmc or xports emus.

i'm using windows xp. any help would be appreciated. (but it would be better if xbmc (and everything else) used the same smb routines as xbmp. :d *i had no problems whatsoever with that. )

seph200x
2003-10-03, 03:32
oh, and just for reference, here's the post on mameox's sourceforge site that dealt with the issue and how opcode fixed it:

http://sourceforge.net/forum....=268686 (http://sourceforge.net/forum/forum.php?thread_id=900013&forum_id=268686)

oh, and hello. i just noticed a whole bunch of path formats in xports .nfo files that i haven't tried with xbmc. i'll give them a go tonight and let you know how i go.

Frodo
2003-10-03, 08:28
smb works for me
i'm connecting from my xbox->windows xp using the following share:

smb://username:password@workgroup/computername/share

that layout is working. its also tested with linux & samba and that works 2, but i believe samba needs 2b running in share mode ?

anyway compputername can b either the wins name or the ip adres.

make sure you entered all the correct details like
ip adres, netmask, name server, default gateway etc

if your're booting from evox,avalaunch or another dash, then please enter those values their and remove them from xbmc
xbmc will use them automaticcly
this means xboxmediacenter.xml will look like:


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


only fill in those values if you are using xbmc as your dashboard

frodo

seph200x
2003-10-03, 08:36
thank you mr baggins, sir. i shall try that tonight. keep up the awesome work.

seph200x
2003-10-06, 06:18
okay. that problem's been fixed. i had to remove the ip addresses as suggested, and let it use the dashboard's. (although the ip's were the same, but anyhoo, its working now.)

now, whenever i go to play a movie, it plays the first two seconds or so of the movie, then quits back to the menu. music plays fine however. i'll have a bit of a squizz at the other topics in the forum to see if this is a known issue.

TML_Winston
2003-10-06, 19:06
samba shares work except it still has the same bug that xbmp had.. the lockup after 7-10 minutes of playing a video over samba.

the 2 seconds bug only happened to me when using a dvd, yet the xbmp worked fine. wish i could compile (have xdk) to submit patches :)

SciFi
2003-10-06, 22:03
tml_winston:

hi! can you tell me how you got samba to work with xbmc? i have been trying every setting in my smb.conf file without any luck :=(

xbmp works, but not xbmc

can you post your smb.conf file maybe?

girotour
2003-10-08, 02:18
i've the same identical problem: samba works with xbmp, but it doesn't with xbmc.
when i select the share, xbmc waits for 5/6 seconds and then displays an empty folder.

here is the xbmp configuration:

<share>
* <name>videos 01 (smb - home)</name>
* <url>smb://user:password@workgroup/home/videos 01</url>
* <cachesize>8192</cachesize>
</share>

and this is the xbmc configuration:

<bookmark>
* <name>videos 01 (smb - home)</name>
* <path>smb://user:password@workgroup/home/videos 01</path>
</bookmark>

btw: these are the network settings for xbmc:

<ipadres>-</ipadres>
<netmask>-</netmask>
<defaultgateway>-</defaultgateway>
<nameserver>-</nameserver>

any idea?

girotour

TML_Winston
2003-10-09, 05:50
here is my xbmc .xml section for samba

<!-- my video shares !-->
<video>
<default></default>
<bookmark>
<name>dvd drive</name>
<path>d:\</path>
</bookmark>
<bookmark>
<name>music videos</name>
<path>smb://chris:password@mageslair/lordmage/videos</path>
</bookmark>
* * * * * * * *<bookmark>
* * * * * * * * * * * *<name>public</name>
* * * * * * * * * * * *<path>smb://chris:password@mageslair/lordmage/public</path>
* * * * * * * *</bookmark>
* * * * </video>


i hope this helps.

TML_Winston
2003-10-09, 05:57
oh here is my smb.conf file:

relevant sections:
#======================= global settings =====================================
[global]

* workgroup = mageslair
* server string = samba server %v
* log file = /var/log/samba/log.%m
* max log size = 50
* hosts allow = 192.168.2. 64.0.117.23 127.
* security = share
* encrypt passwords = yes
* smb passwd file = /etc/samba/smbpasswd
* socket options = tcp_nodelay so_rcvbuf=8192 so_sndbuf=8192
* local master = yes
* os level = 33
* wins support = yes
* dns proxy = no
* keepalive = 0

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

[videos]
* comment = public stuff
* path = "/storage3/music videos"
* browsable = no
* users = chris
* writable = yes
* create mask = 0770

budwizer
2003-10-10, 02:39
i have tried and tried to get smb sharing to work, both with xbmp and xbmc with no luck. can someone please help with setting up smb sharing in a windows 2003 active directory environment?

i am currently using relax but it seems to crash more than i would like and i would really prefer to use smb.

thanks in advance!

VCD_Junky
2003-10-10, 03:44
i'm in the same boat (server 2003 / active directory), and i have not had any luck either...

budwizer
2003-10-10, 06:29
here is what i don't understand, i am able to create a share on my winxp system and can connect to it with no problems. when i try to connect to the share on my server it just shows a blank list. i enabled auditing on the server and it is not even showing up as a failed logon, something is happening that is preventing the server from even seeing the logon request.

i think it was on xbox-scene's forums that someone suggested making a few registry tweaks however that did not help resolve it for me.

agent
2003-10-11, 13:48
girotour:

make sure "security = share" in smb.conf
make sure "wins support = yes" in smb.conf

verify this by running the "testparm" command.

make sure you have winbind installed and running. (this is the one that screwed me up)

when connection attempts are being made tail -f /var/log/samba/log.myxbox and /var/log/samba/log.nmbd to get an idea of whats going wrong. if nothing show up here, either or machine is querying the wrong box or connection attempts are being firewalled in some way.

i'm using debian unstable with samba 3 and its working nicely.

seph200x:

i had this issue, and think i fixed it by adding "socket options = tcp_nodelay so_sndbuf=8192 so_rcvbuf=8192" to smb.conf and adding <cachesize>8192</cachesize> to the share bookmark.

it works now, and i'm pretty sure that was the change that caused it.

girotour
2003-10-12, 11:20
sorry, agent, i forgot to say that i'm using windows xp. so, no smb.conf file.
anyway, thanx for your answer.

girotour

jjz
2003-10-12, 22:41
girotour and scifi-
looks like i'm having the same problem- i can see my samba shares without problems using xbmp but no matter what i do i cannot get it to work with xbmc. i'm trying to share off a winxp machine.
have you guys had any luck with this problem
thanks !!!

IndieRockSteve
2003-10-14, 05:55
i just got my xbmc working, i'm going to "quote" my smb.conf and xbmc config file below for you guys, hopefully it will help you. i'll have you note that i don't have a user set for the shares, i found that its not actually necesary, i just have it map to guest so the xbox can have read only ability.
also, for linux users, make sure the files are world readable and the directories are world readable and executable...

my smb.conf

# samba config file created using swat
# from localhost (127.0.0.1)
# date: 2003/08/02 11:19:46

# global parameters
[global]
workgroup = schwamp
netbios name = indierocksteve
server string = samba server %v
encrypt passwords = yes
map to guest = bad user
log file = /var/log/samba/log.%m
max log size = 50
socket options = tcp_nodelay so_rcvbuf=8192 so_sndbuf=8192
printcap name = cups
dns proxy = no
printing = cups
dead time = 15
keepalive = true
getwd cache = yes
security = share

[homes]
comment = home directories
read only = no
browseable = no

[printers]
comment = all printers
path = /var/spool/samba
create mask = 0700
guest ok = yes
printable = yes
print command = lpr-cups -p %p -o raw %s -r
browseable = no

[print$]
path = /var/lib/samba/printers
write list = @adm root

[pdf-generator]
comment = pdf generator (only valid users)
path = /var/tmp
printable = yes
print command = /usr/share/samba/scripts/print-pdf %s ~%u //%l/%u %m %i "%j" &

[newmusic]
path = /storagedrives/3/new/
write list = adeffs
guest ok = yes

[shared]
path = /datadrive/shared
read only = no
guest ok = yes

[mycds]
path = /storagedrives/1/mycds
guest ok = yes
write list = adeffs

[videos]
path = /storagedrives/1/videos
guest ok = yes
write list = adeffs

[movies]
path = /storagedrives/4/movies
guest ok = yes
write list = adeffs

[myrips]
path = /storagedrives/1/rips
guest ok = yes
write list = adeffs

[music1]
path = /storagedrives/2/newsgroups
write list = adeffs
guest ok = yes

[music2]
path = /storagedrives/3/newsgroups
guest ok = yes
write list = adeffs

[tooks]
path = /storagedrives/2/tooks
guest ok = yes
write list = adeffs

[mycaps]
path = /storagedrives/3/theotherguys
guest ok = yes

[fusonsmusic]
path = /storagedrives/3/fuson
guest ok = yes
write list = fusonc


and my xboxmediacenter.xml

<!-- my music shares !-->
<music>
<default></default>
<bookmark>
<name>adeff's cd's</name>
<path>smb://:@schwamp/indierocksteve/mycds</path>
</bookmark>

<bookmark>
<name>cd rips</name>
<path>smb://:@schwamp/indierocksteve/myrips</path>
</bookmark>

<bookmark>
<name>collection 1</name>
<path>smb://:@schwamp/indierocksteve/music1</path>
</bookmark>

<bookmark>
<name>collection 2</name>
<path>smb://:@schwamp/indierocksteve/music2</path>
</bookmark>

<bookmark>
<name>took's music</name>
<path>smb://:@schwamp/indierocksteve/tooks</path>
</bookmark>

<bookmark>
<name>fuson's music</name>
<path>smb://:@schwamp/indierocksteve/fuson</path>
</bookmark>

<bookmark>
<name>dvd</name>
<path>d:\</path>
</bookmark>
</music>


<!-- my video shares !-->
<video>
<default></default>
<bookmark>
<name>videos</name>
<path>smb://:@schwamp/indierocksteve/videos</path>
</bookmark>

<bookmark>
<name>movies</name>
<path>smb://:@schwamp/indierocksteve/movies</path>
</bookmark>

<bookmark>
<name>mycaps</name>
<path>smb://:@schwamp/indierocksteve/mycaps</path>
</bookmark>

<bookmark>
<name>dvd</name>
<path>d:\</path>
</bookmark>
</video>
</xboxmediacenter>


hope this helps!

jjz
2003-10-25, 20:18
i still can't get smb to work using xbmc (works perfectly with xbmp). i'm using xbmc 10-21 trying to share off my winxp box. when i select smb, xbmc pauses for 4-5 seconds and then displays a blank directory.
here are my xml file details (i boot up via evox and my shares are at 192.168.0.110):

<!-- ipadres,netmask,default gateway, nameserver (leave empty if you wanna use evox settings) !-->
*<ipadres>-</ipadres>
*<netmask>-</netmask>
*<defaultgateway>-</defaultgateway>
*
*<nameserver>192.168.0.110</nameserver>
..... for next section i fill in the appropriate user and password
<bookmark>
<name>smb</name>
<path>smb://user:password@mshome/main2/mp3</path>
</bookmark>

what could i be doing wrong? anyone have any idea how to troubleshoot- i.e. is there a log file somewhere? any help is welcome as i am pulling out my hair!

hederuiter
2003-10-27, 17:02
i have also the same problem as girotour and scifi. xbmp works perfect and xbmc not.

i use xbmp as dashboard, so i load xbmc in xbmp.

samba version 3.0.0rc1
xbmc build 10-18
xbmp build 24-09

my files:

xboxmediacenter.xml

<ipadres>-</ipadres>
<netmask>-</netmask>
<defaultgateway>-</defaultgateway>

<nameserver>-</nameserver>
....
<music> *
* <bookmark>
* * *<name>stifserver</name>
* * *<path>smb://username:password@workgroup/stifserver/shares/mp3</path>
* </bookmark>
</music>


smb.cfg

[global]
* workgroup = workgroup
* server string = stifserver
* netbios name = stifserver
* security = share
* wins support = yes
* hosts allow = 192.168.1. 127.
* log file = /var/log/samba/log.%m
* log level = 10
* max log size = 50
* dns proxy = no
* dead time = 30
* create mask = 0775
* encrypt passwords = yes
* hosts allow = all
* keepalive = true
* dos filetimes = true
* dos filetime resolution = yes
* getwd cache = yes

[shares]
* comment = shares op stifserver
* path = /shares
* public = no
* writable = yes
* valid users = username
* create mode = 0775


can't wait to use xbmc. so, hope you can help us

DeeJam
2003-11-21, 16:19
in xbmc it only works if i leave out the workgroup name. i've also noticed some bugs in different versions of xbmc which makes it impossible to use smb at all :(

i'm now running xbmc buld oct. 10th 2003. i've tried newer builds and none have worked :(

my configuration path looks like this (where gateway is the wins-name of my linux box running samba):
<path>smb://username:password@gateway/movies</path>

as mentioned before, my global part of smb.conf looks like this (it has an fix against movies who freezes after 10-15 minutes):
[global]
workgroup = krangparty.net
netbios name = gateway
server string = gateway running slackware 9
interfaces = eth1
security = share
encrypt passwords = yes
map to guest = bad user
null passwords = yes
ssl ca certdir = /etc/ssl/certs
log file = /var/log/samba.%m
max log size = 50
deadtime = 15
keepalive = 0
wins proxy = yes
wins support = yes
guest account = ftp
invalid users = root
admin users = x
hosts allow = 192.168.0.
dos filetimes = yes
dos filetime resolution = yes

hederuiter
2003-11-21, 23:49
does also not work (leaving the workgoup uit of the xbmc config and used your samba config).

but a win98 samba share works perfect, this looks like:

<bookmark>
<name>pc1</name>
<path>smb://user:passw@workgroup/pc1/hd1</path>
</bookmark>

dont understand it anymore

jjz
2003-11-22, 23:49
i recently rebuilt my windows xp system and now samba works with xbmc- go figure! http://www.xboxmediaplayer.de/forums/non-cgi/emoticons/tounge.gif