netconfig spearated out

This commit is contained in:
Philip Sargent 2023-03-26 19:48:23 +01:00 committed by Wookey
parent 74f249fe69
commit 5a33f5bce9
3 changed files with 120 additions and 74 deletions

View File

@ -42,14 +42,16 @@ Gasthof campsite reception.
<h3>Expo laptop</h3>
<p>The primary <em>Expo laptop</em> in the tatty hut is a 2011 Dell Latitude E4200 laptop (on loan from Philip
Sargent) which is connected to the router by a cable (but not by WiFi as it needs an updated driver fix). It
also has an external numberpad as a couple of vital keys are dead
<p>The primary <em>Expo laptop</em> in the tatty hut is a 2011 Dell Latitude E4200 laptop 'Crowley' (on loan from Philip
Sargent) which is connected to the hut network by a cable. It
also has an external numberpad available as a couple of vital keys are dead
(e.g. down-arrow, del - it has a new keyboard in 2023 but the contacts on the ribbon cable need cleaning).
<p>The <em>Expo laptop</em> runs Linux [Cinnamon/Debian] and is configured as both
<p>This <em>Expo laptop</em> runs Linux [Cinnamon/Debian] and is configured as both
an <a href="surveylaptop.html"><em>Expo survey laptop</em></a> with Tunnel and Therion and as an
<a href="#bulk"><em>Expo bulk update laptop</em></a>.
<figure class="onright">
<a href="/years/2018/training-weekends.html#nerding"><img width= 250 src="/years/2018/blogimages/emzyUBQm.jpg"></a>
<br><figcaption>Training weekend laptop in 2018<br />this is much smarter then the expo laptops</figcaption></figure>
<p>It is mostly used for:
<ul>
<li>Typing in survey data
@ -60,109 +62,66 @@ which can actually be done using any internet browser or a phone.
<p>Any laptop or phone can connect to the server via the "tattyhut" WiFi and,
with some configuration, can be set up to do all those things too. New expoers
are advised to use the <em>Expo laptop</em> first to see how it all works.</p>
are advised to use an <em>Expo laptop</em> first to see how it all works.</p>
<p>The laptop is usually connected to an extra LCD screen so that you can see surveys more easily as the laptop itself is small.
<p>The laptop is usually positioned permanently on the unused stove and is connected by ethernet cable to the hut network. It is connected to an extra LCD screen and external full-size keyboard (where all the keys do work) and mouse. The bigger screen is so that you can see surveys more easily as the laptop itself is small.
<P>Through the miracle of the distributed version control system, everyone can edit the
data on multiple laptops at the same time and it should all get merged.</p>
<p>At the end of expo we don't need to bring the <em>Expo laptop</em> back back to the UK
(though we will, as we will want to do operating system updates during the year and maybe fix that keyboard) as all the caving data updates are continuously
(though we will, as we will want to do operating system updates during the year) as all the caving data updates are continuously
synchronised with the public server expo.survex.com during the expo.</p>
<h4 id="bulk">Bulk updates</h4>
<p>For experienced expo surveyers the <em>Expo laptop</em> is also set up as an
<a href="bulkupdatelaptop.html"><em>Expo bulk update laptop</em></a> with file-transfer and version control capability to the expo server. New expoers should use the web forms, which work from any browser on any laptop.
<p>You can
<p>Once you are familiar with the <a href="upload-simple.html">uploading forms</a> and know how to use the system, you can
configure your own laptop to do <a href="bulkupdatelaptop.html">bulk upload</a> of many files and
manage the version control yourself, but
initially it is easier to use the <em>Expo laptop</em> as the software is already set up (cryptographic key
exchange etc. is pre-configured). </p>
<figure class="onright">
<a href="/years/2018/training-weekends.html#nerding"><img width= 250 src="/years/2018/blogimages/emzyUBQm.jpg"></a>
<br><figcaption>Training weekend laptop in 2018</figcaption></figure>
<div class="onright">
<figure>
<a href="../l/hut-cables.html"><img width=200 src="../i/acer-blue-aspire-one-netbook.jpg"></a>
<br><figcaption>AA1 netbook<br /> sits high up out of reach<br />
(ours is less shiny)</figcaption>
</figure>
</div>
<h3>Printing and Scanning</h3>
We have A4 printer and scanner attached via usb cables and a usb hub to the <em>Expo laptop</em>.
In 2018 we also connected the printer to the router with an ethernet cable and this made things more reliable.
In 2018 we also connected the printer to the Netgear router with an ethernet cable and this made things more reliable.
Configuring the scanner to be used via WiFi is yet to be done, but the printer is "shared" by the
<em>Expo laptop</em> and so can be used by any laptop. (The printer has WiFi itself and so should be useable
directly but we haven't got this configured properly yet.) Use a usb stick to transfer files for printing
if you can't get your own laptop or phone to work with the printer.
<h3 id="network">The Expo Laptops: Crowley's Friend: Aziraphale</h3>
<p>The <i>expo laptop</i> is called "Crowley". Crowley was rather too ill to be useful during the 2022 expo (being left in the potato hut for 3 years was not a healthy experience) but is now feeling much better... apart from the WiFi which died in typical fashion just 10 minutes before a training session (a software driver update issue, but Crowley is connected to the ethernet cable so this is not vital).
<p>The <i>expo laptop</i> is called "Crowley". Crowley was rather too ill to be useful during the 2022 expo (being left in the potato hut for 3 years was not a healthy experience) but is now feeling much better... apart from the WiFi which needs a software driver update, but as Crowley is connected to the ethernet cable this is not vital.
<p>In 2023 we will have another general-use laptop (it was also on expo in 2019). This is not connected by any cabling and just uses WiFi. Like the <i>expo laptop</i> it is running Debian and has the same set of software installed
(survex/aven, tunnelx, therion, git etc.) and you login to it using the username "expo" and the usual cavey:beery password. It has the identical[Cinnamon/Debian] configuration and survey software installed as Crowley. It is a big, heavy R61 14-inch Thinkpad on loan from Michael Sargent and it is called "Aziraphale". Azirophale has a big enough solid-state drive (128GB, new for 2023) to hold <var>/expofiles/</var> (but note that Azirophale's SD code slot doesn't work).
(survex/aven, tunnelx, therion, git etc.) and you login to it using the username "expo" and the usual cavey:beery password. It has the identical[Cinnamon/Debian] configuration and survey software installed as Crowley. It is a big, heavy R61 14-inch Thinkpad on loan from Michael Sargent and it is called "Aziraphale". (Note that Azirophale's SD code slot doesn't work).
<p>Both laptops have had RAM upgrades and solid-state disc upgrades over winter 2022/23. They each hold a local complete copy of <em>expofiles</em> and the <em>expoweb, loser, drawings and troggle</em> <a href="repos.html">repositories</a> but do not have the troggle software configured to run locally, though this could be enabled if necessary.
<div class="onright">
<figure>
<a href="../i/acer-blue-aspire-one-netbook.jpg"><img width=200 src="../i/acer-blue-aspire-one-netbook.jpg"></a>
<br><figcaption>AA1 netbook - ours is less shiny</figcaption>
<figure class="onright" >
<a href="../l/hut-cables.html"><img border=1 width=250 src="../t/hut-cables-small.jpg"></a>
<br><figcaption>Hut Network<br />click to enlarge <br />and to read instructions</figcaption>
</figure>
</div>
<h3 id="network">Networking Hardware - experts only</h3>
<p>The networking hardware is an Acer Aspire One netbook which keeps us logged in to the Gasthof and does firewalling
to provide local connectivity and local WiFi. The antenna which we use to connect to the Staudnwirt WiFi
is a dual antenna WiFi tiny black box on a small shelf high above the sink/stove area and connected via a usb cable to the tiny dark-blue Acer netbook 'tclaspire3'. In 2023 there may be no separate router: routing may all be done by this Acer notebook [PENDING UPDATE - correct as of 20 March 2023].</p>
<div class="onright">
<figure>
<a href="../l/hut-cables.html"><img src="../t/hut-cables-small.jpg"></a>
<br><figcaption>Hut Network - click to enlarge</figcaption>
</figure>
</div>
potato-hut-network.jpg
<h3 id="network">Networking Hardware - wiring up</h3>
<p>The networking hardware is three boxes: an Alfa high-gain antenna device, an Acer Aspire One netbook and a Netgear WRT4000 ethernet box. These keep us logged in to the Gasthof to provide WiFi in the hut.
<p>As normal WiFi does not reach across the road to the Gasthof, we have
a high-power dual antenna WiFi tiny black box (Alfa 036ACH) on a small shelf high above the sink/stove area and connected via a usb cable to the tiny dark-blue Acer netbook 'tclaspire3' which is connected by ethernet cable to the Netgear box. It is the Netgear box which provides the WiFi in the hut. </p>
<p>Note that we have <a href="../l/hut-cables.html">4 different</a> power-supply bricks.
<p>The potato hut WiFi is running DHCP and allocating IP addresses of the form 192.168.1.x where x is a number between 11 and 99 .
<p>The <em>Expo laptops</em> have a dynamic local address of this form, as does any other laptop connecting to this WiFi.
<p>The Gasthof WiFi - which you can still use - is "StaudnGast" and has no WiFi password but there is a login webpage. It allocates IP addresses in the range
192.168.2.x etc. The antenna is now on the first-floor balcony within
sight of the tatty hut window.
<p>The Acer Aspire One ("tclaspire3") is on a static address <a href="http://192.168.1.100/">192.168.1.100</a> on WiFi but <a href="http://192.168.200.100/">192.168.200.100</a> on the ethernet cable.
This is the address to use for configuring it using ssh when everything else has failed. So to manage the
connection to the Gasthof WiFi you would use
<pre>
ssh expo@192.168.200.100
</pre>
to run Mark Shinwell's script (re-edited by Sam 2019)
<pre>/root/fakenet/runfakenet
</pre>
This used to need running once or twice a day when the internet stops working, but it was radically fettled in 2022 and so should be much more reliable.
Sometimes you may have to walk over to the blue Acer Aspire netbook and run this script directly by typing on its keyboard
as the network has collapsed so badly that <span style="font-family:monospace">ssh</span> doesn't work.
<p>The netbook needs to have its persistent networking set up correctly <i>in addition to the script</i>. This is the
<b>wicd</b> gui program that has an icon in the top-right of the sceen in the system panel. (Or search in all applications in the Internet section
for the wicd application). Set the checkboxes so that the netbook does connect to any network except the Staudingast wifi network,
and also tick the 'automatica;lly reconnect' checkbox for the "StaudnGast" network.
<h3>Historical Note</h3>
<p>Prior to 2018 we used to run an unconnected local network with our own DNS domain
name "potato.hut", our own server holding all the website and survey data, and published WiFi as SSID "tattyhut".
Updates to the rest of the world were done by taking an up-to-date laptop which had been in
the tatty hut to a real internet connection and
pushing the changes to the distributed version control system on
<span style="font-family:monospace">expo.survex.com</span> to be merged.
</p>
<p>In 2017 the hard-drive on our server died which triggered the general reconfiguration
to connect the tattyhut to the internet continuously and not to have our own local server. This coincided with
a much-improved WiFi service at the Gasthof.
<p>In 2018 and 2019 we had good Internet access at basecamp, but the router was returned to its owner during Covid and in 2022 Wifi reception from the gasthaus was poor. A new Wifi device (not a router, just a dual-antennae receiver) is to be used in 2023, pending configuration with the acer aspire netbook, which we hope will improve everything to how it was in 2019.
<h3 id="network">Networking Software - configuration nerding</h3>
<p>This is now described on <a href="netconfig.html">a separate page</a>.
<hr />
Go on to: <a href="computing/onlinesystems.html">Expo online systems</a><br />
Go on to: <a href="onlinesystems.html">Expo online systems</a><br />
<hr /></body></body></html>

View File

@ -0,0 +1,81 @@
<!DOCTYPE html>
<html>
<head>
<title>CUCC Expedition Handbook: Hut network</title>
<link rel="stylesheet" type="text/css" href="../css/main2.css" />
</head>
<body>
<h2 id="tophead">CUCC Expedition Handbook</h2>
<h1>Hut Network Configuration</h1>
<div align=center>
<p>If the internet is not working, the <b>first thing to check</b> is that<br>the black WiFi antennae are
still upright and have not been knocked sideways.
</div>
<br>
<h2>Networking Software - configuration nerding</h2>
<p>First, make sure you understand the physical cabling:
<figure align=center >
<a href="../l/hut-cables.html"><img border=1 src="../t/hut-cables-small.jpg"></a>
<br><figcaption>Hut Network - click for instructions</figcaption>
</figure>
<h2>ALL BEING RE-WRITTEN MARCH 2023</h2>
<strike>
<p>The potato hut WiFi is running DHCP and allocating IP addresses of the form 192.168.1.x where x is a number between 11 and 99 .
<p>The <em>Expo laptops</em> have a dynamic local address of this form, as does any other laptop connecting to this WiFi.
<p>The Gasthof WiFi - which you can still use - is "StaudnGast" and has no WiFi password but there is a login webpage. It allocates IP addresses in the range
192.168.2.x etc. The antenna is now on the first-floor balcony within
sight of the tatty hut window.
<p>The Acer Aspire One ("tclaspire3") is on a static address <a href="http://192.168.1.100/">192.168.1.100</a> on WiFi but <a href="http://192.168.200.100/">192.168.200.100</a> on the ethernet cable.
This is the address to use for configuring it using ssh when everything else has failed. So to manage the
connection to the Gasthof WiFi you would use
<pre>
ssh expo@192.168.200.100
</pre>
to run Mark Shinwell's script (re-edited by Sam 2019)
<pre>/root/fakenet/runfakenet
</pre>
This used to need running once or twice a day when the internet stops working, but it was radically fettled in 2022 and so should be much more reliable.
Sometimes you may have to walk over to the blue Acer Aspire netbook and run this script directly by typing on its keyboard
as the network has collapsed so badly that <span style="font-family:monospace">ssh</span> doesn't work.
<p>The netbook needs to have its persistent networking set up correctly <i>in addition to the script</i>. This is the
<b>wicd</b> gui program that has an icon in the top-right of the sceen in the system panel. (Or search in all applications in the Internet section
for the wicd application). Set the checkboxes so that the netbook does connect to any network except the Staudingast wifi network,
and also tick the 'automatica;lly reconnect' checkbox for the "StaudnGast" network.
</strike>
<h3>Historical Notes</h3>
<p>Prior to 2018 we used to run an unconnected local network with our own DNS domain
name "potato.hut", our own server holding all the website and survey data, and published WiFi as SSID "tattyhut".
Updates to the rest of the world were done by taking an up-to-date laptop which had been in
the tatty hut to a real internet connection and
pushing the changes to the distributed version control system on
<span style="font-family:monospace">expo.survex.com</span> to be merged.
</p>
<p>In 2017 the hard-drive on our server died which triggered the general reconfiguration
to connect the tattyhut to the internet continuously and not to have our own local server. This coincided with
a much-improved WiFi service at the Gasthof.
<p>In 2018 and 2019 we had good Internet access at basecamp, but the high-gain system was returned to its owner during Covid.
<p>In 2022 Wifi reception from the gasthaus was very poor. The connection script was improved so that dropped connections were restored more quickly. However the basic bandwidth with a cheap antenna was not enough.
<p>In 2023 a new Wifi device (the Alfa) should restore decent connectivity. We hope this will improve everything to how it was in 2019.
<hr />
Go back to: <a href="computer.html">Basecamp computers</a><br />
Go on to: <a href="onlinesystems.html">Expo online systems</a><br />
<hr /></body></body></html>

View File

@ -21,7 +21,13 @@
<li>PURPLE - VGA video cable from laptop to free-standing LCD monitor
<li>GREEN - USB cables. NB the <a href="../i/alfa-awus036ach.jpg">ALFA Awus 036ACH</a> cable is a special one with extra power wires
</ul>
<p>There may <em>ALSO</em> be an ethernet cable between the printer and the Netgear ethernet/wifi device
<p>There may <em>ALSO</em> be an ethernet cable between the printer and the Netgear ethernet/wifi device<div class="onright">
<figure>
<a href="../i/acer-blue-aspire-one-netbook.jpg"><img width=200 src="../i/acer-blue-aspire-one-netbook.jpg"></a>
<br><figcaption>AA1 netbook<br /> sits high up out of reach</figcaption>
</figure>
</div>
<h3>Note there are FOUR (4) <em>different</em> power supply bricks</h3>
<ol>
<li>Powerbrick for Dell E4200 Crowley