<?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>How To Solutions &#187; Installs</title>
	<atom:link href="http://how-to-solutions.com/category/installs/feed" rel="self" type="application/rss+xml" />
	<link>http://how-to-solutions.com</link>
	<description>Giving You Computer Solutions</description>
	<lastBuildDate>Wed, 25 Nov 2009 10:35:27 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Installing and Configuring SquidNT 2.7 on a Windows Domain</title>
		<link>http://how-to-solutions.com/installing-and-configuring-squidnt-27-on-a-windows-domain.html</link>
		<comments>http://how-to-solutions.com/installing-and-configuring-squidnt-27-on-a-windows-domain.html#comments</comments>
		<pubDate>Wed, 14 Jan 2009 15:07:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Installs]]></category>

		<guid isPermaLink="false">http://how-to-solutions.com/?p=325</guid>
		<description><![CDATA[


If your company is looking to beef up its security somewhat then a free and flexible proxy is a good thing to have. A proxy such as squidnt sits between your users and the Internet and handles requests, usually for websites. It can provide protection for users and use a web cache to make browsing [...]]]></description>
			<content:encoded><![CDATA[<p>If your company is looking to beef up its security somewhat then a free and flexible proxy is a good thing to have. A proxy such as squidnt sits between your users and the Internet and handles requests, usually for websites. It can provide protection for users and use a web cache to make browsing faster. <a title="SquidNT" href="http://www.serassio.it/SquidNT.htm" target="_blank">SquidNT</a> is a free Windows version of the popular linux based proxy.</p>
<p>In this How To Solutions guide I&#8217;ll walk you through &#8230;</p>
<ul>
<li>installing SquidNT</li>
<li>configuring browsers to use the proxy</li>
<li>Using user authentication across a Windows domain</li>
<li>Blocking websites of your choice</li>
<li>Accessing and reviewing web logs of sites users have visited</li>
</ul>
<p>I write this merely because nearly all of the documentation is for Linux or is outdated and not centralised. This was installed on a Windows XP machine but I imagine it will work on Windows Server 2003 too.</p>
<h3>Installing SquidNT</h3>
<p class="MsoNormal" style="line-height: normal;">
<p><a title="SquidNT Downloads" href="http://squid.acmeconsulting.it/download/dl-squid.html" target="_blank">Download SquidNT 2.7 here</a> &#8211; you&#8217;re looking under binaries for <strong>2.7 STABLE5</strong>, the <strong>Standard</strong> build type which is in zip format.</p>
<p>Unzip the squid file to your desktop. This should create a squid folder &#8211; move it into your C: drive at the top level. Don&#8217;t put it in Program Files! Squid doesn&#8217;t like spaces in folder structures.</p>
<p>Open up CMD by clicking Start &gt; Run &gt; typing &#8220;cmd&#8221; &gt;  OK. Type in the following commands, pressing Enter after each line.</p>
<table border="0" bgcolor="#c0c0c0">
<tbody>
<tr>
<td>cd c:\squid<br />
cd sbin<br />
squid.exe -i</td>
</tr>
</tbody>
</table>
<p class="MsoNormal" style="line-height: normal;">
<p>Leave the cmd window open. This will install SquidNT as a Windows service &#8211; starting it when the computer first boots.</p>
<p>In Windows Explorer navigate to C:\squid\etc. Rename the four files in there so that the .default extensions are removed from all of them.</p>
<p class="vspace">Next we will create the Squid cache directories. This should improve browser performance by caching websites locally reducing the need to download each item on the webpage. Create the directories by again using CMD to run the following command:</p>
<table border="0" bgcolor="#c0c0c0">
<tbody>
<tr>
<td>C:\squid\sbin&gt;squid -z</td>
</tr>
</tbody>
</table>
<p class="MsoNormal" style="line-height: normal;">
<p>We can now start Squid running. Open up Windows services by clicking Start &gt; Control Panel &gt; Administrative Tools &gt; Services. You should see Squid listed there &#8211; right click it and Start.</p>
<h3>Configuring Browsers</h3>
<p class="MsoNormal" style="line-height: normal;">
<p><strong>Firefox (v2)</strong></p>
<p>Tools &gt; Options &gt; Advanced &gt; Network tab &gt; Settings.</p>
<p>Click on &#8220;Manual proxy configuration&#8221; and enter the IP of the machine which SquidNT was installed. For the port use 3128 (the squid default).</p>
<p><strong>Internet Explorer (v7)</strong></p>
<p>Tools &gt; Internet Options &gt; Connections tab &gt; LAN Settings</p>
<p>Under the proxy server section click the &#8220;Use a proxy server for your LAN&#8221; box. For the server use the IP of the machine SquidNT was installed on and use port 3128 (the default for Squid).</p>
<p><strong>Testing</strong></p>
<p>Once the settings are saved in the browser of your choice then test to make sure you can still access websites. You can see the access logs if you navigate to C:\squid\var\logs\access.log and open it in a text editor.</p>
<h3>User Authentication on a Windows domain</h3>
<p class="MsoNormal" style="line-height: normal;">
<p class="vspace">If you&#8217;re going to run the Squid proxy over a Windows domain using Active Directory then rather than log an IP address you can set Squid to log authenticated users. This comes in particular use when reviewing the logs later on.</p>
<p class="vspace">Open up Windows Services (Control Panel &gt; Administrative Tools &gt; Services) and stop Squid. You need to go to C:\squid\etc and open the squid.conf file in a text editor.</p>
<p class="vspace">Go to line 292 which should be a blank line below &#8220;#auth_param basic casesensitive off&#8221;. Paste in the following and leave a blank line below it.</p>
<table border="0" bgcolor="#c0c0c0">
<tbody>
<tr>
<td>auth_param ntlm program c:/squid/libexec/mswin_ntlm_auth.exe<br />
auth_param ntlm children 5</td>
</tr>
</tbody>
</table>
<p class="MsoNormal" style="line-height: normal;">
<p class="vspace">We then determine the access control list (ACL) that will allow only authenticated users on the network to go through the proxy. Navigate to line 623 (it might be a few lines more due to the previous input!) and look for the blank line below &#8220;acl CONNECT method CONNECT&#8221;. Paste in the following</p>
<table border="0" bgcolor="#c0c0c0">
<tbody>
<tr>
<td>acl localnet proxy_auth REQUIRED src 10.0.0.1/255</td>
</tr>
</tbody>
</table>
<p class="MsoNormal" style="line-height: normal;">
<p class="vspace"><strong>Note:</strong> Change th IP range to suit your specific network. I have used 10.0.0.x as an example but you may use another range.</p>
<p class="vspace">Once that is pasted in scroll down again until line 649 (again this will be lower due to the two previous pastes. Look for the line that reads &#8220;http_access deny manager&#8221;. Under that line paste the following&#8230;</p>
<table border="0" bgcolor="#c0c0c0">
<tbody>
<tr>
<td>http_access allow localnet</td>
</tr>
</tbody>
</table>
<p class="MsoNormal" style="line-height: normal;">
<p>At this point you should save the squid.conf file and restart Squid as a Windows Service. Go back to your favourite web browser and make sure you can still access sites. Again you can check the access logs (C:\squid\var\logs\access.log) to make sure the Windows authentication is being recorded.</p>
<h3>Blocking Websites</h3>
<p class="MsoNormal" style="line-height: normal;">
<p>A very good reason to use a web proxy is to block websites across a network that could be potentially harmful. Again we&#8217;ll need to use the squid.conf file to declare which sites to block.</p>
<p>Open up squid.conf and look for where you pasted in &#8220;acl CONNECT method CONNECT&#8221; around line 628. Create a new blank line BELOW this line. It should be directly above an earlier line you pasted in (acl localnet proxy_auth REQUIRED src 10.0.0.1/255). Paste in the contents below making sure to edit the URLs. I have used Facebook and Myspace as an example but you can use anything.</p>
<table border="0" bgcolor="#c0c0c0">
<tbody>
<tr>
<td>acl facebook url_regex facebook.com<br />
acl myspace url_regex myspace.com</td>
</tr>
</tbody>
</table>
<p class="MsoNormal" style="line-height: normal;">
<p>This should create something that looks like what is in the box below.</p>
<table border="0" bgcolor="#c0c0c0">
<tbody>
<tr>
<td>acl CONNECT method CONNECT<br />
acl facebook url_regex facebook.com<br />
acl myspace url_regex myspace.com<br />
acl localnet proxy_auth REQUIRED src 10.0.0.1/255</td>
</tr>
</tbody>
</table>
<p class="MsoNormal" style="line-height: normal;">
<p>Now let&#8217;s look for line 655 (again it will be somewhere near there but depends on the earlier pastes). Look for the line that reads &#8220;# Only allow cachemgr access from localhost&#8221;. Make the http_access lines read like in the box below. It is important to make sure &#8220;http_access allow localnet&#8221; is the last line in this section. If you have added more sites to be blocked then use &#8220;http_access deny name&#8221;, where &#8216;name&#8217; is what you defined in the acl section (acl name url_regex urlforname.com).</p>
<table border="0" bgcolor="#c0c0c0">
<tbody>
<tr>
<td>http_access allow manager localhost<br />
http_access deny manager<br />
http_access allow manager localhost<br />
http_access deny manager<br />
http_access deny facebook<br />
http_access deny myspace<br />
http_access allow localnet</td>
</tr>
</tbody>
</table>
<p class="MsoNormal" style="line-height: normal;">
<p>Lastly scroll up to line 613 (or there abouts). Look for the section that reads like the box below. We don&#8217;t want to include this section so put a hash sign (#) before each acl statement.</p>
<table border="0" bgcolor="#c0c0c0">
<tbody>
<tr>
<td>acl localnet src 10.0.0.0/8    # RFC1918 possible internal network<br />
acl localnet src 172.16.0.0/12    # RFC1918 possible internal network<br />
acl localnet src 192.168.0.0/16    # RFC1918 possible internal network</td>
</tr>
</tbody>
</table>
<p>Save squid.conf and close the file. Restart the Squid service and make sure your browsers can see the Internet.</p>
<h3>Reviewing Web Logs</h3>
<p class="MsoNormal" style="line-height: normal;">
<p>To review Squid logs I wouldn&#8217;t recommend opening the log file in a text editor. I&#8217;ve previously used <a title="Kraken Reports" href="http://www.krakenreports.com/" target="_blank">Kraken Reports</a> though it&#8217;s not very nice to look at. In fact all free Squid log analysers for Windows I&#8217;ve seen are fairly horrible. It would be nice to find a well made one that was more flexible.</p>
<p><strong></strong></p>
]]></content:encoded>
			<wfw:commentRss>http://how-to-solutions.com/installing-and-configuring-squidnt-27-on-a-windows-domain.html/feed</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>How To Install Trac on Windows</title>
		<link>http://how-to-solutions.com/how-to-install-trac-on-windows.html</link>
		<comments>http://how-to-solutions.com/how-to-install-trac-on-windows.html#comments</comments>
		<pubDate>Wed, 24 Sep 2008 19:15:01 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Installs]]></category>
		<category><![CDATA[subversion]]></category>
		<category><![CDATA[tortoisesvn]]></category>
		<category><![CDATA[trac]]></category>

		<guid isPermaLink="false">http://how-to-solutions.com/?p=6</guid>
		<description><![CDATA[
Trac is  front end to subversion with integrated wiki for developers. Use this How To article to help you install Trac on a Windows computer that isn&#8217;t running Apache. The guide assumes you have a working Subversion repository and are using the TortoiseSVN shell on client PC&#8217;s.

Introduction
Firstly let me say Trac is a brilliant [...]]]></description>
			<content:encoded><![CDATA[<p class="MsoNormal" style="line-height: normal;">
<p><strong>Trac is  front end to subversion with integrated wiki for developers. Use this How To article to help you install Trac on a Windows computer that isn&#8217;t running Apache. The guide assumes you have a working Subversion repository and are using the TortoiseSVN shell on client PC&#8217;s.</strong></p>
<p class="MsoNormal" style="line-height: normal;">
<p class="MsoNormal" style="line-height: normal;"><strong>Introduction</strong></p>
<p>Firstly let me say <strong><a title="Trac - Integrated SCM and Project Management Tool" href="http://trac.edgewall.org/" target="_blank">Trac</a></strong> is a brilliant bit of software. It is basically a friendly front end to subversion which is a version control system. Trac allows you to use its in-built <a title="Tracd - trac standalone" href="http://trac.edgewall.org/wiki/TracStandalone" target="_blank"><strong>tracd</strong></a> software so you can view Subversion changes through a browser. Working with developers, this lets you track changes to code easily as well as support development goals through Trac&#8217;s project management tools.</p>
<p class="MsoNormal" style="line-height: normal;">
<p>This How To guide is by no means a replacement for the <a title="Trac Guide" href="http://trac.edgewall.org/wiki/TracInstall" target="_blank">Trac documentation</a>. The Trac site and the support provided by their developers is really very good. However I ran into a number of problems when installing the software on a standalone Windows server that wasn&#8217;t running Apache.</p>
<p class="MsoNormal" style="line-height: normal;">
<p class="MsoNormal" style="line-height: normal;">
<p class="MsoNormal" style="line-height: normal;"><strong><span>Installation Files</span></strong></p>
<ul type="disc">
<li class="MsoNormal" style="line-height: normal;"><a title="Python version 2.5" href="http://python.org/ftp/python/2.5.2/python-2.5.2.msi" target="_blank"><span>Python 2.5</span></a></li>
<li class="MsoNormal" style="line-height: normal;"><span><a title="Trac" href="http://ftp.edgewall.com/pub/trac/Trac-0.11.1.win32.exe" target="_blank">Trac</a><br />
</span></li>
<li class="MsoNormal" style="line-height: normal;"><span><a title="SVN Python" href="http://subversion.tigris.org/files/documents/15/43470/svn-python-1.5.2.win32-py2.5.exe" target="_blank">SVN Python</a><br />
</span></li>
<li class="MsoNormal" style="line-height: normal;"><span><a title="Python SQL" href="http://oss.itsystementwicklung.de/trac/pysqlite/wiki/WikiStart#Downloads" target="_blank">pysqlite</a> </span></li>
<li class="MsoNormal" style="line-height: normal;"><a title="Genshi" href="http://ftp.edgewall.com/pub/genshi/Genshi-0.5.1.win32-py2.5.exe" target="_blank"></a><a title="Genshi" href="http://ftp.edgewall.com/pub/genshi/Genshi-0.5.1.win32-py2.5.exe" target="_blank">Genshi</a></li>
<li class="MsoNormal" style="line-height: normal;"><span><a title="TortoiseSVN" href="http://tortoisesvn.net/downloads" target="_blank">TortoiseSVN</a> </span></li>
<li class="MsoNormal" style="line-height: normal;"><a title="EZ Setup" href="http://peak.telecommunity.com/dist/ez_setup.py" target="_blank"><span>ez_setup.py</span></a></li>
</ul>
<h3><strong>Installing the Software</strong></h3>
<p><strong>1.</strong> OK so let&#8217;s assume you have a working repository which we will say is located at E:\repos and a folder with all of your code located at E:\code.</p>
<p><strong>2.</strong> Let&#8217;s install Python &#8211; Double click the python-2.5.2.msi file and select &#8216;Install for all users&#8217;. Click <em>Next</em> and then <em>Next</em> again (change the location of the Python install if you wish). Click <em>Next</em> once more and Python will start installing. Click <em>Finish</em> and that&#8217;s Python installed.</p>
<p><strong>3.</strong> Now let&#8217;s install the Python SVN file (&#8221;<em>svn-python&#8221; e</em><em>tc</em>) &#8211; Double click the file and then click <em>Next</em>, <em>Next</em> again and <em>Next</em> once more. The installation will run and click the <em>Finish</em> button when prompted.</p>
<p><strong>4.</strong> Then we install Python SQLite &#8211; Double click the file and then click <em>Next</em>, <em>Next</em> again and <em>Next</em> once more. The installation will run and click the <em>Finish</em> button when prompted.</p>
<p><strong>5.</strong> Trac needs to be installed now &#8211; Double click the Trac exe and then click <em>Next</em>, <em>Next</em> again and <em>Next</em> once more. The installation will run and click the <em>Finish</em> button when prompted.</p>
<p><strong>6.</strong> Lastly we need to install Genshi &#8211; Double click the Genshi file and then click <em>Next</em>, <em>Next</em> again and <em>Next</em> once more. The installation will run and click the <em>Finish</em> button when prompted.</p>
<h3><strong>Getting Trac Running</strong></h3>
<p><strong>1.</strong> Create a folder called <em>tracproject</em> or something similar &#8211; I&#8217;d recommend putting it in the same directory as your repository.</p>
<p><strong> 2.</strong> Get your <em>ez_setup.py</em> file and move it into C:\Python25\Scripts folder(or wherever your Python install is located). Bring up a command prompt (Click on Start &gt; Run and type &#8216;<em>cmd</em>&#8216;). Enter the following making sure you hit Enter after each of the four lines.</p>
<table border="0" bgcolor="#c0c0c0">
<tbody>
<tr>
<td>cd c:\<br />
cd pyth*<br />
cd scr*<br />
ez_setup.py</td>
</tr>
</tbody>
</table>
<p class="MsoNormal" style="line-height: normal;">
<p><strong>3.</strong> This will bring up about 10 lines of code and then leave the command prompt in the same directory. Now type the following and hit Enter.</p>
<table border="0" bgcolor="#c0c0c0">
<tbody>
<tr>
<td>trac-admin E:\project initenv</td>
</tr>
</tbody>
</table>
<p class="MsoNormal" style="line-height: normal;">
<p>This will install Trac to the E:\project directory. Now the CMD window will prompt you to input four pieces of information. Look at what I used below to indicate what you should use.</p>
<p class="MsoNormal" style="line-height: normal;">
<table border="0" bgcolor="#c0c0c0">
<tbody>
<tr>
<td><strong>Project Name [My Project]</strong> &#8211; I used <em>&#8220;mycode&#8221;</em><br />
<strong> Database connection string [sqlite:db/trac.db]&gt;</strong> Leave blank by hitting <em>Enter</em><br />
<strong> Repository type [svn]&gt;</strong> Leave blank by htting <em>Enter</em><br />
<strong> Path to Repository [/path/to/repos]&gt;</strong> <em>E:\repos</em></td>
</tr>
</tbody>
</table>
<p class="MsoNormal" style="line-height: normal;">
<p>The CMD window will install Trac based on the existing repository. The more existing revisions you have in the repository the longer this process will take, it&#8217;s indexing each change you&#8217;ve ever made. Once the install is complete the last line should say &#8220;Congratulations!&#8221; but don&#8217;t close the cmd window!. So Trac is now installed but you&#8217;re not done yet. It must be configured correctly to get the most out of it&#8217;s use.</p>
<p><strong>4.</strong> To easily handle accounts in Trac I would 100% recommend installing the <a title="Trac Account Manager Plugin" href="http://trac-hacks.org/wiki/AccountManagerPlugin" target="_blank">Account Manager Plugin</a> available from <a title="Trac Hacks" href="http://trac-hacks.org/" target="_blank">Trac Hacks</a> (a handy site with lots of Trac plugins) &#8211; let&#8217;s do this now. In the same cmd window (which should still be in C:\Python25\Scripts) type the following and hit Enter.</p>
<table border="0" bgcolor="#c0c0c0">
<tbody>
<tr>
<td>easy_install http://trac-hacks.org/svn/accountmanagerplugin/trunk</td>
</tr>
</tbody>
</table>
<p class="MsoNormal" style="line-height: normal;">
<p>This will bring up about 12 lines of code with the last line starting &#8220;Finished processing dependencies&#8221;.</p>
<p><strong>5.</strong> In Windows open up the E:\project folder and go into the <em>conf</em> sub-directory. There&#8217;s a file called <em>trac.ini </em>- open it in an editor like Notepad. You need to copy the following lines below and paste them into Notepad above the [header_logo] section.</p>
<table border="0" bgcolor="#c0c0c0">
<tbody>
<tr>
<td>[components]<br />
acct_mgr.admin.accountmanageradminpage = enabled<br />
acct_mgr.api.accountmanager = enabled<br />
acct_mgr.db.sessionstore = enabled<br />
acct_mgr.htfile.htdigeststore = enabled<br />
acct_mgr.pwhash.htdigesthashmethod = enabled<br />
acct_mgr.web_ui.accountmodule = enabled<br />
acct_mgr.web_ui.loginmodule = enabled<br />
acct_mgr.web_ui.registrationmodule = enabled<br />
trac.web.auth.loginmodule = disabled</td>
</tr>
</tbody>
</table>
<p class="MsoNormal" style="line-height: normal;">
<p>Once that&#8217;s been pasted in save the ini file and close Notepad. In explorer go up a level to E:\project and create a new text file called passwd.txt &#8211; leave the file blank.</p>
<p><strong>6.</strong> Lastly let&#8217;s give all anonymous users (those who aren&#8217;t logged in) admin access. In the same CMD window type the following and hit Enter.</p>
<table border="0" bgcolor="#c0c0c0">
<tbody>
<tr>
<td>trac-admin E:\project permission add anonymous TRAC_ADMIN</td>
</tr>
</tbody>
</table>
<p class="MsoNormal" style="line-height: normal;">
<p>Note this will not return any lines. We will remove the admin access later once you, the real admin, have created your account. And with that we can start Tracd. In CMD type the following and hit Enter.</p>
<table border="0" bgcolor="#c0c0c0">
<tbody>
<tr>
<td>tracd –p 8000 E:\project</td>
</tr>
</tbody>
</table>
<p class="MsoNormal" style="line-height: normal;">
<p><strong>7.</strong> Open up your favourite browser and paste this URL: http://localhost:8000/. You should see a link to the name you gave your project, such as <strong>mycode</strong>. Click on that and there you have Tracd &#8211; the front end of the Trac software.</p>
<p><strong>8.</strong>In the top right there&#8217;s a tab called <strong>Admin</strong> &#8211; click on it. On the menu on the right click on Configuration and when the page loads select HtDigestStore where the filename is E:\project\passwd.txt and the realm is &#8220;<em>trac</em>&#8220;.</p>
<p>9. Below Configuration is Users &#8211; click on it. Create yourself an admin account. Now using the menu go to Permissions. On the right of that page you will see the Grant Permission section. Use the subject field for the username you gave yourself on the Users page and select the TRAC_ADMIN as Action. Click Add and you will see your username in the middle column of the page with TRAC_ADMIN next to it.  For the subject anonymous click on the TRAC_ADMIN so it&#8217;s ticked and then click on the <em>Remove selected items</em> button.</p>
<p>10. From now on you will need to use that Admin account to Login and make changes to the Trac environment. By default anonymous users can still view all of the Tracd menu&#8217;s to see changes to the repository and view tickets.</p>
<p><strong>I hope this How To guide has helped you get Trac running on your systems. Please feel free to make comments/suggestions/improvement.</strong></p>
<p>
<SCRIPT charset="utf-8" type="text/javascript" src="http://ws.amazon.com/widgets/q?ServiceVersion=20070822&#038;MarketPlace=US&#038;ID=V20070822/US/supebook-20/8001/78c1db07-b6ba-46d2-8856-bd31076f3afb"> </SCRIPT> <NOSCRIPT><A HREF="http://ws.amazon.com/widgets/q?ServiceVersion=20070822&#038;MarketPlace=US&#038;ID=V20070822%2FUS%2Fsupebook-20%2F8001%2F78c1db07-b6ba-46d2-8856-bd31076f3afb&#038;Operation=NoScript">Amazon.com Widgets</A></NOSCRIPT></p>
]]></content:encoded>
			<wfw:commentRss>http://how-to-solutions.com/how-to-install-trac-on-windows.html/feed</wfw:commentRss>
		<slash:comments>31</slash:comments>
		</item>
	</channel>
</rss>
