summaryrefslogtreecommitdiffstats
path: root/_deploy/wsl/os-trog24.04.sh
diff options
context:
space:
mode:
Diffstat (limited to '_deploy/wsl/os-trog24.04.sh')
-rwxr-xr-x_deploy/wsl/os-trog24.04.sh42
1 files changed, 15 insertions, 27 deletions
diff --git a/_deploy/wsl/os-trog24.04.sh b/_deploy/wsl/os-trog24.04.sh
index f1f9384..f3d1185 100755
--- a/_deploy/wsl/os-trog24.04.sh
+++ b/_deploy/wsl/os-trog24.04.sh
@@ -1,19 +1,19 @@
#!/bin/bash
-# Run this in a terminal in your $HOME directory, e.g. /home/philip/
-# run like this: bash os-trog.sh'
-
+# 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 your home directory: "bash os-trog.sh"'
cat /etc/os-release
-# Expects a WSL Ubuntu 24.04 relatively clean install.
-# 24.04 has python 3.12 as standard
+# Expects an Ubuntu 24.04 relatively clean install.
+# 24.04 has python 3.12
+# sudo apt install python-is-python3 -y
python --version : ensure python is an alias for python3 not python2.7
ssh -V
sudo apt update -y
sudo apt dist-upgrade -y
sudo apt autoremove -y
-sudo apt install sqlite3 -y
# Already in Ubuntu 24.04 on WSL:
# sudo apt install git -y
@@ -25,9 +25,13 @@ sudo apt install sqlite3 -y
# Now using uv not pip:
# sudo apt install python3-pip -y
+sudo apt install sqlite3 -y
sudo apt install gedit -y
sudo apt install tig gitg meld -y
+# python formatting https://docs.astral.sh/ruff/
+sudo snap install ruff
+
# # do not actually use this any more
# sudo useradd expo
# sudo usermod -a -G sudo expo # to put expo in sudoers group, re-login required
@@ -43,16 +47,6 @@ curl -LsSf https://astral.sh/uv/install.sh | sh
sudo apt install mariadb-server -y
sudo apt install libmariadb-dev -y
-# this installs a shed-load of other stuff: binutils etc.
-sudo apt install survex-aven -y
-sudo apt install gpsprune qgis -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
@@ -72,23 +66,18 @@ sudo apt install tunnelx therion -y
# sudo apt install code
-echo '###'
-echo '### Currently set version of python'
-python --version
-
-mkdir expo
-cd expo
+mkdir ~/expo
+cd ~/expo
echo '###'
echo '### Now YOU have to configure the git settings for YOURSELF (not "expo")'
echo '### because you can't clone the repos without a key
-# This sets this up for bash command window, BUT it is is not enough for VS code which is actually a Windows app
-# when running on WSL. You ALSO need to MANUALLY run these commands in a terminal windows INSIDE VS code
git config --global user.email "philip.sargent@gmail.com"
git config --global user.name "Philip Sargent"
git config --global pull.rebase true
+#Change this to clone using https?? at least for troggle?
git clone ssh://expo@expo.survex.com/home/expo/troggle
git clone ssh://expo@expo.survex.com/home/expo/loser
git clone ssh://expo@expo.survex.com/home/expo/expoweb
@@ -96,9 +85,8 @@ git clone ssh://expo@expo.survex.com/home/expo/drawings
mkdir expofiles
rsync -azv --delete-after --prune-empty-dirs expo@expo.survex.com:expofiles/surveyscans/ expofiles/surveyscans
+rsync -azv --exclude="*.jpg.xml" --exclude="*.jpeg.xml" --exclude="*.JPG.xml" expo@expo.survex.com:expofiles/photos/2018/PhilipSargent/ expofiles/photos/2018/PhilipSargent
+
rsync -azv --delete-after --prune-empty-dirs --exclude="photos" --exclude="video" --exclude="mapapp" expo@expo.survex.com:expofiles/ expofiles
# rsync -azv --exclude="*.jpg.xml" --exclude="*.jpeg.xml" --exclude="*.JPG.xml" expo@expo.survex.com:expofiles/photos/ expofiles/photos
-echo "now run venv-trog.sh to set up the virtual environments"
-echo "configuring VS code will take a while, it is probably not working yet because of Windows/WSL git configs"
-