Hi manchuwook
If this machine will only be serving up files then all you need is Samba. If you want to use it to access files
on other machines you will need filesystems-2.6.33.3-tinycore.tcz and probably cifs-utils.tcz. You will
need to set up a /usr/local/etc/samba/smb.conf file. You can use the listing below as a template to set up
simple file sharing without passwords or logging in. # and ; are treated as comments.
[global]
guest account = nobody
# Which network card to use.
interfaces = eth0
# Only respond to the interface above.
bind interfaces only = yes
# Use the next two options carefully, they do not work the way you might expect when used together.
# Samba first checks allow, if there's no match then it checks deny, if there's no match it lets you logon.
# Restrict access to local network, block access to DSL modem.
hosts allow = 192.168.1. EXCEPT 192.168.1.1
;hosts deny = ALL
#
log level = 0
# Act as a WINS name server
wins support = yes
# DNS nslookups
dns proxy = no
#
netbios name = BitBucket
# Share makes it easier for no-password logins.
security = share
# String that appears in browse lists.
server string = TC Samba Server
# Just what it says.
workgroup = MYGROUP
[public]
# Directory to be shared.
path = /mnt/hda1
comment = Usable by all
# Set to no to disable this share.
available = yes
# Sets file permission to read,write,execute for everyone.
force create mode = 0777
# Sets directory permission to read,write,execute for everyone.
force directory mode = 0777
# If yes then no password required.
guest ok = yes
# Set to no to allow users to write to files and directorys.
read only = no
# This may speed up some SMB read calls like ReadAndX and ReadRaw.
use sendfile = yes
[smalldrive]
# Directory to be shared.
path = /mnt/hdb1
comment = Temporary workspace
~snip~
# This may speed up some SMB read calls like ReadAndX and ReadRaw.
use sendfile = yes
You will need to set up a user called nobody with no password on the server. To start Samba from the
command line type sudo /usr/local/etc/init.d/samba start. To have it start on boot up add that line to
/opt/bootlocal.sh without the sudo. To connect to the share from another Linux machine type
mount -t cifs -o guest //192.168.1.47/public /mnt/bitbucket based on the above file. If you have DNS
working you can replace the IP address with the servers name. I'm sure I've missed something
so if you get stuck, ask questions.