manually install samba on slackware 12.1

well this is my first use on samba actually. So there’s a lot of things that i dont know about this OS. One of them is connecting my slack to windows OS. I read the articles made by other that Slack needs to activate samba first so the linux OS appears on Windows Network.
But Slack, not like windows, need to activate the samba manually. Here are what i ve got from the guys from the net.
check first just in case samba is already defined during booting:

less /var/log/packages/samba*

if any, try to download the samba first from anyplace that you can find by google. there are plenty of those. then install them. i found the samba version 3.0.23c-i486 in tgz format. here is to install it:

# installpkg samba-3.0.23c-i486-1.tgz

then remenmber you have login as root here.
then edit the samba.conf in /etc/samba

if you cant find the samba.conf , create one

# touch /etc/samba/samba.conf #this is for defining the time format for file (if i m not mistaken)
# nano /etc/samba/samba.conf #this is to write the file with simple editor text

write inside this code:

workgroup = WORKGROUP
server string = foo
security = user
load printers = yes
log file = /var/log/samba.%m
max log size = 50
socket options = TCP_NODELAY

comment = My Home Directory
path = /home/someuser
valid users = someuser
writable = yes

Directives explanation:
workgroup – Enter here the NT Domain Name or Workgroup Name currently set for your network.
server string – Used for showing a description related to the Linux server.
security – Sets the Authentication Mode to user. You will gain access to Linux shares only when using a username and password. (We’ll set these later).
load printers – Set this to No if there are no printers connected to the Linux server.
log files – Defines the file that will store Samba events, alerts and errors.
max log size – Sets the maximum size for the log file, in Kb.
socket options – Specifies the options set on the client socket. The TCP_NODELAY option was reported as the option that makes the biggest difference in performance for most networks.
comment – Used for showing a description related to the user share.
path – Defines the shared directory.
valid users – Sets the users (see /etc/passwd for a valid user list) allowed to access this share.
writable – Allows valid users to write to this shared directory.

then reboot your samba by typing this:

# /etc/rc.d/rc.samba start

then you have your samba now.

Leave a Reply

Your email address will not be published. Required fields are marked *