odoo doc
@ -2,8 +2,30 @@
|
||||
|
||||
Cette rubrique regroupe les procédures à suivre pour saisir la comptabilité sur Odoo
|
||||
|
||||
- [ Installer Odoo](install-odoo)
|
||||
- [Paramétrer Odoo](odoo-setup)
|
||||
- [Configurer la paie](odoo-paye)
|
||||
- [Saisir une facture](odoo-facture)
|
||||
- [Effectuer le rapprochement bancaire](odoo-rapprochement)
|
||||
- [Créer une note de frais](odoo-note-de-frais)
|
||||
- [Enregistrer une subvention](odoo-subventions)
|
||||
- [Opérations de clôture](odoo-cutoff)
|
||||
|
||||
|
||||
## Etat de réalisation
|
||||
|
||||
???example "Dérouler ce bandeau pour accéder à la liste des états"
|
||||
|
||||
=== "En cours"
|
||||
- [Paramétrage général d'odoo](odoo-setup)
|
||||
- [Saisir une facture](odoo-facture)
|
||||
- [Effectuer le rapprochement bancaire](odoo-rapprochement)
|
||||
- [Créer une note de frais](odoo-note-de-frais)
|
||||
- [Enregistrer une subvention](odoo-subventions)
|
||||
- [Opérations de clôture](odoo-cutoff)
|
||||
|
||||
=== "À faire"
|
||||
- [Gérer l'inventaire](odoo-inventaire)
|
||||
- [Gérer les dons](odoo-dons)
|
||||
- [Enregistrer les contrats](odoo-contrats)
|
||||
- [Gérer le recrutement](odoo-recrutement)
|
||||
98
docs/admin/process-odoo/install-odoo.md
Normal file
@ -0,0 +1,98 @@
|
||||
# Installation d'odoo
|
||||
|
||||
On réalise l'installation d'Odoo avec docker-compose et Nginx en reverse-proxy
|
||||
|
||||
## Docker compose
|
||||
|
||||
??? note "Voici le contenu du docker-compose"
|
||||
```
|
||||
version: '3.7'
|
||||
services:
|
||||
web:
|
||||
image: odoo:14
|
||||
depends_on:
|
||||
- db
|
||||
ports:
|
||||
- "8098:8069"
|
||||
- "2098:8072" # live chat
|
||||
tty: true
|
||||
#command: -- --dev=reload
|
||||
#command: odoo -u account,base,web -d odoo
|
||||
volumes:
|
||||
- odoodev-14-data:/var/lib/odoo
|
||||
- odoodev-14-config:/etc/odoo
|
||||
- odoodev-14-addons:/mnt/extra-addons
|
||||
environment:
|
||||
- HOST=db
|
||||
- PORT=5432
|
||||
- USER=odoo
|
||||
- PASSWORD=odoo
|
||||
db:
|
||||
image: postgres:13
|
||||
ports:
|
||||
- "5498:5432"
|
||||
environment:
|
||||
- POSTGRES_DB=postgres
|
||||
- POSTGRES_PASSWORD=odoo
|
||||
- POSTGRES_USER=odoo
|
||||
- PGDATA=/var/lib/postgresql/data/pgdata
|
||||
volumes:
|
||||
- odoodev-14-dbdata:/var/lib/postgresql/data
|
||||
|
||||
volumes:
|
||||
odoodev-14-data:
|
||||
driver_opts:
|
||||
type: none
|
||||
device: ./odoodev-14-data
|
||||
o: bind
|
||||
odoodev-14-config:
|
||||
driver_opts:
|
||||
type: none
|
||||
device: ./odoodev-14-config
|
||||
o: bind
|
||||
odoodev-14-addons:
|
||||
driver_opts:
|
||||
type: none
|
||||
device: ./odoodev-14-addons
|
||||
o: bind
|
||||
odoodev-14-dbdata:
|
||||
driver_opts:
|
||||
type: none
|
||||
device: ./odoodev-14-dbdata
|
||||
o: bind
|
||||
```
|
||||
|
||||
???note "Et voici le contenu du fichier `./odoodev-14-config/odoo.conf`"
|
||||
```
|
||||
[options]
|
||||
; This is the password that allows database operations:
|
||||
admin_passwd = Mot_de_passe_pour_protéger_la_base_de_données
|
||||
db_host = db
|
||||
db_port = 5432
|
||||
db_user = odoo
|
||||
db_password = odoo
|
||||
addons_path = /mnt/extra-addons
|
||||
without_demo = True
|
||||
proxy_mode = True
|
||||
max_cron_threads = 1
|
||||
#db_filter = ^odoo$
|
||||
#list_db = False
|
||||
```
|
||||
|
||||
Vous pouvez déployer le container avec la commande `docker-compose up -d`.
|
||||
|
||||
## Formulaire d'initialisation
|
||||
|
||||
Dans la navigateur, remplissez les informations telles que saisies dans le fichier __odoo.conf__ (mote de passe administrateur = admin_passwd, le nom de la base de données est odoo).
|
||||
|
||||
Vous pouvez maintenant décommenter les 2 dernières lignes du fichier __odoo.conf__, et redémarrer votre instance avec `docker-compose restart`.
|
||||
|
||||
|
||||
## Installation des modules
|
||||
|
||||
Une fois les modules communautaires téléchargés dans le dossier des addons, il faut entrer dans le conteneur pour lancer l'installation des modules:
|
||||
```
|
||||
user@host:~$ docker-compose exec -u odoo web bash
|
||||
odoo@odoo-container:/$ find /mnt/extra-addons/ -mindepth 1 -maxdepth 1 -type d -printf "%f," | sed -E 's/(.*),/\1/' |xargs odoo -d odoo -i
|
||||
```
|
||||
|
||||
@ -22,3 +22,15 @@ Au préalable, vous devez vous assurer d'avoir __saisi toutes les factures fourn
|
||||
|
||||
Si le paiement a été réalisé en espèces, mais qu'il apparaît en fait sur le relevé bancaire, il faut supprimer le paiement, supprimer le lettrage du relevé bancaire et lettrer ensuite le relevé bancaire directement avec la facture.
|
||||
Faites ensuite de même avec la banque (en cherchant __512__), et les chèques.
|
||||
|
||||
??? danger "Réaliser les écritures de clôture"
|
||||
|
||||
On utilise pour cela le menu __Facturation__ > __Comptabilité__ > __Arrêtés__
|
||||
??? example "Factures à établir"
|
||||
Créer un nouvel arrêté à la date de clôture du dernier exercice.
|
||||
??? example "Factures non parvenues"
|
||||
Créer un nouvel arrêté à la date de clôture du dernier exercice.
|
||||
??? example "Produits constatés d'avance"
|
||||
Créer un nouvel arrêté à la date de clôture du dernier exercice.
|
||||
??? example "Charges constatés d'avance"
|
||||
Créer un nouvel arrêté à la date de clôture du dernier exercice.
|
||||
72
docs/admin/process-odoo/odoo-paye.md
Normal file
@ -0,0 +1,72 @@
|
||||
# Paramétrer la Paye dans Odoo
|
||||
|
||||
## Création d'un nouveau taux de cotisation
|
||||
|
||||
Prenons l'exemple de la Contribution à la Formation Professionnelle, mensualisée à partir de Janvier 2022.
|
||||
|
||||
### Création de la règle pour la cotisation
|
||||
|
||||
???example "On crée une règle à partir du menu __Employés__ > __Configuration__ > __Règles de salaire__ "
|
||||
|
||||
1. On créé une règle nommée __Contribution à la Formation Professionnelle__, avec le code __CFP__, dont le parent est __Contributions Patronales (COTPAT)__.
|
||||
2. On coche les cases __Valide__ et __Apparaît dans le bulletin de paye__.
|
||||
3. On met le code Python suivant comme condition:
|
||||
```
|
||||
if str(payslip.date_from) >="2022-01-01":
|
||||
result = True
|
||||
else:
|
||||
result = False
|
||||
```
|
||||
4. On met la valeur à `result = BRUT * CFP / 100`
|
||||
|
||||
!!!danger "5. On met un numéro de séquence supérieur à 1."
|
||||
|
||||
### Création de la catégorie pour le taux de cotisation
|
||||
|
||||
???example "On crée une catégorie à partir du menu __Employés__ > __Configuration__ > __Règles de salaire__"
|
||||
|
||||
On crée une catégorie nommée __Taux de Contribution à la Formation Professionnelle__, avec le code __TXCFP__, dont le parent est __Taux (TX)__.
|
||||
|
||||
### Création des règles pour l'évolution du taux de cotisation
|
||||
|
||||
???example "On créé une règle à partir du menu __Employés__ > __Configuration__ > __Règles de salaire__"
|
||||
|
||||
???example "On créé d'abord la règle principale"
|
||||
|
||||
1. On créé une règle nommée __Taux de Contribution à la Formation Professionnelle__, avec le code __TXCFP__.
|
||||
2. On sélectionne la catégorie __Taux de Contribution à la Formation Professionnelle (TXCFP)__.
|
||||
3. On coche la case __Valide__ et on décoche __Apparaît dans le bulletin de salaire.
|
||||
4. On met le code Python suivant comme condition:
|
||||
```
|
||||
if str(payslip.date_from) >="2022-01-01":
|
||||
result = True
|
||||
else:
|
||||
result = False
|
||||
```
|
||||
5. On met comme valeur:
|
||||
```
|
||||
result = categories.TXCFP
|
||||
```
|
||||
!!!danger "6. On met le numéro de séquence à __1__."
|
||||
|
||||
???example "On crée une règle enfant dans l'onglet __Règles Enfants__"
|
||||
|
||||
1. On créé une règle nommée __Taux de Contribution à la Formation Professionnelle (2022)__, avec le code __TXCFP22__.
|
||||
2. On sélectionne la catégorie __Taux de Contribution à la Formation Professionnelle (TXCFP)__.
|
||||
3. On coche la case __Valide__ et on décoche __Apparaît dans le bulletin de salaire.
|
||||
4. On met le code Python suivant comme condition:
|
||||
```
|
||||
if str(payslip.date_from) >= "2022-01-01" and str(payslip.date_from) < "2023-01-01":
|
||||
result = True
|
||||
else:
|
||||
result = False
|
||||
```
|
||||
5. On définit une valeur fixe: __0.55__ .
|
||||
!!!danger "6. On met le numéro de séquence à __0__."
|
||||
|
||||
### Intégration des règles dans la structure de salaire
|
||||
|
||||
|
||||
!!!warning "Ne pas oublier d'ajouter la règle "Taux de Contribution à la Formation Professionnelle (TXCFP)" dans la liste des règles des structures de salaires concernées."
|
||||
|
||||
On utilise pour cela le menu __Paye__ > __Configuration__ > __Structures de salaires__.
|
||||
30
docs/admin/process-odoo/odoo-recrutement.md
Normal file
@ -0,0 +1,30 @@
|
||||
# Gérer le recrutement dans Odoo
|
||||
|
||||
## État de réalisation
|
||||
|
||||
???example "Bandeau à dérouler pour voir l'état de réalisation"
|
||||
|
||||
=== "Fait"
|
||||
|
||||
=== "En cours"
|
||||
- [Configuration de l'envoi d'emails pour les différentes étapes](#21-configuration-des-emails-pour-les-differentes-etapes)
|
||||
=== "à faire"
|
||||
- [Configuration de l'envoi d'emails en cas de refus]()
|
||||
- [Configuration d'envoi d'emails pour la prise de rendez-vous]()
|
||||
|
||||
|
||||
## Configuration
|
||||
|
||||
### Configuration des emails pour les différentes étapes
|
||||
|
||||
???example "Modifications à réaliser en mode développeur dans __Paramètres__ > __Technique__ > __Séquences et identifiants__ > __Identifiants externes__ "
|
||||
1. Ouvrir la fiche de l'identifiant __hr_recruitment.stage_job1__
|
||||
1. Cliquer sur __Initial Qualification__ dans le champ __Enregistrement__
|
||||
2. Éditer cet enregistrement et donner la valeur "Applicant: Acknowledgement" dans le champ __email template__
|
||||
3. Sauvegarder
|
||||
4. Cliquer sur la valeur du champ __Email Template__ pour modifier le modèle d'email.
|
||||
2. Ouvrir la fiche de l'identifiant __hr_recruitment.stage_job2__
|
||||
1. Cliquer sur __First Interview__ dans le champ __Enregistrement__
|
||||
2. Éditer cet enregistrement et vider le champ __Email Template__
|
||||
3. Sauvegarder
|
||||
3.
|
||||
@ -2,6 +2,22 @@
|
||||
|
||||
Le paramétrage suivant doit permettre l'utilisation d'odoo pour l'ensemble des travaux comptables standards.
|
||||
|
||||
## État de la documentation
|
||||
???example "Liste des processus documentés / en cours"
|
||||
|
||||
=== "En cours"
|
||||
- [x] [Installation des applications officielles](#21-installation-des-applications-officielles)
|
||||
- [x] [Installation des modules complémentaires](#22-installation-des-modules-communautaires)
|
||||
- [x] [Modification du module de vente pour les Factures à Établir](#31-module-des-ventes)
|
||||
|
||||
=== "Fait"
|
||||
- [x] [Configuration des taxes](#41-parametrage-des-taxes)
|
||||
- [x] [Paramétrage de la compta dans les paramètres généraux](#42-parametres-generaux)
|
||||
- [x] [Paramétrage des journaux](#43-parametrage-des-journaux)
|
||||
- [x] [Configuration de la facturation](#44-configuration-de-la-facturation)
|
||||
- [x] [Création d'un employé](#45-creation-dun-employe)
|
||||
|
||||
|
||||
## Installation des applications et modules
|
||||
|
||||
### Installation des applications officielles
|
||||
@ -86,6 +102,16 @@ Le paramétrage suivant doit permettre l'utilisation d'odoo pour l'ensemble des
|
||||
| account_move_line_sale_info | Créer des écritures comptables dès la vente de manière à enregistrer les biens vendus non-facturés au cut-off | https://apps.odoo.com |
|
||||
| om_account_followup | Suivi automatique des impayés et relances clients | https://apps.odoo.com/ |
|
||||
| account_move_force_removal | Permet de supprimer des entrées comptabilisées | https://odoo-community.org/ |
|
||||
| account_cutoff_base | Pour réaliser les écritures de fin d'exercice | https://apps.odoo.com |
|
||||
| account_invoice_start_end_dates | Pour avoir une date de début et une date de fin sur les factures | https://apps.odoo.com |
|
||||
| account_cutoff_start_end_dates | Utilise la date de début et de fin sur les factures pour réaliser les écritures de clôture | https://apps.odoo.com |
|
||||
| account_cutoff_accrual_subscription | Créer des revenus différés à partir d' "abonnements" | https://apps.odoo.com |
|
||||
| sale_start_end_dates | Ajoute date de début et date de fin sur les devis | https://apps.odoo.com |
|
||||
| purchase_subscription | Abonnements pour le suivi des factures à venir | https://apps.odoo.com |
|
||||
| sale_start_end_dates | Ajoute des lignes de début et de fin sur les devis, qui seront reprises dans les factures | https://apps.odoo.com |
|
||||
| sale_order_invoice_amount | Ajoute les informations "montant facturé" et "montant non-facturé" sur les commandes | https://apps.odoo.com |
|
||||
| hr_expense_invoice | Permet de saisir les factures fournisseurs qui sont présentes dans une note de frais | https://apps.odoo.com |
|
||||
| account_move_line_sale_info |
|
||||
|
||||
=== "Odoo 15"
|
||||
| module | description |
|
||||
@ -98,6 +124,28 @@ Le paramétrage suivant doit permettre l'utilisation d'odoo pour l'ensemble des
|
||||
| om_account_followup | Suivi automatique des impayés et relances clients |
|
||||
| sale_advance_payment | Permet d'enregistrer des paiements d'avance sur des ventes |
|
||||
|
||||
|
||||
## Customisation de modules
|
||||
|
||||
### Module des ventes
|
||||
|
||||
???example "Une modification du code à la main en attendant de mettre en place un module dédié"
|
||||
Nous avons besoin d'être en mesure de modifier la date de validation de commande, qui se positionne automatiquement à la date du jour où on valide le devis, et qu'on ne peut pas modifier après.
|
||||
Modifier la date de commande permettra à la commande d'être prise en compte pour déterminer l'écriture des Factures Non Parvenues en fin d'exercice.
|
||||
|
||||
Pour cela, on modifie le fichier `/usr/lib/python3/dist-packages/odoo/addons/sale/models/sale.py` dans le container odoo.
|
||||
|
||||
Remplacer la ligne 171:
|
||||
```
|
||||
date_order = fields.Datetime(string='Order Date', required=True, readonly=True, index=True, states={'draft': [('readonly', False)], 'sent': [('readonly', False)]}, copy=False, default=fields.Datetime.now, help="Creation date of draft/sent orders,\nConfirmation date of confirmed orders.")
|
||||
```
|
||||
par ceci:
|
||||
```
|
||||
172: date_order = fields.Datetime(string='Order Date', required=True, readonly=True, index=True, states={'draft': [('readonly', False)], 'sent': [('readonly', False)], 'sale': [('readonly', False)]}, copy=False, help="Creation date of draft/sent orders,\nConfirmation date of confirmed orders.")
|
||||
```
|
||||
|
||||
Il faut ensuite relancer odoo avec `docker-compose restart`.
|
||||
|
||||
## Configuration d'odoo
|
||||
|
||||
### Paramétrage des taxes
|
||||
|
||||
9
docs/admin/process-odoo/odoo-subventions.md
Normal file
@ -0,0 +1,9 @@
|
||||
# Saisir une subvention
|
||||
|
||||
## Saisir une subvention qui s'étale sur 2 exercices
|
||||
|
||||
## Cas 1:
|
||||
1. Création de la facture Client
|
||||
|
||||
- Aller dans le menu __Facturation__ > __Clients__ > __Factures__ > __Créer__
|
||||
- Dans les lignes de la la facture, ajouter
|
||||
58
docs/admin/rh/arret-travail.md
Normal file
@ -0,0 +1,58 @@
|
||||
# Saisie d'un arrêt de travail
|
||||
|
||||
La saisie d'un arrêt de travail se fait en plusieurs étapes:
|
||||
|
||||
- [Analyse des éléments]()
|
||||
- [Déclaration de l'arrêt sur Net-entreprise]()
|
||||
- [Déclaration de l'arrêt sur le chèque emploi associatif]()
|
||||
- [Déclaration de la reprise sur le chèque emploi associatif]()
|
||||
- [Création du volet social]()
|
||||
- [Enregistrement dans Odoo]()
|
||||
|
||||
## Analyse des éléments
|
||||
|
||||
???example "On vérifie les élements grâce à la documentation fournie par le syndicat employeur sur hexopee.org"
|
||||
|
||||
Les informations liées au calcul des indemnités en cas de maladie non-professionnelle sont décrites dans la [fiche 59](https://www.hexopee.org/publication/59).
|
||||
|
||||
|
||||
## Déclaration de l'arrêt sur Net-entreprises
|
||||
|
||||
???example "On déclare l'arrêt sur www.net-entreprises.fr, rubrique __Attestation de salaire__"
|
||||
|
||||
1. Choisir __Attestation de salaire pour le versement des indemnités journalières__
|
||||
2. Choisir __Saisie des formulaires en ligne EFI__
|
||||
3. Choisir les caractéristiques de l'arrêt
|
||||
|
||||
## Récupération du borderau de paiement sur Net-entreprises
|
||||
|
||||
???example "On récupère le bordereau de paiement sur www.net-entreprises.fr, rubrique __Attestation de salaire__"
|
||||
|
||||
1. Choisir __Bordereaux de paiement des indemnités journalières__
|
||||
|
||||
|
||||
## Déclaration de l'arrêt sur le chèque emploi associatif
|
||||
|
||||
???example "On déclare l'arrêt sur le site cea.ursaf.fr"
|
||||
|
||||
1. cliquer sur le menu __Arrêts de travail__
|
||||
2. Sélectionner "Je souhaite signaler un arrêt de travail"
|
||||
3. Remplir le formulaire avec le motif de l'arrêt, le nom du salarié, et les dates (la veille de l'arrêt et le dernier jour de l'arrêt. ex: pour un arrêt du 27/04 au 01/05, les dates à inscrire sont 26/04 et 01/05). On souscrit au régime de la subrogation, et les dates de la subrogation correspondent aux dates de l'arrêt.
|
||||
|
||||
## Déclaration de la reprise de travail sur le chèque emploi associatif
|
||||
|
||||
???example "On déclare la reprise sur le site cea.ursaf.fr"
|
||||
|
||||
1. Cliquer sur le menu __Arrêts de travail__
|
||||
2. Sélectionner "Je souhaite signaler une reprise suite à un arrêt de travail"
|
||||
3. Sélectionner le signalement en cours
|
||||
4. Remplir la date et le motif de reprise
|
||||
|
||||
## Création du volet social sur le chèque emploi associatif
|
||||
|
||||
???example "On déclare le volet social en prenant en compte la période d'absence"
|
||||
|
||||
1. Cliqer sur __Volets sociaux__ > __Créer un volet social__
|
||||
2. Sélectionner dans les options: __Déclarer des absences partiellement ou non rémunérées__
|
||||
3. Indiquer le montant payé sous forme de montant Net. Pour la périodicité, marquer le nombre d'heures habituellement réalisées moins les heures manquées. Par exemple, pour un salarié à 35h absent 3jours, la périodicité est 130,67h.
|
||||
4. Dans le formulaire __Absences__, marquer le motif et le nombre de jours __calendaires__ (y compris le samedi et le dimanche) de l'arrêt. Marquer le montant mensuel brut habituel, et le montant net des indemnités (50% du salaire journalier (3*brut / 91,25) * le nombre de jours calendaires de l'arrêt)
|
||||
5
docs/admin/rh/index.md
Normal file
@ -0,0 +1,5 @@
|
||||
# Procédures RH
|
||||
|
||||
La rubrique suivante contient des guides pour les démarches administratives liées aux Ressources humaines:
|
||||
|
||||
- [Saisir un arrêt de travail](arret-travail.md)
|
||||
BIN
docs/assets/git/git-branch.png
Normal file
|
After Width: | Height: | Size: 64 KiB |
BIN
docs/assets/git/git.png
Normal file
|
After Width: | Height: | Size: 2.1 KiB |
BIN
docs/assets/logo-garage-petit.png
Normal file
|
After Width: | Height: | Size: 55 KiB |
BIN
docs/assets/logo-web-garage_numerique.png
Normal file
|
After Width: | Height: | Size: 15 KiB |
@ -43,8 +43,20 @@ sudo apt install -f -y
|
||||
### Démarrage de l'agent
|
||||
|
||||
```
|
||||
sudo systemctl restart fusioninventory-agent &&\
|
||||
sudo systemctl restart fusioninventory-agent
|
||||
sleep 5
|
||||
sudo pkill -USR1 -f -P 1 fusioninventory-agent
|
||||
```
|
||||
|
||||
Les informations de votre ordinateur remontent automatiquement sur le serveur GLPI
|
||||
|
||||
## Installation automatisée
|
||||
|
||||
```
|
||||
git clone https://gitlab.com/KendaRavenclaw/deploiementfusioninventoryclient.git
|
||||
cd deploiementfusioninventoryclient/
|
||||
./FusionDeploiementClient.sh
|
||||
```
|
||||
|
||||
Par défaut, l'adresse de l'instance GLPI du Garage est configuré.
|
||||
Pour faire remonter les information du client vers une autre instance GLPI, entrer l'adresse de celle-ci.
|
||||
@ -15,6 +15,6 @@
|
||||
ls /mnt/nom_du_dossier
|
||||
```
|
||||
5. Copier le dossier utilisateur vers le disque dur sur le PXE
|
||||
```
|
||||
rsync -ah /mnt/part1/Users/sandra bellinuxien@192.168.30.1:/media/bellinuxien/BigBackup/num_ordi-nom_personne/ --info=progress2 && sync
|
||||
```bash
|
||||
rsync -ah /mnt/part1/Users/sandra bellinuxien@192.168.1.75:/home/bellinuxien/BACKUP/num_ordi-nom_personne/ --info=progress2 && sync
|
||||
```
|
||||
|
||||
@ -1,6 +1,7 @@
|
||||
# Mémos sur les commandes Linux
|
||||
|
||||
- [screen](screen.md)
|
||||
- [backup](backup.md)
|
||||
- [rsync](backup.md)
|
||||
- [nmcli](nmcli.md)
|
||||
- [Monter une partition](mount.md)
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
# Monter une partition en ligne de commande
|
||||
# Monter une partition
|
||||
|
||||
|
||||
## Repérer les partitions disponibles
|
||||
|
||||
|
||||
@ -1,17 +1,17 @@
|
||||
# nmcli
|
||||
|
||||
Scanner le reseau
|
||||
|
||||
$ nmcli d wifi
|
||||
|
||||
```bash
|
||||
nmcli d wifi
|
||||
```
|
||||
Se connecter au reseau pour la première fois
|
||||
|
||||
$ nmcli d wifi connect <SSID> -a
|
||||
|
||||
```bash
|
||||
nmcli d wifi connect <SSID> -a
|
||||
```
|
||||
Se connection à un reseau existant
|
||||
|
||||
$ nmcli con <SSID>
|
||||
|
||||
```bash
|
||||
nmcli con <SSID>
|
||||
```
|
||||
Changer les serveurs DNS
|
||||
Méthode degeulasse
|
||||
/!\ Peut poser problème pour les reseaux necessitant un portail de connection /!\
|
||||
@ -25,6 +25,6 @@ Méthode degeulasse
|
||||
|
||||
Méthode clean
|
||||
/!\ À faire pour chaque point d'accès /!\
|
||||
|
||||
$ nmcli con mod <SSID> ipv4.dns "80.67.169.12 80.67.169.40" ipv4.ignore-auto-dns yes
|
||||
|
||||
```bash
|
||||
nmcli con mod <SSID> ipv4.dns "80.67.169.12 80.67.169.40" ipv4.ignore-auto-dns yes
|
||||
```
|
||||
|
||||
158
docs/divers/git/git.md
Normal file
@ -0,0 +1,158 @@
|
||||
|
||||
# GIT Source Code Management
|
||||
|
||||
Git est un système de gestion de versions partagé qui fut développé en 2005 par le créateur de Linux Linus Thorvalds et publié sous licence libre GNU-GPLv2.
|
||||
Il permet de stocker son code source en ligne pour y accéder de n'importe où et le partager facilement.
|
||||
|
||||
<img src="../../../assets/git/git-branch.png">
|
||||
|
||||
## Installation
|
||||
|
||||
```bash
|
||||
sudo apt install git -y
|
||||
```
|
||||
|
||||
## Les principales commandes
|
||||
|
||||
- Cloner un dépôt distant sur sa machine locale:
|
||||
|
||||
```bash
|
||||
git clone https://gitlab.com/mon-dépôt-distant.git
|
||||
```
|
||||
|
||||
- Initialiser un dossier de projet pour le "pousser" en ligne:
|
||||
|
||||
```bash
|
||||
cd mon-projet/
|
||||
git init
|
||||
```
|
||||
|
||||
- Ajouter des fichiers au suivi (pour les synchroniser vers un dépôt distant):
|
||||
|
||||
```bash
|
||||
git add fichier1 fichier2
|
||||
```
|
||||
|
||||
- Créer un enregistrement (une version) du code avec un commentaire:
|
||||
|
||||
```bash
|
||||
git commit -m "commentaire (exemple: modification du fichier1, ajout fonction test"
|
||||
```
|
||||
|
||||
- Pousser les changements vers le dépôt distant (Gitlab ou Github par exemple):
|
||||
|
||||
```bash
|
||||
git push
|
||||
```
|
||||
|
||||
- Changer de branche dans le projet:
|
||||
|
||||
```bash
|
||||
git checkout nom-de-la-branche
|
||||
```
|
||||
|
||||
- Créer une nouvelle branche à partir de la branche actuelle:
|
||||
|
||||
```bash
|
||||
git branch nom-nouvelle-branche
|
||||
```
|
||||
|
||||
- Pousser une branche nouvellement créée en local vers le dépôt distant:
|
||||
|
||||
```bash
|
||||
git push origin nom-nouvelle-branche
|
||||
```
|
||||
|
||||
## Workflow
|
||||
|
||||
### Cloner un dépôt distant en local, l'éditer puis pousser les changement
|
||||
|
||||
- Cloner un dépôt distant sur sa machine locale:
|
||||
|
||||
```bash
|
||||
git clone https://gitlab.com/mon-dépôt-distant.git
|
||||
```
|
||||
|
||||
- Entrer dans le dossier du dépôt et modifier un fichier:
|
||||
|
||||
```bash
|
||||
cd mon-dépôt-distant/
|
||||
# modification sur un fichier
|
||||
```
|
||||
|
||||
- Ajouter le fichier modifié au suivi:
|
||||
|
||||
```bash
|
||||
git add fichier-modifié
|
||||
```
|
||||
|
||||
- Créer un enregistrement de la modification
|
||||
|
||||
```bash
|
||||
git commit -m "modif fichier-modifié"
|
||||
```
|
||||
|
||||
- Pousser les changements sur le dépôt en ligne:
|
||||
|
||||
```bash
|
||||
git push
|
||||
```
|
||||
|
||||
### Initialiser un dépôt git dans un fichier local afin de le pousser sur un dépôt en ligne
|
||||
|
||||
- On entre dans le dossier et on l'initialise en tant que dépôt git:
|
||||
|
||||
```bash
|
||||
cd mon-dépôt-local/
|
||||
git init
|
||||
```
|
||||
|
||||
- Ajouter tout les fichiers du dossier au suivi:
|
||||
|
||||
```bash
|
||||
git add *
|
||||
# ou
|
||||
git add .
|
||||
```
|
||||
|
||||
- Ajouter l'adresse du dépôt distant qui va recevoir le dépôt local:
|
||||
|
||||
```bash
|
||||
git remote add origin https://gitlab.com/mon-user/mon-nouveau-dépôt.git
|
||||
```
|
||||
|
||||
- Créer un enregistrement avec un commentaire:
|
||||
|
||||
```bash
|
||||
git commit -m "premier push"
|
||||
```
|
||||
|
||||
- Pousser le nouveau dépôt vers le dépôt distant en ligne:
|
||||
|
||||
```bash
|
||||
git push origin main # ou le nom de la branche
|
||||
```
|
||||
|
||||
## Autres commandes utiles
|
||||
|
||||
- Connaitre l'état du dépôt local:
|
||||
|
||||
```bash
|
||||
git status
|
||||
```
|
||||
|
||||
- Revenir à l'état après le git clone en éffaçant les chagements éffectués:
|
||||
|
||||
```bash
|
||||
git reset --hard HEAD
|
||||
```
|
||||
|
||||
- Visualiser les différences entre les fichiers originaux et les fichiers modifiés:
|
||||
|
||||
```bash
|
||||
git diff
|
||||
```
|
||||
|
||||
## Référence
|
||||
|
||||
[Documentation GIT](https://git-scm.com/)
|
||||
17
docs/divers/internal/img/LICENSE.assets
Normal file
@ -0,0 +1,17 @@
|
||||
ASSETS LICENSE
|
||||
|
||||
(Notice)
|
||||
Assets distributed with a map are subject to different licenses.
|
||||
The license attributed to each tileset can be found or have to be added in the "tilesetCopyright" property of each tileset in the map.
|
||||
In addition, you have to add a section below with the specific license of the asset you want to use.
|
||||
|
||||
|
||||
WORKADVENTURE SPECIFIC RESOURCES LICENSE
|
||||
|
||||
The User shall handle assets with the WorkAdventure specific resources license as follows:
|
||||
|
||||
1. These Assets may be used only in maps produced for WorkAdventure (SAAS or self-hosted version).
|
||||
|
||||
2. These Assets may be modified (colors or size changed, inverted, trimmed, etc.) only for purposes of use in maps produced for WorkAdventure (SAAS or self-hosted version).
|
||||
|
||||
3. These Assets or those modified pursuant to the previous item may undergo Distribution, etc. with maps produced for WorkAdventure. Furthermore, the User may not perform Distribution, etc. of individual Assets or those modified, or Distribution, etc. in combination with programs, etc. other than the map. However, the User may duplicate, transfer, publicly transmit, or enable transmission of personally-modified Assets to other Authorized Users free of charge.
|
||||
12
docs/divers/internal/img/LICENSE.code
Normal file
@ -0,0 +1,12 @@
|
||||
CODE LICENSE
|
||||
|
||||
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2021 TheCodingMachine
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
66
docs/divers/internal/img/LICENSE.map
Normal file
@ -0,0 +1,66 @@
|
||||
MAP LICENSE
|
||||
|
||||
|
||||
https://creativecommons.org/licenses/by-sa/3.0/
|
||||
|
||||
THE WORK (AS DEFINED BELOW) IS PROVIDED UNDER THE TERMS OF THIS CREATIVE COMMONS PUBLIC LICENSE ("CCPL" OR "LICENSE"). THE WORK IS PROTECTED BY COPYRIGHT AND/OR OTHER APPLICABLE LAW. ANY USE OF THE WORK OTHER THAN AS AUTHORIZED UNDER THIS LICENSE OR COPYRIGHT LAW IS PROHIBITED.
|
||||
|
||||
BY EXERCISING ANY RIGHTS TO THE WORK PROVIDED HERE, YOU ACCEPT AND AGREE TO BE BOUND BY THE TERMS OF THIS LICENSE. TO THE EXTENT THIS LICENSE MAY BE CONSIDERED TO BE A CONTRACT, THE LICENSOR GRANTS YOU THE RIGHTS CONTAINED HERE IN CONSIDERATION OF YOUR ACCEPTANCE OF SUCH TERMS AND CONDITIONS.
|
||||
|
||||
1. Definitions
|
||||
|
||||
a. "Adaptation" means a work based upon the Work, or upon the Work and other pre-existing works, such as a translation, adaptation, derivative work, arrangement of music or other alterations of a literary or artistic work, or phonogram or performance and includes cinematographic adaptations or any other form in which the Work may be recast, transformed, or adapted including in any form recognizably derived from the original, except that a work that constitutes a Collection will not be considered an Adaptation for the purpose of this License. For the avoidance of doubt, where the Work is a musical work, performance or phonogram, the synchronization of the Work in timed-relation with a moving image ("synching") will be considered an Adaptation for the purpose of this License.
|
||||
b. "Collection" means a collection of literary or artistic works, such as encyclopedias and anthologies, or performances, phonograms or broadcasts, or other works or subject matter other than works listed in Section 1(f) below, which, by reason of the selection and arrangement of their contents, constitute intellectual creations, in which the Work is included in its entirety in unmodified form along with one or more other contributions, each constituting separate and independent works in themselves, which together are assembled into a collective whole. A work that constitutes a Collection will not be considered an Adaptation (as defined below) for the purposes of this License.
|
||||
c. "Creative Commons Compatible License" means a license that is listed at https://creativecommons.org/compatiblelicenses that has been approved by Creative Commons as being essentially equivalent to this License, including, at a minimum, because that license: (i) contains terms that have the same purpose, meaning and effect as the License Elements of this License; and, (ii) explicitly permits the relicensing of adaptations of works made available under that license under this License or a Creative Commons jurisdiction license with the same License Elements as this License.
|
||||
d. "Distribute" means to make available to the public the original and copies of the Work or Adaptation, as appropriate, through sale or other transfer of ownership.
|
||||
e. "License Elements" means the following high-level license attributes as selected by Licensor and indicated in the title of this License: Attribution, ShareAlike.
|
||||
f. "Licensor" means the individual, individuals, entity or entities that offer(s) the Work under the terms of this License.
|
||||
g. "Original Author" means, in the case of a literary or artistic work, the individual, individuals, entity or entities who created the Work or if no individual or entity can be identified, the publisher; and in addition (i) in the case of a performance the actors, singers, musicians, dancers, and other persons who act, sing, deliver, declaim, play in, interpret or otherwise perform literary or artistic works or expressions of folklore; (ii) in the case of a phonogram the producer being the person or legal entity who first fixes the sounds of a performance or other sounds; and, (iii) in the case of broadcasts, the organization that transmits the broadcast.
|
||||
h. "Work" means the literary and/or artistic work offered under the terms of this License including without limitation any production in the literary, scientific and artistic domain, whatever may be the mode or form of its expression including digital form, such as a book, pamphlet and other writing; a lecture, address, sermon or other work of the same nature; a dramatic or dramatico-musical work; a choreographic work or entertainment in dumb show; a musical composition with or without words; a cinematographic work to which are assimilated works expressed by a process analogous to cinematography; a work of drawing, painting, architecture, sculpture, engraving or lithography; a photographic work to which are assimilated works expressed by a process analogous to photography; a work of applied art; an illustration, map, plan, sketch or three-dimensional work relative to geography, topography, architecture or science; a performance; a broadcast; a phonogram; a compilation of data to the extent it is protected as a copyrightable work; or a work performed by a variety or circus performer to the extent it is not otherwise considered a literary or artistic work.
|
||||
i. "You" means an individual or entity exercising rights under this License who has not previously violated the terms of this License with respect to the Work, or who has received express permission from the Licensor to exercise rights under this License despite a previous violation.
|
||||
j. "Publicly Perform" means to perform public recitations of the Work and to communicate to the public those public recitations, by any means or process, including by wire or wireless means or public digital performances; to make available to the public Works in such a way that members of the public may access these Works from a place and at a place individually chosen by them; to perform the Work to the public by any means or process and the communication to the public of the performances of the Work, including by public digital performance; to broadcast and rebroadcast the Work by any means including signs, sounds or images.
|
||||
k. "Reproduce" means to make copies of the Work by any means including without limitation by sound or visual recordings and the right of fixation and reproducing fixations of the Work, including storage of a protected performance or phonogram in digital form or other electronic medium.
|
||||
|
||||
2. Fair Dealing Rights. Nothing in this License is intended to reduce, limit, or restrict any uses free from copyright or rights arising from limitations or exceptions that are provided for in connection with the copyright protection under copyright law or other applicable laws.
|
||||
|
||||
3. License Grant. Subject to the terms and conditions of this License, Licensor hereby grants You a worldwide, royalty-free, non-exclusive, perpetual (for the duration of the applicable copyright) license to exercise the rights in the Work as stated below:
|
||||
|
||||
a. to Reproduce the Work, to incorporate the Work into one or more Collections, and to Reproduce the Work as incorporated in the Collections;
|
||||
b. to create and Reproduce Adaptations provided that any such Adaptation, including any translation in any medium, takes reasonable steps to clearly label, demarcate or otherwise identify that changes were made to the original Work. For example, a translation could be marked "The original work was translated from English to Spanish," or a modification could indicate "The original work has been modified.";
|
||||
c. to Distribute and Publicly Perform the Work including as incorporated in Collections; and,
|
||||
d. to Distribute and Publicly Perform Adaptations.
|
||||
e. For the avoidance of doubt:
|
||||
i. Non-waivable Compulsory License Schemes. In those jurisdictions in which the right to collect royalties through any statutory or compulsory licensing scheme cannot be waived, the Licensor reserves the exclusive right to collect such royalties for any exercise by You of the rights granted under this License;
|
||||
ii. Waivable Compulsory License Schemes. In those jurisdictions in which the right to collect royalties through any statutory or compulsory licensing scheme can be waived, the Licensor waives the exclusive right to collect such royalties for any exercise by You of the rights granted under this License; and,
|
||||
iii. Voluntary License Schemes. The Licensor waives the right to collect royalties, whether individually or, in the event that the Licensor is a member of a collecting society that administers voluntary licensing schemes, via that society, from any exercise by You of the rights granted under this License.
|
||||
|
||||
The above rights may be exercised in all media and formats whether now known or hereafter devised. The above rights include the right to make such modifications as are technically necessary to exercise the rights in other media and formats. Subject to Section 8(f), all rights not expressly granted by Licensor are hereby reserved.
|
||||
|
||||
4. Restrictions. The license granted in Section 3 above is expressly made subject to and limited by the following restrictions:
|
||||
|
||||
a. You may Distribute or Publicly Perform the Work only under the terms of this License. You must include a copy of, or the Uniform Resource Identifier (URI) for, this License with every copy of the Work You Distribute or Publicly Perform. You may not offer or impose any terms on the Work that restrict the terms of this License or the ability of the recipient of the Work to exercise the rights granted to that recipient under the terms of the License. You may not sublicense the Work. You must keep intact all notices that refer to this License and to the disclaimer of warranties with every copy of the Work You Distribute or Publicly Perform. When You Distribute or Publicly Perform the Work, You may not impose any effective technological measures on the Work that restrict the ability of a recipient of the Work from You to exercise the rights granted to that recipient under the terms of the License. This Section 4(a) applies to the Work as incorporated in a Collection, but this does not require the Collection apart from the Work itself to be made subject to the terms of this License. If You create a Collection, upon notice from any Licensor You must, to the extent practicable, remove from the Collection any credit as required by Section 4(c), as requested. If You create an Adaptation, upon notice from any Licensor You must, to the extent practicable, remove from the Adaptation any credit as required by Section 4(c), as requested.
|
||||
b. You may Distribute or Publicly Perform an Adaptation only under the terms of: (i) this License; (ii) a later version of this License with the same License Elements as this License; (iii) a Creative Commons jurisdiction license (either this or a later license version) that contains the same License Elements as this License (e.g., Attribution-ShareAlike 3.0 US)); (iv) a Creative Commons Compatible License. If you license the Adaptation under one of the licenses mentioned in (iv), you must comply with the terms of that license. If you license the Adaptation under the terms of any of the licenses mentioned in (i), (ii) or (iii) (the "Applicable License"), you must comply with the terms of the Applicable License generally and the following provisions: (I) You must include a copy of, or the URI for, the Applicable License with every copy of each Adaptation You Distribute or Publicly Perform; (II) You may not offer or impose any terms on the Adaptation that restrict the terms of the Applicable License or the ability of the recipient of the Adaptation to exercise the rights granted to that recipient under the terms of the Applicable License; (III) You must keep intact all notices that refer to the Applicable License and to the disclaimer of warranties with every copy of the Work as included in the Adaptation You Distribute or Publicly Perform; (IV) when You Distribute or Publicly Perform the Adaptation, You may not impose any effective technological measures on the Adaptation that restrict the ability of a recipient of the Adaptation from You to exercise the rights granted to that recipient under the terms of the Applicable License. This Section 4(b) applies to the Adaptation as incorporated in a Collection, but this does not require the Collection apart from the Adaptation itself to be made subject to the terms of the Applicable License.
|
||||
c. If You Distribute, or Publicly Perform the Work or any Adaptations or Collections, You must, unless a request has been made pursuant to Section 4(a), keep intact all copyright notices for the Work and provide, reasonable to the medium or means You are utilizing: (i) the name of the Original Author (or pseudonym, if applicable) if supplied, and/or if the Original Author and/or Licensor designate another party or parties (e.g., a sponsor institute, publishing entity, journal) for attribution ("Attribution Parties") in Licensor's copyright notice, terms of service or by other reasonable means, the name of such party or parties; (ii) the title of the Work if supplied; (iii) to the extent reasonably practicable, the URI, if any, that Licensor specifies to be associated with the Work, unless such URI does not refer to the copyright notice or licensing information for the Work; and (iv) , consistent with Ssection 3(b), in the case of an Adaptation, a credit identifying the use of the Work in the Adaptation (e.g., "French translation of the Work by Original Author," or "Screenplay based on original Work by Original Author"). The credit required by this Section 4(c) may be implemented in any reasonable manner; provided, however, that in the case of a Adaptation or Collection, at a minimum such credit will appear, if a credit for all contributing authors of the Adaptation or Collection appears, then as part of these credits and in a manner at least as prominent as the credits for the other contributing authors. For the avoidance of doubt, You may only use the credit required by this Section for the purpose of attribution in the manner set out above and, by exercising Your rights under this License, You may not implicitly or explicitly assert or imply any connection with, sponsorship or endorsement by the Original Author, Licensor and/or Attribution Parties, as appropriate, of You or Your use of the Work, without the separate, express prior written permission of the Original Author, Licensor and/or Attribution Parties.
|
||||
d. Except as otherwise agreed in writing by the Licensor or as may be otherwise permitted by applicable law, if You Reproduce, Distribute or Publicly Perform the Work either by itself or as part of any Adaptations or Collections, You must not distort, mutilate, modify or take other derogatory action in relation to the Work which would be prejudicial to the Original Author's honor or reputation. Licensor agrees that in those jurisdictions (e.g. Japan), in which any exercise of the right granted in Section 3(b) of this License (the right to make Adaptations) would be deemed to be a distortion, mutilation, modification or other derogatory action prejudicial to the Original Author's honor and reputation, the Licensor will waive or not assert, as appropriate, this Section, to the fullest extent permitted by the applicable national law, to enable You to reasonably exercise Your right under Section 3(b) of this License (right to make Adaptations) but not otherwise.
|
||||
|
||||
5. Representations, Warranties and Disclaimer
|
||||
|
||||
UNLESS OTHERWISE MUTUALLY AGREED TO BY THE PARTIES IN WRITING, LICENSOR OFFERS THE WORK AS-IS AND MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND CONCERNING THE WORK, EXPRESS, IMPLIED, STATUTORY OR OTHERWISE, INCLUDING, WITHOUT LIMITATION, WARRANTIES OF TITLE, MERCHANTIBILITY, FITNESS FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR THE ABSENCE OF LATENT OR OTHER DEFECTS, ACCURACY, OR THE PRESENCE OF ABSENCE OF ERRORS, WHETHER OR NOT DISCOVERABLE. SOME JURISDICTIONS DO NOT ALLOW THE EXCLUSION OF IMPLIED WARRANTIES, SO SUCH EXCLUSION MAY NOT APPLY TO YOU.
|
||||
|
||||
6. Limitation on Liability.
|
||||
|
||||
EXCEPT TO THE EXTENT REQUIRED BY APPLICABLE LAW, IN NO EVENT WILL LICENSOR BE LIABLE TO YOU ON ANY LEGAL THEORY FOR ANY SPECIAL, INCIDENTAL, CONSEQUENTIAL, PUNITIVE OR EXEMPLARY DAMAGES ARISING OUT OF THIS LICENSE OR THE USE OF THE WORK, EVEN IF LICENSOR HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
|
||||
|
||||
7. Termination
|
||||
|
||||
a. This License and the rights granted hereunder will terminate automatically upon any breach by You of the terms of this License. Individuals or entities who have received Adaptations or Collections from You under this License, however, will not have their licenses terminated provided such individuals or entities remain in full compliance with those licenses. Sections 1, 2, 5, 6, 7, and 8 will survive any termination of this License.
|
||||
b. Subject to the above terms and conditions, the license granted here is perpetual (for the duration of the applicable copyright in the Work). Notwithstanding the above, Licensor reserves the right to release the Work under different license terms or to stop distributing the Work at any time; provided, however that any such election will not serve to withdraw this License (or any other license that has been, or is required to be, granted under the terms of this License), and this License will continue in full force and effect unless terminated as stated above.
|
||||
|
||||
8. Miscellaneous
|
||||
|
||||
a. Each time You Distribute or Publicly Perform the Work or a Collection, the Licensor offers to the recipient a license to the Work on the same terms and conditions as the license granted to You under this License.
|
||||
b. Each time You Distribute or Publicly Perform an Adaptation, Licensor offers to the recipient a license to the original Work on the same terms and conditions as the license granted to You under this License.
|
||||
c. If any provision of this License is invalid or unenforceable under applicable law, it shall not affect the validity or enforceability of the remainder of the terms of this License, and without further action by the parties to this agreement, such provision shall be reformed to the minimum extent necessary to make such provision valid and enforceable.
|
||||
d. No term or provision of this License shall be deemed waived and no breach consented to unless such waiver or consent shall be in writing and signed by the party to be charged with such waiver or consent.
|
||||
e. This License constitutes the entire agreement between the parties with respect to the Work licensed here. There are no understandings, agreements or representations with respect to the Work not specified here. Licensor shall not be bound by any additional provisions that may appear in any communication from You. This License may not be modified without the mutual written agreement of the Licensor and You.
|
||||
f. The rights granted under, and the subject matter referenced, in this License were drafted utilizing the terminology of the Berne Convention for the Protection of Literary and Artistic Works (as amended on September 28, 1979), the Rome Convention of 1961, the WIPO Copyright Treaty of 1996, the WIPO Performances and Phonograms Treaty of 1996 and the Universal Copyright Convention (as revised on July 24, 1971). These rights and subject matter take effect in the relevant jurisdiction in which the License terms are sought to be enforced according to the corresponding provisions of the implementation of those treaty provisions in the applicable national law. If the standard suite of rights granted under applicable copyright law includes additional rights not granted under this License, such additional rights are deemed to be included in the License; this License is not intended to restrict the license of any rights under applicable law.
|
||||
BIN
docs/divers/internal/img/blocs.png
Normal file
|
After Width: | Height: | Size: 304 KiB |
BIN
docs/divers/internal/img/layers.png
Normal file
|
After Width: | Height: | Size: 285 KiB |
BIN
docs/divers/internal/img/map.png
Normal file
|
After Width: | Height: | Size: 241 KiB |
BIN
docs/divers/internal/img/props.png
Normal file
|
After Width: | Height: | Size: 276 KiB |
BIN
docs/divers/internal/img/tileset.png
Normal file
|
After Width: | Height: | Size: 293 KiB |
@ -3,4 +3,5 @@
|
||||
Cette rubrique regroupe des astuces internes au Garage
|
||||
|
||||
- [Imprimantes](install-printers.md)
|
||||
- [Workadventure map du garage](wa.md)
|
||||
- [Contribuer à la doc avec mkdocs](mkdocs.md)
|
||||
|
||||
111
docs/divers/internal/wa.md
Normal file
@ -0,0 +1,111 @@
|
||||
# WORKADVENTURE GARAGE MAP
|
||||
|
||||

|
||||
|
||||
This is a starter kit to help you build your own map for [WorkAdventure](https://workadventu.re).
|
||||
|
||||
To understand how to use this starter kit, follow the tutorial at [https://workadventu.re/map-building](https://workadventu.re/map-building).
|
||||
|
||||
## Prérequis
|
||||
|
||||
- [Tiled](https://www.mapeditor.org/)
|
||||
|
||||
- npm (comes with [node](https://nodejs.org/en/))
|
||||
|
||||
### Installation de Tiled (éditeur de map)
|
||||
|
||||
- Ouvrir un terminal et copier les commandes suivantes:
|
||||
```bash
|
||||
git clone https://github.com/GregLebreton/adventure-map.git
|
||||
cd adventure-map
|
||||
./install.sh
|
||||
source ~/.bashrc
|
||||
```
|
||||
|
||||
- Pour démarrer Tiled, entrer la commande suivante dans le terminal:
|
||||
```
|
||||
tiled
|
||||
```
|
||||
|
||||
### Installation de npm (server local)
|
||||
|
||||
```bash
|
||||
sudo apt install npm -y
|
||||
```
|
||||
|
||||
### Utilisation
|
||||
|
||||
```bash
|
||||
npm install
|
||||
npm run start
|
||||
```
|
||||
|
||||
Le navigateur s'ouvre, choisir "tester la map"
|
||||
|
||||
!!! note A chaque modification sur la map, enregistrer (ctrl+s) sur Tiled et recharger la page du navigateur.
|
||||
|
||||
## Blocs
|
||||
|
||||
Les blocs (ou tiles pour tuile en anglais) vont afficher les textures choisies dans les jeux de tuiles sur la map.
|
||||
Un bloc est toujours rattaché à une layer d'affichage.
|
||||
- Les blocs spéciaux permettent de créer des intéractions sur les tuiles.
|
||||
|
||||

|
||||
|
||||
- start: Zone de spawn (départ) du woka (personnage) lors de la connexion.
|
||||
- block: Collider qui va physiquement créer les murs (empécher le woka de traverser les murs)
|
||||
- silent: Zone de silence qui bloquera les bulles de discution entre deux personnes
|
||||
- entry: Todo
|
||||
- exit: Zone permettant de définir une sortie vers une autre map
|
||||
- zone: Todo
|
||||
- url: Zone qui fera apparaitre une fenêtre d'un site web (à configurer dans les propriété du bloc)
|
||||
- jitsi: Zone permettant de créer une visio conférence Jitsi
|
||||
- audio: Zone lançant une musique configurée dans les propriétés du bloc
|
||||
- misc: Todo
|
||||
|
||||
## Layers
|
||||
|
||||
Les layers déterminent sur quelle profondeur s'affiche les tuiles.
|
||||
La hiérarchie des layers est la suivante:
|
||||
- La layer la plus en bas est derrière toutes les autres au dessus d'elle.
|
||||
- La layer la plus en haut s'affiche devant toutes les autres.
|
||||
|
||||

|
||||
|
||||
## Propriétés personnalisées
|
||||
|
||||
Il est possible d'ajouter des propriétés aux tuiles.
|
||||
exemple: Pour un bloc spécial "EXIT", il faudra ajouter une propriété "exitUrl" de type string ou sera renseigner l'url de la map vers laquelle le bloc exit envoie.
|
||||
|
||||

|
||||
|
||||
## Ajout de tileset (jeu de tuiles)
|
||||
|
||||
Pour ajouter des jeux de tuiles, il faut:
|
||||
- Ajouter l'image du jeu de tuile dans le dossier src/assets/
|
||||
- Importer via l'interface de Tiled dans la fenêtre à droite "jeux de Tuiles"
|
||||
- Cliquer sur l'icone "Nouveau Jeu de Tuiles"
|
||||
|
||||
:warning: Une fois l'image ajouté dans src/assets et dans l'interface de la map dans Tiled, ne pas modifier son nom.
|
||||
|
||||

|
||||
|
||||
Enfin, dans la fenêtre contextuelle, entrer un nom pour le nouveau jeu de tuiles et naviguer jusqu'à l'image du jeu de tuile, puis cliquer sur OK
|
||||
|
||||
## Ressources
|
||||
|
||||
- [opengameart](https://opengameart.org/)
|
||||
|
||||
## Licenses
|
||||
|
||||
This project contains multiple licenses as follows:
|
||||
|
||||
* [Code license](img/LICENSE.code) *(all files except those for other licenses)*
|
||||
* [Map license](img/LICENSE.map) *(`map.json` and the map visual as well)*
|
||||
* [Assets license](img/LICENSE.assets) *(the files inside the `src/assets/` folder)*
|
||||
|
||||
### About third party assets
|
||||
|
||||
If you add third party assets in your map, do not forget to:
|
||||
1. Credit the author and license with the "tilesetCopyright" property present in the properties of each tilesets in the `map.json` file
|
||||
2. Add the license text in LICENSE.assets
|
||||
57
docs/divers/process-nwipe/nwipe.md
Normal file
@ -0,0 +1,57 @@
|
||||
# Wiper un disque (NWIPE)
|
||||
|
||||
## DEFINITION
|
||||
|
||||
nwipe est un programme qui efface en toute sécurité le contenu entier des disques. Il peut effacer un seul disque ou plusieurs disques simultanément. Il peut fonctionner à la fois comme un outil en ligne de commande sans interface graphique ou avec une interface graphique ncurses.
|
||||
|
||||
A l'origine, nwipe est un fork de la commande dwipe utilisée à l'origine par Darik's Boot and Nuke (DBAN). nwipe a été créé à partir d'un besoin d'exécuter la commande dwipe de DBAN en dehors de DBAN, afin de permettre son utilisation avec n'importe quelle distribution hôte, offrant ainsi un meilleur support matériel.
|
||||
|
||||
## INSTALLATION
|
||||
|
||||
```bash
|
||||
sudo apt install nwipe
|
||||
```
|
||||
|
||||

|
||||
|
||||
## AFFICHER LES INFORMATIONS DISQUES
|
||||
|
||||
Avant d'utiliser nwipe, il est important d'identifier quel disque nous allons effacer, pour ce faire entrez la commande ci-dessous:
|
||||
```bash
|
||||
lsblk
|
||||
```
|
||||
Cette commande permet d'obtenir la liste et les caractéristiques des disques et de leurs partitions. (La commande ne nécessite pas les droits administrateurs pour être exécutée).
|
||||
|
||||
<!-- [LSBLK](sblk2.jpg) -->
|
||||
|
||||
:warning: veillez bien à démonter les partitions si c'est le cas comme dans l'exemple ci-dessous.
|
||||
```bash
|
||||
sudo umount /home/user/DISK
|
||||
```
|
||||
|
||||
:warning: Attention à ne pas sélecttionner le disque système sur lequel Linux tourne!
|
||||
|
||||
## UTILISATION
|
||||
|
||||
Pour ouvir Nwipe, utilisez la commande ci-dessous dans le terminal
|
||||
```bash
|
||||
sudo nwipe
|
||||
```
|
||||
|
||||
## STEP 1
|
||||
|
||||
Appuyez sur la barre d'espace pour sélectionner le lecteur que vous souhaitez effacer.
|
||||
|
||||

|
||||
|
||||
# STEP 2
|
||||
|
||||
Appuyez sur la touche M pour modifier la méthode que vous souhaitez utiliser. Appuyez sur l'espace pour sélectionner la méthode.
|
||||
|
||||

|
||||
|
||||
# STEP 3
|
||||
|
||||
Appuyez sur les touches Ctrl+S pour lancer le processus de nettoyage. La durée d'exécution restante et d'autres statistiques peuvent être contrôlées dans la colonne Statistiques.
|
||||
|
||||

|
||||
BIN
docs/divers/process-nwipe/nwipe1.png
Normal file
|
After Width: | Height: | Size: 66 KiB |
BIN
docs/divers/process-nwipe/nwipe2.png
Normal file
|
After Width: | Height: | Size: 38 KiB |
BIN
docs/divers/process-nwipe/nwipe3.png
Normal file
|
After Width: | Height: | Size: 47 KiB |
BIN
docs/divers/process-nwipe/nwipe4.png
Normal file
|
After Width: | Height: | Size: 24 KiB |
@ -1,3 +1,6 @@
|
||||
|
||||
<center><img src="assets/logo-web-garage_numerique.png"></center>
|
||||
|
||||
# Introduction
|
||||
|
||||
Ce site répertorie la documentation du Garage Numérique, grâce au logiciel mkdocs avec le theme material.
|
||||
|
||||
@ -3,6 +3,7 @@ site_url: https://garagenum.gitlab.io/doc
|
||||
site_dir: public
|
||||
theme:
|
||||
name: material
|
||||
logo: assets/logo-web-garage_numerique.png
|
||||
custom_dir: overrides
|
||||
features:
|
||||
- navigation.instant
|
||||
@ -60,7 +61,7 @@ nav:
|
||||
- "Présentation du Garage":
|
||||
- presentation-garage/index.md
|
||||
- presentation-garage/reglement_interieur.md
|
||||
- "": presentation-garage/reglement_interieur_CHANGELOG.md
|
||||
- presentation-garage/reglement_interieur_CHANGELOG.md
|
||||
- presentation-garage/procedures.md
|
||||
- presentation-garage/equipe.md
|
||||
- presentation-garage/histoire.md
|
||||
@ -91,6 +92,7 @@ nav:
|
||||
- "Linux":
|
||||
- divers/cmd/index.md
|
||||
- divers/cmd/backup.md
|
||||
- divers/process-nwipe/nwipe.md
|
||||
- divers/cmd/screen.md
|
||||
- divers/cmd/nmcli.md
|
||||
- divers/cmd/mount.md
|
||||
@ -137,13 +139,15 @@ nav:
|
||||
- "Dokku": divers/devops/dokku.md
|
||||
- "Gitlab / Github API": divers/devops/git-api.md
|
||||
- "Interne":
|
||||
- "Index": divers/internal/index.md
|
||||
- "Imprimantes": divers/internal/install-printers.md
|
||||
- "Workadventure map": divers/internal/wa.md
|
||||
- "MkDocs": divers/internal/mkdocs.md
|
||||
- "Dev":
|
||||
- "Index": divers/dev/index.md
|
||||
- "Créer un mod dans Minetest": divers/dev/create-minetest-mod.md
|
||||
- "Installer codium et Unity": divers/dev/unity_codium.md
|
||||
- "Git":
|
||||
- divers/git/git.md
|
||||
- Admin:
|
||||
- "Page d'accueil": admin/index.md
|
||||
- "Cadrage de l'ASP": admin/cadrage-asp/index.md
|
||||
|
||||