Code Monkey home page Code Monkey logo

oma-welcome's Introduction

om-welcome

version: 1.0.2

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:

bigbashview is integrated with scripts om-welcome

Installing Dependencies

to install python-qt4-webkit, we can use urpmi:

urpmi python-qt4-webkit
Installing web.py
python setup.py install

or just use urpmi:

urpmi python-webpy
Directory Structures

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.

Running OM-Welcome

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 > om-welcome.pot

om-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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.