Install mod_security in Apache httpd for CentOS/RHEL/Scientific Linux

mod_security is an Apache plugin which is a good way to prevent malicious attacks on your web application and even just using the base/default configuration from the EPEL repository rpm package gives a pretty decent rule set and helps with hardening your system. mod_security is all about rule sets and looking for specific types of… Continue reading Install mod_security in Apache httpd for CentOS/RHEL/Scientific Linux

Run a Command on Multiple Systems at once using Bash – CentOS/RHEL

Hey there friends, So there are tons of different methods out there for managing multiple systems. Configuration management, centralized command “senders” and the like (CFEngine, Puppet, Ansible, Chef). One quick and dirty way you can manage multiple systems without setting up anything fancy or new is just with a one line for loop in bash.… Continue reading Run a Command on Multiple Systems at once using Bash – CentOS/RHEL

Compiling PHP 5.5 from Source on CentOS 6 RHEL 6 – configure: error: xml2-config not found. Please check your libxml2 installation.

Hey br0’s, Check this out: say you’re on CentOS 6 or RHEL6 or what have you and you’re trying to compile php 5.5.  You may end up getting the following error: vmhacks.com]# ./configure –prefix=/phproot configure: error: xml2-config not found. Please check your libxml2 installation. Here’s what you need to run in order to install the… Continue reading Compiling PHP 5.5 from Source on CentOS 6 RHEL 6 – configure: error: xml2-config not found. Please check your libxml2 installation.

Incron, Watcher Python PyInotify Alternative. Recursively Watch A File System for Change Events using inotifywait, inotify

If you have a folder in your home directory called “/root/FilestoWatch” and in there you have a bunch of files and folders that you want to constantly be checked for changes. There are a few options out there for this type of thing: – crond (limited to every minute) – incrond (cannot recursively watch a… Continue reading Incron, Watcher Python PyInotify Alternative. Recursively Watch A File System for Change Events using inotifywait, inotify

Running Bacula bconsole Commands from bash CLI

Greetings, Traveler. So if you’re one of the types who use Bacula as your backup server, you’re probably familiar with the ‘bconsole’ command line utility.  I prefer using this to the Bacula Admin Tool (BAT) because it’s faster. The neat thing is that you can pipe commands right to bconsole to get immediate output from… Continue reading Running Bacula bconsole Commands from bash CLI

Set Default Directory Permissions in Using ACLs

I’ve only tested this on RHEL/CentOS/Scientific Linux but should work on any system running Linux acl. ACL’s are useful for providing more granular file and directory access permissions as a supplement to the standard Unix user/group permissions. Let’s say you want the user ‘funboy’ to have full control over the /disco directory on your system, and… Continue reading Set Default Directory Permissions in Using ACLs

Dell OpenManage System Administrator Startup Error – DSM SA Shared Services cannot start on an unsupported system

OK so what if you’re using CentOS on some Dell hardware and you’ve installed Dell OpenManage System Administrator (OMSA).  You might receive the following error when you try to start it up! Starting Systems Management Data Engine: Failed to start because system is not supported dsm_om_shrsvc: DSM SA Shared Services cannot start on an unsupported… Continue reading Dell OpenManage System Administrator Startup Error – DSM SA Shared Services cannot start on an unsupported system

Show Some Line Numbers in vim (vi) in RHEL/CentOS/Scientific Linux

Alright check this shit out..  I’m one of those dudes who likes to have my text editors display the line number at all times.  CALL ME OLD FASHIONED! So if you want line numbers to be displayed in vi (which is really vim these days in the GNU/Linux version we’re talking about), run the following:… Continue reading Show Some Line Numbers in vim (vi) in RHEL/CentOS/Scientific Linux