Categories: Webdesign

How to install Centos 4.5 via PXE boot.

edit /etc/xinet.d/tftp

change the line

disable = no

service xinetd restart

y u m i n s t a l l t f tp -y

to u c h /tftpboot/file.txt

t f t p localhost

g e t file.txt

if succeed.. then you t f t p server is working fine…

now to setup DNS server..

set manual ip for yourself first.

vi /etc/sysconfig/network -scripts/ifcfg-eth0

DEVICE=eth0
BOOTPROTO=none
HWADDR=00:14:22:C6:75:FA
ONBOOT=no
TYPE=Ethernet
USERCTL=yes
IPV6INIT=no
PEERDNS=yes
NETMASK=255.255.255.0
IPADDR=192.168.101.20

vi /etc/dhcpd.conf

add following lines..

ddns-update-style ad-hoc;
subnet 192.168.101.0 netmask 255.255.255.0 {
range 192.168.101.1 192.168.101.19;
filename “linux-install/pxelinux.0”;
}

cd /tftpboot/linux-install

mkdir centos4

cd centos4

wg et http://mars.techsense.com.my/repository/centos4/centos/4/os/i386/images/pxeboot/initrd.img

wg et http://mars.techsense.com.my/repository/centos4/centos/4/os/i386/images/pxeboot/vmlinuz

cd /tftpboot/linux-install/pxelinux.cfg/

touch default

vi default

key in the following.

default centos
timeout 100
prompt 1
display msgs/boot.msg
F1 msgs/boot.msg
F2 msgs/general.msg
F3 msgs/expert.msg
F4 msgs/param.msg
F5 msgs/rescue.msg
F7 msgs/snake.msg

label centos
kernel centos4/vmlinuz
append initrd=centos4/initrd.img ramdisk_size=7000

if succeed..

whenever booting from another machine to use PXE boot.. something like this will appear..

press enter..  and wait.. till something like below appear..

Namran Hussin

Leave a Comment

View Comments

Share
Published by
Namran Hussin

Recent Posts

How you can speak with clarity and influence

Here are five key communication skills that help you speak with clarity and influence: Speak…

7 months ago

? Man360 Academy Q&A Session Video Access – Empower Your Masculine Growth Journey

Are you ready to unlock your full potential as a man?Discover powerful insights, real-life transformations,…

1 year ago

A note to remember

One day we will set aside one whole day to review the whole lesson we…

1 year ago

Dev Fest KL 2024

Last weekend, 07/12/2024 I managed to join Dev Fest Kuala Lumpur 2024, organized by Google…

1 year ago

TIPS BACAAN AL-QURAN

TIPS BACAAN AL-QURANOleh: Dr. Muhd al-Muhaysni.1. Jangan engkau berikan (fokus membaca) al-Quran pada lebihan waktumu…

2 years ago

Selawat 300 ribu kali

Selawat yang ringkas, yang mana apabila kamu membacanya satu kali sebanding 100 ribu kali, jadi…

2 years ago