jika anda pernah menggunakan bahasa pemrograman C atau C++ maka anda dapat membuat distro di linux dengan menggunakan bahasa C
ini adalah code membuat distro anda sendiri yang saya dapat dari rampok.org
#!/bin/sh
# Script otomasi pembuatan distro linux floppy
# Oleh : Rama A Mamuaya [ mamuaya@rampok.org ]
# Homepage http://rampok.org/
# Release Date : 10 January 2005
# HowTo :
# make dir named root in active dir.
# inside root dir, create all dir needed ( etc,dev,bin,usr,�) :
# ./root/bin
# ./root/etc
# ./
$KERNEL = /usr/src/linux/arch/i386/boot/bzImage
$ROOTFS = ./rootfs.gz
$BANNER = 'dibuat oleh rachmat'
)'
echo 'Creating Zero Device......'
dd if=/dev/zero of=rootfs bs=1k count=4096
echo 'Formatting device to ext2......'
mke2fs -Fm0 rootfs
echo 'Mounting device ......'
mkdir /mnt/fux
mount disk.ext2 /mnt/fux -o loop
echo 'Copying FileSystems......'
cp -r ./root/* /mnt/fux
echo 'Unmount filesystems......'
umount /mnt/fux
gzip -9 ./rootfs
echo 'Putting bootsector on Floppy'
syslinux /dev/fd0
echo 'Creating bootdisk......'
mount /dev/fd0 /mnt/floppy
cp $ROOTFS /mnt/floppy
cp $KERNEL /mnt/floppy/fuxlinux
cat >syslinux.cfg << _EOF_
# Bootdisk generated by kreatebootdisk.sh
# Bootdisk based on FUX-Linux.
# http://rampok.org/
# mamuaya@rampok.org
default fux
display fux.msg
prompt 1
label fux
kernel fuxlinux
append initrd=rootfs.gz root=/dev/fd0
_EOF_
cat >fux.msg << __EOF__
selamat datang di distro linux
Visit http://www.rachmatkull.blogspot.com
__EOF__
echo 'Unmounting Floppy device......'
umount /mnt/floppy
echo 'Its up to you now......'
echo $BANNER
exit
-
0 comments:
Post a Comment