CentOS / RHEL 6 – AutoLogin

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

Posted in Uncategorized | 10 Comments

CentOS 6.0 on Inspiron 1525 (BCM4312)

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

Posted in Uncategorized | 6 Comments

Compile Mongrel2 on CentOS 5.6

=== 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

Posted in Uncategorized | 1 Comment