Archive for the ‘linux’ Category

Small Updates

Friday, October 16th, 2009

Let me know if you notice anything broken or borked… just moved the blog to a new server.

Since my last post I’ve added a few new things to my github account… one is a mmorpg rails plugin and another is a server automator for fresh installs to get them production/development ready.

Server Setup Fu

A collection of shell scripts that you run once to setup a bare metal server for development or production.
mmo_fu

A rails plugin to interact with MMO websites like: wow armory, lotro armory, etc.

Servly is also still chugging a long and is going to be offered as SaaS — I’ll post more information about how to sign up once we get closer to launching it.

And I’ll leave on this note:

Lighttpd + mod_magnet on CentOS (64 bit)

Tuesday, August 18th, 2009

After about an hour of tinkering around on google and in the terminal here is what you need to do:

wget http://www.lua.org/ftp/lua-5.1.2.tar.gz
tar xfz lua-5.1.2.tar.gz
cd lua-5.1.2
nano src/Makefile

Replace:

 CFLAGS= -O2 -Wall $(MYCFLAGS) 

With:

 CFLAGS= -O2 -Wall -fPIC $(MYCFLAGS) 
make linux install

wget http://luaforge.net/frs/download.php/2384/md5-1.0.2.tar.gz
tar xfz md5-1.0.2.tar.gz
cd md5-1.0.2
make
make install
cd ..
wget http://luaforge.net/frs/download.php/1678/luazlib-0.0.1.rar

wget wget http://www.rarlab.com/rar/unrar-3.7.7-centos.gz
gunzip unrar-3.7.7-centos.gz
chmod +x unrar-3.7.7-centos
./unrar-3.7.7-centos x luazlib-0.0.1.rar
cd luazlib-0.0.1
make
make install

export LUA_CFLAGS="-I/usr/local/include"
export LUA_LIBS="-L/usr/local/lib -llua"

cd LIGHTTPD_DIRECTORY
./configure -with-lua
make
make install

All done!

Thanks to:
http://gadelkareem.com/2007/09/17/dynamic-content-caching-using-lighty-mod_magnet-lua/ && http://www.verlihub-project.org/doku.phpid=howto_install_lua_library_on_64_bit

BlueBug 1.2 Released

Monday, October 27th, 2008
  • v1.210/27/2008 – RELEASED
    1. Fixed all short tags (if you still get an error let me know, I’m 99.9% sure I got them all)
    2. Script now works properly in sub directories – see demo for in-action.

CentOS w/out Yum

Friday, September 5th, 2008

Took me about 20 minutes to figure out why this wasn’t working when installing yum:

After you follow the instructions at http://wiki.centos.org/TipsAndTricks/BrokenVserver
You get to the part where your trying to install rpm-python. This doesn’t work quite as you’d hoped.Â

Error:

# rpm -Uvh rpm-python-4.4.2-48.el5.i386.rpm

warning: rpm-python-4.4.2-48.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID e8562897

error: Failed dependencies:

        rpm = 4.4.2-48.el5 is needed by rpm-python-4.4.2-48.el5.i386

So clear all the other RPM’s you installed, download these three from the repository (varies if your using 64 bit or i386)

rpm-4.4.2-48.el5.i386.rpm    rpm-python-4.4.2-48.el5.i386.rpm

rpm-libs-4.4.2-48.el5.i386.rpm Â

Make sure all these are present then run:

rpm -Uvh *.rpm

 This will install the libs and the RPM update at the same time so the error isn’t thrown.

`sar` command

Thursday, September 4th, 2008

I’m always trying to find a good method of monitoring system performance and logging it, but today I ran into a rather strange issue that I couldn’t find on google.

sar 0 was returning high idle percentages:

# sar -u 0

08:17:29 AM       CPU     %user     %nice   %system   %iowait     %idle

08:17:29 AM       all     18.11      0.01     11.66     70.22    3549.42
running top didn't produce 3.5k % idle and in fact the system was nearly 98% idle.Â
The quick fix is to simply run
yum update sysstat
That fixed the problem immediately on the box I was using.
Hope this helps someone else.
© 2008 Josh Rendek.