Page 1 of 1

Adding the Wizard to the ISO

Posted: 13 May 2015, 09:21
by Debadr
Hi :)

Using PKE 3.3 i want to have all files on the ISO image : Modules and Wizard. Why ? because where i have to implement the solution there is no WAN (Internet access), its a LAN with access to LAN servers and done, they can't for example download modules or even wizard.
For the Modules its ok i added them to the ISO and it works successfully.
But for the wizard i don't know where exactly i can put it and of course how to tell the shell script

Code: Select all

/../kiosk/boot/initrd.xz/initrd/init 
file where to find it.
I know that the changes would probably be in this section of the program : (according to my newbie capacities to read this huge shell script)

Code: Select all

echo $i"downloading kiosk data from the server"
./busybox wget -q -O /mnt/default.jpg http://$IP/docs/default.jpg; ./busybox wget -q -O /mnt/kiosk.sgn http://$IP/docs/kiosk.sgn
for x in `./busybox wget -q -O- http://$IP/xzm | tr " " "\n" | grep -i "href.*.xzm</" | cut -d">" -f2 | cut -d"<" -f1`; do echo "$x" >>/tmp/modules-pxe; done
grep -q xzm /tmp/modules-pxe 2>/dev/null && rm -rf /lib || { echo "[31m""HTTP server not accessible? - exiting ...""[0m"; escape; }; NUM=`grep -c '.' /tmp/modules-pxe 2>/dev/null`
for y in `cat /tmp/modules-pxe 2>/dev/null`; do echo -en "[1;33m""  ($NUM modules left)  \r""[0m"; let NUM=NUM-1; ./busybox wget -q -O $PTH/$y http://$IP/xzm/$y 2>/dev/null; done
killall busybox; for nic in `ls /sys/class/net | grep eth`; do ifconfig $nic down; done
But where and what ? :%)
May be the person who programed it could help @Fanthom :).
Thank you

Re: Adding the Wizard to the ISO

Posted: 14 May 2015, 08:33
by fanthom
Hello Debadr,

embedding the wizard with the ISO is not possible as kiosk must test internet connection (by downloading wizard/components from the server) prior to installation and this is hardcoded in the ISO. you may do as follows:

1) boot kiosk on some PC with internet access
2) set up all the parameters as you like
3) edit kiosk config and change/inject parameters specific for the network where kiosk will be working:
http://porteus-kiosk.org/screens/wizard/config.png
4) on the installation page in the wizard press 'Skip' button
5) upload created ISO to some online storage
6) boot live linux (Porteus desktop?) on the destination PC and burn kiosk ISO on the hard drive manually:

Code: Select all

dd if=Porteus-Kiosk-3.1-i486.iso of=/dev/sdb

Re: Adding the Wizard to the ISO

Posted: 15 May 2015, 06:38
by Debadr
fanthom wrote:Hello Debadr,

embedding the wizard with the ISO is not possible as kiosk must test internet connection (by downloading wizard/components from the server) prior to installation and this is hardcoded in the ISO. you may do as follows:

1) boot kiosk on some PC with internet access
2) set up all the parameters as you like
3) edit kiosk config and change/inject parameters specific for the network where kiosk will be working:
http://porteus-kiosk.org/screens/wizard/config.png
4) on the installation page in the wizard press 'Skip' button
5) upload created ISO to some online storage
6) boot live linux (Porteus desktop?) on the destination PC and burn kiosk ISO on the hard drive manually:

Code: Select all

dd if=Porteus-Kiosk-3.1-i486.iso of=/dev/sdb
Hi Fanthom,

i'll give it a try Monday :) and give a feedback.

Thank you.

Re: Adding the Wizard to the ISO

Posted: 18 May 2015, 07:46
by Debadr
Hi Fanthom,

I've tried your solution, and it works very fine, but what i noticed is that the OS is burning on the ISO which i put on a CD.
Is there any solution for letting the OS burning on the hard drive so i don't need the CD after the first installation ? without having to do it manually of course.

Thank you.

Re: Adding the Wizard to the ISO

Posted: 19 May 2015, 07:31
by fanthom
im sorry but i dont understand what you are trying to do.
wizard produces kiosk.iso which you need to upload to online storage. now you need to boot any linux (other than kiosk) on the target PC, download kiosk.iso and burn it on the hard drive using 'dd' command.

Re: Adding the Wizard to the ISO

Posted: 19 May 2015, 08:14
by Debadr
Hi Fanthom,

Sorry for the miss understanding.
What i am trying to say is: with the configuration file on the web server, this solution wont work because the OS is on the CD and we can't re-burn the OS since he is on the CD if we have done some modifications on the configuration file.

Re: Adding the Wizard to the ISO

Posted: 19 May 2015, 09:00
by fanthom
CD is read only so kiosk cant reconfigure itself. please burn the ISO on the hard drive/usb stick/flash card with 'dd' command i provided:

Code: Select all

dd if=Porteus-Kiosk-3.1-i486.iso of=/dev/sdb
(you need to modify above command to match your ISO and device)

and all will be good.

Re: Adding the Wizard to the ISO

Posted: 06 Jun 2015, 03:26
by Rava
Since Debadr not responded, me presumes he got it all right now.

just to make it absolutely foolproof for any other new users finding this post:
fanthom wrote:CD is read only so kiosk cant reconfigure itself. please burn the ISO on the hard drive/usb stick/flash card with 'dd' command i provided:

Code: Select all

dd if=Porteus-Kiosk-3.1-i486.iso of=/dev/sdb
(you need to modify above command to match your ISO and device)
Check which is the target's hard drive, most often that would be /dev/sda , even when you boot from CD or an USB stick, cause the later usually is /dev/sdb even when it's the boot device, and the first internal hard disk is usually /dev/sda. Best check this as root with

Code: Select all

fdisk -l

Re: Adding the Wizard to the ISO

Posted: 08 Jun 2015, 09:39
by Debadr
Rava wrote:Since Debadr not responded, me presumes he got it all right now.
Hi Rava,

Thanks for your contribution (I thought I had made a last reply to the topic).

Actually i given up this idea, not it was not good, but it would be to too much work and time for something that could be done in 2 minutes directly with the iso on the cd drive and with a real installation. :(

So with my contributor and superiors we decided to make normal installations.