-
MYSQL – Réinitialiser le mdp root
-
Linux – partition /boot pleine
First check your kernel version, so you won’t delete the in-use kernel image, running: uname -r Now run this command for a list of installed kernels: sudo dpkg –list ‘linux-image*’ | grep ^ii and delete the kernels you don’t want/need anymore by running this: sudo apt-get remove linux-image-VERSION Replace VERSION with the version of the…
-
Windows – activer windows server 20xx
1/ ouvrir l’invite de commande en tant qu’administrateur 2/ tapper : DISM /online /Get-TargetEditions 3/ Appuyer sur entrée 4/ Tapper : DISM /online /Set-Edition:ServerStandard /AcceptEula /ProductKey:XXXX-XXXX-XXXX-XXXX 5/ Appuyer sur entrée et attendre 6/ Redémarrer le système Windows Server 2025Windows Server 2025 Standard TVRH6-WHNXV-R9WG3-9XRFY-MY832Windows Server 2025 Datacenter D764K-2NDRG-47T6Q-P8T8W-YP6DFWindows Server 2025 Datacenter: Azure Edition XGN3F-F394H-FD2MY-PP6FD-8MCRCWindows Server 2022Windows Server 2022 Datacenter…
-
HYPER-V – Activer réponse au ping
-
Centre de mobilité sous windows 10
ajouter ces clefs au registre en cmd pour faire marcher le centre de mobilité windows avec la dernière maj de win 10 : REG ADD HKLM\SYSTEM\CurrentControlSet\Services\RapiMgr /v SvcHostSplitDisable /t REG_DWORD /d 1 /f REG ADD HKLM\SYSTEM\CurrentControlSet\Services\WcesComm /v SvcHostSplitDisable /t REG_DWORD /d 1 /f
-
ESX – activer snmp
Afin de monitorer les serveurs ESXi à l’aide de Nagios ou HP SIM, il faut configurer le service SNMP. Voici les étapes: Se connecter au serveur ESXi à monitorer via SSH ou console locale. Modifier le fichier /etc/vmware/snmp.xml à l’aide de VI: vi /etc/vmware/snmp.xml Appuyer sur “i” pour passer en mode insertion. Modifier…
-
SSH – Accès root
Warnning: this method might be unsafe for server users. ubuntu don`t allow root user and also login in ssh as root by default. so the first thing you have to do is to enable your root user account. $ sudo passwd root ok, you have got your root account enabled now. I am not sure…
-
Windows – redémarrer service windows update et WSUS
Redémarrer le service windows update : Open elevated command prompt Run the below command. net stop wuauserv net start wuauserv The simple and best way to restart the WSUS service on a Windows server 2003, 2008, 2012 and 2016 is to open the cmd command line and type the command below to stop the…
-
MYSQL – sauvegarde bases
Pour Sauvegarder et restaurer des données Mysql en ligne de commande on utilise les utilitaires mysqldump et mysql. De préférence on utilise le compte admin créé lors de l’installation de MySql : ici c’est l’utilisateur root. Sauvegarde MySql Il y a différents types de sauvegarde mysql. On peut sauvegarder toutes les bases de données, une…
-
UBUNTU – installer et configurer vsftpd
En ligne de commande : sudo apt-get install vsftpd Pour ajouter des utilisateurs : sudo adduser xxxx Ensuite modifier le chemin du home par défaut pour cet utilisateur : sudo nano /etc/passwd Ensuite changer le chemin par défaut de l’utilisateur : cyrille:x:1002:1002:Lecomte,1,,:/home/cyrille:/bin/bash ftpuser-hen:x:999:999::/home/ftpuser-hen: ftp_hen:x:1003:1003:hen,,,:/var/www/html/e-noel/DocumentationTechnique:/bin/bash ftp_bulletins:x:1004:1004:bulletins,,,:/var/www/html/e-noel/wp-content/uploads/$ Enfin, pour chrooter les utilisateurs dans leur dossier de base…