You are not logged in.

#1 2011-03-24 18:35:01

beyecixramd
Member
Registered: 2009-07-23
Posts: 22

Sharing files from Arch to Ubuntu (XBMC)

=Current situation=

I'm running a HTPC in my living room. This HTPC has NO local content, and everything is being shared from my Arch box in my bedroom (music, videos, pics...) using Samba.
I'm running a paswordless, public Samba server, so that anyone could also hook in the network and share my files. I don't want a password mainly because XBMC doesn't accept passwords for Samba shares, and also, I'm sharing in read only mode.

=Problem=

I've read Samba is easy to hack (I've got a firewall between the WAN and the LAN, tho.). Also, Samba is showing mangled names in folders with "weird" characters such as "ñ" or "¿".

=What I want=

Either tell me how to fix name mangling (using "mangled names = no" only hides those folders, rendering them inaccesible from other computers) to show the entire name for the folders, and not a mangled one.

Or if maybe it's better to use NFS (as long as it can be mounted in fstab, because I'm running XBMC-Live, so no desktop is running in the background, and thus, the shares must be mounted system-wide) in read only mode and without needing to enter ANY password from the clients.

Offline

#2 2011-03-25 08:34:58

zenlord
Member
From: Belgium
Registered: 2006-05-24
Posts: 1,229
Website

Re: Sharing files from Arch to Ubuntu (XBMC)

NFS is a possibility, but if all you want is to stream media, then you're really looking for a uPNP/DLNA-server. Install ps3mediaserver on your Arch-server and XBMC will pick up the server on the network. I have set up a page in the wiki on this topic.

Once you have a uPNP/DLNA-server runnng, you can easily add clients from Logitech, Philips etc.

Offline

#3 2011-03-25 21:23:28

Kirurgs
Member
Registered: 2008-10-20
Posts: 144

Re: Sharing files from Arch to Ubuntu (XBMC)

Hmm, I have two ARCH boxes, one runs so called server (router, torrents, hostapd and a ton of other things) and second is pure XBMC. I stream content from that server via local network to HTPC... using SAMBA... with password... and don't really see a downside smile
*) Samba is on the LAN, not accessible from WAN (protected with FW) -> no problems with security (until someone breaks in, but then I'm in deep shit anyways smile)
*) I run HTPC on demand, most of the time it's in suspend mode (S3) -> after resuming samba just need to reconnect and no problems at all, no stale file handles etc.
*) Content streams very fast, I have 100Mb/s hub for LAN -> samba can get about 9-10MB/s quite easily
*) samba don't use much resources

I didn't find any quick, easy to configure working method to access the server, samba was just the right one smile
If someone uses smth different, please share, I might change my mind smile

Last edited by Kirurgs (2011-03-25 21:25:28)

Offline

#4 2011-03-26 16:12:33

thinmintaddict
Member
Registered: 2010-12-17
Posts: 4

Re: Sharing files from Arch to Ubuntu (XBMC)

+1 for NFS.

I have a media server built on ubuntu from which I stream 1080p to my Arch boxes (laptop and desktop). Haven't messed much with XBMC, but it seems that NFS would probably solve much of your problems.

It is typically faster than samba, as will as dead simple to configure. any security measures you put into place are on the server side (restricted to specific hosts or ip ranges, etc.). It can be mounted in fstab, and once done so appears to the OS as part of your filesystem, so XBMC will think it is local content.

for the most part I stay away from samba unless I need to have access from Windoze for some reason.

Offline

#5 2011-04-07 13:10:53

ChojinDSL
Member
From: Germany
Registered: 2010-11-30
Posts: 64
Website

Re: Sharing files from Arch to Ubuntu (XBMC)

If you want to fix the mangled characters for folder names in samba, simply add the following to your smb.conf under the global section.

display charset = utf8
unix charset = utf8

Offline

#6 2011-04-07 13:46:39

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: Sharing files from Arch to Ubuntu (XBMC)

Using NFS myself here to share my stuff from my server to my AppleTV (both running Arch), works like a treat.


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#7 2011-04-07 22:17:44

ushimitsudoki
Member
From: Okinawa
Registered: 2010-07-20
Posts: 18
Website

Re: Sharing files from Arch to Ubuntu (XBMC)

Here is another possibility:

I set up a FTP server to share my media directories. This works at home of course, but the nice advantage is I can easily hit my server when away from home (on my laptop) or on a new machine.

For example, I went to a friend's house and showed him xbmc on his Windows laptop, and it was easy to hit the FTP shares.


Free Software, Free Society

Offline

#8 2011-04-08 06:51:47

subatomic
Member
From: Berlin
Registered: 2005-06-26
Posts: 180

Re: Sharing files from Arch to Ubuntu (XBMC)

UPnP streaming is your answer. Why bother with NFS shares if it's ro anyway? I have UShare running on Arch and it took about 2 mins to configure. Just add the server to the XBMC sources and it's all there. Even shows up magically in VLC so anyone can stream. What more do you want?

Offline

#9 2011-04-08 07:53:55

jelly
Administrator
From: /dev/null
Registered: 2008-06-10
Posts: 716

Re: Sharing files from Arch to Ubuntu (XBMC)

i Would prefer nfs over upnp. NFS setups aren't that hard btw.

Offline

Board footer

Powered by FluxBB