How to install and configure subversion on RedHat CentOS systems

Step 1: Install subversion

[root@server ~]# yum -y install subversion

Step 2: Create a username under which the subversion daemon will run and set a password for it

sudo yum install subversion

sudo /usr/sbin/useradd svn
sudo passwd svn

su – svn

cd ~
mkdir repositories

cd repositories
svnadmin create myproject

ll myproject
-rw-rw-r– 1 svn svn 229 Nov 21 16:58 README.txt
drwxrwxr-x 2 svn svn 1024 Nov 21 16:58 conf
drwxrwsr-x 6 svn svn 1024 Nov 21 16:58 db
-r–r–r– 1 svn svn 2 Nov 21 16:58 format
drwxrwxr-x 2 svn svn 1024 Nov 21 16:58 hooks
drwxrwxr-x 2 svn svn 1024 Nov 21 16:58 locks

You need to edit “myproject/conf/svnserve.conf” and uncomment the following lines:

auth-access = write
password-db = passwd

and edit the password file “myproject/conf/passwd” adding a new user and password. Note that the password is stored in plain text. In the following example we have a user called “john” whose password is “foobar123”:

[users]
john = foobar123

And finally, as the svn user, start the subversion daemon like so:

svnserve -d -r /home/svn/repositories

Connect to svn://svn@hostname/myproject

Read more

Simple bash script to check mysql status with Nagios

After updating mysql on a server that is running cpanel, Nagios kept reporting that mysql is down. I double checked and the database server was running just fine, so I proceeded with a step by step analysis, the issue proved to be the following:

root@cpanel [~]# /usr/local/nagios/libexec/check_mysql
/usr/local/nagios/libexec/check_mysql: error while loading shared libraries: libmysqlclient.so.15: cannot open shared object file: No such file or directory

Read more

How to use mutt with multiple email accounts

I encountered some issues setting up multiple email accounts with mutt, so I decided to provide as much info as possible for other people who may encounter issues doing the same. One Google Apps hosted and another (hosted with my company) email accounts were set up in this tutorial, make sure you change personal details …

Read more

How to fix the issue when STEAM ID becomes VALVE ID LAN or STEAM ID LAN in Counter Strike 1.6!

I have recently encountered an issue on some of our customer’s servers. From time to time, some players that use STEAM clients are identified as using VALVE (non steam) clients, so I tried to get to the bottom of it. At first, I suspected that dproto is the one causing issues, but this happened also on steam only servers. The funny thing was that this happened only for some of the players and at random moments. This wasn’t a big issue at the beginning, but the guys who weren’t identified as using steam clients were not able to use their admin rights! To explain this in detail, this is what I got under uniqueid field when I used the status command in console:I have recently encountered an issue on some of our customer’s servers. From time to time, some players that use STEAM clients are identified as using VALVE (non steam) clients, so I tried to get to the bottom of it. At first, I suspected that dproto is the one causing issues, but this happened also on steam only servers. The funny thing was that this happened only for some of the players and at random moments. This wasn’t a big issue at the beginning, but the guys who weren’t identified as using steam clients were not able to use their admin rights! To explain this in detail, this is what I got under uniqueid field when I used the status command in console:

Read more