2002-08-20 11:17:40 +08:00
|
|
|
<sect2>
|
2003-09-24 09:20:44 +08:00
|
|
|
<title>Installation of <application>Samba</application></title>
|
2002-08-20 11:17:40 +08:00
|
|
|
|
2003-09-24 09:20:44 +08:00
|
|
|
<para>Install <application>Samba</application> by running the following
|
|
|
|
commands:</para>
|
|
|
|
|
|
|
|
<note><para><application>Samba</application> is installed from the
|
|
|
|
<filename class="directory">samba-&samba-version;/source</filename> directory.
|
2002-08-20 11:17:40 +08:00
|
|
|
</para></note>
|
|
|
|
|
2003-09-24 09:20:44 +08:00
|
|
|
<screen><userinput><command>mkdir -p /etc/samba/private &&
|
2002-12-03 06:58:55 +08:00
|
|
|
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 &&
|
2003-07-02 23:42:12 +08:00
|
|
|
<!-- mv /usr/bin/smbmount /usr/bin/mount.smbfs && -->
|
2002-11-22 08:31:25 +08:00
|
|
|
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" >> \
|
2003-09-24 09:20:44 +08:00
|
|
|
/etc/inetd.conf</command></userinput></screen>
|
2002-08-20 11:17:40 +08:00
|
|
|
</sect2>
|
|
|
|
|