

#Exemple: #Enlève, delete tous les csv du répertoire quand rm *.csv renvoi un message trop de fichiers # Argument list too long perl -e 'for(</home/morepertoire/*.csv>){unlink}'
sudo apt install florence -y sudo apt install at-spi2-core -y
cmd -> regedit
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\RCM\GracePeriod
clique droit autorisations -> propriétaire -> administrateur (root)
Supprimer la clef L$RTM…
reboot
/etc/init.d/mysql stop /usr/sbin/mysqld --skip-grant-tables mysql> FLUSH PRIVILEGES; mysql> SET PASSWORD FOR root@'localhost' = PASSWORD('votre_nouveau_mot_de_passe'); mysql> FLUSH PRIVILEGES; mysql> exit /etc/init.d/mysql start
// création user grant all CREATE USER [IF NOT EXISTS] 'monadmin'@'%' IDENTIFIED BY 'monpass'; GRANT ALL ON *.* TO 'monadmin'@'%';
ssh-keygen -t rsa -b 4096 // création clef ssh ( si pas déjà fait) ssh user@dev.monserveur.com <-password // première connexion serveur relais manuelle ssh-copy-id root@ monserveur.com // copie clef dans sshd_config ajouter : GatewayPorts yes /etc/init.d/ssh restart //(debian) ssh -R 4444:localhost:80 user@dev.monserveur.com en se connectant sur dev.monserveur.com:4444 c'est localhost:80 qui répond. autossh -M 0 -q -f -N -o "ServerAliveInterval 60" -o "ServerAliveCountMax 3" -R 4444:localhost:80 user@dev.monserveur.com même chose mais en tache de fond avec reconnexion automatique Lancement au boot ajouter un fichier /etc/systemd/system/autossh-tunnel.service [Unit] Description=AutoSSH tunnel service local 80 port 4444 dev.monserveur.mobi After=network.target [Service] Environment="AUTOSSH_GATETIME=0" ExecStart=/usr/bin/autossh -M 0 -o "ServerAliveInterval 30" -o "ServerAliveCountMax 3" -NR 4444:localhost:80 root@dev.monserveur.mobi Restart=always User=pi [Install] WantedBy=multi-user.target puis: sudo systemctl start autossh-tunnel.service sudo systemctl stop autossh-tunnel.service sudo systemctl enable autossh-tunnel.service pour démarrage auto