2004-05-12 22:00:45 +08:00
|
|
|
<sect2>
|
|
|
|
<title>Installation of <application>Samba</application></title>
|
|
|
|
|
|
|
|
<para>Install <application>Samba</application> by running the following
|
|
|
|
commands:</para>
|
|
|
|
|
2004-05-29 15:46:10 +08:00
|
|
|
<screen><userinput><command>patch -Np1 -i samba-3.0.4-maintainer.patch &&
|
|
|
|
cd source &&
|
2004-05-17 00:44:50 +08:00
|
|
|
install -d /var/cache/samba &&
|
2004-05-12 22:00:45 +08:00
|
|
|
./configure \
|
2004-05-17 00:44:50 +08:00
|
|
|
--prefix=/usr \
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
--localstatedir=/var \
|
|
|
|
--with-piddir=/var/run \
|
|
|
|
--with-fhs \
|
|
|
|
--with-smbmount &&
|
2004-05-12 22:00:45 +08:00
|
|
|
make &&
|
|
|
|
make install &&
|
|
|
|
install -m755 nsswitch/libnss_win{s,bind}.so /lib &&
|
|
|
|
ln -sf libnss_winbind.so /lib/libnss_winbind.so.2 &&
|
2004-05-17 16:59:51 +08:00
|
|
|
ln -sf libnss_wins.so /lib/libnss_wins.so.2 &&
|
|
|
|
cp ../examples/smb.conf.default /etc/samba</command></userinput></screen>
|
2004-05-12 22:00:45 +08:00
|
|
|
|
2004-05-17 16:59:51 +08:00
|
|
|
<note><para>You may want to run <command>configure</command> with the
|
2004-05-12 22:00:45 +08:00
|
|
|
<parameter>--help</parameter> parameter. There may be other parameters
|
2004-05-17 16:59:51 +08:00
|
|
|
needed to take advantage of the optional dependencies.</para></note>
|
|
|
|
|
2004-05-12 22:00:45 +08:00
|
|
|
</sect2>
|