Sudhaker's Blog

- be technical by techniques

Building nginx on CentOS 6.3

without comments

Install pre-requisites


sudo yum install pcre-devel.x86_64 zlib-devel.x86_64 openssl-devel.x86_64
mkdir nginx
sudo mv nginx /opt

Get the nginx code and compile


wget http://nginx.org/download/nginx-1.2.7.tar.gz
tar zxf nginx-1.2.7.tar.gz
cd nginx-1.2.7
./configure --prefix=/opt/nginx --with-http_ssl_module
make
make install

I needed to do some c10k testing, so added push-stream-module as well. You can skip.


./configure --prefix=/opt/nginx --with-http_ssl_module --add-module=../nginx-push-stream-module/

Cheers,
- Sudhaker

Written by sudhaker

March 16th, 2013 at 6:09 pm

Posted in Linux

CentOS / RHEL 6 – AutoLogin

with 12 comments

If your linux is essentially a single user system and you don’t have to worry about anyone else accessing your local console, here’s how to enable it:

Edit /etc/gdm/custom.conf to add the following two lines in the [daemon] section:

[daemon]
AutomaticLoginEnable=true
AutomaticLogin=username

Cheers,
- Sudhaker

Written by sudhaker

July 17th, 2011 at 5:54 pm

Posted in Linux

CentOS 6.0 on Inspiron 1525 (BCM4312)

with 16 comments

Long awaited CentOS 6.0 was release few days back. Thank you CentOS Team!

If you haven’t downloaded it yet, please do so because this is really cool. The biggest attraction for me was two new minimal mode which does exactly what it claims. Default minimal mode on x64 system installs with 197 packages only (still some bloatware but lot better than earlier).

My first test installation was on a Dell Inspiron 1525 laptop. The installation won’t start unless we pick “basic video driver”, option #2 on the first screen. The minimal desktop installed fine but wireless was broken. NetworkManager applet reported that device firmware was missing for following device.


# /sbin/lspci -vnn | grep 14e4
0c:00.0 Network controller [0280]: Broadcom Corporation BCM4312 802.11b/g [14e4:4315] (rev 01)

After a bit of googling, I found the workaround to make it working.


yum install b43-fwcutter b43-openfwwf
mkdir ~/b43-driver; cd ~/b43-driver
wget http://downloads.openwrt.org/sources/broadcom-wl-4.150.10.5.tar.bz2
tar jxf broadcom-wl-4.150.10.5.tar.bz2
cd broadcom-wl-4.150.10.5/driver
b43-fwcutter -w /lib/firmware/ wl_apsta_mimo.o

And reboot. Hope this helps someone.

Cheers,
- Sudhaker

Written by sudhaker

July 17th, 2011 at 4:54 pm

Posted in Linux

Compile Mongrel2 on CentOS 5.6

with one comment

=== install build pre-rquisite ===


yum install e2fsprogs-devel.x86_64 -y

=== build zeromq ===


./configure --prefix=/opt/zeromq
make
make install

echo /opt/zeromq/lib > /etc/ld.so.conf.d/zeromq.conf
ldconfig

=== build mongrel2 ===

Add sqlite3 code (amalgamation version) into mongrel3 source directory

Then make following changes in given Makefile


## add these lines on top
OPTFLAGS=-I/opt/zeromq/include
OPTLIBS=-L/opt/zeromq/lib
## modify existing line as followings
#LIBS=-lzmq -ldl -lsqlite3 $(OPTLIBS)
LIBS=-lzmq -ldl $(OPTLIBS)
#PREFIX?=/usr/local
PREFIX=/opt/mongrel2

And build the mongrel2

make
make install

Cheers,
- Sudhaker

Written by sudhaker

July 10th, 2011 at 10:12 pm

Posted in Linux