diff --git a/handbook/computing/basiclaptop.html b/handbook/computing/basiclaptop.html index 1f527ecb0..afbc7c59f 100644 --- a/handbook/computing/basiclaptop.html +++ b/handbook/computing/basiclaptop.html @@ -105,8 +105,12 @@ careful when naming files and survex names and be full laptop instructions - - +
It is necessary to use scp or sftp to manage large collections of files in 'expofiles' + See Experts: Uploading files, + Uploading files and Uploading GPS tracks. + Only machines which have done the key-pair setup process can do scp, sftp or rsync. +
The main things you need to do to get set up are:
+ +Everyone has a phone pretty much, and everyone should have GPS enabled for safety. See the expo GPS configuration pages. +
There are several cave survey apps which run on a phone. We don't yet have a well documented way of using these +with the expo survey data workflow.
For a quicker, shorter guide to only the most basic setup, see the -
This is a complete list for doing software development of survex and tunnel
- (but not troggle) as well as accessing expo data and doing survey data reduction.
-This page needs to be edited so that the software development stuff is separated
-out into separate pages.
-So that the people who only want to do cave data stuff
-don't see a lot of complex stuff they don't need.
You can also use a phone to upload files and manage version control on the server. This is not the place to start, but if you are already doing this on your own laptop then these can be useful: +
You will already have configured your laptop to do all the basic stuff using the +basic Expo laptop guide. + + +
If you want to do software development instead, go to configuring a troggle development machine.
+
+This is an attempt at a complete set of optional software for using survex, tunnel, therion, photos and GPS tracks to document our caves: using the existing data archive and processing new survey data.
+
This page documents what else you might find useful if the basic laptop setup does not do what you need. + +
The list of software:
Nearly all our Austrian surveys have beeen produced using Tunnel (or were hand-drawn) but many smaller caves and some areas of SMKsystem are done with Therion because Therion does elevations and Tunnel doesn't. Expo has a policy decision on which to use: if it is an entirely new disconnected cave, then use Therion. If it is a passage in a cave where previously we used Tunnel, then use Tunnel. See also Comparison of Tunnel to Other Cave Software.
-Note that on a Debian/Ubuntu machine you should normally install the versions that come with the distro (i.e. install using 'apt install xxx', not be downloading things from the above sites
+Note that on a Debian/Ubuntu machine you should normally install the versions that come with the distro (i.e. install using 'apt install xxx', not be downloading things from the above sites
A short note about the phenomenon of VS code is in order. Not really for beginners but here are instructions for configuring it for python. In case you didn't know, by 2019 over half of all software developers used this editor for their Linux and Windows work and it is undoubtedly more now. -
Idiots guide to setting up git for expo + - PDF - Brendan's guide. Uses PuTTy and GitKraken. +
You need to register a key with the expo server to get upload (i.e. read/write) access. Do this first, Without it none of git, scp, ftp or rsync will work. You can do this entirely on your own if you have access to the expo laptop to upload and install the public key generated by your laptop.
On a Windows machine you will need to configure pageant (the putty authentication agent) to run at startup to load your key. Note that you are loading your private key, the .ppk file, into pageant and that this key never leaves your laptop.
-Idiots guide to setting up git for expo - - PDF - Brendan's guide. Uses PuTTy and GitKraken. -
The above gets the command-line PuTTY tools (ssd, sftp, pscp) running, but doesn't get rsync working. You might like to try this (untested).
+ +Full illustrated instructions:
@@ -144,52 +147,10 @@ to Installing Filezilla.The above gets the command-line PuTTY tools (ssd, sftp, pscp) running, but doesn't get rsync working. You might like to try this (untested).
+When using Windows please, please be excessively careful when naming files and survex names and be exceptionally careful when using rsync. -
The handbook has documents where it is necessary to use scp or sftp to manage large files in 'expofiles'. - See Experts: Uploading files, - Uploading files and Uploading GPS tracks. - Only machines which have done the key-pair setup process can do scp, sftp or rsync. -
- -We run troggle on older, stable versions of software. So you will need to install similarly old software on your development machine. A default Debian install in October 2021 will install v11 (Bullseye) and python3.9 whereas we are still using v10 (Buster) and python3.7 for development. Buster is in LTS support until June 2024. Everything should work of course, but be aware. -
sudo apt install survex
-sudo apt install python3
-sudo apt install python-is-python3
-sudo apt install python3-pip
-sudo apt install software-properties-common
-sudo add-apt-repository ppa:deadsnakes/ppa
-sudo apt install python3.7 python3.7-venv python3.7-doc binutils binfmt-support
-
-On a Linux machine, it will not be necessary once you have everything set-up correctly, but -a useful initial short-cut is to create 'mimic' symbolic links to directories to match those on the -server and the expo laptop. -(You should not rely on these as other people will have set up their machines differently.) -So, assuming that you are storing /expofiles/ on a different drive /mnt/f/ from everything else which is on /mnt/c/, and your machine has -no user expo:
d /home
-sudo mkdir expo
-cd expo
-sudo ln -s /mnt/f/expofiles expofiles
-sudo ln -s /mnt/c/EXPO/expoweb expoweb
-sudo ln -s /mnt/c/EXPO/troggle troggle
-sudo ln -s /mnt/c/EXPO/loser loser
-sudo ln -s /mnt/c/EXPO/drawings drawings
-sudo ln -s /mnt/c/EXPO/expowebcache expowebcache
-sudo mkdir expowebcache/3d
-cd ..
-ls -tlA expo
-
-where obviously you will be using your own locations for expofiles, expoweb, loser etc. instead of /mnt/d/EXPO... etc. This creates valid directory paths for, e.g. /home/expo/loser etc.
-
-
- #expo - public. An open-access + #expo - public. An open-access open-access IRC channel (ephemeral, not archived) for real-time discussions about everything but mostly software people. If you are having trouble using the software try here first.
diff --git a/handbook/troggle/Django_Logo-420x180.png b/handbook/troggle/Django_Logo-420x180.png new file mode 100644 index 000000000..008d64b75 Binary files /dev/null and b/handbook/troggle/Django_Logo-420x180.png differ diff --git a/handbook/troggle/trogdjangup.html b/handbook/troggle/trogdjangup.html index 464d22bf6..4644616f8 100644 --- a/handbook/troggle/trogdjangup.html +++ b/handbook/troggle/trogdjangup.html @@ -23,21 +23,39 @@This page is a work in progess. Text will be moved here from -
http://expo.survex.com/repositories/troggle/.git/tree/README.txt handbook/computing/yourlaptop.html handbook/troggle/trogdjangup.html+ + +
If you don't already know how to do this, then you should probably not be attempting this. But in case you are an experienced linux user who has always had someone else set up the system for them, then Ubuntu is the easiest and more forgiving to install, either directly on the computer or inside WSL. Because we are using fairly old releases of Django, you will want Ubuntu-20.04 @@ -39,11 +41,11 @@ handbook/troggle/trogdjangup.html is that WSL2 will be installed, but all our practical experience so far is with WSL1.
Python is not installed by default usually, and in any case we need specific versions to be installed. For Ubuntu 20.04 the default is python3.9 but this is incompatible with standard debian Buster, so we also need python3.7, -and also python3.8 if you are planning on migrating troggle from debian Buster (v10) to Bullseye (v11). +
Python is not installed by default usually, and in any case we need specific versions to be installed. For Ubuntu 20.04 the default is python3.9 but this is incompatible with standard debian Buster, so we also need python3.7, if you are planning on migrating troggle from debian Buster (v10) to Bullseye (v11) then you will also want python3.8 .
sudo apt install python3 python3-pip
-sudo apt install python3.7
-sudo apt install python3.8
+sudo apt install software-properties-common
+sudo add-apt-repository ppa:deadsnakes/ppa
+sudo apt install python3.7 python3.7-venv python3.7-doc binutils binfmt-support
sudo apt install sqlite3 sqlite3-doc
sudo apt install survex
cd /usr/bin
@@ -77,12 +79,13 @@ cd ..
ls -tlA expo
The important point to note here is that unless you are doing something fairly trivial, or you are a git genius, it is sensible to set up a python virtual environments to hold duplicate copies of both troggle and django code. - Then you will be able to check that your edited version of troggle runs with old, current + Then you will be able to check very quickly that your edited version of troggle runs with old, current and pre-release versions of python and of django; - and you will more easily be able to manage problems with incompatible versions of django plugins. + and you will more easily be able to manage problems with incompatible versions of django plugins as installing and upgrading the dependent packages is very fast.
The last command lists the default packages installed in the venv. This is for comparison later, after we have installed troggle, django and dependencies. You will get a warning that you have an out of date version of pipbut this is as we want: we are using a version of pip appropriate for the older version of python within the venv. +
The first time you do this you can't complete the pip installation of django as you have not yet got the
dependencies - because you have not yet cloned the troggle repo, so the first time it is easiest to just create requirements.txt yourself with a text editor.
diff --git a/handbook/troggle/trognotes.html b/handbook/troggle/trognotes.html
index 171f85707..a7d517565 100644
--- a/handbook/troggle/trognotes.html
+++ b/handbook/troggle/trognotes.html
@@ -64,8 +64,8 @@ to get involved in the progra