Table des matières
- 2026:
- 2025:
4 billet(s) pour septembre 2026
| Notes HTTP Strict Transport Security - HSTS | 2026/09/18 11:04 | Jean-Baptiste |
| Notes GNU Linux GPU carte graphiques | 2026/09/08 15:49 | Jean-Baptiste |
| Notes GNU Linux graphique | 2026/09/08 15:42 | Jean-Baptiste |
| Notes urlencoding - passer des mots de passe en HTTPS | 2026/09/03 17:58 | Jean-Baptiste |
Pb PHP Warning: PHP Startup: Unable to load dynamic library
su - apache cd /var/www/plop php symfony cc
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/php_mapscript.so' - libhdf5.so.6: cannot open shared object file: No such file or directory in Unknown on line 0
On test en changeant le LD_LIBRARY_PATH
export LD_LIBRARY_PATH=/usr/lib64/mpich/lib/
php symfony cc
Ça marche !
Voir aussi
env LD_LIBRARY_PATH=/run/current-system/sw/lib:$LD_LIBRARY_PATH
Rendre la manip permanante
Pour ne pas a avoir à exporter systématiquement LD_LIBRARY_PATH
/etc/ld.so.conf.d/mpich-x86_64.conf
/usr/lib64/mpich/lib
ldconfig
Autres
ldconfig en lecture seule (pas besion de compte root)
/sbin/ldconfig -NXv |grep mpich
Pb pas d'historique en console pour certains shells
ou pas d'historique en ligne de commande
Un exemple de la console ocaml
Source : http://stackoverflow.com/questions/11757239/how-to-repeat-last-command-in-ocaml-interpreter-shell
Avec la console (ici exemple avec ocaml) pas d'historique.
La flèche du haut me donne les caractères suivants :
$ ocaml ^[[A
La fléche du bas :
^[[B
Solution avec rlwrap (GNU Readline)
sudo apt-get install rlwrap
rlwrap ocaml
Ça marche aussi avec Netcat
rlwrap nc smtp.acme.com 25
Pb OpenVPN démarrage service
Voir Using OpenVPN with systemd
On jette un œil
dpkg -L openvpn |egrep 'systemd.*service$'
On a la commande
/usr/sbin/openvpn --status /run/openvpn/client.status 10 --cd /etc/openvpn --config /etc/openvpn/client.conf
Manuellement ça marche (interface réseau tun, ping…) Ctrl + C
# systemctl status openvpn@vpn.service # systemctl start openvpn@vpn.service Options error: In [CMD-LINE]:1: Error opening configuration file: /etc/openvpn/vpn.conf
/etc/default/openvpn
# If you're running systemd, changing this variable will
# require running "systemctl daemon-reload" followed by
# a restart of the openvpn service (if you removed entries
# you may have to stop those manually)
#
AUTOSTART="all"
Solution
systemctl daemon-reload
service openvpn reload
service openvpn@client reload
Si encore pb, penser à utiliser des chemins absolus dans le fichier de conf et s'assurer que l'extension (.conf ou .ovpn !?) soit bonne
Commande aws
Voir :
- aws-shell
- cloud-utils
Voir :
Le système doit être à l'heure. Idéalement NTP doit être configuré.
Installation
pip install --user awscli
Générer ~/.aws/config et ~/.aws/credentials
aws configure --profile os1
~/.aws/config
[profile os1] region = eu-west-2 output = text
~/.bash_aliases
alias aws='aws --endpoint-url https://fcu.eu-west-2.outscale.com --profile os1'
Test
aws s3 ls aws ec2 describe-instances --output table
Auto completion
https://docs.aws.amazon.com/fr_fr/cli/latest/userguide/cli-command-completion.html
complete -C "$VIRTUAL_ENV/bin/aws_completer" aws
Exemple
Forcer l'arrêt
aws ec2 stop-instances --instance-ids i-39992709 --force
“Terminate” c'est-à-dire effacer la VM (Destruction de la machine !!!)
aws ec2 terminate-instances --instance-ids i-39992709
Rechercher par “tag”
aws ec2 describe-instances --filter Name=tag:Name,Values=plop
Plusieurs “Security Group” pour une seul VM
aws ec2 modify-instance-attribute --instance-id i-fae31a89 --groups sg-8569c41e sg-b25eb0d1
Get InstanceId from volume-id (attached)
aws ec2 describe-volumes --filters Name=volume-id,Values=vol-0a7d0ea2c73418623 --query 'Volumes[*].Attachments[0].InstanceId' --output text
describe-images
aws ec2 describe-images --owners self --output json | jq '.Images[] | select(.CreationDate<'$GET_AMI') | {ImageId}' | jq --raw-output '.ImageId')) aws ec2 describe-images --owners 679593333241 --filters 'Name=name,Values=debian-stretch-hvm-x86_64-gp2-*' 'Name=state,Values=available' aws ec2 describe-images --owners=self --filters 'Name=name,Values=packer*' --output text aws ec2 deregister-image --image-id ami-00f406c198ce29c37 aws ec2 describe-instances --filters 'Name=tag-value,Values=*App*' --output table aws ec2 describe-images --image-ids ami-01f3682deed220c2a aws ec2 describe-images --owners amazon --filters 'Name=name,Values=amzn2-ami-hvm-2.0.20190612-x86_64-gp2' 'Name=state,Values=available' 'Name=architecture,Values=x86_64' --output text
Debug
aws ec2 describe-regions --debug
Pb OpenStack client API - Debian unable to establish connection to
Pb Debian - Unable to establish connection to
$ export OS_AUTH_URL=https://vio.acme.local:5000/v3 $ openstack service list Unable to establish connection to https://192.168.51.61:5000/v3/auth/tokens
Mais je ne veux pas me connecter sur https://192.168.51.61:5000/v3/auth/tokens mais sur https://vio.acme.local:5000/v3 ! D'où sort ce 192.168.51.61 ?
Voilà la réponse
curl https://vio.acme.local:5000/ | jq
{ "versions": { "values": [ { "status": "stable", "updated": "2018-02-28T00:00:00Z", "media-types": [ { "base": "application/json", "type": "application/vnd.openstack.identity-v3+json" } ], "id": "v3.10", "links": [ { "href": "https://192.168.51.61:5000/v3/", "rel": "self" } ] }, { "status": "deprecated", "updated": "2016-08-04T00:00:00Z", "media-types": [ { "base": "application/json", "type": "application/vnd.openstack.identity-v2.0+json" } ], "id": "v2.0", "links": [ { "href": "https://192.168.51.61:5000/v2.0/", "rel": "self" }, { "href": "https://docs.openstack.org/", "type": "text/html", "rel": "describedby" } ] } ] } }
Mais comment cela se fait-il que ça marche sous Ubuntu (paquet plus récent) sans passer par 192.168.51.61:5000 ?
Pour infos (Sur une machine Ubuntu OK)
openstack endpoint list | grep identity
| Interface | URL |
|---|---|
| admin | https://192.168.51.61:35357/v3 |
| internal | https://192.168.51.61:5000/v3 |
| public | https://vio.acme.local:5000/v3 |
En mode debug
openstack service list --debug
Using auth plugin: password
Using parameters {'username': 'Admin', 'project_name': 'admin', 'user_domain_name': 'local', 'auth_url': 'https://vio.acme.local:5000/v3', 'password': '***', 'project_domain_id': 'default'}
Get auth_ref
REQ: curl -g -i --cacert "/etc/ssl/certs/" -X GET https://vio.acme.local:5000/v3 -H "Accept: application/json" -H "User-Agent: osc-lib keystoneauth1/2.12.1 python-requests/2.12.4 CPython/2.7.13"
Starting new HTTPS connection (1): vio.acme.local
https://vio.acme.local:5000 "GET /v3 HTTP/1.1" 200 253
RESP: [200] Date: Fri, 15 Mar 2019 16:24:42 GMT Server: Apache/2.4.18 (Ubuntu) Vary: X-Auth-Token,Accept-Encoding X-Distribution: Ubuntu x-openstack-request-id: req-e9811abb-cd7a-4811-8164-76e86fcedc59 Content-Type: application/json Content-Length: 253
RESP BODY: {"version": {"status": "stable", "updated": "2018-02-28T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v3+json"}], "id": "v3.10", "links": [{"href": "https://192.168.51.61:5000/v3/", "rel": "self"}]}}
Making authentication request to https://192.168.51.61:5000/v3/auth/tokens
Starting new HTTPS connection (1): 192.168.51.61
