Archive for the 'Bash' Category

Page 2 of 8

Weekend Security Check

Some of my servers providing FTP service and I check every weekend all the uploaded and system files for viruses and rootkits.
If somebody starts a upload, nobody think about potential danger e.g. virus.

You can start all this checks separated or as a script.

Here are some examples: Continue reading ‘Weekend Security Check’

Icinga/Nagios server room temperature

After I wrote the posts about your own digital temperature sensor and Nagios/Icinga Traffic-Light its time to combine the two ideas and bring some lights to switch.

We have two working independent components, with a plugin is it possible to get the sensor status. If your temperature is higher then normal you should get a signal (Warning or Critical).

Define the new check command, with name and a plugin with some arguments:
Continue reading ‘Icinga/Nagios server room temperature’

Your own weatherstation


Create a own weather station or temperature monitoring using a tiny digital temperature sensor.

I use this setup to monitor a server room, and outdoor temperature and as a weather station.

This project consists of interface between RS-232F and the Dallas one Wire system.

You need: Continue reading ‘Your own weatherstation’

Usermod command

Manpages are great!
Disable ssh login:

1
usermod -s /bin/false username

Change home directory:

1
usermod -d /home/users/newpath/ username

Generate self-signed certificate

Quick and easy – generate self-signed certificate in one line

1
openssl req -new -newkey rsa:2048 -days 365 -nodes -x509 -keyout server.key -out server.crt