2002-08-20 11:17:40 +08:00
|
|
|
<sect2>
|
|
|
|
<title>Installation of Samba</title>
|
|
|
|
|
|
|
|
<para>Install Samba by running the following commands:</para>
|
|
|
|
<note><para>
|
2002-12-03 06:58:55 +08:00
|
|
|
Samba is installed from the samba-&samba-version;/source directory.
|
2002-08-20 11:17:40 +08:00
|
|
|
</para></note>
|
|
|
|
|
|
|
|
<para><screen><userinput>
|
2002-12-03 06:58:55 +08:00
|
|
|
mkdir -p /etc/samba/private &&
|
|
|
|
mkdir -p /var/cache/samba &&
|
2002-08-20 11:17:40 +08:00
|
|
|
./configure \
|
|
|
|
--prefix=/usr \
|
2002-11-22 08:31:25 +08:00
|
|
|
--sysconfdir=/etc \
|
|
|
|
--localstatedir=/var \
|
2002-12-24 09:26:36 +08:00
|
|
|
--with-piddir=/var/run \
|
2002-11-22 08:31:25 +08:00
|
|
|
--with-fhs \
|
|
|
|
--with-smbmount &&
|
2002-08-20 11:17:40 +08:00
|
|
|
make &&
|
|
|
|
make install &&
|
2002-11-22 08:31:25 +08:00
|
|
|
mv /usr/bin/smbmount /usr/bin/mount.smbfs &&
|
|
|
|
rm -rf /usr/private &&
|
2002-12-03 06:58:55 +08:00
|
|
|
echo "swat 901/tcp" >> /etc/services &&
|
|
|
|
echo "swat stream tcp nowait.400 root /usr/sbin/swat swat" >> \
|
2002-11-22 08:31:25 +08:00
|
|
|
/etc/inetd.conf
|
2002-08-20 11:17:40 +08:00
|
|
|
</userinput></screen></para>
|
|
|
|
</sect2>
|
|
|
|
|