expoweb/handbook/troggle/serverconfig.html
2022-03-19 20:05:54 +00:00

448 lines
24 KiB
HTML
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Handbook - Expo Server</title>
<link rel="stylesheet" type="text/css" href="../../css/main2.css" />
</head>
<body><style>body { background: #fff url(/images/style/bg-system.png) repeat-x 0 0 }</style>
<h2 id="tophead">CUCC Expedition Handbook: Server</h2>
<h1>The Expo server</h1>
<p>Troggle is the software which runs the the expo cave survey data management and website. It is not the only thing running on the expo server.
<h3 id="what">Server configuration: directory structure</a></h3>
<p>This is the folder structure of the repo <var>:expoweb:</var> which is also the root
of the website. Note that the webserver (apache) presents many more apparent folders, such as <var>expofiles</var>, than there are folders because that's what it and troggle do.
<p>In the list below only the <var>handbook</var> folder has been expanded. The <var>years</var> folder includes
42 subfolders from <var>1976</var> to <var>2019</var>.
<code><textarea id="folders" rows="30" cols="30">
expoweb (repo)
&boxvr;&HorizontalLine;&HorizontalLine; 1623
&boxvr;&HorizontalLine;&HorizontalLine; 1626
&boxvr;&HorizontalLine;&HorizontalLine; cave_data
&boxvr;&HorizontalLine;&HorizontalLine; css
&boxvr;&HorizontalLine;&HorizontalLine; documents
&boxvr;&HorizontalLine;&HorizontalLine; entrance_data
&boxvr;&HorizontalLine;&HorizontalLine; folk
&boxvr;&HorizontalLine;&HorizontalLine; gallery
&boxvr;&HorizontalLine;&HorizontalLine; handbook
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; computing
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; festering
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; i
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; l
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; putty
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; rig
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; survey
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; t
&boxv;   &boxur;&HorizontalLine;&HorizontalLine; troggle
&boxvr;&HorizontalLine;&HorizontalLine; images
&boxvr;&HorizontalLine;&HorizontalLine; map
&boxvr;&HorizontalLine;&HorizontalLine; maps
&boxvr;&HorizontalLine;&HorizontalLine; noinfo
&boxvr;&HorizontalLine;&HorizontalLine; others
&boxvr;&HorizontalLine;&HorizontalLine; pending
&boxvr;&HorizontalLine;&HorizontalLine; photos
&boxvr;&HorizontalLine;&HorizontalLine; piclinks
&boxvr;&HorizontalLine;&HorizontalLine; scripts
&boxvr;&HorizontalLine;&HorizontalLine; signup
&boxvr;&HorizontalLine;&HorizontalLine; templates
&boxvr;&HorizontalLine;&HorizontalLine; tinypix
&boxvr;&HorizontalLine;&HorizontalLine; topos
&boxur;&HorizontalLine;&HorizontalLine; years</textarea></code>
<p>The handbook illustrates the i/t/l idiom whereby an image file (i) is displayed with a paragraph of text as an HTML file (l) and there is a thumbnail image (t) which is included in another document, e.g. see <a href="../../1623/walkin.htm">the photographic guide to the walk from the toll road car park</a>.
<h4 id="css">CSS and HTML</a></h4>
<p>The <var>expoweb</var> repo contains all the HTML files and basic CSS files. The <var>troggle</var> repo contains the HTML templates, CSS for the troggle report pages generated dynamically and a copy of the CSS, thumbnail images and javascript for the Django admin package which has to be available under the url '/site_media/' (which resolves to expo/troggle/media/) for the admin system to work.
<p>
See the live report on which urls resolve to which actual folders at <a href="/pathsreport">pathsreport</a>.
<h3 id="what">Server configuration: software</a></h3>
<ul>
<li><b>apache webserver *</b>
<li><b>expofiles *</b>
<li><b>MySQL/MariaDB database *</b>
<li><a href="#xapian">xapian</a> (search function) - <a href="https://xapian.org/">xapian.org</a>. Wookey did this in 2020.
<li><a href="#kanboard">kanboard</a> (task planning) - <a href="https://kanboard.org/">kanboard.org</a>. Wookey did this in 2022.
<li><a href="#boe">boe</a> (bank of expo - not troggle)
<li><a href="#cgit">cgit</a> (live webpage showing git status of repos) - <a href="https://git.zx2c4.com/cgit/about/">qit.zx2c4.com/cgit</a>
<li>bins (used to regenerate the photo albums)
<li>packaged javascript
<li>cron
<li>Makefile (obsolete?)
<li><a href="#runserver">Running a test Troggle server</a>
</ul>
<b> * These are essential</b> to make troggle work at all.
<p>The server configuration scripts are in the file <var>troggle/debian/serversetup</var> and are also
documented with notes in <var>troggle/README.txt</var>. It is intended that the full documentation will
be copied here in due course.
<p>It is hoped that we will develop fully automated server setup scripts (such as are used by CUYC for their Django system)
<ul>
<li>to create a development server running locally on a personal machine
<li>to install the master system following a new operating system install on the public server
</ul>
<p>The folder structure on the server is as shown below. It is all
in the user folder for the user <var>expo</var> i.e. in
<br>/home/user/expo:
<code><textarea id="folders" rows="30" cols="40">
expo
&boxvr;&HorizontalLine;&HorizontalLine; boe
&boxv;   &boxur;&HorizontalLine;&HorizontalLine; ...
&boxvr;&HorizontalLine;&HorizontalLine; cuccfiles
&boxv;   &boxur;&HorizontalLine;&HorizontalLine; ...
&boxvr;&HorizontalLine;&HorizontalLine; loser (repo)
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; caves
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; caves-1623
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; caves-1624
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; caves-1626
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; caves-1627
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; docs
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; fixedpts
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; gpx
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; kataster
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; qms
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; routes
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; surface
&boxv;   &boxur;&HorizontalLine;&HorizontalLine; template
&boxvr;&HorizontalLine;&HorizontalLine; drawings (repo)
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; 107
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; 161
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; 2010-03
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; 2011-01
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; 2014-ms-14
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; 2014-neo-01
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; 2014-sd-01
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; 2015-mf-06 Purple Lupin Cave
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; 2017-cucc-23
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; 2017-cucc-24
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; 2017-cucc-28
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; 2017-gmh
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; 2017-pw-01
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; 204
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; 234
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; 264-and-258
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; minorCavesNear204
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; oldframes
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; oldframes2016
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; styles
&boxv;   &boxur;&HorizontalLine;&HorizontalLine; therion
&boxvr;&HorizontalLine;&HorizontalLine; expoweb (repo)
&boxv; &boxur;&HorizontalLine;&HorizontalLine; [see above]
&boxvr;&HorizontalLine;&HorizontalLine; troggle (repo)
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; core
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; debian
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; docker
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; docsEtc
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; export
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; flatpages
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; helper
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; imagekit
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; media
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; parsers
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; profiles
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; templates
&boxv;   &boxur;&HorizontalLine;&HorizontalLine; wiki
&boxvr;&HorizontalLine;&HorizontalLine; static
&boxv; &boxur;&HorizontalLine;&HorizontalLine; ...
&boxvr;&HorizontalLine;&HorizontalLine; repositories
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; cvs
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; git
&boxv;   &boxur;&HorizontalLine;&HorizontalLine; hg
&boxvr;&HorizontalLine;&HorizontalLine; expofiles
&boxv; &boxur;&HorizontalLine;&HorizontalLine; ...
&boxvr;&HorizontalLine;&HorizontalLine; expofiles-private
&boxv; &boxur;&HorizontalLine;&HorizontalLine; ...
&boxur;&HorizontalLine;&HorizontalLine; webphotos
&boxur;&HorizontalLine;&HorizontalLine; ...</textarea></code>
<h4 id="expofiles">expofiles</a></h3>
<p><var>expofiles</var> contains ~40GB of files which are published by the webserver but which are not parsed by troggle. 28GB of these are photographs in <var>/expofiles/photos/</var> and there are over 4GB of scanned images of surveys in <var>/expofiles/surveyscans/</var>. There is a cleaned, complete copy of the documentation for the <var>tunnelX</var> cave plan drawing package in <var>/expofiles/tunnelwiki/</var>.
<p>
<code><textarea id="folders" rows="30" cols="40">
expofiles
&boxvr;&HorizontalLine;&HorizontalLine; accounts
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; 2016
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; 2017
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; misery
&boxv;   &boxur;&HorizontalLine;&HorizontalLine; policy
&boxvr;&HorizontalLine;&HorizontalLine; aerial_photos
&boxvr;&HorizontalLine;&HorizontalLine; defaults
&boxvr;&HorizontalLine;&HorizontalLine; documents
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; 2014kataster_applications
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; 2020-expo-planning
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; DistoX
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; GPF
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; SAP
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; austria-1984
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; bierbook
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; cave_science_articles
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; excursions2018
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; grants
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; hardware
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; proc.ubss
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; surveying
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; troggle
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; tshirts
&boxv;   &boxur;&HorizontalLine;&HorizontalLine; website-link-checks
&boxvr;&HorizontalLine;&HorizontalLine; geotiffsurveys
&boxv;   &boxur;&HorizontalLine;&HorizontalLine; qgis-examples
&boxvr;&HorizontalLine;&HorizontalLine; geotiffsurveys_backup
&boxv;   &boxur;&HorizontalLine;&HorizontalLine; qgis-examples
&boxvr;&HorizontalLine;&HorizontalLine; gpslogs
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; 2017
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; 2018
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; 2019
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; OpenStreetMap
&boxv;   &boxur;&HorizontalLine;&HorizontalLine; essentials
&boxvr;&HorizontalLine;&HorizontalLine; location_maps
&boxvr;&HorizontalLine;&HorizontalLine; photos
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; 1978
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; 1981
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; 1982
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; 1983
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; 1997
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; 1999
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; 2004
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; 2005
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; 2007
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; 2008
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; 2009
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; 2010
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; 2011
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; 2012
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; 2013
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; 2014
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; 2015
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; 2016
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; 2017
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; 2018
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; 2019
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; OriginalPhotoCD-png
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; WinklerChapterPhotos
&boxv;   &boxur;&HorizontalLine;&HorizontalLine; kletteratlas
&boxvr;&HorizontalLine;&HorizontalLine; presentations
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; CroatiaTrip2019
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; HiddenEarth
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; SpeleoAustria
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; location_maps
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; misc_2018-2019
&boxv;   &boxur;&HorizontalLine;&HorizontalLine; test3js
&boxvr;&HorizontalLine;&HorizontalLine; qgis_projects
&boxvr;&HorizontalLine;&HorizontalLine; qgis_resources
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; centreline-data
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; country_borders
&boxv;   &boxur;&HorizontalLine;&HorizontalLine; terrain
&boxvr;&HorizontalLine;&HorizontalLine; rigging_topos
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; 107
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; 204
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; 258
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; 264
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; 76
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; rigging-guides-found-in-hut-2019
&boxv;   &boxur;&HorizontalLine;&HorizontalLine; rigging_topos2017-18
&boxvr;&HorizontalLine;&HorizontalLine; surveys
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; 107
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; 148
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; 161
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; 1987-02
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; 2004-01
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; 2004-03
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; 2007-71
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; 204
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; 234
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; 258
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; 258_and_264
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; 264
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; 267
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; 271
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; 40
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; 76
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; drafts
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; junk
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; minisurveys2012
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; minisurveys2014
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; minisurveys2016
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; minisurveys2017
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; minisurveys2018
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; overview
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; smkhs
&boxv;   &boxur;&HorizontalLine;&HorizontalLine; tunnocks
&boxvr;&HorizontalLine;&HorizontalLine; surveyscans
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; 1975
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; 1983
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; 1984
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; 1989LUSS
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; 1989surveybook
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; 1991surveybook
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; 1992-94Surveybookkh
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; 1994
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; 1995-96kh
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; 1996-1999NotKHbook
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; 1997-99kh
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; 1999
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; 2000
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; 2001
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; 2002
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; 2003
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; 2004
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; 2005
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; 2006
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; 2007
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; 2008
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; 2009
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; 2010
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; 2011
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; 2012
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; 2013
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; 2014
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; 2015
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; 2016
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; 2017
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; 2018
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; 2019
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; 2021
&boxv;   &boxur;&HorizontalLine;&HorizontalLine; 90Surveybookkh
&boxvr;&HorizontalLine;&HorizontalLine; terrain
&boxvr;&HorizontalLine;&HorizontalLine; training-info
&boxvr;&HorizontalLine;&HorizontalLine; tunnelwiki
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; pdf
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; skins
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; training-info
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; uploads
&boxv;   &boxur;&HorizontalLine;&HorizontalLine; wiki
&boxvr;&HorizontalLine;&HorizontalLine; uploads
&boxvr;&HorizontalLine;&HorizontalLine; video
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; 2004
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; 2007
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; 2009
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; 2010
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; 2011
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; 2012
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; 2013
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; 2014
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; 2016
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; 2017
&boxv;   &boxvr;&HorizontalLine;&HorizontalLine; 2018
&boxv;   &boxur;&HorizontalLine;&HorizontalLine; 2019
&boxur;&HorizontalLine;&HorizontalLine; writeups
&boxvr;&HorizontalLine;&HorizontalLine; 1992
&boxvr;&HorizontalLine;&HorizontalLine; 1993
&boxvr;&HorizontalLine;&HorizontalLine; 1994
&boxvr;&HorizontalLine;&HorizontalLine; 1999
&boxvr;&HorizontalLine;&HorizontalLine; 2000
&boxvr;&HorizontalLine;&HorizontalLine; 2003
&boxvr;&HorizontalLine;&HorizontalLine; 2007
&boxvr;&HorizontalLine;&HorizontalLine; 2008
&boxvr;&HorizontalLine;&HorizontalLine; 2009
&boxvr;&HorizontalLine;&HorizontalLine; 2010
&boxvr;&HorizontalLine;&HorizontalLine; 2011
&boxvr;&HorizontalLine;&HorizontalLine; 2012
&boxvr;&HorizontalLine;&HorizontalLine; 2013
&boxvr;&HorizontalLine;&HorizontalLine; 2014
&boxvr;&HorizontalLine;&HorizontalLine; 2015
&boxvr;&HorizontalLine;&HorizontalLine; 2016
&boxvr;&HorizontalLine;&HorizontalLine; 2017
&boxvr;&HorizontalLine;&HorizontalLine; 2018
&boxvr;&HorizontalLine;&HorizontalLine; 2019
&boxur;&HorizontalLine;&HorizontalLine; 2021</textarea></code>
<h3 id="js">Javascript</a></h3>
There are javascript packages installed directly on the operating system on the server, i.e. in<br>
<code>/usr/share/javascript</code>
which are used by some <var>expoweb</var> pages:
<ul>
<li><var>CaveScript</var> for showing 3D views of cave centreline data,
<li><var>CodeMirror</var> for syntax-colouring survex files
<li><var>openlayers</var> for geographic mapping integration, for out slippy map showing paths and entrances at <a href="/map/map.html">/map/map.html</a>
<li><var>leaflets</var> and experimental mapping test (only on /map/index-leaflet.html )
</ul>
These javascript packages are not documented but some are mentioned in <a href="troglaptop.html">the soft dev laptop</a> configuration.
<p>Currently installed on the server (October 2021) are the following javascript packages which are <em>not used at all by troggle or any of the expo website</em>:
<ul>
<li>jquery
<li>jquery-ui
<li>mootools
<li>sphinxdoc
<li>underscore
</ul>
<p>Presumably these are used by something else hosted on the server ? Anyway, if you are setting up a new troggle sever you don't need them.
<h3 id="xapian">Search: xapian</h3>
<p>Installed independently of troggle simply with <var>apt install xapian-omega</var> and
then configured into the troggle-generated menus in <var>css/main2.css</var>.
You can see it at the bottom of the top-left menu on this page and on nearly all pages of the handbook.
The function is
connected with an apache configuration
<code>ScriptAlias /search /usr/lib/cgi-bin/omega/omega</code> in <var>~expo/config/apache/expo.conf</var>.
Installed by Wookey in May 2020.
<h3 id="kanboard">Planning: kanboard</h3>
<p>This is installed on the server and accessed at <a href="/kanboard"><var>/kanboard</var></a> It is an open source
equivalent of the Trello kanban card task planning system. The 2022 expo uses
<a href="https://trello.com/b/WddB62HI/expo-jobs">Trello itself</a> (separate login required) but we intend to move to our own kanboard
from 2023.
<h3 id="boe">boe</h3>
<p>This is a perl script, and served by the webserver using the url apache configuration<pre><code>#bank of expo
#current expedition
ScriptAlias /boe /home/expo/boe/boc/boc.pl
&lt;Directory /home/expo/boe/boc&gt;
AddHandler cgi-script .pl
SetHandler cgi-script
Options +ExecCGI
Require all granted
&lt;/Directory&gt;</code></pre> in <var>~expo/config/apache/expo.conf</var>.
<p>Handbook documentation for its use is at <a href="../bankofexpo.html">The Bank of Expo</a>.
<h3 id="cgit">cgit - web interface to server git repos</h3>
<p>This is a compiled executable written in C which, like boe, is installed as an Apache CGI redirection.
The installation instructions are at <a href="https://git.zx2c4.com/cgit/tree/README">https://git.zx2c4.com/cgit/tree/README</a>
but we use the Debian package <a href="https://packages.debian.org/stable/cgit">https://packages.debian.org/stable/cgit</a>.
<h3>cron - automatically run tasks to schedule</h3>
<p>This is currently disabled in Feb. 2022. If you need anything that would be done frequently (e.g. bins) you currently have to run it manually.
<p>The server runs it's hourly, daily and weekly scripts using the anacron system. In
<var>~expo/config/cron/</var> on the server, there are <var>expo.hourly</var>
and <var>expo.daily</var> scripts and these are (or should be) launched at the appropriate times by
the server root from <var>/etc/crontab</var>. This is not obviously working on the server at present.
<h3 id="runserver">Running a test Troggle server</h3>
<p>
For high volume use, Troggle should be run using a web server like apache.
However, a quick way to get started is to use the development server built into Django.
This is limited though: directory redirection needs apache so CodeMirror and CaveView won't work as the url /javascript/ will not exist.
<p>
To do this, run
<code>
$ python manage.py runserver 8000 -v 3
</code>
from the troggle directory. This runs it on port 8000 so you see the website
at http://localhost:8000/
<p>
gunicorn also works. This runs with 9 workers (suitable for a 4-core processor,
-w takes n+1 where n is the number of cores of your processor):
<code>
$ gunicorn --reload -w 9 -b :8000 wsgi
</code>
<hr />
Return to: <a href="trogdesign.html">Troggle design and future implementations</a><br />
Return to: <a href="trogintro.html">Troggle intro</a><br />
Troggle index:
<a href="trogindex.html">Index of all troggle documents</a><br />
<hr />
</body>
</html>