Coder Social home page Coder Social logo

upisi's Introduction

upisi

the Universal Post-Installation Scripts Interface

En développement.

Usage :

  • écrire un script bash de post-installation, comme d'habitude, de la forme : apt-get install -f foo bar echo do something

  • utiliser des tags spéciaux en commentaire pour agir sur l'interface graphique Gtk :

    • #+title: un titre
    • #+doc: de la documentation sur l'élément
    • #+sh: titre donné à cette commande shell (une ligne seule est interprétée comme une commande shell). Pour regrouper plusieurs commandes :
    • #+begin … #+end : toutes les commandes seront exécutées ensemble.

On peut organiser l'interface graphique par catégories : #+cat: Une catégorie … #+end_cat

Tout ce qui est dans la catégorie sera regroupé sous une flèche à dérouler. On peut imbriquer autant de catégorie que l'on veut.

  • #+gui:toggle=False : indique à l'interface de ne pas sélectionner cet élément par défaut.

Exemple

Le script shell suivant (qui reste un script shell valide pour les geeks):

#!/bin/sh

#+gui:toggle=False

aptitude install npm

#: Programmes pratiques
sudo apt-get install -y terminator mplayer bash-completion git cclive htop tree ncdu python-pip soundconverter nautilus-open-terminal

#+cat:Lecteurs Audio et Vidéo

#: Clementine
#+im:im/clementine.png
#+doc: Lecteur très pratique (et multiplateforme)
sudo apt-get install -y clementine
etc…

Obtient l'interface graphique suivante (plus facile pour les non-geeks):

interface du script

Télécharger et essayer

Une commande pour télécharger et lancer Upisi : git clone https://github.com/vindarel/upisi.git && cd upisi/ && python upotism.py

Pour le dév :

  • postinstaller.py : parser du script
  • gui.glade : interface graphique Gtk+3 (utiliser glade)
  • upotism.py : programme principal
  • utils.py : méthodes annexes
  • mint-postinstall.sh : exemple complet de script possible

upisi's People

Contributors

vindarel avatar

Watchers

 avatar  avatar  avatar

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.