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 Thu 18 Dec 2014, 01:43
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 Posts_count_1  
Author Message

Joined: 22 Jan 2011
Posts: 60

PostPosted: Mon 24 Oct 2011, 04:12    Post_subject:  Customizing pxe-booting-client
Sub_title: 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 :
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 :
cp -f /initrd/mnt/data/aaaa /usr/sbin/start.sh
chmod a+x /usr/sbin/start.sh

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

6rd : look my example code in aaaa :

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 /root/simpan_di_server
curlftpfs /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.

Filename  eee.jpg 
Filesize  140.75 KB 
Downloaded  189 Time(s) 
Back to top
View user's profile Send_private_message 
Display_posts:   Sort by:   
Page 1 of 1 Posts_count_1  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Advanced Topics » Cutting edge
Jump to:  

You cannot attach files in this forum
You can download files in this forum

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