Table des matières
- 2026:
- 2025:
6 billet(s) pour juillet 2026
| Contre DNS | 2026/07/28 09:29 | Jean-Baptiste |
| Limiter la consommation de la RAM d'une application avec les cgroups slices | 2026/07/28 05:29 | Jean-Baptiste |
| Procédure simple augmentation de la SWAP | 2026/07/17 15:49 | Jean-Baptiste |
| Exemple git clone avec Ansible | 2026/07/16 14:47 | Jean-Baptiste |
| Windows exe - Comparaison de fichiers binaires | 2026/07/16 10:25 | Jean-Baptiste |
| Pb git | 2026/07/01 17:36 | Jean-Baptiste |
Notes paquet Debian Python
Création de package Debian à partir de PIP Python. Création du package ansible-lint
Voir exemple notes_slurm-web_et_pyslurm
Voir aussi :
git clone https://github.com/willthames/ansible-lint cd ansible-lint mkdir debian
debian/changelog
ansible-lint (3.4.9-1) unstable; urgency=medium * Initial release -- Jean-Baptiste <nospam@me.null> Thu, 05 Jan 2017 15:33:33 +0200
Attention, 2 espaces après l'adresse email.
Voici les règles de syntaxe
package (version) distribution(s); urgency=urgency
[optional blank line(s), stripped]
* change details
more change details
[blank line(s), included in output of dpkg-parsechangelog]
* even more change details
[optional blank line(s), stripped]
-- maintainer name <email address>[two spaces] date
debian/control
Source: ansible-lint
Section: python
Priority: optional
Maintainer: Jean-Baptiste <nospam@me.null>
Build-Depends: debhelper (>= 9), dh-python, python
Standards-Version: 3.4.9
Homepage: https://github.com/willthames/ansible-lint
Package: ansible-lint
Architecture: all
Multi-Arch: foreign
Depends: ${misc:Depends}, ${python3:Depends}, python-yaml, python
Description: Best practices checker for Ansible
Checks playbooks for practices and behavior that could potentially be improved
debian/copyright
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: ansible-lint Source: https://github.com/willthames/ansible-lint Files: debian/* Copyright: (c) 2017, ACME License: GPL-3 Please refer to /usr/share/common-licenses/GPL-3 Files: * Copyright: (c) 2013-2014 Will Thames <will@thames.id.au> License: MIT Please refer to https://github.com/willthames/ansible-lint/blob/master/LICENSE
debian/rules
#!/usr/bin/make -f
#export DH_VERBOSE = 1
%:
dh $@ --with python2 --buildsystem=pybuild
override_dh_auto_build:
override_dh_auto_install:
python setup.py build --force -b build/ install --force --root=debian/tmp --no-compile -O0 --install-layout=deb
debuild -us -uc -b
Autres
debian/rules
#!/usr/bin/make -f
%:
dh $@
Notes OTP mot de passe à usage unique
Autres
Voir :
- FreeOTP / Aegis Authenticator
- YubiKey
- Opie (libpam-opie opie-server opie-client)
OTPW PAM
Voir https://www.cl.cam.ac.uk/~mgk25/otpw.html
Install
apt-get update apt-get install otpw-bin libpam-otpw
On ne sait jamais
cp -a /etc/pam.d{,.old}
On ajout au début du fichier (et on commente @include common-auth) /etc/pam.d/sshd
# OTP auth required pam_otpw.so session optional pam_otpw.so # Standard Un*x authentication. #@include common-auth
/etc/ssh/sshd_config
ChallengeResponseAuthentication yes UsePAM yes
service sshd restart service sshd status
Sous votre compte utilisateur (ou root, vi vous voulez l'OTP pour root)
otpw-gen > mdp-otp.txt
C'est votre liste de MDP. L'espace ne fait pas partie du mot de passe, c'est pour faciliter la lecture. Vous devez préfixer votre MDP par celui saisie lors du otpw-gen > mdp-otp.txt
Le fichier ~/.otpw a été crée
Notes ordonnanceur JobScheduler
Voir :
- Rundeck
- cron
- anacron
- pgadmin / pgagent
Alternatives :
- Rundeck
- Apache Airflow
- Job Execution Systems
- Apache Airflow
- Bee6
- StackStorm
- Jenkins
- Gitlab-CI
evqueue
Notes ordonnanceur cluster grid batch scheduler
Voir :
batchScheduler / cluster-computing framework :
- Apache Spark
- Moab (Cluster Resources)
- GE
- Sun Grid Engine (SGE)
- SLURM
- PBS Pro
- MAUI/Torque
- MOCK
- Loadleveler
-
- LSF (Platform)
- Condor
- BQS (CC-IN2P3), Lava, CCS
-
- Python celery
http://en.wikipedia.org/wiki/Job_scheduler https://en.wikipedia.org/wiki/Comparison_of_cluster_software
HPC
Basic Linear Algebra Subroutines (BLAS)
- https://sites.google.com/a/case.edu/hpc-upgraded-cluster/blas LAPACK — Linear Algebra PACKage
MPI / PVM
- mpirun
mpirun -np 4 /usr/bin/john -test
Distro pour HTC
Environment Modules
Slurm Jupyter/ IPython
