Porteus Kiosk 4.8.0 PXE Boot and Firefox credentials

'User made' tutorials related to Porteus Kiosk edition.
Official kiosk documentation can be find here: http://porteus-kiosk.org/documentation.html
Post Reply
pLeX
White ninja
White ninja
Posts: 4
Joined: 29 Apr 2019, 14:29
Distribution: 4.8.0

Porteus Kiosk 4.8.0 PXE Boot and Firefox credentials

Post#1 by pLeX » 29 Apr 2019, 14:58

Hey guys,

Im new to this forum and want to say hello :)

Ive build a PXE Boot with Porteus Kiosk 4.8.0 and its working totally fine! Now ive a new requirement... We want to create an autologon to a specified intranet site which needs credentials to authentication. I found this faq: https://porteus-kiosk.org/faq.html#18

I also find several forum entries about saving credentials to firefox, but im not sure which would be the best way. I think the faq article wont work with pxe boot right, because of only read only? This would be my prefed and easierst way.

To modify the image would be also ok, but I dont know how to edit the 4.8.0 image. The tutorials seems to be for the older versions.

Can anyone assist?

thanks in advanced.

User avatar
fanthom
Site Admin
Site Admin
Posts: 5138
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland
Contact:

Porteus Kiosk 4.8.0 PXE Boot and Firefox credentials

Post#2 by fanthom » 30 Apr 2019, 17:05

Hi pLeX,

You would need to remember the login under kiosk then create a module from relevant files. Cant remember exactly which ones now but you may preserve these:

Code: Select all

cookies.sqlite
key3.db
You may copy them over SSH, make sure that correct path and permissions are preserved in the module.
Once done its enough to copy it to your /xzm folder on your PXE server.

Thanks
Please add [Solved] to your thread title if the solution was found.

pLeX
White ninja
White ninja
Posts: 4
Joined: 29 Apr 2019, 14:29
Distribution: 4.8.0

Porteus Kiosk 4.8.0 PXE Boot and Firefox credentials

Post#3 by pLeX » 06 May 2019, 19:03

Hi fanthom,

thanks for your reply. I researched it a little bit and find out how to do it, but its not working. :-/ I used the porteus desktop live cd and saved the password for the website. If I reopen firefox and go to the website its always logged in. How it should be! If I now take the cookies.sqlite and key4.db and put it into the xzm its not working on my kiosk system again. Ive already tried to put the whole profile from firefox to the xzm but this wont help too.

I used this tutorial to include the files: http://www.porteus.org/tutorials/9-modu ... udies.html

So Im think I did it correctly and if I reopen the xzm the new files are included. I think the problem is that the system which is trying to use the cookie, isnt the same as which one I created it, but Ive no clue how I should get the cookies from a running kiosk system, because theres no way to get files from it. SSH is disabled and theres a really reduced connection to this network where the kiosks running. And the next problem is, that we are running around 20 kiosks system which should all show this website. If the cookie just working depends on the hardware I will get this problem again on the other kiosk systems.

regards!

User avatar
fanthom
Site Admin
Site Admin
Posts: 5138
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland
Contact:

Porteus Kiosk 4.8.0 PXE Boot and Firefox credentials

Post#4 by fanthom » 07 May 2019, 06:35

You could install kiosk in VirtualBox -> enable full persistence -> make sure the cookie is remembered (do a kiosk restart) -> copy files over SSH or even send to your email account using the browser.

Thanks
Please add [Solved] to your thread title if the solution was found.

pLeX
White ninja
White ninja
Posts: 4
Joined: 29 Apr 2019, 14:29
Distribution: 4.8.0

Porteus Kiosk 4.8.0 PXE Boot and Firefox credentials

Post#5 by pLeX » 07 May 2019, 07:49

Hi fanthom,

thanks for your reponse again. My collegue who managed this system told me that the problem is that the client cant write a new cookie to the system. We will looking for a solution.

Thanks for your help!

regards

User avatar
fanthom
Site Admin
Site Admin
Posts: 5138
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland
Contact:

Porteus Kiosk 4.8.0 PXE Boot and Firefox credentials

Post#6 by fanthom » 07 May 2019, 10:40

Do you have private mode disabled?

If yes then cookies should be saved properly - unless your website prevents this somehow.

Thanks
Please add [Solved] to your thread title if the solution was found.

pLeX
White ninja
White ninja
Posts: 4
Joined: 29 Apr 2019, 14:29
Distribution: 4.8.0

Porteus Kiosk 4.8.0 PXE Boot and Firefox credentials

Post#7 by pLeX » 07 May 2019, 14:42

Mh no private mode is disabled:

[[ GLOBAL ]]
dhcp=yes
connection=wired
browser=firefox
disable_address_bar=no
autohide_navigation_bar=yes
homepage=https://***/index.php?i=monitoring&mode=livefs
hostname=***
allow_icmp_protocol=yes
session_idle_forced=120
primary_keyboard_layout=de
secondary_keyboard_layout=de
kiosk_config=http://***/config/config.txt
password_manager=yes
disable_private_mode=yes
search_engine=duckduckgo
shutdown_menu=reboot restart-session shutdown
default_sound_card=0.0
wallpaper=http://***/wallpaper.jpg
additional_components=initrdpxe.xz

[[ 5-EE-C06-3C-3A ]]
hostname=***
homepage=https://***/cgi-bin/waw.pl?action=Status&q=3&q=13&r=60
wallpaper=http://***/wallpaper.jpg

But, are you sure that it can be safed to a pxe boot system? Oo

If you open the website for the first time the website is using the cookie ive created. In this moment the website is creating a new cookie with the current timestamp. The current session is working but to the next reboot the website does not allow my "old" created cookie and would just accept the new one which is lost during the reboot.

Little bit more difficult as I thought :P

User avatar
fanthom
Site Admin
Site Admin
Posts: 5138
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland
Contact:

Porteus Kiosk 4.8.0 PXE Boot and Firefox credentials

Post#8 by fanthom » 07 May 2019, 15:49

You need to create a module from your custom files and copy it to the /xzm folder on your PXE server.
Your custom module will be distributed to the clients then.

I though i have explained this already here:
Porteus Kiosk 4.8.0 PXE Boot and Firefox credentials (Post by fanthom #71209)
Please add [Solved] to your thread title if the solution was found.

Post Reply