summaryrefslogtreecommitdiffstats
path: root/os-trog.sh
diff options
context:
space:
mode:
Diffstat (limited to 'os-trog.sh')
-rw-r--r--os-trog.sh29
1 files changed, 29 insertions, 0 deletions
diff --git a/os-trog.sh b/os-trog.sh
new file mode 100644
index 0000000..d145422
--- /dev/null
+++ b/os-trog.sh
@@ -0,0 +1,29 @@
+#!/bin/bash
+# Run this in a terminal in the troggle directory: 'bash os-trog.sh'
+echo 'Run this in a terminal in the troggle directory: "bash venv-trog.sh"'
+
+# Expects an Ubuntu 22.04 relatively clean install.
+
+
+python --version : ensure python is an alias for python3 not python2.7
+sudo apt update
+sudo apt dist-upgrade
+sudo apt install sqlite3
+sudo apt install python3-pip # this installs a shed-load of other stuff: binutils etc.
+
+
+# On a clean debian 11 (bullseye) installation with Xfce & ssh,
+# as debian does not install everything that ubuntu does, you need:
+sudo usermod -a -G sudo expo # to put expo in sudoers group, re-login required
+sudo apt install python3.10
+sudo apt install python3.10-venv
+sudo apt install python3.10-dev
+sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.10 1
+
+sudo apt -y install mariadb-server
+sudo apt install libmariadb-dev
+
+sudo python -m pip install --upgrade pip
+
+# Go to https://expo.survex.com/handbook/troggle/troglaptop.html#dbtools
+# sudo service mysql start