version: 1.0.5.3
This is the om-welcome - Welcome to OpenMandriva
designed to introduce new users to the OpenMandriva distro and also integrate common tasks for post-installation distro.
requires the following dependencies:
- python-qt5-webkit
- web.py http://webpy.org/
- bigbashview https://github.com/thor27/bigbashview/
bigbashview is integrated with scripts om-welcome
to install python-qt5-webkit, we can use urpmi:
urpmi python-qt5-webkit
- download the latest web.py build from GitHub (https://github.com/webpy/webpy)
- setup web.py with following command as root:
python setup.py install
or just use urpmi:
urpmi python-webpy
your files are:
bigbashview.py
client.py
server.py
bbv/
globals.py
globals.pyc
__init__.py
__init__.pyc
main.py
main.pyc
server/
ui/
img/
if you package it separately om-welcome requires changes to the running script.
you can run the om-welcome for debugging, with following command:
python bigbashview.py -s 960x600 -c index.sh.htm
#####translations
- inside the folder
usr/share/om-welcome/
- there is a file called translation, all texts om-welcome are it is from it that will
- generate the translation files
- format it is as follows
variavel=$"text that will be shown in the om-welcome"
with the command
bash --dump-po-strings translation > oma-welcome.pot
oma-welcome.pot is the translation file.
the bigbashview uses html, css and js to create the layout, if you want to make any changes or improvements just edit the files with the format. sh.htm, and style.css that is inside the css folder. files with the. scripts are run that will be read as if they were running through the terminal.
to execute a command within the html files (sh.htm) using the following command:
$(command to be executed)
example:
$(lsb_release -d | cut -d":" -f2) #shows the name of the Linux distribution