[LIVE] - Can you install samba to share directoies to a windows network?
#1
is there a built in feature, or can you install samba so yuou can share a directory and or usb drive to a windows system network... i know Live can see a smb drive to read file.. I mean a windows system reading and modifying files on the xbmclive system?
XBMC user from XMP days... love this project and many thanks to the talent that keeps it alive
Reply
#2
yes...you can install samba in xbmclive. google it.
If you are running ubuntu desktop it is just right click on the folder like in windows.
Reply
#3
This is the code I used to get this working the other night

Make sure SAMBA is installed...

Code:
sudo apt-get install samba

Open the smb config file
Code:
sudo nano /etc/samba/smb.conf

and copy in the code below - replace all that is there already.

Code:
[global]
        workgroup = WORKGROUP
        netbios name = XBMC
        server string = XBMC Media PC
        security = SHARE
        log file = /var/log/samba/log.%m
        max log size = 50
        socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
        dns proxy = No
        wins server =
        guest account = [color=red]dave[/color]        
        guest ok = yes
        dfree command = /bin/dfree


[XBMC-SHARE]
            path = /home/[color=red]dave[/color]/
            writable = Yes
            guest ok = Yes
            browseable = Yes

[color=blue][i][XBMC-USB-DRIVE]
           path = /media/Elements
           Writable = Yes
           guest ok = Yes
           browseable = Yes[/i][/color]

Edit the red text to reflect your settings. The blue text is a second share I have to an attached USB Drive, you can delete/edit it as you want.

Saved it and rebooted and there it was.
Reply
#4
dsmuk Wrote:This is the code I used to get this working the other night

Make sure SAMBA is installed...

Code:
sudo apt-get install samba

Open the smb config file
Code:
sudo nano /etc/samba/smb.conf

and copy in the code below - replace all that is there already.

Code:
[global]
        workgroup = WORKGROUP
        netbios name = XBMC
        server string = XBMC Media PC
        security = SHARE
        log file = /var/log/samba/log.%m
        max log size = 50
        socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
        dns proxy = No
        wins server =
        guest account = [color=red]dave[/color]        
        guest ok = yes
        dfree command = /bin/dfree


[XBMC-SHARE]
            path = /home/[color=red]dave[/color]/
            writable = Yes
            guest ok = Yes
            browseable = Yes

[color=blue][i][XBMC-USB-DRIVE]
           path = /media/Elements
           Writable = Yes
           guest ok = Yes
           browseable = Yes[/i][/color]

Edit the red text to reflect your settings. The blue text is a second share I have to an attached USB Drive, you can delete/edit it as you want.

Saved it and rebooted and there it was.
Hi, dsmuk
Great - your smb.conf worked like a charm - thanks
Reply
#5
Is there a way to share a windows drive with LIVE as well? I'd like to set up the backend (with LIVE) in the living room. This would be on most of the time and contain most of my content. Then I'd have a laptop running a windows version in my bedroom. Thanks!
Reply
#6
You want to create a share in live? I am asking since
Quote:Is there a way to share a windows drive with LIVE as well?
Seem to indicate you want to share a drive in windows, but I guess you mean the otherway around.

You are asking in this thread:
[LIVE] - Can you install samba to share directoies to a windows network?

I suggest you read the thread.
Reply
#7
No, I know I can sure the drive connected to the LIVE so that windows can see it, from what I read in the thread. What I'm asking is if there is a special way to set up a drive in windows so that my linux LIVE can see it properly.
Reply
#8
Why do you post that in this thread?

And why would you need it if you have the content on Live in the living room? If you want access some "OTHER" content on the laptop it seems a bit random to only mention the content you do NOT have problem accessing.
Reply
#9
My main storage connected to the LIVE version is filling up. I have a lot of space on my laptop's HD and wanted to know if I could access that through my LIVE pc.
Reply
#10
Share the drive on your laptop, and add it as a source in XBMC.
Reply
#11
Simple as that? No special settings??
Reply
#12
Just make sure the permissions are set up the way you want them to be and that your credentials are correct. Are you using XP or Vista/Win7? I think there might be some additional steps with the latter two. Never had to deal with it because when I was running Windows on my file server it was XP. Now I'm running Ubuntu on the server.
Reply
#13
I'm using XP so I guess it should be fine then. Thanks!
Reply
#14
So I finally got around to trying to set this up. The drive I want to share is an external harddrive that has the name of MediaStore. I installed samba and edited the .conf file with this

Code:
[global]
        workgroup = WORKGROUP
        netbios name = XBMC
        server string = XBMC Media PC
        security = SHARE
        log file = /var/log/samba/log.%m
        max log size = 50
        socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
        dns proxy = No
        wins server =
        guest account = xbmc        
        guest ok = yes
        dfree command = /bin/dfree


[XBMC-USB-DRIVE]
           path = /media/MediaStore
           Writable = Yes
           guest ok = Yes
           browseable = Yes

I rebooted my system, it booted up into xbmc, and I tried to access it on my computer. How do I access it? I tried to enter in the XBMC's IP and I tried //xbmc/MediaStore. Nothing was working. I got to a login screen using one of those combinations, I think it was something with the IP address, but no passwords worked. I tried the XBMC's username and password I chose at installation. I tried using just guest with no password and with the system password. Not too sure why I can't access it. What am I doing wrong?

EDIT:Using Windows XP
Reply
#15
my config:
Quote:[global]
workgroup = WORKGROUP
netbios name = XBMCLIVE
interfaces = 172.16.0.122/24, lo
security = SHARE
encrypt passwords = No
log file = /opt/log.%m
max log size = 50
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_SNDBUF=8192 SO_RCVBUF=8192 read raw=yes
dns proxy = No
wins support = Yes
remote announce = 172.16.x.255
hosts allow = 172.16.0.0/24 127.0.0.1 192.168.1.0/24
guest ok = Yes
domain logons = No
dns proxy = No
use sendfile = yes
write raw = yes
guest account = root
client NTLMv2 auth = yes

[Root]
path = /
valid users = xbmc,www-data, nobody, root,
force user = root
read only = No
create mask = 0765
guest ok = Yes
browseable = Yes
writable = yes

[Downloads]
path = /home/xbmc/Downloads
valid users = xbmc, www-data, nobody, root,
force user = root
read only = No
create mask = 0765
guest ok = Yes
browseable = Yes
writable = yes

[Music]
path = /home/xbmc/Music
valid users = xbmc, www-data, nobody, root,
force user = root
read only = No
create mask = 0765
guest ok = Yes
browseable = Yes
writable = yes

[Pictures]
path = /home/xbmc/Pictures
valid users = xbmc, www-data, nobody, root,
force user = root
read only = No
create mask = 0765
guest ok = Yes
browseable = Yes
writable = yes
Entries in bold change to your IP Samba server /and a user name in XBMC/
After creating folders Downloads / Pictures .... in a terminal window, execute the command
Quote:sudo chmod g+rw /home/xbmc/Downloads
sudo chmod 777 -R /home/xbmc/Downloads
sudo chmod 777 -R /home/xbmc/Music
sudo chmod g+rw /home/xbmc/Music
sudo chmod 777 -R /home/xbmc/Pictures
sudo chmod g+rw /home/xbmc/Pictures
I hope this will help config
Reply

Logout Mark Read Team Forum Stats Members Help
[LIVE] - Can you install samba to share directoies to a windows network?0