Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CCS
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Marko Mecina
CCS
Commits
5e79abf0
Commit
5e79abf0
authored
3 years ago
by
Marko Mecina
Browse files
Options
Downloads
Patches
Plain Diff
add README
parent
a939b6a1
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
README
+4
-4
4 additions, 4 deletions
README
setup_environment.rst
+0
-168
0 additions, 168 deletions
setup_environment.rst
start_ccs
+1
-1
1 addition, 1 deletion
start_ccs
start_config_editor
+0
-0
0 additions, 0 deletions
start_config_editor
with
5 additions
and
173 deletions
SYSTEM_SETUP.txt
→
README
+
4
−
4
View file @
5e79abf0
This file documents the required steps to get the SMILE SXI EGSE up and running on a freshly installed
l
inux system.
This file documents the required steps to get the SMILE SXI EGSE up and running on a freshly installed
Manjaro L
inux system.
manjaro-xfce-21.0.5 linux5.10
VBOX
manjaro-xfce-21.0.5 linux5.10
1) install MySQL/MariaDB and set it up
1) install MySQL/MariaDB and set it up
- mariadb
- mariadb
...
@@ -15,7 +15,7 @@ manjaro-xfce-21.0.5 linux5.10 VBOX
...
@@ -15,7 +15,7 @@ manjaro-xfce-21.0.5 linux5.10 VBOX
2) install packages/devtools
2) install packages/devtools
- gtksourceview3 [<=3.24.11-1]
- gtksourceview3 [<=3.24.11-1]
- ipython
- ipython
[<=7.31]
- make
- make
3) install python modules
3) install python modules
...
@@ -35,7 +35,7 @@ manjaro-xfce-21.0.5 linux5.10 VBOX
...
@@ -35,7 +35,7 @@ manjaro-xfce-21.0.5 linux5.10 VBOX
4) get EGSE repository
4) get EGSE repository
$> git clone gitlab.phaidra.org/mecinam2/CCS.git
$> 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
- first configure egse.cfg
$> make ccs-storage
$> make ccs-storage
...
...
This diff is collapsed.
Click to expand it.
setup_environment.rst
deleted
100644 → 0
+
0
−
168
View file @
a939b6a1
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
This diff is collapsed.
Click to expand it.
start_ccs
.py
→
start_ccs
+
1
−
1
View file @
5e79abf0
#!/usr/bin/python3
#!/usr/bin/python3
import
sys
import
sys
import
os
#
import os
import
confignator
import
confignator
sys
.
path
.
append
(
confignator
.
get_option
(
'
paths
'
,
'
ccs
'
))
sys
.
path
.
append
(
confignator
.
get_option
(
'
paths
'
,
'
ccs
'
))
sys
.
path
.
append
(
confignator
.
get_option
(
'
paths
'
,
'
tst
'
))
sys
.
path
.
append
(
confignator
.
get_option
(
'
paths
'
,
'
tst
'
))
...
...
This diff is collapsed.
Click to expand it.
start_config_editor
.py
→
start_config_editor
+
0
−
0
View file @
5e79abf0
File moved
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment