The Console User Interface is a text based interface for managing the grammm basic configurations.
To get the CUI running you have to install the Python Urwid library, the Urwid GIT Project and the CUI source itself. We assume in this guide that you have already installed:
- gcc
- python3
- python3-devel
These will be used for the build and install process.
To get the newest version of urwid do not use zypper! Instead use git:
... bash
cd /opt/
git clone https://github.com/urwid/urwid.git
For further developing it is recommended to install also the git branch of the urwid project.
... bash
git clone ...
Use also git to fetch the current cui version:
... bash
git clone https://vcs.grammm.com/grammm/cui.git
In the cui folder you can find the requirements.txt and can install it via
... bash
pip3 install -r requirements.txt
The only hing you have to be sure is that the path is set correct to:
... bash
export PYTHONPATH="$PYTHONPATH:/opt/urwid:<to_where_the_cui.py_is_lying>"
or let the install script copy the cui.sh to your path:
... bash
./install.sh