|
|
Linux and Windows |
|
![]() printer-version |
With every Linux distribution a version of samba is normally included, but if you still had an old 1.x.x version of samba you should un-install it and get a new 2.0.x package from the homepage of samba at http://de.samba.org (look for other mirrors that are closer). If you had installed a 2.0 version with your distribution, you can jump to the part where the configuration starts. After downloading the file you decompress it to the /tmp directory using : >> tar zxvf samba-xxxxxx.tgz -C /tmp Then you execute the configure script in the directory /tmp/samba-xxx/src : >> cd /tmp/samba-xxxxx/src/ If you use a kernel higher than 2.1.70, then you use : >> ./configure --enable-smbmount In other cases ,you just start the script with : >> ./configure After the script customizes everything to your system, you compile samba with : >> make This takes some time depending on the PC you have. If everything worked fine, you can copy samba to the directory /usr/local/ where, by default, all additional programs are placed (just very big packages like gnome, StarOffice and KDE are in /opt). Just root has write access to /usr/local. You change to root with: >> su and after entering the password, you copy samba using : >> cp -a /tmp/samba-xxxx /usr/local Then you change into the directory and install samba : >> cd /usr/local/samba-xxxx/source Samba creates the directory /usr/local/samba where it places the binaries, the configuration file and log files.
And now for all of you who already have installed samba, the configuration starts.
A configuration file has to be created in the directory /usr/local/samba/lib/ with the name "smb.conf": >> touch /usr/local/samba/lib/smb.conf For a test we
start with a minimum configuration
After "workgroup=" must be the same name that appears in the WINDOWS network properties as the name of the workgroup, too.
After editing the configuration file, you start samba with the commands : >> /usr/local/samba/bin/nmbd
-D Now you switch to the WINDOWS PC
and log in. Attention: You have to choose the same user name that
also exists on the Linux PC!
To activate the new configuration, you stop the nmbd and smbd daemons. Look for the PID number with : >>ps x Output like: and than kill both with : >> kill NUMBER where NUMBER is the PID-number you find in the f irst column. Then you start them again with the new configuration by typing: >> /usr/local/samba/bin/nmbd
-D and you search the Linux PC in
your WINDOWS network window. It should appear there. If not take
a look into the log files /usr/local/samba/var/log.smb The next issue describes how you access the WINDOWS hard disk from the Linux system and describes the SWAT configuration tool. |