gammu sending sms
gammu sendsms TEXT 048123456789 -text "Halooo .."
gammu sendsms TEXT 048123456789 -text "Halooo .."
openssl x509 -in signed_cert.der -inform DER -out server.crt
add option
-DWITH_JEMALLOC=NO
to slackbuild
1. Check HDD for bad block
sudo badblocks -v /dev/sda1 > bad-blocks
2. Pass the file to fsck
sudo fsck -t ext4 -l bad-blocks /dev/sda1
Przykład clamdscan
sudo -u clamav clamdscan /home/ftp/samba_public/
in bash script
tr -dc A-Za-z0-9_ < /dev/urandom | head -c 16 | xargs
function in $HOME/.bashrc
genpasswd() {
local l=$1
[ "$l" == "" ] && l=16
tr -dc A-Za-z0-9_ < /dev/urandom | head -c ${l} | xargs
}
recompile pcre with option
–enable-utf8 –enable-unicode-properties
cpan -r
or
perl -MCPAN -e 'CPAN::Shell->install(CPAN::Shell->r)'
Error: java.io.FileNotFoundException: /logs/debug.log (No such file or directory)
Solution:
edit file “./lib/log4j.xml” and replace “{$openfireHome}” with absolute path to logs
Dodaj kod do
/usr/share/fail2ban/server/datedetector.py
# AAMMJJ HH:MM:SS
template = DateStrptime()
template.setName("YearMonthDay Hour:Minute:Second")
template.setRegex("\d{2}\d{2}\d{2} \d{2}:\d{2}:\d{2}")
template.setPattern("%y%m%d %H:%M:%S")
self.__templates.append(template)
# cat /etc/fail2ban/filter.d/mysqld.conf
Fail2Ban configuration file
#
# Author: Darel
#
[Definition]
failregex = Access denied for user ‘.*’@’