summaryrefslogtreecommitdiffstats
path: root/os-trog.sh
diff options
context:
space:
mode:
Diffstat (limited to 'os-trog.sh')
-rw-r--r--os-trog.sh49
1 files changed, 37 insertions, 12 deletions
diff --git a/os-trog.sh b/os-trog.sh
index dfdbbe5..1afa0a0 100644
--- a/os-trog.sh
+++ b/os-trog.sh
@@ -1,31 +1,56 @@
#!/bin/bash
# Run this in a terminal in the troggle directory: 'bash os-trog.sh'
+# On WSL, do Shift-click in the file explorer on the troggle folder to open a Linux command line
+# 'Open Linux shell here'
echo 'Run this in a terminal in the troggle directory: "bash venv-trog.sh"'
-
+cat /etc/os-release
# Expects an Ubuntu 22.04 relatively clean install.
-
+sudo apt install python-is-python3 -y
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
+sudo apt update -y
+sudo apt dist-upgrade -y
+sudo apt autoremove -y
+sudo apt install sqlite3 -y
+sudo apt install python3-pip -y
# this installs a shed-load of other stuff: binutils etc.sudo apt install survex-aven
-sudo apt install openssh-client tunnelx therion
-sudo apt install git sftp
+sudo apt install git openssh-client tunnelx therion -y
# On a clean debian 11 (bullseye) installation with Xfce & ssh,
+
+ #on ubuntu 20.04:
+ #Package sftp is not available, but is referred to by another package.
+ #This may mean that the package is missing, has been obsoleted, or
+ #is only available from another source
+ #E: Package 'sftp' has no installation candidate
+
+
+# On Ubuntu 20.04, with python10, the pip install fails.
+# So you ned to get the pip from source
+# sudo curl -sS https://bootstrap.pypa.io/get-pip.py | python3.10
+# but really you should be using 22.04
+# and also, isf using debian,
+# sudo python3.10 -m pip install -U virtualenv
+
# as debian does not install everything that ubuntu does, you need:
+sudo useradd expo
sudo usermod -a -G sudo expo # to put expo in sudoers group, re-login required
-# default since 22.04 # sudo apt install python3.10
-sudo apt install python3.10-venv
-sudo apt install python3.10-dev
+# default since 22.04
+# sudo apt install python3.10
+sudo apt install python3.10-venv -y
+sudo apt install python3.10-dev -y
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.10 1
sudo apt install mariadb-server -y
-sudo apt install libmariadb-dev
+sudo apt install libmariadb-dev -y
sudo python -m pip install --upgrade pip
+sudo apt install sftp -y
+echo '###'
+echo '### NOW INSTALLING tunnel and therion, go and have a cup of tea. Or a 3-course meal.'
+echo '###'
+sudo apt install tunnelx therion -y
+
# Go to https://expo.survex.com/handbook/troggle/troglaptop.html#dbtools
# sudo service mysql start