<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 </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;"> 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;">> /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;">> 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 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;">> 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;">> 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;">> 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;">> 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;">>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 = 8080" to " http-port = 3128" using the</span></font></div><div><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;"> 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 / (search till you get to the line " http-port = 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;"> http-port = 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 (<control-c> 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>" (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;"> *.YourDomain.org (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;"> 172.18.96.* (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;">> 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;">> wwwoffle -online (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;">> wwwoffle -offline (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 </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;"> 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 data 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;"> </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>