Build Linux kernel module against installed kernel w/o full kernel source tree

November 4, 2007

Debian:
# apt-get install kernel-headers-$(uname -r)

Centos;
# yum install kernel-headers-$(uname -r)All you need to do is change Makefile to use current kernel build directory. You can obtain this directory name by typing following command:
$ ls -d /lib/modules/$(uname -r)/buildOutput:

/lib/modules/2.6.15.4/build

Let, say you have .c source code file called hello.c. Now create a Makefile as follows in the directory containing hello.c program / file:
$ vi Makefile
Append following text:

obj-m := hello.o
KDIR := /lib/modules/$(shell uname -r)/build
PWD := $(shell pwd)
default:
$(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules

Save and close the file. Type the following command to build the hello.ko module:
$ make

To load Linux kernel module type the command:
# modprobe hello


What is LLMP (Linux + Lighttpd + Mysql +Php)

November 3, 2007

Nota untuk membina “webserver” LLMP

Langkah pertama;

# cd /usr/src/
# wget http://www.lighttpd.net/assets/2007/1/29/lighttpd-1.4.13.tar.gz
# tar -xvzf lighttpd-1.4.13.tar.gz
# cd lighttpd-1.4.13/
# ./configure –prefix=/usr/local/lighttpd –enable-fastcgi –with-openssl
# make
# make install
# mkdir /etc/lighttpd
# cp -fr doc/lighttpd.conf /etc/lighttpd/

dan….

Read the rest of this entry »


Akhirnya aku ada forum site sendiri

November 3, 2007

hihihi.. akhirnya aku ada site forum sendiri… http://forum.syiron.org.kg kelik di sini…. percuma… terima kasih kepada http://www.freeforums.org