how to run samba???

A place to ask all newbie questions and not get flamed, though you will get beaten down if you post a newbieish question outside of these walls.
Post Reply
CANE
Linux User
Posts: 11
Joined: Sun May 23, 2004 12:37 pm

how to run samba???

Post by CANE »

hi

..as I am a noob in the field of linux

l can surf on the net with your help....you website is cool

but l want to connect my xbox with my PC
l know samba is alredy insttall in my xbox with gentoox home 3.0

so l want to know how l can run samba.....
where can l find this file....

when l lunchquick browser==>root directory==>etc==>more==>samba

now l can see "open in file manager"
" open in terminal"


please help!! :cry:
l want to be better
fishing7
Newbie
Posts: 3
Joined: Sat May 15, 2004 12:36 am

Post by fishing7 »

Not that I know too much about what I'm talking about being a noob; but I had the same question a while ago and found this posted by nobstangle. There is also another tutorial here somewhere by gentoox I believe.


Configuring Samba (Samba was compiled and installed after approx 2hrs 45mins)

I won't go in to Samba configuration too much as I consider the example config file to be more than adequate at explaining the basics with more advanced stuff available in the docs online at http://www.samba.org
Start by copying the example file into place, this gives you a good template. Then run testparm to see what you need to change
Code:
rm /etc/samba/smb.conf && cp /etc/samba/smb.conf.example /etc/samba/smb.conf
testparm

This is what you get
/etc/smb.conf wrote:
[global]
server string = Samba Server %v
map to guest = Bad User
log file = /var/log/samba3/log.%m
max log size = 50
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
printcap name = cups
dns proxy = No
printer admin = @adm
printing = cups

[homes]
comment = Home Directories
read only = No
browseable = No

[printers]
comment = All Printers
path = /var/spool/samba
create mask = 0700
guest ok = Yes
printable = Yes
print command = lpr-cups -P %p -o raw %s -r # using client side printer drivers.
browseable = No

[print$]
path = /var/lib/samba/printers
write list = @adm, root
guest ok = Yes


You need to edit /etc/samba/smb.conf and add a netbios name I'm going to use xbox so I add a line in the [global] section that says
Code:
netbios name = xbox
you will also want to add some shares add a section like
Code:
[root]
path = /
writeable = yes

[http-root]
path = /var/www/localhost/htdocs
writeable = yes

[E-Drive]
path = /mnt/fatx/e
writeable = yes

That gives you a share of the whole rootfs one for the root of the apache webserver and one for your E drive check that you haven't made any mistakes with the testparm command and start the server and add it to the default run level to make it start on boot
Code:
testparm
/etc/init.d/samba start
rc-update add samba default

If you want to tidy up your smb.conf an easy way to do it is to run testparm then copy the output into nano
Now we need to add some samba users, we'll add two one for each of the default gentoox users.
Code:
smbpasswd -a root
smbpasswd -a gentoox

You should use the same passwords for samba users as you have set for gentoox users (defaults are xbox)

That's Samba done, on to apache
lotw
Pro
Posts: 79
Joined: Wed Jun 23, 2004 5:59 pm

Post by lotw »

Also if you installed the Webadmin stuff and Samba to begin with when you installed the home edition then you can log onto the Xbox via the PC or even itself and admin it with a easier interface. xbox IP address:10000 will go to the webadmin
nobspangle
Gentoox Guru!
Posts: 1681
Joined: Sun Sep 28, 2003 11:59 am
Location: Manchester, UK

Post by nobspangle »

If you're using home edition you only need do

Code: Select all

/etc/init.d/samba start
rc-update add samba default
to get samba started and set to run on boot.
If you keep an open mind, will your brain fall out?
Post Reply