From 5e79abf05d1dcc10e278e3b81c84904c1c26d55f Mon Sep 17 00:00:00 2001 From: Marko Mecina <marko.mecina@univie.ac.at> Date: Tue, 3 May 2022 12:52:12 +0200 Subject: [PATCH] add README --- SYSTEM_SETUP.txt => README | 8 +- setup_environment.rst | 168 ------------------ start_ccs.py => start_ccs | 2 +- start_config_editor.py => start_config_editor | 0 4 files changed, 5 insertions(+), 173 deletions(-) rename SYSTEM_SETUP.txt => README (86%) delete mode 100644 setup_environment.rst rename start_ccs.py => start_ccs (97%) rename start_config_editor.py => start_config_editor (100%) diff --git a/SYSTEM_SETUP.txt b/README similarity index 86% rename from SYSTEM_SETUP.txt rename to README index 9561a2a..4147a33 100644 --- a/SYSTEM_SETUP.txt +++ b/README @@ -1,6 +1,6 @@ -This file documents the required steps to get the SMILE SXI EGSE up and running on a freshly installed linux system. +This file documents the required steps to get the SMILE SXI EGSE up and running on a freshly installed Manjaro Linux system. -manjaro-xfce-21.0.5 linux5.10 VBOX +manjaro-xfce-21.0.5 linux5.10 1) install MySQL/MariaDB and set it up - mariadb @@ -15,7 +15,7 @@ manjaro-xfce-21.0.5 linux5.10 VBOX 2) install packages/devtools - gtksourceview3 [<=3.24.11-1] - - ipython + - ipython [<=7.31] - make 3) install python modules @@ -35,7 +35,7 @@ manjaro-xfce-21.0.5 linux5.10 VBOX 4) get EGSE repository $> git clone gitlab.phaidra.org/mecinam2/CCS.git -5) In CCS, make DB schemas and Python packages +5) In CCS directory, make DB schemas and Python packages - first configure egse.cfg $> make ccs-storage diff --git a/setup_environment.rst b/setup_environment.rst deleted file mode 100644 index ca9fd3b..0000000 --- a/setup_environment.rst +++ /dev/null @@ -1,168 +0,0 @@ -clone the project GIT repository -================================ -git clone ssh://smile@herschel.astro.univie.ac.at:1722/home/smile/OBSW.git - - -install the GNU Make and Python package management system PIP -============================================================= -sudo apt install make -sudo apt install python3-pip - - -install sphinx for python3 + rtd theme for building documentation -================================================================= -sudo apt install python3-sphinx -pip3 install -U sphinx -pip3 install -U sphinx_rtd_theme - - -install the 'confignator' python package -======================================== -Execute the Make-file in the implementation folder. Open the terminal change to the implementation folder and execute 'make install-confignator' - - -change the name and email of the git user -========================================= -git config --global --edit -git commit --amend --reset-author - - -Python modules -============== -pip3 install -U psutil -pip3 install -U bitstring -pip3 install -U sqlalchemy -pip3 install -U numpy -pip3 install -U crcmod -pip3 install -U astropy -pip3 install -U matplotlib -pip3 install -U rlipython # nur für altes CHEOPS Projekt -pip3 install -U pydbus -pip3 install -U wheel - - -install MySql server -==================== -sudo apt install mysql-server -sudo mysql_secure_installation utility - -login into the MySQL shell as root and create an user and a database: -sudo mysql -u root -p -CREATE USER 'smile'@'localhost' IDENTIFIED BY 'letssmile'; -CREATE DATABASE smiledb; -GRANT ALL PRIVILEGES ON smiledb . * TO 'smile'@'localhost'; -FLUSH PRIVILEGES; - -change the password policy (if necessary) -SET GLOBAL validate_password_policy=LOW; - -install MySQL Python modules -============================ -sudo apt install python-mysqldb -sudo apt install default-libmysqlclient-dev - - -# pip3 install mysql -# pip3 install mysql-python -# pip3 install mysqlclient - - - -to compile the C code of CrIa, FwProfile, CrObc -=============================================== -apt install gcc-multilib - - -to inspect DBus services on the system -====================================== -apt install d-feet - - -to browse the Gtk3 icons -======================== -sudo apt install gtk-3-examples -# sudo apt install gtk3-icon-browser - -In order to open the icon browser, open a terminal and execute the command 'gtk3-icon-browser'. - - -for the GTK Inspector -===================== -https://wiki.gnome.org/action/show/Projects/GTK/Inspector?action=show&redirect=Projects%2FGTK%2B%2FInspector -apt install libgtk-3-dev - - -additional git features -======================= -apt install gitk - - -Für das kompilieren des Simulators (CrIa) wird folgendes noch benötigt: -======================================================================= -apt install apt install libdbus-1-dev - - -install PyCharm -=============== -download the .tar.gz -unpack where you want it -follow the instructions with the linux setup file (add to the PATH) - -for a Application Launcher: open Pycharm (terminal pycharm.sh) -> Tools -> Create Desktop Entry - -set the PYTHONPATH environment variable and add the PyCharm bin directory to PATH -================================================================================= -for Ubuntu 18.04.2 LTS (bionic) changes in the ~/.profile - -:: - - # ~/.profile: executed by the command interpreter for login shells. - # This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login - # exists. - # see /usr/share/doc/bash/examples/startup-files for examples. - - # the files are located in the bash-doc package. - - # the default umask is set in /etc/profile; for setting the umask - # for ssh logins, install and configure the libpam-umask package. - #umask 022 - - # if running bash - if [ -n "$BASH_VERSION" ]; then - # include .bashrc if it exists - if [ -f "$HOME/.bashrc" ]; then - . "$HOME/.bashrc" - fi - fi - - # set PATH so it includes user's private bin if it exists - if [ -d "$HOME/bin" ] ; then - PATH="$HOME/bin:$PATH" - fi - - # set PATH so it includes user's private bin if it exists - if [ -d "$HOME/.local/bin" ] ; then - PATH="$HOME/.local/bin:$PATH" - fi - - # add PyCharm directory - if [ -d "$HOME/.local/bin" ] ; then - PATH="$HOME/pycharm/bin:$PATH" - fi - - # ------------------------------ PYTHONPATH ------------------------------------- - - # add CHEOPS CCS directory - # PYTHONPATH="$HOME/cheops/Ccs/esa:$PYTHONPATH" - - # add SMILE CCS directory - PYTHONPATH="$HOME/smile/implementation/Ccs/devel:$PYTHONPATH" - - # add SMILE TST directory - PYTHONPATH="$HOME/smile/implementation/Tst:$PYTHONPATH" - PYTHONPATH="$HOME/smile/implementation/Tst/tst:$PYTHONPATH" - PYTHONPATH="$HOME/smile/implementation/Tst/progress_view:$PYTHONPATH" - PYTHONPATH="$HOME/smile/implementation/Tst/sketch_desk:$PYTHONPATH" - PYTHONPATH="$HOME/smile/implementation/Tst/test_specs:$PYTHONPATH" - PYTHONPATH="$HOME/smile/implementation/Tst/tst/generator:$PYTHONPATH" - export PYTHONPATH \ No newline at end of file diff --git a/start_ccs.py b/start_ccs similarity index 97% rename from start_ccs.py rename to start_ccs index 8ff0a70..a43fed3 100755 --- a/start_ccs.py +++ b/start_ccs @@ -1,6 +1,6 @@ #!/usr/bin/python3 import sys -import os +# import os import confignator sys.path.append(confignator.get_option('paths', 'ccs')) sys.path.append(confignator.get_option('paths', 'tst')) diff --git a/start_config_editor.py b/start_config_editor similarity index 100% rename from start_config_editor.py rename to start_config_editor -- GitLab