SSL TLS in Python – certificates

Place *.pem certificates into folder /usr/share/ca-certificatesrun update-ca-certificates

Upgrade Debianu na vyšší verzi

lsb_release -a sed -i ‚s/stretch/buster/g‘ /etc/apt/sources.list && apt update apt-get upgrade apt-get dist-upgrade

Aktualizace znapzend

wget https://github.com/oetiker/znapzend/releases/download/v0.20.0/znapzend-0.20.0.tar.gz tar zxvf znapzend-0.20.0.tar.gz cd znapzend-0.20.0 ./configure –prefix=/opt/znapzend-0.20.0 make -j4 make install rm /usr/local/bin/znapzend* rm -r /opt/znapzend/* && rmdir /opt/znapzend ln -s /opt/znapzend-0.20.0/ /opt/znapzend for x in /opt/znapzend/bin/*; do ln -s $x /usr/local/bin; done znapzend –version systemctl restart znapzend && systemctl status znapzend && tail -f /var/log/znapzend.log

Kiosk mód Chromium na Debianu

vi /opt/kiosk.sh #!/bin/bash xset -dpms xset s off xset s noblank openbox-session & start-pulseaudio-x11 # while true; do # startx /etc/kiosk.conf # openbox-session & # start-pulseaudio-x11 while true; do # x11vnc -q -bg -reopen -forever chromium –kiosk –no-first-run –disable-translate –no-default-browser-check –no-proxy-server –noerrdialogs –disable-background-mode ‚https://somewhere.cz‘ done sudo apt-get install xserver-xorg-legacy Edit /etc/X11/Xwrapper.config allowed_users=anybody needs_root_rights=yes V /etc/xdg/openbox/rc.xml […]

Rsync z Windows na Linux přes SSH

Stáhnout, rozbalit – https://www.itefix.net/cwrsync Vygenerovat SSH key – ssh-keygen rsync –chmod=770 .ssh/id_rsa.bak .ssh/id_rsa rsync -rltvDx -e „ssh -i .ssh/id_rsa -o UserKnownHostsFile=.ssh/known_hosts -T -c arcfour -o Compression=no -x“ –modify-window=1 –stats –progress –info=progress2 –timeout=60 –no-p –no-o –exclude „.m2“ –exclude „$RECYCLE.BIN“ „/cygdrive/r/folder/“ root@server:“/home/folder/“