mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2026-02-08 16:28:06 +00:00
New OS and venv tool
This commit is contained in:
29
os-trog.sh
Normal file
29
os-trog.sh
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user