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>
|
|
|
|
Samba is installed from the samba-&samba-version/source directory.
|
|
|
|
</para></note>
|
|
|
|
|
|
|
|
<para><screen><userinput>
|
|
|
|
mkdir /var/www &&
|
|
|
|
mkdir /var/www/swat &&
|
|
|
|
./configure \
|
|
|
|
--prefix=/usr \
|
2002-09-26 08:19:42 +08:00
|
|
|
--with-logfilebase=/var/log \
|
2002-08-20 11:17:40 +08:00
|
|
|
--libexecdir=/usr \
|
|
|
|
--sysconfdir=/etc/samba \
|
|
|
|
--with-privatedir=/etc/samba/private \
|
|
|
|
--with-lockdir=/var/lock \
|
|
|
|
--with-piddir=/var/run \
|
|
|
|
--with-swatdir=/var/www/swat \
|
|
|
|
--with-configdir=/etc/samba &&
|
|
|
|
make &&
|
|
|
|
make install &&
|
|
|
|
mkdir /etc/samba &&
|
|
|
|
mkdir /etc/samba/private &&
|
|
|
|
echo "swat 901/tcp" >> /etc/services &&
|
|
|
|
echo "swat stream tcp nowait.400 root /usr/sbin/swat swat" \
|
|
|
|
>> /etc/inetd.conf
|
|
|
|
</userinput></screen></para>
|
|
|
|
</sect2>
|
|
|
|
|