<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Computer Support &#187; setup</title>
	<atom:link href="http://www.xiitec.com/blog/tag/setup/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.xiitec.com/blog</link>
	<description></description>
	<lastBuildDate>Wed, 30 Dec 2009 08:40:28 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Setting the System Time, Date, and Time Zone</title>
		<link>http://www.xiitec.com/blog/2008/02/18/setting-the-system-time-date-and-time-zone/</link>
		<comments>http://www.xiitec.com/blog/2008/02/18/setting-the-system-time-date-and-time-zone/#comments</comments>
		<pubDate>Mon, 18 Feb 2008 20:20:42 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[System configuration]]></category>
		<category><![CDATA[date]]></category>
		<category><![CDATA[setup]]></category>
		<category><![CDATA[time]]></category>
		<category><![CDATA[time zone]]></category>

		<guid isPermaLink="false">http://www.xiitec.com/blog/?p=144</guid>
		<description><![CDATA[Using a graphical user interface

From the Control Panel, open the Date and Time applet. This can  also be accomplished by double-clicking the clock on the system tray or  running timedate.cpl from the command line.
You can configure the year, month, day, and time on the Date &#38; Time tab and the time zone on [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Using a graphical user interface</strong></p>
<ol>
<li>From the Control Panel, open the Date and Time applet. This can  also be accomplished by double-clicking the clock on the system tray or  running timedate.cpl from the command line.</li>
<li>You can configure the year, month, day, and time on the Date &amp; Time tab and the time zone on the Time Zone tab.</li>
<li>On Windows Server 2003, you can configure clock synchronization  (Network Time Protocol (NTP) settings) from the Internet Time tab if  the system is not part of a domain. If it is member of a domain, then  the clock is synchronized automatically from an Active Directory domain  controller.</li>
</ol>
<p><img src="http://www.xiitec.com/blog/wp-includes/js/tinymce/themes/advanced/images/spacer.gif" alt="More..." name="mce_plugin_wordpress_more" width="100%" height="10" id="mce_plugin_wordpress_more" title="More..." moretext="" /><strong>Using a command-line interface</strong></p>
<p>The following commands set the time to 11:02 p.m. and the date to  November 1, 2005:</p>
<pre>&gt; time 23:02:00

&gt; date 11/01/2005</pre>
<p>The date format may vary depending on your locale.</p>
<p>Run this command to display the current date, time, and time  zone:</p>
<pre>&gt; date /t &amp; time /t &amp; w32tm -tz</pre>
<p>You can use this command to display time zone information from  the registry:</p>
<pre>&gt; reg query \\<em>&lt;ServerName&gt;</em>\HKLM\SYSTEM\CurrentControlSet\Control\TimeZoneInformation</pre>
<p>This command sets the SNTP server list:</p>
<pre>&gt; net time /setsntp:<em>&lt;ServerList&gt;</em></pre>
<p>For example:</p>
<pre>&gt; net time /setsntp:mytime.rallencorp.com,time.windows.com</pre>
<p>This command queries the SNTP server:</p>
<pre>&gt; net time /querysntp</pre>
<p>This command forces the local system to sync its time from the  time source:</p>
<pre>&gt; net time /set</pre>
<p><strong>Using VBScript</strong></p>
<pre>' This code displays the local date, time, and time zone on a target computer' ------ SCRIPT CONFIGURATION ------strComputer = &quot;.&quot;   ' e.g. rallen-srv01' ------ END CONFIGURATION ---------WScript.Echo &quot;Current time using Now function: &quot;WScript.Echo vbTab &amp; Now

set dicDaysOfWeek = CreateObject(&quot;Scripting.Dictionary&quot;)dicDaysOfWeek.Add 0, &quot;Sun&quot;dicDaysOfWeek.Add 1, &quot;Mon&quot;dicDaysOfWeek.Add 2, &quot;Tue&quot;dicDaysOfWeek.Add 3, &quot;Wed&quot;dicDaysOfWeek.Add 4, &quot;Thu&quot;dicDaysOfWeek.Add 5, &quot;Fri&quot;dicDaysOfWeek.Add 6, &quot;Sat&quot;

set objWMI = GetObject(&quot;winmgmts:\\&quot; &amp; strComputer &amp; &quot;\root\cimv2&quot;)set objDateTime = objWMI.Get(&quot;Win32_Localtime=@&quot;)WScript.Echo &quot;Current time using WMI: &quot;WScript.Echo vbTab &amp; dicDaysOfWeek.Item(objDateTime.DayOfWeek) &amp; &quot; &quot; &amp; _         objDateTime.Month &amp; &quot;/&quot; &amp; objDateTime.Day &amp; &quot;/&quot; &amp; _         objDateTime.Year &amp; &quot; &quot; &amp; objDateTime.Hour &amp; &quot;:&quot; &amp; objDateTime.MinuteWScript.Echo &quot;Time zone:&quot;set colTZ = objWMI.ExecQuery(&quot;select * from Win32_TimeZone&quot;)for each objTZ in colTZ    Wscript.Echo vbTab &amp; objTZ.Captionnext</pre>
<p>The easiest way to set the time and date via a script is by  shelling out to the <em>time</em> and <em>date</em> commands, but this means the  script must be run locally. Here is an example:</p>
<pre>WScript.Echo &quot;Current time: &quot; &amp; Now

strCommand = &quot;cmd.exe /c time 23:02:00&quot;set objWshShell = WScript.CreateObject(&quot;WScript.Shell&quot;)intRC = objWshShell.Run(strCommand, 0, TRUE)if intRC &lt;&gt; 0 then   WScript.Echo &quot;Error returned from time command: &quot; &amp; intRCelse   WScript.Echo &quot;time command completed successfully&quot;end if

strCommand = &quot;cmd.exe /c date 11/01/2004&quot;intRC = objWshShell.Run(strCommand, 0, TRUE)if intRC &lt;&gt; 0 then   WScript.Echo &quot;Error returned from date command: &quot; &amp; intRCelse   WScript.Echo &quot;date command completed successfully&quot;end if

WScript.Echo &quot;New time: &quot; &amp; Now</pre>
<p>If your server is part of a workgroup or NT 4  domain, you must manually configure the time and date settings on it.  You can either set the time and date based on some external time source  (such as your watch) or you can configure the server to synch from a  time server. The latter is the preferred method because as long as the  time server you are pointing your servers to has the correct time, your  servers will have the correct time. If your server is part of an Active  Directory domain, it will automatically sync its time from a domain  controller.</p>
<p>Time and date synchronization is handled by the  Windows Time service (W32Time), which was originally developed for  Windows 2000 and is a compliant implementation of RFC 1769Simple  Network Time Protocol (SNTP). For Windows Server 2003, W32Time was  updated to support NTP, a more accurate protocol than SNTP.</p>
<p>W32Time is highly configurable via the registry. See  MS KB 223184 for the list of registry settings you can configure for  Windows 2000. A similar KB article has not been produced yet showing  the differences for Windows Server 2003.</p>
<p>For a good whitepaper on the Windows 2000 Time service, visit  the following URL: <a href="http://www.microsoft.com/windows2000/docs/wintimeserv.doc" mce_href="http://www.microsoft.com/windows2000/docs/wintimeserv.doc" target="_blank">http://www.microsoft.com/windows2000/docs/wintimeserv.doc</a>.</p>
<p>For more on the Windows Server 2003 Time service, visit the  following URL: <a href="http://www.microsoft.com/Resources/Documentation/windowsserv/2003/all/techref/en-us/W2K3TR_times_intro.asp" mce_href="http://www.microsoft.com/Resources/Documentation/windowsserv/2003/all/techref/en-us/W2K3TR_times_intro.asp" target="_blank">http://www.microsoft.com/Resources/Documentation/windowsserv/2003/all/techref/en-us/W2K3TR_times_intro.asp</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.xiitec.com/blog/2008/02/18/setting-the-system-time-date-and-time-zone/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setting Up Tripwire</title>
		<link>http://www.xiitec.com/blog/2008/02/04/setting-up-tripwire/</link>
		<comments>http://www.xiitec.com/blog/2008/02/04/setting-up-tripwire/#comments</comments>
		<pubDate>Tue, 05 Feb 2008 01:32:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[setup]]></category>
		<category><![CDATA[Tripwire]]></category>

		<guid isPermaLink="false">http://www.xiitec.com/blog/?p=101</guid>
		<description><![CDATA[After you have installed Tripwire, do the following:
# cd /etc/tripwire
# ./twinstall.sh
# tripwire &#8211;init
# rm twcfg.txt twpol.txt

The script twinstall.sh performs the following tasks within the directory /etc/tripwire:

Creates the site key and the local key, prompting you to enter their passphrases. (If the keys exist, this step is skipped.) The site key is stored in site.key, and [...]]]></description>
			<content:encoded><![CDATA[<p>After you have installed Tripwire, do the following:</p>
<blockquote><p># cd /etc/tripwire<br />
# ./twinstall.sh<br />
# tripwire &#8211;init<br />
# rm twcfg.txt twpol.txt</p></blockquote>
<p><span id="more-101"></span></p>
<p>The script twinstall.sh performs the following tasks within the directory /etc/tripwire:</p>
<ul>
<li>Creates the site key and the local key, prompting you to enter their passphrases. (If the keys exist, this step is skipped.) The site key is stored in site.key, and the local key in hostname-local.key, where hostname is the hostname of the machine.</li>
<li>Signs the default configuration file, twcfg.txt, with the site key, creating tw.cfg.</li>
<li>Signs the default policy file, twpol.txt, with the site key, creating tw.pol.</li>
</ul>
<p>If for some reason your system doesn&#8217;t have twinstall.sh, equivalent manual steps are:</p>
<blockquote><p>Helpful variables:<br />
DIR=/etc/tripwire<br />
SITE_KEY=$DIR/site.key<br />
LOCAL_KEY=$DIR/`hostname`-local.key</p>
<p>Generate the site key:<br />
# twadmin &#8211;generate-keys &#8211;site-keyfile $SITE_KEY</p>
<p>Generate the local key:<br />
# twadmin &#8211;generate-keys &#8211;local-keyfile $LOCAL_KEY</p>
<p>Sign the configuration file:<br />
# twadmin &#8211;create-cfgfile &#8211;cfgfile $DIR/tw.cfg \<br />
&#8211;site-keyfile $SITE_KEY $DIR/twcfg.txt</p>
<p>Sign the policy file:<br />
# twadmin &#8211;create-polfile &#8211;cfgfile $DIR/tw.cfg \<br />
&#8211;site-keyfile $SITE_KEY $DIR/twpol.txt</p>
<p>Set appropriate permissions:<br />
# cd $DIR<br />
# chown root:root $SITE_KEY $LOCAL_KEY tw.cfg tw.pol<br />
# chmod 600 $SITE_KEY $LOCAL_KEY tw.cfg tw.pol</p></blockquote>
<p>(Or chmod 640 to allow a root group to access the files.)</p>
<p>These steps assume that your default configuration and policy files exist: twcfg.txt and twpol.txt, respectively. They should have been supplied with the Tripwire distribution. Undoubtedly you&#8217;ll need to edit them to match your system.</p>
<p>Next, tripwire builds the Tripwire database and signs it with the local key:</p>
<blockquote><p> # tripwire &#8211;init</p></blockquote>
<p>Enter the local key passphrase to complete the operation. If tripwire produces an error message like &#8220;Warning: File System Error,&#8221; then your default policy probably refers to nonexistent files. These are not fatal errors: tripwire still ran successfully. At some point you should modify the policy to remove these references.</p>
<p>The last step, which is optional but recommended, is to delete the plaintext (unencrypted) policy and configuration files:</p>
<blockquote><p># rm twcfg.txt twpol.txt</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.xiitec.com/blog/2008/02/04/setting-up-tripwire/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

