Create an automated letsencrypt certificate for the Apache web service on Ubuntu 16.04


apt update && apt upgrade -y

apt-get install software-properties-common

add-apt-repository ppa:certbot/certbot

apt update && apt upgrade -y

sudo apt-get install python-certbot-apache

Add domain or subdomain name to create the certificate.
sudo certbot --apache -d smsk.biz -d www.smsk.biz

just for test renew
sudo certbot renew --dry-run

Reload apache service
/etc/init.d/apache2 reload

Add command to crontab for everyday renew.
Because you will be allowed to be renewal the day before your certificate is expire.
crontab -e
0 1 * * * sudo certbot renew --quiet
[wpedon id=”539″ align=”right”]

Loading

Linux Sunucularda herhangi bir log dosyasını syslog sunucuya aktarmak

Özel olarak faklı bir dosyaya yazılan loğları log sunucusuna göndermek için şu adımlar takip edilir.

Bu örnekte postgres pg_log dosyası içerisine kaydedilen loğları log sunucusuna gönderiyoruz.

Bu örnekler ilgili log dosyası kaynağı değiştirilerek ve etiketleme yapılarak çoğaltılabilir.

Önce konfigürasyon dosyamızı oluşturuyoruz.

Loading

OpenVas Installation on Ubuntu 16.04

Adding this PPA to your system

You can update your system with unsupported packages from this untrusted PPA by adding ppa:mrazavi/openvas to your system’s Software Sources.

sudo add-apt-repository ppa:mrazavi/openvas
sudo apt-get update

Loading

How to Install and Configure MRTG on Ubuntu Server

This post will describe how to install and configure Tobi Oetiker’s MRTG (Multi Router Traffic Grapher) on your Ubuntu server. All steps assume that the Apache http server is installed and operating correctly. Once configured, you’ll be able to use MRTG to monitor the traffic in and out of your network using the SNMP capability in your network’s gateway\router. MRTG generates static HTML pages containing PNG images which provide a visual representation of this traffic. MRTG typically produces daily, weekly, monthly, and yearly graphs. MRTG is written in perl and works on Unix/Linux as well as Windows. MRTG is free software licensed under the GNU GPL.

Loading