|[Home] [Credit Search] [Category Browser] [Staff Roll Call]||The LINUX.COM Article Archive|
|Originally Published: Monday, 4 June 2001||Author: Marcelo Pham|
|Published to: develop_articles/Development Articles||Page: 2/3 - [Printable]|
Introduction to Cross Platform Integration in the Enterprise (Part 1 of 2)
Marcelo Pham returns to Linux.com for an in-depth look at platform integration and networking with Linux. In part one of this two part series Marcelo takes use through installing Samba and other enterprise networking technologies.
|<< Page 2 of 3 >>|
2.b. How to install and configure Samba
Samba is a GPL implementation that allows Unix-based computers (including Linux) to 'translate' or 'understand' the SMB protocol in a network, so they can see SMB-based shared drives as well as emulate a shared directory or drive so other SMB based computers can read it.
Samba was originally developed by Pal Engstad and then enhanced and improved with the help of the Open Source community. Samba is currently part of the Linux Kernel and it comes with most Linux distributions, but you can also download it at the official Samba website. You can share printers with Samba as well.
If Samba is not yet installed in your Linux box, here they go some tips:
After downloading the zipped file (as of today the latest version is 2.0.7, and the compressed file is usually called samba-latest.tar.gz), move the file to the /usr/src directory and type:
untar the distribution files by typing:
At this point you can move all the source files to a convenient location, for example /usr/local/samba/source. Now you have to build the binaries. First, run the configure utility under the source directory to prepare Samba to be compiled, by typing:
If you want to tell Samba to be installed with customized options type
to see all the parameters that it accepts (notice that you must do all these tasks as root). After preparing the configuration, as usual, compile the source by typing:
and install the binaries and the man pages by executing:
If you are installing Samba 2.0.7 on top of a previous version, you can revert the new installation with the command make revert.
If you are a RedHat user, you can install Samba from the rpm package. Mount your RedHat distribution CD, and type
This command will install the Samba binaries in your RedHat system. If Samba has already been installed, you will get an error message.
Now you have to configure Samba. You should manually create the configuration file called smb.conf under /etc directory, but Samba comes with a sample file that you can use as a template, it's called smb.conf.sample and is located under the examples directory under the source distribution. Simply copy this file to /etc and rename it to smb.conf.
To configure Samba, you have two options: one is manually editing the file smb.conf, and the other is using the Web-based tool SWAT (Samba Web Administration Tool) to set all the parameters with friendly screens. Both ways work well, if you're an old Linux user the probably editing smb.conf with vi or emacs will be the quickest way, but if you're relatively new to Linux, SWAT will be the best move.
If you decide to manually edit smb.conf, here are the basic sections you should configure:
If you use SWAT instead, here are some hints:
-First, add SWAT as a service. Edit your /etc/services file and add the following line
Add this line to your /etc/inetd.conf file
Change the path to point to your local Samba directory. Some Linux distributions -the newer ones- already have these lines added, simply verify that they match your installation.
-Second, from your preferred browser, type http://localhost:901/ and you will see the SWAT welcome page. The pages are self-explanatory, so you should not have any problem.
The last step is to start the daemons. Samba runs two daemons: smbd and nmbd, which are located under the Samba bin directory.
You can run the processes as daemons, by typing from a root session:
(You won't see any messages, just verify that they're running by doing a ps -ef | grep smbd and ps -ef | grep nmbd). You can also start them automatically by including both scripts in your /etc/rc.local file. Or, you may want to run them as services from inetd (or xinetd if you're running Kernel 2.4) as well. )
For more information about configuration and troubleshooting, please go to the Samba official website and look for the Documentation section, browse the Samba man pages, or, as usual, visit our How-To documents.
2.c. How to install and configure Netatalk
To install Netatalk, first download the compressed file. Then, you can follow instructions from this quick guide. Apple is not that common in the enterprise field, but some companies may still use it for graphic design and animation, so you can make them interact with Linux as well.
|<< Page 2 of 3 >>|