Skip to content
Snippets Groups Projects
Commit e285827f authored by Marko Mecina's avatar Marko Mecina
Browse files

update of README and requirements.txt for improved system compatibility and clarity

parent c05c1803
No related branches found
No related tags found
No related merge requests found
This file documents the required steps to get the UVIE EGSE software up and running on a freshly installed (Arch) Linux system. This file documents the required steps to get the UVIE EGSE software up and running on a freshly installed Linux system (tested on manjaro-xfce-21.3.7 linux5.15).
manjaro-xfce-21.0.5 linux5.10 # PREREQUISITES
1) Get CCS repository
# Prerequisites
1) get CCS repository
$> git clone https://gitlab.phaidra.org/mecinam2/CCS.git $> git clone https://gitlab.phaidra.org/mecinam2/CCS.git
2) install MySQL/MariaDB and set it up 2) Required packages/devtools
- make
- python-pip
- gtk3
- python-gobject
- gtksourceview3 [<=3.24.11-1]
- mariadb - mariadb
- mysql-workbench (optional) - mysql-workbench (optional)
3) Initialise MySQL/MariaDB and set it up
$> sudo mariadb-install-db --user=mysql --basedir=/usr --datadir=/var/lib/mysql $> sudo mariadb-install-db --user=mysql --basedir=/usr --datadir=/var/lib/mysql
$> sudo systemctl enable --now mariadb $> sudo systemctl enable --now mariadb
$> sudo mariadb-secure-installation $> sudo mariadb-secure-installation (optional)
mysql> CREATE USER 'user'@'localhost' IDENTIFIED BY 'password'; mysql> CREATE USER 'user'@'localhost' IDENTIFIED BY 'password';
mysql> GRANT ALL PRIVILEGES ON * . * TO 'user'@'localhost'; mysql> GRANT ALL PRIVILEGES ON * . * TO 'user'@'localhost';
mysql> FLUSH PRIVILEGES; mysql> FLUSH PRIVILEGES;
3) install packages/devtools 4) Install Python packages. To install the required modules with pip in userspace or a venv, run
- gtksourceview3 [<=3.24.11-1] 'make install-python-requirements' in the CCS base directory or use 'pip install [--user] -r requirements.txt'.
- python-pip For details, see requirements.txt
- make
# INSTALLATION
In the CCS base directory,
4) install python modules (to install the required modules with pip in userspace or a venv, you can run 'make install-python-requirements' in the CCS base directory or use 'pip install [--user] -r requirements.txt') - first configure the [database] section in egse.cfg!
- ipython [=7.*] - then execute:
- python-numpy
- python-scipy
- python-matplotlib
- python-cairocffi
- python-mysqlclient
- python-sqlalchemy
- python-wheel
- python-sphinx
- python-sphinx_rtd_theme
- python-astropy
- python-crcmod
- python-psutil
# Installation
In the CCS base directory, execute
- first configure egse.cfg!
$> make install-confignator $> make install-confignator
$> make ccs-storage $> make ccs-storage
$> make codeblockreusefeature $> make codeblockreusefeature
# MIB # MIB
Use CCS/Ccs/tools/import_mib.py to import a set of SCOS2000 MIB files into a MySQL DB schema Use CCS/Ccs/tools/import_mib.py to import a set of SCOS2000 MIB files into the MySQL mib-schema set in egse.cfg
# CCS & TST # CCS & TST
start_ccs: starts the CCS ./start_ccs: starts the CCS
start_tst: starts the TST ./start_tst: starts the TST
# Troubleshooting # TROUBLESHOOTING
If working within a Python venv, you might need to install vext to access the system-site installation of gi: If working within a Python venv, you might need to install vext to access the system-site installation of gi:
pip install vext pip install vext
pip install vext.gi pip install vext.gi
......
...@@ -13,7 +13,15 @@ sphinx_rtd_theme ...@@ -13,7 +13,15 @@ sphinx_rtd_theme
astropy astropy
crcmod crcmod
psutil psutil
dbus-python
vext
vext.gi
# for TASTE, which also needs libdbus-1-dev, gir1.2-notify-0.7, libgirepository1.0-dev, libgtk-3-dev # vext requires python-gobject to be installed on system level.
# Alternatively, install pygobject with pip (requires gobject-introspection to be installed)
# If using Conda for managing Python packages, vext might not work. Try installing PyGObject in the venv with Conda instead:
# conda install -c conda-forge pygobject
# For TASTE, which also needs libdbus-1-dev, gir1.2-notify-0.7, libgirepository1.0-dev, libgtk-3-dev:
# pygobject # pygobject
# dbus-python
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment