heredago's blog

January 11, 2011

XBMC Live – Setting up a network share

Filed under: Uncategorized — heredago @ 18:58

The object of this how-to is to provide a quick guide on how to install the Samba server under XBMC Live 9.11, create a share on the XBMC Live machine and access the share from a Windows computer. This document assumes that all hardware is properly setup and IP’s have been assigned to the machines. 


computer running XBMC Live 9.11.
computer running Windows.
router, switch or crossover cable.
working internet connection

My XBMC machine has a 1Tb hard drive partitioned as follows:

Primary 20Gb for XBMC Live,
Primary 1Gb swap,
Logical: all remaining space (979Gb) formated in NTFS (/dev/sda5, mounted in /media/sda5) for dedicated storage. This is what I have shared on my network.

Hint: if the logical partition does not automount in XBMC Live remove the nodiskmount switch from grub’s menu.lst

Step 1: Install and enable the Samba File-Server


1. Open a command line shell (CTRL+ALT+F1) and log on using the username and password provided during XBMC Live installation.

2. type the following commands (wait after each command for completion):

sudo apt-get update

Note: when asked for a password, enter the one provided during the XBMC Live installation.

sudo apt-get install samba

sudo nano /etc/samba/smb.conf

Use the page-down key to move the cursor to the end of the file and add the following at the bottom of the file (after the line that reads “;postexec = /bin/umount /cdrom”);

Note: do not include the part between {example}

comment = XBMC Share

path = /media/sda5 {substitute with what you want to set up as a share. Ex: /home/john/mysharedfiles}
force user = xbmc {substitute with the username provided during setup. Ex: john}
inherit permissions = yes
read only = no
guest ok = yes

Now press the Control & X keys together, followed by the Y key and then press Enter to save the updated file.

Next type:

sudo service smbd restart

Type exit to get back to the login prompt, then press CTRL+ALT+F7 to return to the XBMC interface.

Step 2: Connecting to the XBMC storage drive


On the Windows machine, open up “My computer” or “Computer“. Click on the address bar and type \\xbmclive

When asked for a username and password, enter xbmc and the password for YOUR username (the one provided during the XBMC Live installation).

Double-click the xbmc share.

The share should be entirely accessible and can be mounted as a remote network drive under Windows.

Last edited by yggdrasil; 2010-07-19 at 13:46. Reason: correction. thx tyler



The easiest way is to install and configure samba

sudo apt-get install samba

to install the samba server, and then edit/create the file /etc/samba/smb.conf

here’s what mine looks like

        workgroup = HOME
        netbios name = XBMC2 
        server string = XBMC2 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 = boykster
        guest ok = yes
        dfree command = /bin/dfree

        path = /home/boykster
        writeable = Yes
        guest ok = Yes
        browseable = Yes

You'll want to update the workgroup/server names to your settings, and  if you did a default install with the user being xbmc you'll need to  change the guest account and the path entries to match your  installation. Depending on where you have the big drive mounted, you'll  want to change the path so that it maps directly to it
 Once you get that configured, you should be able to browse to your XBMC  computer in windows explorer and access the files.  If you want  read-only (instead of read-write), change writeable = yes to no

oh, and if you do set it up so that you can browse your .xbmc folder  using windows, be careful editing files - samba may change the mode on  some things such that XBMC doesn't like them.  best to continue to edit  files natively in linux using nano or other *nix editor

1 Comment »

  1. After 10 hours of crying and testing, this manual works! Finally i got my xbmc network running 🙂

    Thank you!

    Comment by Dennis — February 13, 2012 @ 16:06

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

Create a free website or blog at

%d bloggers like this: