Page 1 of 1

Use of Variables machine-id in kioskconfig.txt

Posted: 18 Jul 2015, 17:13
by guido.kuehler
We see in the Directory /etc/ the file machine-id.
The Machine-ID is based on Mac-Address, right?
So its the only one part was based on the hardware by the first setup.

Can we use over any way variables in kioskconfig.txt?

For Example:

We will use followed kiosk-config Entry in the kioskconfig.txt

kiosk_config=https://our.domain.com/gkc/?mid=$machineid < or so, to fill in the Url the MachineId from Kiosk-Hardware

Additional-Infos:

We cannot use the remote-ip or host on the webserver-side because the kiosks placed
behind a Firewall with NAT and a single IP.

Best Regards
Guido

Re: Use of Variables machine-id in kioskconfig.txt

Posted: 18 Jul 2015, 18:45
by fanthom
Hello guido,

"Can we use over any way variables in kioskconfig.txt?"
Yes but your variable must be exported on the client side first. You have to remaster kiosk ISO and export 'machineid=$(cat /sys/class/net/eth0/address)' through for example /etc/rc.d/rc.local and then it will be respected by wget when downloading kiosk config through this parameter:

Code: Select all

kiosk_config=https://our.domain.com/gkc/?mid=$machineid

Re: Use of Variables machine-id in kioskconfig.txt [Solved]

Posted: 18 Jul 2015, 18:57
by guido.kuehler
Thank you for this Info!

We use Porteus only since one Day and must see how we remaster the ISO right!

Best Regards
Guido

Re: Use of Variables machine-id in kioskconfig.txt

Posted: 18 Jul 2015, 20:11
by guido.kuehler
The Wizard displays the identification-id of the Device and i am sure that the Device use this when the Autoupdate-Feature is used.
Is this right?
Can we use this Variable in the kioskconfig.txt?

Best Regards!
Guido

Re: Use of Variables machine-id in kioskconfig.txt

Posted: 19 Jul 2015, 07:19
by fanthom
"The Wizard displays the identification-id of the Device and i am sure that the Device use this when the Autoupdate-Feature is used.
Is this right?"
correct

"Can we use this Variable in the kioskconfig.txt?"
PC ID is generated and saved to /etc/version only during first run and when you are signed to the 'automatic updates'. If you are not signed to this service then it wont be available to you so better stick to the MAC address method i posted above.

Re: Use of Variables machine-id in kioskconfig.txt

Posted: 25 Aug 2015, 20:15
by fanthom
UPDATE:
In next kiosk release PC ID will be appended to the kiosk config download URL by default so this problem should be gone.