From 8dfede8600e8e620b0e6ad3dfb9fe6294b7c18fc Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Sun, 15 Dec 2024 21:46:01 +0000 Subject: [PATCH] git without ssh - online edit of handbook/troggle/troglaptop.html [PosixPath('/home/philip/expo/expoweb/handbook/troggle/troglaptop.html')] --- handbook/troggle/troglaptop.html | 25 ++++++++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-) diff --git a/handbook/troggle/troglaptop.html b/handbook/troggle/troglaptop.html index f8cf726f5..8ece0e2bd 100644 --- a/handbook/troggle/troglaptop.html +++ b/handbook/troggle/troglaptop.html @@ -14,7 +14,7 @@

Software development machine

-

For troggle itself, you need a linux machine. We all use Debian or Debian-derived machines (Debian itself, Ubuntu, Xubuntu etc.) but other forms of linux may work. Running Debian or Ubuntu under WSL on Windows 10 works fine. +

For troggle itself, you need a linux machine. We all use Debian or Debian-derived machines (Debian itself, Ubuntu, Xubuntu etc.) but other forms of linux may work. Running Debian or Ubuntu under WSL on Windows 10 or 11 works fine.

If you want to work on the troggle source code and be able to commit to the server git repo, your account will need to be added to the troggle project members list. Contact wookey at wookware dot org to get this set up. @@ -26,8 +26,27 @@ need to write any new software for what you need to do. Look at the tools and re

Maybe what you need is simply some fixes or workarounds in the imported data files, not in the python code.

Prerequisites

-

You need to already know really quite a lot about what troggle does, and how it is used in practice. Also you will have installed quite a lot of the software such as tunnel, therion, survex etc. as documented in your bulk update laptop configuration. In particular read the information there about VS code and git. +

You need to already know really quite a lot about what troggle does, and how it is used in practice. Also you will have installed git and set up the key-pair as documented in your bulk update laptop configuration. In particular read the information there about VS code and git. +

+

Short-cut

+If you have never done any bulk updates but want to look at the code, then there is a shortcut. You do not actually need to do all the Bulk Update machine configuration first. +

You can download the code without having a key-pair like this: +

$ mkdir ~/expo
+$ cd ~/expo
+$ git clone http://expo.survex.com/repositories/troggle/.git
+ This will create ~/expo/troggle/ and get you a copy of the configuration scripts + + but you need to make them executable before they will work: +
$ cd ~/expo/troggle
+$ chmod +x *.sh
+
+ +

Read more here..

This page is a work in progess. Text will be moved here from

@@ -80,7 +99,7 @@ which you can read without installing by looking in:

You will run os-trog24.04.sh just once to install all the basics,and you will run venv-trog.sh just once initially.

We have two configurations for the virtual environment: 'dev' which uses the latest python and Django for speed, and 'server' which mimics the versions currently running on the server. [In December 2024 Django is 5 releases ahead of the version on the server (5.1 versus 3.2). Each has a list of ancilliary packages with the appropriate versions in dev.toml and server.toml.] venv-trog.sh deals with all this python-specific stuff, libraries and Django plug-ins. -

os-trog.sh takes a few minutes initially, but then about an hour when it installs survex, therion and tunnel as these drag in a huge number of dependencies. +

os-trog.sh takes a few minutes: it installs the subset of /expofiles/ you need to work with troggle. If you now want to install survex, therion etc. then run os-survey.shas these drag in a huge number of dependencies.

Why no Docker container?

Yes, it is true that this would greatly speed up on-boarding new programmers. Or podman.