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!!
how to run samba???
how to run samba???
l want to be better
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
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
-
- Gentoox Guru!
- Posts: 1681
- Joined: Sun Sep 28, 2003 11:59 am
- Location: Manchester, UK
If you're using home edition you only need do
to get samba started and set to run on boot.
Code: Select all
/etc/init.d/samba start
rc-update add samba default
If you keep an open mind, will your brain fall out?