tag:blogger.com,1999:blog-30799205708022644262024-03-05T02:39:52.313-06:00Virtual IT BlogDoug Farrellhttp://www.blogger.com/profile/00369136679265053681noreply@blogger.comBlogger4125tag:blogger.com,1999:blog-3079920570802264426.post-21909532635518466372021-02-19T17:27:00.001-06:002021-02-19T17:33:09.120-06:00The Server Pool Does not Match the RD Connection Brokers That Are In It. Errors: 1. Cannot connect to any of the specified RD Connection Broker servers<p style="text-align: center;"><span style="font-size: medium;"><b>2016 RDS frustration with connection brokers.</b></span><br /></p><p>This issue comes up if you disable TLS 1.0 on server 2012 R2 and 2016 or your database is in pending recovery mode.</p><p>To restore TLS 1.0 or a better solution is update to 2019 which supports TLS 1.2 <br /></p>Windows Registry Editor Version 5.00<br /><br />[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\Schannel\Protocols\TLS 1.0\Client]<br />"DisabledByDefault"=dword:00000000<br />"Enabled"=dword:00000001<br /><br />[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\Schannel\Protocols\TLS 1.0\Server]<br />"DisabledByDefault"=dword:00000000<br />"Enabled"=dword:00000001<br /><br />If TLS is not the issue then go to this article at RDS Gurus site from Kristin L. Griffin<br /><p><a href="https://www.rdsgurus.com/rdms-problem-1-the-server-pool-does-not-match-the-rd-connection-brokers-that-are-in-it/" target="_blank">https://www.rdsgurus.com/rdms-problem-1-the-server-pool-does-not-match-the-rd-connection-brokers-that-are-in-it/ </a></p><p><br /></p><p>Your welcome for disabling Ads, they are ineffective.<br /></p><p><br /></p>Doug Farrellhttp://www.blogger.com/profile/00369136679265053681noreply@blogger.comtag:blogger.com,1999:blog-3079920570802264426.post-75191727400000622982016-07-16T17:28:00.000-05:002019-02-08T08:01:51.936-06:00Error: "Printer not activated error code -30" Sage 2016 and Windows 10 Pro<h2 style="text-align: center;">
<b>Peachtree (Sage 50 for 2016) and Window 10 Pro UAC</b></h2>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi5mr23XtztiQ68vAgbP8dsognQou9oUuH4Dhczs9mnMmgcnF_EIRrpQKwNacwCtUWdu-pJ0LURB3i_UlV7vWBg8kngSoa7L_I_zM15qHV94aAntlO2WW4-0zPD3IPwE5Dqe6Z4g98ZaCYl/s1600/Peachtree+Error.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="180" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi5mr23XtztiQ68vAgbP8dsognQou9oUuH4Dhczs9mnMmgcnF_EIRrpQKwNacwCtUWdu-pJ0LURB3i_UlV7vWBg8kngSoa7L_I_zM15qHV94aAntlO2WW4-0zPD3IPwE5Dqe6Z4g98ZaCYl/s320/Peachtree+Error.png" width="320" /></a></div>
<div style="text-align: left;">
<span style="color: #ffd966;"><b>What I am planning to cover</b></span></div>
<ol>
<li>Basic error info</li>
<li>Why this is different in windows 10 and windows 7</li>
<li> The simple fix</li>
</ol>
<span style="color: #ffd966;"><b>Getting Started</b></span><br />
<span style="font-size: large;"><b>If you have "Windows 10 Home" this is not for you!</b></span><br />
The issue not being able to send an email invoice PDF from Peachtree to your email client. If you click the below E-mail to your client an invoice you get the above error "Printer not activated, error code -30".<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg4M0kDZ6lyojkeT2FtNa6JzIkSq7acEUpl_7-OXUsXl6jzoWqrRQFnUXIEGaSjSWyKM7sQyD-Xfy8-qjjTqg-qUdSRYsz4RflMdu1QSU9LiGTcqhbKa9kMKTDy5GSulkYYlK6EZ-2hiUsu/s1600/Sales_Invoicing-pointer.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="61" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg4M0kDZ6lyojkeT2FtNa6JzIkSq7acEUpl_7-OXUsXl6jzoWqrRQFnUXIEGaSjSWyKM7sQyD-Xfy8-qjjTqg-qUdSRYsz4RflMdu1QSU9LiGTcqhbKa9kMKTDy5GSulkYYlK6EZ-2hiUsu/s640/Sales_Invoicing-pointer.png" width="640" /></a></div>
Peachtree support recommended this solution but didn't work for windows 10.<br />
<a href="https://support.na.sage.com/selfservice/viewContent.do?externalId=10807&sliceId=1">https://support.na.sage.com/selfservice/viewContent.do?externalId=10807&sliceId=1</a><br />
<br />
I found this has to do with the changes windows 10 made to UAC that the system really never gets rid of UAC for printers even if you disable UAC completely.<br />
This is slightly different with Windows 7 which I never had problems with disabling UAC and Peachtree with printing.<br />
The problem you could get it to work but then you lost the ability to use things like Edge web browser, calculator and a host of other basic apps for local admins or domain users added to the administrators group on your PC another annoying feature in windows 10 for security.<br />
<br />
<span style="font-size: large;"><b>Error: "This app can't open, Microsoft Edge can't be opened using Built-in Administrator account. Sign in with a different account and try again".</b> </span><br />
<br />
Well this will happen with any administrator account not just built-in accounts.<br />
Let's say Domain Admins, Users that have been added to the Administrators group on the local system and lastly local admin.<br />
After many hours about working with Group Policy's around UAC and printer settings it seems that Peachtree really wants you to be an Administrator on the box. Which in many ways this is crazy in today's security world in which we really need to get users off of administrator roles.<br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiGs8gTEYLVF-dujbg8f-eUzXc2ZiD1nZFDuU7CBdos_jepzCOGK8X2N6ghxKV98G7uKtsGEBfuW3OmF4C3fz8xFNdyIq53ucfVQQxloiTDMx33Xck78IMKFI857vdUSyE1s_wtd9yIKFg_/s1600/GPO%2527s+Windows+10-2.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="280" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiGs8gTEYLVF-dujbg8f-eUzXc2ZiD1nZFDuU7CBdos_jepzCOGK8X2N6ghxKV98G7uKtsGEBfuW3OmF4C3fz8xFNdyIq53ucfVQQxloiTDMx33Xck78IMKFI857vdUSyE1s_wtd9yIKFg_/s640/GPO%2527s+Windows+10-2.png" width="640" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Apply these as GPO's or manually add the registry key's</td></tr>
</tbody></table>
<br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEisH66EEMnCV4yOkG8t789xB3mslNxD99DPu5zk4PQeSexgrg1EZpJ3RoytCZ1wzD_ZJdq8cdHr9YyPpjDFxIoCnDbjS8mEXdMSsG4VW7Ye-qXN-fEDtQ53zq7-Uu8PXXQ9XqGNAJ1ZOkf6/s1600/GPO%2527s+Windows+10.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="248" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEisH66EEMnCV4yOkG8t789xB3mslNxD99DPu5zk4PQeSexgrg1EZpJ3RoytCZ1wzD_ZJdq8cdHr9YyPpjDFxIoCnDbjS8mEXdMSsG4VW7Ye-qXN-fEDtQ53zq7-Uu8PXXQ9XqGNAJ1ZOkf6/s640/GPO%2527s+Windows+10.png" width="640" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Here is my Group Polices for Windows 10 and Peachtree boxes.</td></tr>
</tbody></table>
<b> </b><br />
<br />
<br />
<b><span style="color: #ffd966;">The simple fix</span></b><br />
Apply above GPO's then Open File Explorer in Windows 10 Pro<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEghq_mgJj9iRfWzQsAo93GOXlmHqkjcZAxD6nEQB8TEzuwlvW8fGDEmoDBNL7PJBP3FR1ZtMYEQxABrGGTrwbbN25ab7v0ZYn3Jxu-YNd7vwmEMHfFWuFaJ2RANY-tEB9obAz_dw9szLvQK/s1600/File+Explorer.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEghq_mgJj9iRfWzQsAo93GOXlmHqkjcZAxD6nEQB8TEzuwlvW8fGDEmoDBNL7PJBP3FR1ZtMYEQxABrGGTrwbbN25ab7v0ZYn3Jxu-YNd7vwmEMHfFWuFaJ2RANY-tEB9obAz_dw9szLvQK/s1600/File+Explorer.png" /></a></div>
Go to C:\Program Files(x86)\Sage\Peachtree find the file named Peachw.exe then right the file and click properties.<br />
Click the compatibility tab add the check to "Run this program as an administrator".<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjZRaAeJsM4z1jhQoiYrQuAxuU_h9ZkCRvG14aPgBZMa6PfTSZp8lFmXYkd1iguAudmhQSAA-J-o-nr_8VBga4n9aoiIsh2pSVnProgWt9eOo7iXvRmF8Ec1LnFZCpYh_FaYJLQyas2KseW/s1600/File+Properties.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="357" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjZRaAeJsM4z1jhQoiYrQuAxuU_h9ZkCRvG14aPgBZMa6PfTSZp8lFmXYkd1iguAudmhQSAA-J-o-nr_8VBga4n9aoiIsh2pSVnProgWt9eOo7iXvRmF8Ec1LnFZCpYh_FaYJLQyas2KseW/s400/File+Properties.png" width="400" /></a></div>
Now you should be able to e-mail an invoice to a client and still have administrator rights on the box.Doug Farrellhttp://www.blogger.com/profile/00369136679265053681noreply@blogger.com0tag:blogger.com,1999:blog-3079920570802264426.post-61949291533259144962013-05-15T02:03:00.000-05:002019-02-08T08:02:02.222-06:00Installing iptables on Raspberry PiWhy do we need iptables for RPi.<br />
<ol>
<li>Restrict connections to services if you are connected to the internet directly.</li>
<li>Ability to control connections states and proper TCP connections.</li>
<li>Ability restrict to allowed connections to the RPi from remote locations.</li>
</ol>
As you probably found out that the Raspberry Pi does not have iptables installed by default. This is a good thing unless you plan to connect your RPi to the internet. This leaves your SSH (if you have it enabled) connection open to attack if you don't plan to setup a more secure private key connection to SSH. Which I would suggest doing anyway. I plan cover that in a future blog.<br />
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgbxOdFsRmmTVli5XPWgd0AQJw7MUTuGLJWYLa_j2w939c4ms9Ct4N4vtfO1sN7fj_2SFistkveNr3vEFVSZV9HTcYtBGoFp8InRbBsom7ThRVh6aUqdXEo-enqKTdhVi8bGR_qXJGb03Ru/s1600/20130513_112627.jpg" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"><img alt="Raspberry Pi" border="0" height="150" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgbxOdFsRmmTVli5XPWgd0AQJw7MUTuGLJWYLa_j2w939c4ms9Ct4N4vtfO1sN7fj_2SFistkveNr3vEFVSZV9HTcYtBGoFp8InRbBsom7ThRVh6aUqdXEo-enqKTdhVi8bGR_qXJGb03Ru/s200/20130513_112627.jpg" title="Raspberry Pi" width="200" /></a>
<br />
<h3>
<span style="color: #ffd966;">What I am planning to cover</span></h3>
<ol>
<li>Install of iptables for RPi.</li>
<li>Configure basic rules sets for connections to SSH and HTTP services.</li>
<li>Create a script to save your rulesets.</li>
<li>Setup loading rule sets on start-up or your RPi. </li>
</ol>
<h3>
<span style="color: #ffd966;">Getting Started</span></h3>
Current overview of my configuration. Using an 8Gig SDCard. I downloaded these items.<br />
<br />
<ul>
<li>You will need <a href="http://sourceforge.net/projects/win32diskimager/" rel="nofollow" target="_blank">Win32DiskImager</a> to put the image on your SDCard. </li>
<li>I used Debian Wheezy for my Raspberry Pi <a href="http://www.raspberrypi.org/downloads" rel="nofollow" target="_blank">Download Debian Wheezy</a>. build 2013-02-09-wheezy-raspbian.zip.</li>
</ul>
If you would like to setup a static IP or learning to connect to RPi via SSH view my blog <a href="http://virtualitblog.blogspot.com/2013/05/install-nginx-141-raspberry-pi.html" target="_blank">here</a><br />
<br />
<h3>
<span style="color: #ffd966;">Installing iptables</span></h3>
During this install of iptables I am going to install the package via SSH.<span style="color: #e06666;"> By default iptables is set to allow all connections.</span> <br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjMMKLgLbLkfzpKA4lfqJeggC8aYLTXi61wnc1ROCpHUp7IqNy-h29eojBeaiYAcZNjgL9q-ttpndb6peop3X2DRKm6glC8goQ8yi8nyXRxE6IIIU8ouAeAf6o51vvFUO0xaLsfaH0YItmo/s1600/Install+IPtables.jpg" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"><img alt="iptables install on Raspberry Pi" border="0" height="125" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjMMKLgLbLkfzpKA4lfqJeggC8aYLTXi61wnc1ROCpHUp7IqNy-h29eojBeaiYAcZNjgL9q-ttpndb6peop3X2DRKm6glC8goQ8yi8nyXRxE6IIIU8ouAeAf6o51vvFUO0xaLsfaH0YItmo/s200/Install+IPtables.jpg" title="iptables install via SSH on Raspberry Pi" width="200" /></a></div>
<br />
<ol>
<li>Type "sudo apt-get install iptables". press Enter this will download and install the current available version of iptables to you RPi.</li>
</ol>
<h3>
<span style="color: #ffd966;">Adding rules to iptables</span></h3>
At minimum we want to have a few rules in our iptables. These rules are not for you to use your RPi as a firewall. Plus it would be difficult with only one NIC. You must do these in order or connections could fail. Rules go top down in order. <span style="color: #e06666;">Skip any rule except ones in blue</span>.<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjG5aGhdqpNTMVUDpqYef8Hr0tG9BU2YRZxSz5bMSymVLhKdQC7he4ZY-7keYcwGm-AVtb0ujHSjxhnXoEOFjqsCHSqZpPgHKPQ0O_NzN3w5AxBweNf15E95fkQNpFjsGKex-wBbUbL6hmQ/s1600/iptables+config+file.jpg" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"><img alt="iptables saved file" border="0" height="113" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjG5aGhdqpNTMVUDpqYef8Hr0tG9BU2YRZxSz5bMSymVLhKdQC7he4ZY-7keYcwGm-AVtb0ujHSjxhnXoEOFjqsCHSqZpPgHKPQ0O_NzN3w5AxBweNf15E95fkQNpFjsGKex-wBbUbL6hmQ/s200/iptables+config+file.jpg" title="Saved iptables file" width="200" /></a></div>
<ol>
<li>Type "<span style="color: #6fa8dc;">sudo iptables -A INPUT -j ACCEPT -m state --state ESTABLISHED,RELATED</span>". press Enter This will allow any connection that has been properly established and related to pass though. This is really only needed if you have opened a port like the rule 2. below.</li>
<li>Type "sudo iptables -A INPUT -p tcp --dport 80 -m state --state NEW -j ACCEPT". press Enter. This will allow you to host a website on your RPi on port 80.</li>
<li>Type "sudo iptables -A INPUT -p tcp --dport 22 -m state --state NEW -j ACCEPT". press Enter. This will allow you connect to your RPi via SSH.</li>
<li> Type "sudo iptables -A INPUT -p tcp --dport 5901 -m state --state NEW -j ACCEPT" press Enter. This will allow you access if you have TightVNC installed.</li>
<li> Type "sudo iptables -A INPUT -p icmp -m icmp --icmp-type 8 -j ACCEPT". press Enter. This will allow you to ping your RPi.</li>
<li>Type "<span style="color: #6fa8dc;">sudo iptables -P INPUT DROP</span>". press Enter. This will block all inbound traffic not accepted by a rule.</li>
<li>Now type "sudo iptables -L". press Enter. You should see your rules loaded. </li>
</ol>
<h3>
<span style="color: #ffd966;">Saving the configuration to a file</span></h3>
In this section I am going to simply cover saving your shiny new iptables configuration to a file. Then create a script to call iptables-save which will allow us to save the file anytime.<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgKw-6lidlVNYMPEIy-mHuc9v-VMthAdT5c-7UnwW92MpGdyhYPt-iGE0VP_ZhkrIivffVKtTzHudmPnxtnxKZmkTJHSobiE0qwIwCMnm_XpiXJNqZxCf-MnkCaG6BvWLfx67v4_tcr-JQW/s1600/Save+your+tables+script.jpg" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"><img alt="Script to save running iptables information" border="0" height="106" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgKw-6lidlVNYMPEIy-mHuc9v-VMthAdT5c-7UnwW92MpGdyhYPt-iGE0VP_ZhkrIivffVKtTzHudmPnxtnxKZmkTJHSobiE0qwIwCMnm_XpiXJNqZxCf-MnkCaG6BvWLfx67v4_tcr-JQW/s200/Save+your+tables+script.jpg" title="" width="200" /></a></div>
<ol>
<li>Type "cd /etc | sudo iptables-save > iptables.conf". press Enter. This will save the currently running ruleset from memory into /etc/iptables.conf file.</li>
<li>Type "cd ~/". press Enter. Put us in your home directory.</li>
<li>Type "echo '#!/bin/bash' | sudo tee ~/savetables". press Enter. This is the header for the script file.</li>
<li>Type "echo '/sbin/iptables-save > /etc/iptables.conf' | sudo tee -a ~/savetables". press Enter. This is the command to save the table information to /etc/iptables.conf file.</li>
<li>Type "sudo chmod +x ~/savetables". press Enter. This will set the file to have execute permissions.</li>
<li>Type "cd ~ | sudo ./savetables". press Enter. This command will allow you to save the configuration file anytime.</li>
</ol>
<h3>
<span style="color: #ffd966;">Applying rules to the eth0 interface to stay persistent</span></h3>
We are going to start off by creating a script file in the network directory to execute our iptables when our eth0 interface is up and running.<br />
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiXta1N4e57xwrOj_CzK9Wh7S_YYy8vYdQzDoHNvvDYEAhmJ4dr-dSxCDuSh5IqA6_dWyh4T9_wtI-L3C-vN4VU3jLdSPZ7wKTImTNXDlpSju12P8pCMdW1pCqUCUO4fn3z0vXR7uTw0R0E/s1600/Bash+script+for+loading+iptables.jpg" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"><img alt="Load iptables on interface load Raspberry Pi" border="0" height="99" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiXta1N4e57xwrOj_CzK9Wh7S_YYy8vYdQzDoHNvvDYEAhmJ4dr-dSxCDuSh5IqA6_dWyh4T9_wtI-L3C-vN4VU3jLdSPZ7wKTImTNXDlpSju12P8pCMdW1pCqUCUO4fn3z0vXR7uTw0R0E/s200/Bash+script+for+loading+iptables.jpg" title="Bash Script" width="200" /></a>
<br />
<ol>
<li>Type "echo '#!/bin/bash' | sudo tee /etc/network/if-up.d/iptables". press Enter. This is the header for the script file.</li>
<li>Type "echo '/sbin/iptables-restore < /etc/iptables.conf' | sudo tee -a /etc/network/if-up.d/iptables". press Enter. This is the command that will load our iptables on our eth0 interface.</li>
<li>Type "sudo chmod +x /etc/network/if-up.d/iptables". press Enter. This will set the file to have execute permissions.</li>
<li>Type "sudo reboot". press Enter. After your RPi comes back up you should now be able to type "sudo iptables -L" and see your rules listed under INPUT.</li>
</ol>
<h3>
<span style="color: #ffd966;">Known Issues</span></h3>
None<br />
<br />
<br />
<ol>
</ol>
Doug Farrellhttp://www.blogger.com/profile/00369136679265053681noreply@blogger.com6tag:blogger.com,1999:blog-3079920570802264426.post-72088004947488662302013-05-13T22:19:00.000-05:002019-02-08T08:01:28.908-06:00Install nginx 1.4.1 Raspberry Pi<br />
Lets start off with why we need to get the latest update to ngnix.<br />
<ol>
<li>Current build of nginx from the Raspbian mirror for Raspberry Pi is out of date. </li>
<li>Current "apt-get install nginx" has <span style="color: red;">critical</span> vulnerabilities. </li>
</ol>
I just started messing with Raspberry Pi and wanted to setup a simple web server with the option for HTTPS, this being said I knew that nginx would provide me with a small foot print and very high speed web service.<br />
<br />
<h3>
<span style="color: #ffd966;">What I am planning to cover</span></h3>
I will cover more than just installing nginx into your RPi.<br />
<ol>
<li>Setting Static IP to your RPi</li>
<li>Connecting to your RPi via SSH </li>
<li>Getting the source files for compiling your newer nginx 1.4.1</li>
<li>Compiling and building a package for using nginx source.</li>
<li>Installing your built package into RPi</li>
</ol>
<br />
<h3>
<span style="color: #ffd966;">Getting Started </span></h3>
Current overview of my configuration. Using an 8Gig SDCard. I downloaded these items.<br />
<ul>
<li>You will need <a href="http://sourceforge.net/projects/win32diskimager/" rel="nofollow" target="_blank">Win32DiskImager</a> to put the image on your SDCard. </li>
<li>I used Debian Wheezy for my Raspberry Pi <a href="http://www.raspberrypi.org/downloads" rel="nofollow" target="_blank">Download Debian Wheezy</a>. build 2013-02-09-wheezy-raspbian.zip.</li>
</ul>
After you setup this you many choices to connect to your RPi. I choose to use SSH to do most of my configuration remotely. <span style="color: #e06666;">Notice:</span> RPi does not have iptables installed by default so I wouldn't connect your RPi direct to the internet without going through installing iptables.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgaTbAjErHFQKY8qwCSDMu-JbdD_fBSyAwDFfs0MPp9Vj5vArMmVGXKF6iv_uZNBmyvLiILXbAXmtZG_8M8OoPPtOykZf5MZRrDT7TTJdn4K6QyAY_a0pDluwyQ_LlIU4th14qws-QwJT4w/s1600/RPi.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img alt="Raspberry Pi" border="0" height="137" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgaTbAjErHFQKY8qwCSDMu-JbdD_fBSyAwDFfs0MPp9Vj5vArMmVGXKF6iv_uZNBmyvLiILXbAXmtZG_8M8OoPPtOykZf5MZRrDT7TTJdn4K6QyAY_a0pDluwyQ_LlIU4th14qws-QwJT4w/s200/RPi.jpg" title="" width="200" /></a></div>
<h3 class="separator" style="clear: both; text-align: left;">
<span style="color: #ffd966;"><b>Setting Static IP</b></span></h3>
<div class="separator" style="clear: both; text-align: left;">
First off you will probably want to set a static IP address to your RPi for your web service and this will aid the connection for SSH later.</div>
We will start using the built-in GUI for this basic task then move on to SSH.<br />
<ol><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjG4I-ZI7p8UZjWNeqNeHvoScJ_RJbTDclGELu0Hjh-S0mhBMzS6tx0_vlgRZDIFcDvtNqnAh68clEHJPGERpF_-j4Zqjb9aVA2QqLgq5D2Xj92j0JX1a3hCDEVdSjWjhJRvEZ1SCcz_GGq/s1600/StaticNetwork.jpg" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"><img alt="Raspberry Pi Static IP" border="0" height="240" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjG4I-ZI7p8UZjWNeqNeHvoScJ_RJbTDclGELu0Hjh-S0mhBMzS6tx0_vlgRZDIFcDvtNqnAh68clEHJPGERpF_-j4Zqjb9aVA2QqLgq5D2Xj92j0JX1a3hCDEVdSjWjhJRvEZ1SCcz_GGq/s400/StaticNetwork.jpg" title="" width="400" /></a>
<li>Open LXTerminal at the prompt type pi@raspberrypi ~ $ <b>sudo nano /etc/network/interfaces</b></li>
<li>Edit line "iface eth0 inet dhcp" change line to "iface eth0 inet static"</li>
<li>Add these lines below "iface eth0 inet static"</li>
</ol>
<ul style="margin-left: 40px;">
<li>address 192.168.40.20 # This is your ip static address for you RPi</li>
<li>netmask 255.255.255.0</li>
<li>network 192.168.40.0</li>
<li>broadcast 192.168.40.255</li>
<li>gateway 192.168.40.1 # This assumes your gateway (router) to the internet is at .1</li>
</ul>
<div style="clear: both; text-align: left;">
</div>
<div style="clear: both; text-align: left;">
Here is our output now press ctrl+o then press Enter to save the file. Then press ctrl+x to exit.</div>
<div class="separator" style="clear: both; text-align: left;">
At the console prompt type "sudo reboot" now while our RPi is rebooting lets get our SSH client (Putty) software. <a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html" rel="nofollow" target="_blank">Download Putty here</a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<h3 class="separator" style="clear: both; text-align: left;">
</h3>
<br />
<h3 class="separator" style="clear: both; text-align: left;">
<span style="color: #ffd966;">Connecting to RPi via SSH</span></h3>
<div class="separator" style="clear: both; text-align: left;">
Open Putty</div>
<ul><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhZHKmiSCIDIIyRhJOGtx_Ru_b9KzEPPyj5nsEcdgV4R43921IjlRd-xBduL0BWgbaw9fNFge9Hezl_H6F7ne8bzbXNXx-oaMqTb3BAt-QpWU7j3WgaDjTnl-3m8ldfZPDC7FFBxHvPMAQ3/s1600/SSH+Connection.jpg" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"><img alt="Raspberry Pi SSH connection" border="0" height="251" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhZHKmiSCIDIIyRhJOGtx_Ru_b9KzEPPyj5nsEcdgV4R43921IjlRd-xBduL0BWgbaw9fNFge9Hezl_H6F7ne8bzbXNXx-oaMqTb3BAt-QpWU7j3WgaDjTnl-3m8ldfZPDC7FFBxHvPMAQ3/s400/SSH+Connection.jpg" title="" width="400" /></a>
<li>In the Host Name (or IP address) enter your IP address example: 192.168.40.20 or whatever you gave your RPi. </li>
<li>Under Saved Sessions type RPi and click Save. </li>
<li>You will now have faster access to your RPi via SSH. Click Open. </li>
<li>You will now be prompted for Login as: type "pi" press Enter. At pi@192.168.40.20's password: type "raspberry" press Enter.</li>
</ul>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div style="clear: both; text-align: left;">
<h3>
<span style="color: #ffd966;">Download and build our nginx package</span></h3>
We are going to setup our environment to take our new packages and have it build our packages.<br />
<ol><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjIkUm6vmyOYtiRNWEJEVfIkGZWDmxsfvexCb0gXRxrtVDanCAY2FNZ-YJE9zArr7xUdEGdsETaYUTzWUvX186Y042zXB-iDHp6HsfWB__d2Rfi1Rt1kOdNdMsIMEqnHBQgmLANvZSZYFsV/s1600/Source+Locations.jpg" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"><img alt="Raspberry Pi package sources list" border="0" height="230" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjIkUm6vmyOYtiRNWEJEVfIkGZWDmxsfvexCb0gXRxrtVDanCAY2FNZ-YJE9zArr7xUdEGdsETaYUTzWUvX186Y042zXB-iDHp6HsfWB__d2Rfi1Rt1kOdNdMsIMEqnHBQgmLANvZSZYFsV/s400/Source+Locations.jpg" title="" width="400" /></a>
<li>Type "cd /etc/apt". press Enter. We are going to add the source download location.</li>
<li>Type "sudo nano sources.list". press Enter. We have to add lines here for the source.</li>
<li>On a new line enter these lines.
</li>
<ul style="margin-left: 40px;">
<li> Type "deb http://nginx.org/packages/debian/ squeeze nginx". press Enter.</li>
<li> Type "deb-src "http://nginx.org/packages/debian/ squeeze nginx"</li>
<li>Type "ctrl+o then ctrl+x to save the file. </li>
</ul>
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiU0kpkeZpikOJalg3Stz0wywKlFUcrlBaumnvYfMJ90vwNtJ41gY_3MfpriVZAtIrTLESxchsFfARMaILNO-gY5aIDAXo_9BOT7zKYzGBdQZJ8zNNMbAQi6bxmQ0kTYLe2V1VSjyNCyxWA/s1600/Downloaded+Package.jpg" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"><img alt="Download nginx source code" border="0" height="230" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiU0kpkeZpikOJalg3Stz0wywKlFUcrlBaumnvYfMJ90vwNtJ41gY_3MfpriVZAtIrTLESxchsFfARMaILNO-gY5aIDAXo_9BOT7zKYzGBdQZJ8zNNMbAQi6bxmQ0kTYLe2V1VSjyNCyxWA/s400/Downloaded+Package.jpg" title="" width="400" /></a>
<li>Type "cd /tmp". press Enter. We are moving into our root temp directory to build our packages in.</li>
<li>Type "<span class="kw2">sudo apt-get build-dep</span> nginx". press Enter. This will download all dependencies for nginx.</li>
<li>Type "<span class="kw2">sudo apt-get <span class="kw3">source</span></span> nginx". press Enter. This will download the source for nginx.
</li>
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjDRl_jJzZcqQi9AoOA2KCEOQLDtdKp52KbY8GAM7VTWO3THW_stf-3b0WuX3JVrboaBYwjkSJIheB4yGtJ7DTu-uHGd9s5H-zJV5XzgfWtBtJOqHfkbCVj07hjbTCQ3lmeoFk11EZHkdFw/s1600/Compiling.jpg" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"><img alt="Compile nginx 1.4.1 source code for Raspberry Pi" border="0" height="375" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjDRl_jJzZcqQi9AoOA2KCEOQLDtdKp52KbY8GAM7VTWO3THW_stf-3b0WuX3JVrboaBYwjkSJIheB4yGtJ7DTu-uHGd9s5H-zJV5XzgfWtBtJOqHfkbCVj07hjbTCQ3lmeoFk11EZHkdFw/s400/Compiling.jpg" title="" width="400" /></a>
<li>Type "<span class="kw3">cd</span> <span class="sy0">/</span>tmp<span class="sy0">/</span>nginx-1.4.1 <span class="sy0">&& sudo</span> dpkg-buildpackage <span class="re5">-uc</span> <span class="re5">-b</span><span class="re5">". press Enter.</span> <span style="color: #e06666;">This process will take a seriously long time. It is building the full install package.
</span></li>
</ol>
We have now completed our download and compiled our package. Time to install the package.<br />
<br />
<h3>
<span style="color: #ffd966;">Install our built package</span></h3>
We have now come a long way to get exactly what you need to get a current version of nginx build for your Raspberry Pi. Lets finish the with a quick install. <br />
<ol>
<li>Stop the exiting service! Type "sudo service nginx stop". press Enter. </li>
<li>Remove previous package nginx if it exists Type "sudo apt-get remove nginx". press Enter</li>
<li>Review the data in the package Type "dpkg-deb <span class="re5">-I</span> /tmp/<span class="sy0"></span>nginx_1.4.1-1~squeeze_armhf.deb". press Enter.</li>
<li>To instal the package Type "<span class="kw2">sudo dpkg</span> <span class="re5">-i</span> <span class="sy0">/</span>tmp<span class="sy0">/</span>nginx_1.4.1-1~squeeze_armhf.deb". press Enter (If this fails see the known issues section.)</li>
<li>Type "sudo reboot" </li>
</ol>
FYI. The location to the index.html file is "/usr/share/nginx/www" <br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjbMUFHWqFFDeBhcLc9P_etgb32Nk6V4kRqXFU0snUkFcyek0N1Jo2cnj6tKAanDStZHeDuXtX-nZBJwXa6T3J633ISbmmURsZzfeAL76DQGx9tjWwwEolYFeZFGHukSxEh0T-YBjQK6EDw/s1600/Finished.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img alt="Raspberry Pi nginx 1.4.1 Installed" border="0" height="358" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjbMUFHWqFFDeBhcLc9P_etgb32Nk6V4kRqXFU0snUkFcyek0N1Jo2cnj6tKAanDStZHeDuXtX-nZBJwXa6T3J633ISbmmURsZzfeAL76DQGx9tjWwwEolYFeZFGHukSxEh0T-YBjQK6EDw/s640/Finished.jpg" title="" width="640" /></a></div>
<h3>
<span style="color: #ffd966;">Known Issues </span></h3>
Fail to install stating previous install files still exist.<br />
<ol>
<li>The not so graceful way Type "<span class="kw2">sudo dpkg</span> <span class="re5">-i</span> --force-overwrite /tmp<span class="sy0">/</span>nginx_1.4.1-1~squeeze_armhf.deb" </li>
</ol>
</div>
Doug Farrellhttp://www.blogger.com/profile/00369136679265053681noreply@blogger.com3