Ubuntu 18.04 disable predictable network names 1

Ubuntu 18.04 disable predictable network names

Cloud-init doesn’t work with predictable network names … So In favor of cloud-init automated network set up disable them. In: /etc/default/grub Change to: GRUB_CMDLINE_LINUX=”net.ifnames=0 biosdevname=0″ source

How to install mod_security for Apache 2

How to install mod_security for Apache

regards, @specktator

Cacti installation for monitoring servers and routers 3

Cacti installation for monitoring servers and routers

This is done with Ubuntu 12.04 Precise, but, it may be done with othe distros too. First install the required packages:

Go to /var/www/ download cacti, unpack it and rename it:

Create a database for cacti, a user for the database and insert the cacti tables in it:

 

Edit […]

How To solve – ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (2)

Something like: ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (2) Ok this was tough enough to find. :PThree simple things. the number inside parenthesis indicates the error number we want to think about firstly. The number two means that mysql daemon cannot find that file. So, to solve this, try […]

Linux Server Monitoring - Schedule a Command Output to be Sent via Email on Boot 4

Linux Server Monitoring – Schedule a Command Output to be Sent via Email on Boot

Scheduling a command on boot it’s easy and it can be done with different ways. One, with cronjobs and second, with the rc.local file (/etc/rc.local). Third, by putting your own script in /etc/init.d/. Fow now I’ll take the easy way to do it, the one with the rc.local. Requirements: sSMTP Mutt email client Implementation Open […]

How to install PDO sqlite3 on Ubuntu 5

How to install PDO sqlite3 on Ubuntu

SQlite is a serverless Relational Database Management System. In plain words, it’s an SQL database without the need of running an SQL server. From my experience it’s not included in LAMP stack, so you have to install it by yourself. 1. Install php5-sqlite via apt …

If SQLite is installed but the PHP driver is […]