Customizing pxe-booting-client

Under development: PCMCIA, wireless, etc.
Post Reply
Message
Author
mhanifpriatama
Posts: 60
Joined: Sat 22 Jan 2011, 07:50

Customizing pxe-booting-client

#1 Post by mhanifpriatama »

First, you must add a line to init script in initrd.gz, in line 1657 :

Code: Select all

cp /aaaa /pup_new/initrd/mnt/data
2nd : you create aaaa file, chmod that, (or use rox to change permission).

3rd : create code inside aaaa file.
4th: edit pup sfs, edit /etc/rc.d/rc.local, add :

Code: Select all

cp -f /initrd/mnt/data/aaaa /usr/sbin/start.sh
chmod a+x /usr/sbin/start.sh
/usr/sbin/start.sh


5th : create initrd.gz with pup sfs inside (humongous initrd).

6rd : look my example code in aaaa :

Code: Select all

#!/bin/bash
echo "#!/bin/bash" > /root/Startup/jalankan
echo "gbilling-client &" >> /root/Startup/jalankan
echo "cp -r  /mnt/+Firefox-7.0.1_520.sfs/.mozilla /root" >> /root/Startup/jalankan
chmod a+x /root/Startup/jalankan

echo hwclock --hctosys >> /root/Startup/run_fixmenus
a=`dhcpcd -T | grep new_ip_address`
dhcpcd -s ${a:15:15}
mkdir /root/dir_oo
mkdir /root/simpan_di_server
mount -o port=4711,mountport=4711,mountvers=3,nfsvers=3,nolock,tcp 169.254.33.219:/root/sda3/datauser /root/simpan_di_server
curlftpfs ftp://169.254.33.219 /root/dir_oo
cd /root/simpan_di_server/.setup_client
#seting waktu
ln -sf /usr/share/zoneinfo/Asia/Jakarta /etc/localtime
filemnt ./go-oo-3.2-sfs4.sfs &
filemnt ./Firefox-7.0.1_520.sfs &
#setup firefox and gbilling start
ln -s /mnt/+Firefox-7.0.1_520.sfs/usr/bin/firefox /usr/bin
ln -s /mnt/+Firefox-7.0.1_520.sfs/usr/lib/firefox /usr/lib
ln -s /mnt/+go-oo-3.2-sfs4.sfs/usr/share/icons/hicolor/32x32/apps/openofficeorg3-base.png /mnt/+go-oo-3.2-sfs4.sfs/usr/share/icons/hicolor/32x32/apps/openofficeorg3-calc.png /mnt/+go-oo-3.2-sfs4.sfs/usr/share/icons/hicolor/32x32/apps/openofficeorg3-draw.png /mnt/+go-oo-3.2-sfs4.sfs/usr/share/icons/hicolor/32x32/apps/openofficeorg3-impress.png /mnt/+go-oo-3.2-sfs4.sfs/usr/share/icons/hicolor/32x32/apps/openofficeorg3-math.png /mnt/+go-oo-3.2-sfs4.sfs/usr/share/icons/hicolor/32x32/apps/openofficeorg3-printeradmin.png /mnt/+go-oo-3.2-sfs4.sfs/usr/share/icons/hicolor/32x32/apps/openofficeorg3-startcenter.png /mnt/+go-oo-3.2-sfs4.sfs/usr/share/icons/hicolor/32x32/apps/openofficeorg3-writer.png /usr/share/icons/hicolor/32x32/apps
ln -s /mnt/+go-oo-3.2-sfs4.sfs/opt/openoffice.org /mnt/+go-oo-3.2-sfs4.sfs/opt/openoffice.org3 /opt
ln -s /mnt/+Firefox-7.0.1_520.sfs/.gbilling/bin/gbilling-client /usr/local/bin
ln -s /mnt/+Firefox-7.0.1_520.sfs/.gbilling/share/gbilling-client /usr/local/share
ln -s /mnt/+Firefox-7.0.1_520.sfs/.gbilling/.gbilling /root
ln -s /mnt/+Firefox-7.0.1_520.sfs/libflashplayer.so /usr/lib/mozilla/plugins
rm -f /usr/share/backgrounds/default.jpg 
ln -s /mnt/+Firefox-7.0.1_520.sfs/default.jpg /usr/share/backgrounds
#setup firefox end
sleep 2 # jeda agar route berhasil .... 
ln -s /mnt /root/usb_folder
ln -s -f /usr/lib/firefox/chrome/icons/default/default.png /usr/share/fbpanel/images/www24.png
rm -f /root/Choices/ROX-Filer/PuppyPin
rm -f /usr/sbin/pfbpanel
rm -f /usr/sbin/delayedrun
cp /mnt/+Firefox-7.0.1_520.sfs/PuppyPin /root/Choices/ROX-Filer
cp /mnt/+Firefox-7.0.1_520.sfs/pfbpanel /usr/sbin
cp /mnt/+Firefox-7.0.1_520.sfs/delayedrun /usr/sbin
cp -s /usr/local/lib/X11/pixmaps/* /usr/share/fbpanel/images
rm -f /root/Startup/fullstart
#pure-ftpd -zMbBADHk 90 022:022 &
cp -f /root/dir_oo/programlinux/gbilling-client /usr/local/bin
#cp -f /root/dir_oo/rc.xml /root/.config/openbox
cp -f /root/dir_oo/rc.shutdown /etc/rc.d/
note : first four line for startup after X.

Then, you just modify the script, and you can control via script without editing the sfs file again.

Sorry for bad english.

This is my lupu528 pxe-booting-client screenshot, with gbilling_for_puppy.
Image
Attachments
eee.jpg
(140.75 KiB) Downloaded 387 times

Post Reply