Search Perform an advanced search query SOFTPEDIA
 
SOFTPEDIA
Updated one minute ago
HomeSubmit a program for being reviewedAdvertise on our websiteGet help on surfing our websitesSend us your feedbackGet information about our XML/RSS backend and how to use itBrowse the news archiveVisit our discussion forumVizitati forumul in limba romana



KLIP
  1. HOME
  2. SCIENCE
  3. TECHNOLOGY
  4. WEBMASTER
  5. SECURITY
  6. MICROSOFT
  7. LINUX
  8. APPLE
  9. GAMES
  10. TELECOMS
  11. REVIEWS
  12. LIFE & STYLE
  13. EDITORIALS
  14. INTERVIEWS
  15. RSS
Welcome!
Hello, Guest

Login if you have a Softpedia.com account.

Otherwise, register for one.

OTHER TIPS, TRICKS AND TUTORIALS

How to Install SAMBA on Slackware 11.0

- Easy steps to install SAMBA on Slackware 11.0

By: Mihai Marinof, Linux Editor

Samba (the Linux implementation of the Server Message Block protocol) is an Open Source suite that provides seamless file and print services to SMB/CIFS clients. Basically, it allows both Linux and Windows users to use each other's SMB file shares as if they were a hard disk on their own machine. A mapped network drive (Windows) or a mounted smb share (Linux) can look, feel and act like your own disk space, but it's really a disk space on some other computer somewhere on the network. Samba also provides print services for various Windows clients and can also integrate with a Windows Server domain, either as a Primary Domain Controller (PDC) or as a Domain Member. Moreover, it can be part of an Active Directory domain. This article will explain how to install and configure Samba on Slackware 11.0 but it should work with older Slackware builds as well.


Download and install

- Fist of all, you should check if Samba has been selected during Slackware installation. To check if you already have Samba installed, run:

CODE

less /var/log/packages/samba*


If you get a "No such file or directory" error, proceed to installing Samba, otherwise skip this section completely.

- At this time, the latest Slackware version of Samba is 3.0.23c. Click HERE to visit the Samba package info and download for Slackware-latest.
- Choose the closest mirror to you and copy the download link.
- Next:

CODE

wget http://closest.mirror.download.link/samba-3.0.23c-i486-1.tgz
installpkg samba-3.0.23c-i486-1.tgz


You now have Samba installed.


Configuration

- To configure Samba, you will first have to be logged in as root. To switch to root user, go into a terminal and run:

CODE

su -
(Enter root password)


Samba can be configured through its smb.conf file. By default, this file resides in /etc/samba. However, the first time you install Samba, that file *should* be called smb.conf-sample. The recommended way to get Samba up and running is by creating a new smb.conf file with the basic directives and later on, add new directives to suit your system and network configuration. So follow these steps:

- Move an eventual smb.conf file:

CODE

mv /etc/samba/smb.conf /etc/samba/smb.conf.OLD
(it's ok if you get a no such file or directory error)


- Create a new file and open it up with your favorite editor (i'll use nano)

CODE

touch /etc/samba/smb.conf
nano /etc/samba/smb.conf


- Copy/paste the following directives to the newly created Samba config file:

CODE

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

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


Directives explanation:

[global]
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.
[home]
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.

- Because the Authentication Mode was set to User, you'll now have to create a new samba user:

CODE

smbpasswd - a someuser
(Enter the new password for this user)


The 'someuser' must be the same user as the one set in the valid users directive in smb.conf. Moreover, this user must also be a valid Linux user (has to be listed in /etc/passwd).


Run and load at boot

Samba can be started using the RC file that came with the Samba package. This RC file is called rc.samba and should reside in /etc/rc.d. However, this file *COULD* be called rc.samba.new or it could not be set as executable. To make sure everything is set up correctly and to start Samba, run the commands:

CODE

mv /etc/rc.d/rc.samba.new /etc/rc.d/rc.samba
chmod 755 /etc/rc.samba
/etc/rc.d/rc.samba start



Test the installation

First, make sure that ports 139 and 445 (both TCP and UDP) aren't blocked by the Linux firewall. Then go to a computer in the network and open a file browser. In the address bar, write the following address (replace 10.10.0.1 with the correct Linux LAN IP):





You should be prompted by a username and a password. Enter the ones configured using smbpasswd and you should be granted access to the Samba share.

MORE RELATED ARTICLES: Creating a Local Update Repository for FC6 Local DNS Cache for Faster Browsing Wolfenstein: Enemy Territory Server Setup How to Bind a Range of IPs Screencast Guide: Capure Your Linux Desktop on Video! How to Setup an Encrypted Filesystem Grant Root Privileges to Regular Users Setting Up a SHOUTcast Server DSP Plug-In
 
Comments | Link here | Subscribe
Print | Send to friend
Today's News | Yesterday's News

Search:

8th January 2007, 08:49 GMT | Copyright (c) 2007 Softpedia | Contact:
Read by 7,721 user(s) | Rating: | 7 vote(s) so far | Cast your vote:
How to Install SAMBA on Slackware 11.0 - USER OPINIONS

Comment #1 by quantic on 2008-05-05, 01:12 GMT reply to this comment 
nano /etc/samba/smb.conf

in slackware 11.0 there isn't nano command only pico.




go to top


SHARE YOUR OPINION ABOUT How to Install SAMBA on Slackware 11.0

Since you are not logged on, your comments will have to be approved before being displayed.
Click here to login, or register.
Your Name:
Your Email:
Type in the result:
Your Opinion:
 


DO YOU WANT TO CONTACT US?  

If you have some comments or you want to send us some information you can send us an email directly to .
You can use the form below for the same purpose.
Your full name: (at least 3 characters)
Your email address: (at least 5 characters)
Message subject: (at least 5 characters)
Message text:
(at least 10 characters)
Type in the result:
 
 



© 2001 - 2008 Softpedia. All rights reserved.
Softpedia™ and Softpedia™ logo are registered trademarks of SoftNews NET SRL.
Copyright Information | Privacy Policy | Terms of Use | Contact Softpedia | Update your software | Archive