Ignore:
Timestamp:
Jan 28, 2006, 9:07:52 PM (19 years ago)
Author:
rainer
Message:

Optimized version of tiger algorithm, and basic ingredients for unit testing (part 2)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/docs/HOWTO-samhain-on-windows.html

    r1 r18  
    135135<b>Cygwin</b> POSIX emulation layer, and how to install it as a service.
    136136These instructions have been written by Kris Dom,
    137 who has tested this on WinXP Professional.
     137who has tested this on WinXP Professional, with additions by Geries Handal
     138and Jorge Morgado.
    138139</p>
    139140<div class="block">
     
    150151logging) because Interix does not provide some of the required functionality
    151152to build the email module. This issue should be fixed as of samhain
    152 version 2.0.7 (not tested).<br />[Based on information kindly provided by Geries Handal].
     153version 2.0.7 (not tested).<br />
     154[Based on information kindly provided by Geries Handal].
    153155</p>
    154156</div>
     
    192194</li>
    193195</ul>
     196<div class="block">
     197<p>
     198You don't need to download and install All packages. It is enough to keep
     199the Default and then add the following additional packages:
     200</p>
     201<p>
     202  Category Devel -> gcc: C compiler upgrade helper<br/>
     203  Category Devel -> make: The GNU version of the 'make' utility<br/>
     204  Category Libs  -> minires: A simple synchronous non caching stub resolver<br/>
     205</p>
     206<p>
     207When selecting these packages, Cygwin installer will automatically add
     208other packages based on their dependencies.
     209The package minires is only necessary for a minimal Cygwin installation
     210(below). [Kindly pointed out by Jorge Morgado].
     211</p>
     212</div>
    194213
    195214<h3>Cygwin installation</h3>
     
    301320 </li>
    302321 </ul>
     322</li>
     323<li>
     324Files needed from c:\Cygwin\bin to create the /etc/passwd and /etc/group files:
     325 <ul>
     326 <li>
     327 mkpasswd.exe
     328 </li>
     329 <li>
     330 mkgroup.exe
     331 </li>
     332 </ul>
     333<p>
     334To generate these files on a minimal Cygwin installation execute - on a
     335Windows Command Prompt:
     336</p><p>
     337&nbsp; &nbsp;<tt>mkdir c:\etc</tt><br />
     338&nbsp; &nbsp;<tt>path\to\mkpasswd.exe -l > c:\etc\passwd</tt><br />
     339&nbsp; &nbsp;<tt>path\to\mkgroup.exe -l > c:\etc\group</tt>
     340</p><p>
     341IMPORTANT NOTE: You should re-create these two files, each time the
     342Windows users and groups accounts database changes. Failing to do this
     343might generate critical log messages (depending on your configuration
     344file).
     345</p>
    303346</li>
    304347<li>
     
    331374  </li>
    332375  <li>Under the newly created &quot;Parameters&quot; key, add a new String
    333   value called &quot;Applications&quot;.<br />
    334   &nbsp; &nbsp;The value for &quot;Applications&quot;
     376  value called &quot;Application&quot;.<br />
     377  &nbsp; &nbsp;The value for &quot;Application&quot;
    335378  should be &quot;c:\usr\local\sbin\samhain.exe&quot;.</li>
    336379  </ul>
     
    348391</li>
    349392</ul>
     393<p>
     394Also see <a href="http://support.microsoft.com/kb/q137890/">http://support.microsoft.com/kb/q137890/</a> for information regarding the creation of a
     395user-defined service.
     396</p>
    350397<p>
    351398Note: the first time I tried to install samhain as an NT service, I first
     
    354401Samhain as a service.
    355402</p>
     403
     404
     405<h2>Troubleshooting samhain</h2>
     406
     407<p>
     408[Tip from Jorge Morgado] If you, like me, have a Windows server not part of any domain and (for
     409security reasons) you even turn off DNS resolution, you might probably get
     410the following error when initializing the baseline database:
     411</p>
     412<pre>
     413  ---------   sh_unix.c  ---   1487 ---------
     414  According to uname, your nodename is yourcomputername, but your resolver
     415  library cannot resolve this nodename to a FQDN.
     416  Rather, it resolves this to yourcomputername.
     417  For more information, see the entry about self-resolving under
     418  'Most frequently' in the FAQ that you will find in the docs/ subdirectory
     419  ----------------------------------------------
     420</pre>
     421<p>
     422To fix this problem open the Registry Editor and create the following
     423entries under the key
     424HKLM\System\CurrentControlSet\Services\Tcpip\Parameters
     425</p>
     426<p>
     427<tt>
     428Name: Domain<br/>
     429Type: REG_SZ<br/>
     430Data: your.domain.name
     431</tt>
     432</p><p>
     433<tt>
     434Name: NV Domain<br/>
     435Type: REG_SZ<br/>
     436Data: your.domain.name
     437</tt>
     438</p><p>
     439The NV Domain registry value contains the computer's primary DNS suffix
     440while the Domain registry value contains the computer's primary DNS
     441domain. This will make the warning message go away.
     442</p>
    356443</div>
    357444</body>
Note: See TracChangeset for help on using the changeset viewer.