<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;">Squid apparently is not well suited to serve up cached pages when no internet access is</span></font><div><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;">available. It was recommended that I use&nbsp;</span></font><a href="http://www.gedanken.demon.co.uk/wwwoffle/"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;">WWWOFFLE</span></font></a><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;">&nbsp;for this situation. Here is the</span></font></div><div><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;">process I used to get it installed and running on my 0.6 XS server:</span></font><div><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;"><br></span></font><div><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;">- Make sure that squid is turned off</span></font></div><div><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;">        </span></font></span><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;">&gt;&nbsp;/etc/sysconfig/olpc-scripts/TURN_SQUID_OFF</span></font></div><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;">        </span></font></span><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;">&gt;&nbsp;service iptables restart</span></font><div><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;"><br></span></font></div><div><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;">- Create a directory for downloads (optional) and download &nbsp;and install the wwwoffle file</span></font></div><div><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;">        </span></font></span><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;">&gt; mkdir /downloads</span></font></div><div><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;">        </span></font></span><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;">&gt; cd /downloads</span></font></div><div><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;">        </span></font></span><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;">&gt;&nbsp;wget <a href="http://dl.atrpms.net/all/wwwoffle-2.8b-2.0.1.el5.i386.rpm">http://dl.atrpms.net/all/wwwoffle-2.8b-2.0.1.el5.i386.rpm</a></span></font></div><div><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;">        </span></font></span><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;">&gt; yum --nogpgcheck localinstall /downloads/wwwoffle-2.8b-2.0.1.el5.i386.rpm</span></font></div><div><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;"><br></span></font></div><div><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;">- When the installation finishes you need edit the wwwoffle.conf file to configure it for the XS</span></font></div><div><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;">        </span></font></span><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;">&gt;ed /etc/wwwoffle.conf</span></font></div><div><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;"><br></span></font></div><div><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;">- Change the line " http-port = &nbsp; &nbsp; 8080" to " http-port = &nbsp; &nbsp; 3128" using the</span></font></div><div><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;">&nbsp;&nbsp;search "/" and change "c" commands as follows:</span></font></div><div><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;">        </span></font></span><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;">/http-port &nbsp; / &nbsp; &nbsp; (search till you get to the line " http-port = &nbsp; &nbsp; 8080")</span></font></div><div><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;">        </span></font></span><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;">c</span></font></div><div><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;">        </span></font></span><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;">&nbsp;http-port = &nbsp; &nbsp;3128</span></font></div><div><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;">        </span></font></span><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;">^c &nbsp; &nbsp; &nbsp; (&lt;control-c&gt; stops the changing)</span></font></div><div><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;"><br></span></font></div><div><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;">- In a similar manner search for and change the following in the LocalHost section:</span></font></div><div><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;">        </span></font></span><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;">" localhost" to "<a href="http://YourDomain.org">YourDomain.org</a>" &nbsp; &nbsp; &nbsp; &nbsp;(In my case this is "<a href="http://asilong.org">asilong.org</a>")</span></font></div><div><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;"><br></span></font></div><div><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;">- Add a line in the "LocalNet" section to get:</span></font></div><div><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;">        </span></font></span><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;">LocalNet</span></font></div><div><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;">        </span></font></span><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;">{</span></font></div><div><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;">        </span></font></span><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;">&nbsp;*.YourDomain.org &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (In my case this is "*.asilong.org")</span></font></div><div><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;"><br></span></font></div><div><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;">- Add a line in the "AllowConnectedHosts" section to get:</span></font></div><div><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;">        </span></font></span><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;">AllowedConnectedHosts</span></font></div><div><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;">        </span></font></span><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;">{</span></font></div><div><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;">        </span></font></span><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;">&nbsp;172.18.96.* &nbsp; &nbsp; &nbsp; (Add any other AP IP groups as needed)</span></font></div><div><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;"><br></span></font></div><div><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;">- Write the changes "w" to save them and quit the editor "q"</span></font></div><div><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;">        </span></font></span><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;">w</span></font></div><div><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;">        </span></font></span><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;">q</span></font></div><div><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;"><br></span></font></div><div><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;">- Start the wwwoffle daemon</span></font></div><div><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;">        </span></font></span><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;">&gt;&nbsp;wwwoffled -c /etc/wwwoffle.conf</span></font></div><div><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;">        </span></font></span><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;">&gt;&nbsp;wwwoffle -online &nbsp; &nbsp; (For when your internet connection is online)</span></font></div><div><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;">        </span></font></span><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;">&gt;&nbsp;wwwoffle -offline &nbsp; &nbsp; (For when your internet connection is offline)</span></font></div><div><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;"><br></span></font></div><div><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;">- Turn your XO&nbsp;</span></font><a href="http://wiki.laptop.org/go/Wifi_Connectivity"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;">proxy settings on</span></font></a><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;">&nbsp;using Browse and going to the URL <a href="about:config">about:config</a></span></font></div><div><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;">- filter the word "proxy" and double-click to adjust the settings to:</span></font></div><div><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;">        </span></font></span><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;">network.proxy.http</span></font><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;">                </span></font></span><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;">(172.18.0.1)</span></font></div><div><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;">        </span></font></span><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;">network.proxy.http_port</span></font><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;">        </span></font></span><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;">(3128)</span></font></div><div><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;">        </span></font></span><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;">network.proxy.type</span></font><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;">                </span></font></span><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;">(1)</span></font></div><div><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;"><br></span></font></div><div><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;">Teachers can now download pages of interest and then students can access them</span></font></div><div><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;">quickly, even if the server has no internet connection simply by putting wwwoffle -offline.</span></font></div><div><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;"><br></span></font></div><div>Give this a try if your internet service is intermittent, or you are paying by the GB for</div><div>your&nbsp;data&nbsp;download.</div><div><br></div><div>Andy</div><div><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;">&nbsp;</span></font></div><div><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;"><br></span></font></div><div><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;"><br></span></font></div><!--StartFragment--><!--EndFragment-->



<div><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;"><br></span></font></div><div><br></div></div></div></body></html>