
Linux aliases for server administrators
If you are tired of always typing and typing on your linux machine in order to do certain taks, then you might need to define some aliases. One of the first things that I’m doing after installing a linux, I define some aliases that I got used with…

mod_evasive + apache – config (CentOS)
For an extra protection for your apache web server you cand install the “mod evasive” apache module. How to do it? Simple, just follow the steps below: Download it from http://club3d.ro/mod_evasive_1.10.1.tar.gz Unpack and compile module tar zxvf mod_evasive_1.10.1.tar.gz; cd mod_evasive; /usr/sbin/apxs -i -a -c mod_evasive20.c Your module has been…

MySQL: bash script to dump all users
If you need to dump all mysql users created on your linux machine you can do it quite easy, using a simple bash script. Create a new bash script as follows:
1 2 3 4 | root@zira # cat > dump_sqlusers.sh #!/bin/bash SQL_CONN="-u{user} -p{password}" mysql ${SQL_CONN} --skip-column-names -A -e"SELECT CONCAT('SHOW GRANTS FOR ''',user,'''@''',host,''';') FROM mysql.user WHERE user<>''" | mysql ${SQL_CONN} --skip-column-names -A | sed 's/$/;/g' |
Save the file, chmod +x dump_sqlusers.sh. Then just execute the script! It will dump all your…

BackupPC – detele backups & clean pool
I am using BackupPC as a backup solution for my linux box and recently modifying some settings I got a huge backup instead of the regular one. So I have deleted only those files that were extra… But the space was still occupied on my hard disk even…

NAT on Mac OSX Yosemite
nat on Mac OSX Yosemite (the last OS version from Apple (that was the latest OS from Apple when this post was written) is not that simple to configure since natd binary (used for network address translation rules) or ipfw (used to create firewall rules on Mac OSX) are missing…

Apache: No space left on device: Couldn’t create accept lock
Today, I just came across this error: Apache: No space left on device: Couldn’t create accept lock. I can’t really remember if I did something or modified anything to my current apache configuration but for some reason I got a notification that my web server is down. I tried to…

Mod_ruid2 on CentOS: install from source
Installing on CentOS If you want to manually install the module for the apache webserver: – download the tar.gz file from sourceforge (link: download) – extract files from archive: tar jxvf mod_ruid2-0.9.8.tar.bz2 – cd mod_ruid2-0.9.8 – compile the module (which apxs -a -i -l cap -c mod_ruid2.c) It is possible to get an…

găzduire.ro – First domain with diacritics
găzduire.ro – first romanian domain with diacritics According to rotld.ro (Romania Top Level Domain), the first registered domain with diacritics was găzduire.ro. As you probably know, starting with June, the 2nd, rotld.ro has opened the registration for romanian domains using diacritics (ă Ă â Â î Î ş…