The maillog is easy enough to follow, but when you understand what all the delay and delays numbers mean then this may help really understand what is going on!
A standard email entry in postfix looks like:
Jan 10 10:00:00 testmtr postfix/smtp[20123]: 34A1B160852B: to=, relay=mx1.example.lan[1.2.3.4]:25, delay=0.49, delays=0.2/0/0.04/0.25, dsn=2.0.0, status=sent
Read More
Powershell check file expiration
I need script for file modify time check and if date older, file will be deleted and send report to my email : Read More
How to find expiry date of SSL certificate [linux]
How to easily check whether the certificate has expired or not.
My bash command
You can use, all dates (creating and expiring):
openssl x509 -enddate -noout -in /etc/pki/tls/certs/localhost.crt
Install ruTorrent on xbian
Install and configure apache server:
sudo apt-get install apache2 apache2-utils libapache2-mod-php5
Configure Apache
Enable auth_digest module for ruTorrent authentication, SSL, and reqtimeout.
sudo a2enmod auth_digest ssl reqtimeout
Open apache2.conf
sudo nano /etc/apache2/apache2.conf
Edit or add the following lines:
Timeout 30 ServerSignature Off ServerTokens Prod
Installing Ffmpeg on xbian
For App to be able to create thumbnails and previews for video and audio files uses ffmpeg.
These instructions are specifically for version 8.0 (Jessie) of Debian/xbian.
Configure APT
Note: the commands in this section must be run as root
Add the following to the bottom of /etc/apt/sources.list:
deb http://www.deb-multimedia.org jessie main non-free
deb-src http://www.deb-multimedia.org jessie main non-free
Read More
Install Transmission torrent client on Xbian
We will install torrent client called Transmission. Before we do that lets update and upgrade our packages.
sudo apt-get update
sudo apt-get upgrade
After, installing the client:
sudo apt-get install transmission-daemon Read More
If you nead, automated certificate expiration checks on CentOS Linux
One important part of using SSL is to keep track of expiration dates on certificates. Most client software will rightfully refuse to connect to a server that presents an expired certificate, resulting in interrupted services. For CentOS and other RHEL based distributions, the crypto-utils package contains a very useful utility called certwatch, which can be used to detect whether a certificate will expire in the near future. Read More
Yum Timeout Slow Connection
For this particular situation the ISP (will rename un-named) had burstable-bandwidth. However, that became an issue when attempting to do a yum update. Here’s the workaround that let us download the updates no matter what the bandwidth was:
nano /etc/yum.conf
How to Import a Compressed MySQL Database From bz2 Format
If you have a compressed MySQL database in bz2 format that you need to import, just do the following:
bunzip2 < db_filename.sql.bz2 | mysql -u root -p target_db_name
grep with color output [linux]
grep is capable of color-highlighting the matched string in its output. But, by default, that option is turned off.
$ grep abc a_file.txt
abcdef
There are 3 color options available to you:
–color=auto
–color=always
–color=never
Read More