Posts By: jmanteau

Diagnose a slow linux box: cheat sheet

Posted by & filed under Informatique, Linux.

Disk Space: 1df -h Make sure you have enough disk space Memory /Processes / Load average 123htop top (shift + m) free -m Use Htop Check for processes that are taking up a lot of memory/CPU and Check you’re not out of memory Apache errors 1grep 500 /var/log/apache2/error.log | less Look for 500 errors caused [...]

Pythonbrew on RHEL5

Posted by & filed under Informatique, Linux.

123456789yum install binutils gcc gcc-c++ make patch libgomp glibc-headers glibc-devel kernel-headers kernel-devel bison flex yum install openssl-devel zlib-devel mkdir -p /root/pythonbrew export PYTHONBREW_ROOT=/root/pythonbrew curl -kLO http://xrl.us/pythonbrewinstall chmod +x pythonbrewinstall ./pythonbrewinstall pythonbrew install 2.7.3 pythonbrew switch 2.7.3

Cisco ASA: Authorize administrative access via Active Directory LDAP

Posted by & filed under Informatique, Sécurité.

The attribute map which bind our group of allowed administrators to a Service Type which allow logins: 123ldap attribute-map LDAP_MemberOf_ServiceType map-name  memberOf IETF-Radius-Service-Type map-value memberOf CN=G_ADMIN_SECU,OU=Groupes,DC=TEST,DC=secu 6 The Active Directory Servers. I use SSL so be sure to import the root certificate from the Active Directory to make it works. 12345678910111213141516171819202122aaa-server TEST.SECU protocol ldap aaa-server [...]

UCARP: force master to become slave

Posted by & filed under Informatique, Linux.

From UcARP documentation: 1234You can send the ucarp process a SIGUSR2 to have it demote itself from master to backup, pause 3 seconds, then proceed as usual to listen for other masters and promote itself if necessary. This could be useful if you wish another node to take over master. So if you want the [...]

Keepass, Putty et les connexions SSH automatiques

Posted by & filed under Système.

Comment enregistrer des connexions SSH dans Keepass et les lancer automatiquement avec Putty : Allez dans le menu Scheme-Specific : Et créer un nouveau scheme ssh2 : cmd://putty.exe -ssh {USERNAME}@{URL:RMVSCM} -pw {PASSWORD} Déposer l’exécutable putty.exe dans le même dossier que Keepass (pour moi : C:\Program Files (x86)\KeePass Password Safe 2)   On crée une entrée de cette manière (noter [...]