vendredi 20 juin 2008

Quelques trucs pour vi // Some tips for using vi

Voici quelques petit truc a utiliser sous vi en mode commande:

/[MODELE] Recherche [MODELE] dans le fichier.
n Prochaine occurrence de la dernière recherche.

[x]yy Met [x] caractere dans le tampon
p Insert le tampon apres le curseur
P Insert le tampon avant le curseur

[x]b Recule de [x] mots
[x]e Avance a la fin du [x]eme mot

=== English ===

/[PATERN] Search [PATERN] in the current file
n Redo last search (go to next occurence)

[x]yy Put [x] line in buffer
p Insert buffer after the cursor
P Insert buffer before the cursor

[x]b Go back [x] words
[x]e Go to the end on the [x]th word.

mardi 27 mai 2008

Slow SSH Connection / Lenteur SSH

J'ai enfin trouvé mon problème. Lors d'une connection SSH, le serveur prenais un bon 8 sec. avant de demandé le password de l'usager. Partout ou je regardais les suggestions était vérifier la config DNS. Oui c'était bien ca mais c'était causé par autre chose. Quand je roulais la commande route, je recevais un message a propos d'une commande non valide dans host.conf

mdns off

Le problème était dans la version de glibc, un bug, qui brisait le multicast DNS. Une fois glibc mis a jour a la version 1.3.3-98.31 tout est redevenu normal. Donc si vous avez ce problème et que vous savez vos DNS correcte, vérifier votre glibc.

== English ==

I just found my problem. I had this nagging problem where SSH would hang for like 8 seconds before asking the password for a connection. Everywhere I looked everyone was talking about it being a DNS problem. Yes it was, but it was actually caused by something else. When I ran the route command it was giving off an error about a bad command in host.conf.

mdns off

The problem was actually a bug in glibc
For it to get fixed I had to upgrade glibc to version 1.3.3-98.31

So if you get this error on SuSe and you know your DNS are working fine. Check your glibc