Linux Getting Samba to work on XBMCBuntu

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
hernandito Offline
Senior Member
Posts: 282
Joined: Feb 2011
Reputation: 0
Post: #11
(2012-03-31 12:23)Gidget Wrote:  Ignore that... got it working!

I'm an idiot....lets just leave it at that Smile

Thanks for your help guys.

Hi Gidget,

Would you mind sharing what you did to make it work? I am having the same issue.

Thanks,

H.
find quote
bigdog66 Offline
Senior Member
Posts: 241
Joined: Sep 2010
Reputation: 3
Post: #12
if you can open the link i gave it will work.....i used it on multiple acer revo machines for xbmclive and now eden

WE ALL WE GOT
find quote
hernandito Offline
Senior Member
Posts: 282
Joined: Feb 2011
Reputation: 0
Post: #13
(2012-04-12 17:10)bigdog66 Wrote:  if you can open the link i gave it will work.....i used it on multiple acer revo machines for xbmclive and now eden

Thank you Bigdog... for it to work in XBMCbuntu, do I need to create a folder /home/xbmc? I saw that the samba.conf file calls for this folder but it does not yet exist on my setup.

Would this be where movies and TV show files get copied? I assume they can also be in an external drive that gets automounted and shows up in /media/ folder.

My goal is to setup so that Windows or Mac can see media stored on the XBMCbunto device.

Many thanks,

Hernando
find quote
blue3c Offline
Junior Member
Posts: 9
Joined: Jul 2010
Reputation: 0
Post: #14
deckoff... Not sure if you noticed this. But XBMCbuntu and XBMC installed on ubuntu are different.
find quote
pumkinut Offline
Posting Freak
Posts: 875
Joined: May 2006
Reputation: 9
Post: #15
Installing webmin helps eliminate some samba setup issues. It's a gui web interface for smb configurations. In some instances it's clearer and quicker than editing conf files.
find quote
boosted Offline
Member
Posts: 61
Joined: Oct 2011
Reputation: 0
Location: New Zealand
Post: #16
Selection of 'How-to's'
http://www.howtoforge.com/howtos/samba

http://www.howtoforge.com/setting-up-a-l...sing-samba
find quote
vikjon0 Offline
---
Posts: 2,429
Joined: Apr 2009
Reputation: 7
Location: Sweden
Post: #17
There is no samba problem on xbmcbuntu.

1) re-install
2)
sudo apt-get install samba

3) (asssuming your user name is xbmc)
sudo nano /etc/samba/smb.conf
add:

[xbmc]
path = /home/xbmc
public = yes
guest only = yes
writable = yes
browseable = yes
force user = xbmc
inherit permissions = yes

4)
sudo service smbd restart
sudo service nmbd restart
find quote
lazyboy0172 Offline
Junior Member
Posts: 27
Joined: Sep 2008
Reputation: 0
Post: #18
I'm having a heck of a time with this as well. I've tried multiple things for smb.conf but no matter what I've done windows keeps asking me for a username, password, and domain when i try to click on the connection from my 'network places' in explorer. I'd really like a better way to transfer files over as opposed to flash drives...
find quote
Baconismidog Offline
Junior Member
Posts: 1
Joined: Sep 2012
Reputation: 0
Post: #19
(2012-09-04 06:46)lazyboy0172 Wrote:  I'm having a heck of a time with this as well. I've tried multiple things for smb.conf but no matter what I've done windows keeps asking me for a username, password, and domain when i try to click on the connection from my 'network places' in explorer. I'd really like a better way to transfer files over as opposed to flash drives...

NOTE: My setup has an internal 2tb hard drive that I set to automount and share for anyone. I also set the xbmc user's movies folder as a share in the same fashion.
=====================
Install XBMC from CD. user xbmx, password xbmc
Exit xbmc after it boots up by using the little power button on the bottom left. You'll be at the baby blue screen. Click the user XBMC. Choose XBMCbuntu from the pulldown. Login as xbmc. Now you're in the desktop.
Putty/ssh access (awesome if you want to do setup remotely but not necessary)
open up xterm:
sudo passwd root

now launch putty and hit the IP address (find by typing ifconfig at the xterm). use root and the password you set above to get in:

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install samba
sudo smbpasswd -an nobody
(^ sets the nobody password so it doesn't have a password)
cp /etc/samba/smb.conf /etc/samba/smb.conf.backup
(do this ^ so you have a backup of your samba file)

now go back to the desktop:
Now install mount manager:
synaptic package manager. search for mount manager. Select mount manager. Click "Mark for installation". Mark additional stuff. Click apply. Click apply again.
Open mountmanager. Click the drive you want to mount and share. Browse for a mount point - I put mine here /mnt/2TBMOVIEDRIVE.
Leave defaults except for one change
Who can mount the partition - everybody.
At the top, click partition / apply

At this point, you might want to reboot and make sure the drive mounted correctly after a reboot.

You'll now need to go into the file manager in the desktop and right click on /home/xbmc/Movies or any folders in the user dir you want to access and go to property / permissions and set all to read write.

back to putty or xterm

sudo nano /etc/samba/smb.conf

to paste: copy and then in putty, right click and it'll paste into nano. To save in nano, ctrl x, Y, enter

==========snip=============

[global]
workgroup = WORKGROUP
server string = %h server (Samba, Ubuntu)
dns proxy = no
log file = /var/log/samba/log.%m
max log size = 1000
syslog = 0
panic action = /usr/share/samba/panic-action %d
security = share
encrypt passwords = true
passdb backend = tdbsam
obey pam restrictions = yes
unix password sync = yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n$
pam password change = yes
map to guest = bad user
guest account = nobody

[MOVIEDRIVE]
path = /mnt/2TBMOVIEDRIVE
public = yes
guest ok = yes
only guest = yes
read only = no
writable = yes
create mask = 0777
force create mode = 0777
directory mask =777

[SMALLDRIVE]
path = /home/xbmc/Movies
public = yes
guest ok = yes
only guest = yes
read only = no
writable = yes
create mask = 0777
force create mode = 0777
directory mask =777

==========snip=============

now hit ctrl X to save, Y to confirm and hit enter

back at command line, do these to start and stop the samba services


sudo service smbd restart
sudo service nmbd restart
(This post was last modified: 2012-09-05 21:15 by Baconismidog.)
find quote
LH88 Offline
Junior Member
Posts: 36
Joined: Oct 2008
Reputation: 0
Post: #20
If you're on windows 7 and XBMC keeps asking for a password try using the following guide.

http://forum.xbmc.org/showthread.php?tid=63123
find quote