Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sat 22 Nov 2014, 17:45
All times are UTC - 4
 Forum index » Advanced Topics » Cutting edge
Customizing pxe-booting-client
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [1 Post]  
Author Message
mhanifpriatama

Joined: 22 Jan 2011
Posts: 60

PostPosted: Mon 24 Oct 2011, 04:12    Post subject:  Customizing pxe-booting-client
Subject description: a script to control pxe-boot-client beaviour without remastering pup sfs.
 

First, you must add a line to init script in initrd.gz, in line 1657 :
Code:
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:
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:
#!/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.
[img]https://docs.google.com/leaf?id=0B7-O2fux1J0VZjFlYmI1ZTAtYjkyOS00MWNlLTllMTEtYWQxZWRjYTQ4MWFm&hl=en_US[/img]
eee.jpg
Description 
jpg

 Download 
Filename  eee.jpg 
Filesize  140.75 KB 
Downloaded  189 Time(s) 
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [1 Post]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Cutting edge
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0751s ][ Queries: 12 (0.0305s) ][ GZIP on ]