2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2024-11-25 08:41:51 +00:00
troggle/os-trog.sh

32 lines
1.1 KiB
Bash
Raw Normal View History

2022-06-25 17:28:01 +01:00
#!/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
2022-06-25 17:28:01 +01:00
# this installs a shed-load of other stuff: binutils etc.sudo apt install survex-aven
2022-06-25 19:34:42 +01:00
sudo apt install openssh-client tunnelx therion
sudo apt install git sftp
2022-06-25 17:28:01 +01:00
# 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
# default since 22.04 # sudo apt install python3.10
2022-06-25 17:28:01 +01:00
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 install mariadb-server -y
2022-06-25 17:28:01 +01:00
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