Outils pour utilisateurs

Outils du site


blog

Vim hex

http://www.kevssite.com/2009/04/21/using-vi-as-a-hex-editor

Sometimes I find it useful to switch to hex mode when editing a file in vi. The command for switching is not very obvious so thought I’d share… So, open a file in vi as usual, hit escape and type:

:%!xxd

to switch into hex mode And when your done hit escape again and type:

:%!xxd -r

to exit from hex mode. Okay, so this isn’t actaully switching to vi’s ‘hex mode’; vi doesn’t have one. What the above actually does is to stream vi’s buffer through the external program xxd.

2025/03/24 15:06

Video Censure en France youtube

Voici une vidéo sur Youtube qui explique comment regarder les vidéos censurées en France.

Youtube : Comment contourner la censure en 5 secondes

“Censurées en France” ce me fait bizarre d'écrire ça !

2025/03/24 15:06

Verrouiller sa session sous GNU/Linux

Voir aussi :

  • loginctl lock-session
  • xdg-screensaver lock

protector de pantalla (xlock) Un protector de pantalla mas ligero que el xscreensaver es xlock

Instalación $ apt-get install xlockmore xautolock $ apt-get install vlock away

xautolock es el protector. xautolock es un demonio para bloquear automáticamente la pantalla $ xautolock -time 5 & Levanta en background bloquear la pantalla si en cinco minutos no hay actividad.

Source : http://petrohs-log.blogspot.fr/2008_12_01_archive.html


vlock

Le nouveau paquet de Jessie (vlock_2.2.2-5) s'est vu retiré le fichier /usr/lib/vlock/modules/new.so suite à un bug https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=702705

Pour ma part, je ne suis pas confronté à ce bug. Je récupère donc le fichier /usr/lib/vlock/modules/new.so du paquet vlock_2.2.2-3_amd64.deb (Debian Wheezy)

$ vlock -n
vlock: loading plugin 'new' failed: No such file or directory

Voir :

http://bts.grml.org/grml/issue1342

http://comments.gmane.org/gmane.linux.distributions.grml.devel/154

vlock -san

wget http://ftp.fr.debian.org/debian/pool/main/v/vlock/vlock_2.2.2-3_amd64.deb
ar x vlock_2.2.2-3_amd64.deb 
tar xf data.tar.gz 
cp ./usr/lib/vlock/modules/new.so /usr/lib/vlock/modules/
chown root:root /usr/lib/vlock/modules/new.so 

Verrouillage transparent de l'écran

xlock -mode blank -geometry 1x1
Un remplacent pour vlock : physlock

Verrouillage graphique

Liste :

lxqt-leave --lockscreen
xscreensaver-command -lock
2025/03/24 15:06

Vérifier l'intégrité des fichiers avec Fim

Installation

Pour Java 8 sous Jessie, les backports sont nécessaire

echo "deb http://ftp.debian.org/debian jessie-backports main" >> /etc/apt/sources.list
 
apt-get update
Install
apt-get install -t jessie-backports openjdk-8-jre-headless
A partir des sources

Nous allons compiler le code Java.

apt-get install maven
apt-get install -t jessie-backports openjdk-8-jdk
cd /opt
git clone https://github.com/evrignaud/fim.git
cd fim
 
mvn clean install
 
export PATH=/usr/lib/jvm/java-8-openjdk-amd64/jre/bin:$PATH
 
alias fim='PATH=/usr/lib/jvm/java-8-openjdk-amd64/jre/bin:$PATH /opt/fim/fim' 
2025/03/24 15:06

Vérifier l'intégrité des fichiers

Voir :

find -type f -exec sha512sum {} \; > SHA512SUMS 2>SHA512SUMS.err
sha512sum --quiet -c SHA512SUMS

Sur Debian, vérifier l'intégrité des fichiers de paquets .deb

dpkg --verify
debsums -as

Pour RedHat/CentOS

rpm -Va
2025/03/24 15:06
blog.txt · Dernière modification : de 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki