PDA

View Full Version : How to configure Samba in Linux


tugbert
2007-10-15, 01:45
So yea, Im fairly new to linux but I followed this guide (http://www.xboxmediacenter.com/wiki/index.php?title=Linux_File_Sharing_%28using_samba% 29) and I cannot get it to work. I mean, it looks pretty strait forward but when I try to connect over from my xbox with the smb feature all I get is "could not connect to network server"

I mean, heres what I did to my conf file:


[global]
workgroup = WORKGROUP
server string = Kyle's Janks Nigga!
netbios name = LinuxBox
log file= /var/log/samba/log.%m
max log size= 50
map to guest = bad user
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
local master = no
dns proxy = no
interfaces = lo eth0 192.168.2.1/24
hosts allow = 127. 192.168.2.

and the public is as so

; [public]
; comment = Public Stuff
; path = /home/kyle/Download/Movies
; public = yes
; writable = yes
; printable = no
; write list = +staff


Do I need to do anything to the xml file on the xbox? Someone suggested adding my machines username and password but that hasnt worked.

jmarshall
2007-10-15, 03:07
One presumes the [public] block isn't commented out?

tugbert
2007-10-15, 03:47
oh yea, I forgot that semi-colons were comment markers too.

Ok well I uncommented those lines and now the xbox is connecting over. I see my printer (?) and a folder that says public but I get an error :share not available.

I double checked and the directory IS there so Im not sure why it wont let me in.


also - how do I edit my post? I see no edit link or button...

tugbert
2007-10-21, 22:10
Ok well Samba is working now. sorta.

I get two options, my printer is showing up and then theres a folder called public.
But when I select prublic I get some error thats a long string of numbers and "share not available"

Ive double checked the path to the folder in the code below but it just doesnt seem to want to work.

Also - Two questions:
When I goto the printer folder Im prompted for a login. Neither my root login or personal profile work so what does it want?

And if I want to add different folder to share should I just put a space and then the path to the directory like I have in the code below?


[public]
comment = Public Stuff
path = /home/kyle/Movies /home/kyle/music /media/Music/Music
public = yes
writable = yes
printable = no
write list = +staff
only guest = guest