Stop avahi
# systemctl disable avahi-daemon
Enable rc.local capability/compatibility
# echo $'#!/bin/sh -e\nexit 0'
Monthly Archives: October 2017
Log X-Forwarded-For
https://httpd.apache.org/docs/current/mod/mod_remoteip.html
https://www.loadbalancer.org/blog/apache-and-x-forwarded-for-headers/
uncoment
#LoadModule remoteip_module libexec/apache24/mod_remoteip.so
In
RemoteIPHeader X-Forwarded-For
LogFormat “%{X-Forwarded-For}i %h %l %u %t \”%r\” %>s %b \”%{Referer}i\” \”%{User-Agent}i\ ” combine
LogFormat “%{X-Forwarded-For}i %h %l %u %t \”%r\” %s %b \”%{Referer}i\” \”%{User-agent}i\”” combined-forwarded
# apachectl configtest
# /usr/local/etc/rc.d/apache24 restart
convert text in command line
more sometext | iconv -f iso8859-2 -t utf8 |more
where iso8859-2 is orginal encoding and utf8 is desired encoding of the text file
GPG
Jak zainstalować gpg
W Linux/Unix
zainstaluj gnupg, kgpg, kleopatra
https://gnupg.org/software/frontends.html
W Windows
https://www.gpg4win.org
lub
Zainteresuj się choco
Zainstaluj Gpg4Win
C:\> choco install gpg4win
Jak wyeksportować klucz prywatny
List (private) secret keys
$ gpg -K
Export private key
$ gpg --export-secret-key -a keynumber > private_mykey1.key
Gdzie w Linux/Unix trzymane są klucze
~/.gnupg
Gdzie w Windows trzymane są klucze
c:\Users\user\Appdata\Roaming\gnupg
Jak zaimportować klucz z serwera kluczy
gpg --keyserver key.server.url --recv-keys keyid