Swaks is a featureful, flexible, scriptable, transaction-oriented SMTP test tool written and maintained by John Jetmore.
ifconfig netstat route .. autant de cmd à abandonner!
Bon article pour comprendre un peu mieux les histoire d'io
Parfois il arrive qu'un fichier de conf soit corrompu a cause dun caractère invisible a la con qui peut venir dun copier coller ou autre.. Pour vérifier ça, on peut dumper le fichier en affichant ces caractères : car -e fichier
Pour comprendre un peu mieux certaines subtilités de rsync + compléter mémo
Petit outil sympa qui donne l'explication de n'importe quelle commande shell (on peut c/c ce qu'on veut)l
Il peut arriver qu'un package ait un comportement anormal, on peut alors se demander si les fichiers n'ont pas été modifié à la main... (environnement de dev, coucou)
Heureusement rpm stocke plusieurs infos sur les fichiers originaux et permet de vérifier si il y a eu ou non des modifications. L'option magique est -V
rpm -Va --> vérifie TOUS les packages
rpm -V nom_du_package --> vérifie seulement le package concerné
run gnome-tweak-tool, "theme", and change keybinding theme to default
Pour créer une archive de la forme latest_2013-05-19-04-05-23.tar.gz ou .zip
dotd=date +%F-%H-%M-%S
tar -pczf /tmp/lastbackup/latest_$dotd.tar.gz /var/cache/rsnapshot/hourly.0
zip -y -9 -r /tmp/lastbackup/latest_$dotd.zip /var/cache/rsnapshot/hourly.0
L'option -y permet de ne pas suivre les liens symboliques (ce qui faisait planter mon backup). A enlever si nécessaire.
Des exemples de commandes hping3 pour réaliser des tests sur des firewall
ethtool to get info about network
group passwd hosts services
nload sur debian pour monitorer en temps réel la bande passante d'un serveur
Pour télécharger des images testing de debian (pas forcément simple de trouver le bon endroit sur le site..)
Ici les wheezy à l'heure actuelle
Ok the title may need some work but I am really excited that I found a way to make virtually any application to run over a SSH proxy without having to directly have support for the SOCKS protocol.
The first thing you need to do is go to SourceForge and download an application call proxychains. If you are using a debian based distribution, particularly Ubuntu you can simple use
sudo apt-get install proxychains
Once you have installed proxychains you need to connect via SSH to your SSH serve. You can use something like this:
ssh -fqND 5555 yanovich@10.28.183.40
This creates a connection to your ssh server and lets it run in the background. The 5555 is the port number it will run on the local level (the computer you can running proxychains from).
Next you need to edit /etc/proxychainds.conf (you'll need sudo permission to do this).
Uncomment "dynamic_chain" (by removing the # at the beginning of the line)
comment out "strict_chain" by adding a # to the beginning of the line.
Uncomment "quiet_mode" (This is not recommended the first time you do this. I would recommend doing this the second through once you are familiar with this and can see it is working).
Add "socks5 127.0.0.1 5555" on a new line at the bottom of the file.
Save
Now run the program you want to have applied this settings towards. For my situation I wanted to be able to use Opera Web Browser over SSH proxy but Opera doesn't have built-in SOCKS support.
$ proxychains opera
That line of code in the terminal will launch the Opera Browser and direct all traffic through the SSH proxy.
The above is recommended to be used for applications that do not natively support SOCKS. I would recommend doing the above in addition to apply a system wide setting (for Ubuntu you can do this through System > Preference > Network Proxy).
next generation linux shell
pour récup une ressource protégée par un wget, utiliser ces deux parametres dans la commande wget : --http-user=user --http-password=password
Un outils sous linux pour faire des screecast
Format de sortie en ogv
gtk-recordmydesktop
[09:18:59] amm@lynch:/usr/share/applications$ cat eclipse.desktop
[Desktop Entry]
Encoding=UTF-8
Name=Eclipsee
GenericName=Eclipsee
Exec=/home/amm/bin/ecl_launch.sh
Icon=/home/amm/bin/eclipse/icon.xpm
Terminal=false
Type=Application
Categories=Application;Development;
une fois qu'on a fait ça, l'application est accessible dans les menus et aussi accessible pour créer un launcher
Une fois les fichiers transférés sur mon laptop Linux, je n'ai eu qu'à utiliser la commande rename pour remplacer par des tirets tous les espaces contenus dans les fichiers. Mais avant de procéder à des remplacements en lot et risquer une gaffe, mieux vaut utiliser l'option -n pour avoir une prévisualisation des changements qui seront appliqués.
rename -n 's/ /-/g' *.jpg
image petit format.jpg renamed as image-petit-format.jpg
Après le dernier /, le "g" signifie global, pour remplacer tous les espaces et pas seulement le premier trouvé.
Une fois certain du remplacement dans la liste des fichiers, on peut appliquer le changement :
rename 's/ /-/g' *.jpg
rename 's/ /-/g' *.pdf
Morale de l'histoire : c'est pratique avoir un ami qui travaille dans les Interwebs.