Outils pour utilisateurs

Outils du site


blog

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

Utiliser virtualenv dans un notebook iPython

Source : https://help.pythonanywhere.com/pages/IPythonNotebookVirtualenvs/

Install the ipython kernel module into your virtualenv

python3 -m venv plop
cd plop
source bin/activate
pip install --upgrade pip
pip install ipykernel
#deactivate

Now run the kernel “self-install” script

python -m ipykernel install --user --name=plop

Replacing the --name parameter as appropriate.

You should now be able to see your kernel in the IPython notebook menu: Kernel → Change kernel and be able so switch to it (you may need to refresh the page before it appears in the list). IPython will remember which kernel to use for that notebook from then on.

2025/03/24 15:06

Utilisateur plusieurs noms même uid

#chown -h -R --from=Plop:Plop reference:reference /
find / /var /home /data /opt -xdev \( -type f -o -type d \) \( -uid $(id -u Plop) -o -gid $(id -g Plop) \) -exec chown $(id -u reference):$(id -g reference) {} \;
usermod -o -u $(id -u reference) -g $(id -g reference) Plop
2025/03/24 15:06

Coloration des logs

Voir aussi :

  • lwatch
  • dircolors
dmesg --color=always | less -R

ccze

apt-get update && apt-get install -y ccze

Exemples :

dmesg |ccze |less -r
tail /var/log/syslog |ccze -A
ccze -A < /var/log/syslog
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