External Devices - Prevent tab from opening

Here you can post about the issues related to modifications performed manually (not through the kiosk wizard). Example: swapped kernel, added 3rd party modules or files.
Please describe in detail what has been changed and hopefully other kiosk user will be able to help.
Porteus team wont resolve bugs posted in this category as we support only modifications made by the kiosk wizard.
Forum rules
Porteus Kiosk section of the forum is unmaintained now. Its kept in a 'read only' mode for archival purposes.
Please use the kiosk contact page for directing your queries: https://porteus-kiosk.org/contact.html
enorthwood
White ninja
White ninja
Posts: 9
Joined: 09 Apr 2018, 19:02
Distribution: Porteus Kiosk

External Devices - Prevent tab from opening

Post#1 by enorthwood » 08 Jun 2018, 15:38

Hello,

I am close to being finished with my own build for Kiosk-Cloud. How do I stop the new tab from opening in firefox when a user sticks their usb drive into the tower? I don't want this tab to open as it may confuse guests.

Best Regards,
Liz

User avatar
fanthom
Moderator Team
Moderator Team
Posts: 5666
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland
Contact:

External Devices - Prevent tab from opening

Post#2 by fanthom » 08 Jun 2018, 16:08

Hello Liz,

I understand you want usb stick to be automounted but its content should not be displayed in the browser by default?

If yes then please use this parameter:

Code: Select all

run_command=sed -i 's|$browser /media|$browserr /media|' /sbin/udev-automount
If you dont want the sticks to be automounted at all then please remove:
removable_devices=yes

from your kiosk config.
Please add [Solved] to your thread title if the solution was found.

enorthwood
White ninja
White ninja
Posts: 9
Joined: 09 Apr 2018, 19:02
Distribution: Porteus Kiosk

External Devices - Prevent tab from opening

Post#3 by enorthwood » 08 Jun 2018, 16:43

Hello Fanthom,

Thank you as always for your speedy response. Is there a way for the system to read the device label, rather than mounting it as "media?"

Best Regards,
Liz

enorthwood
White ninja
White ninja
Posts: 9
Joined: 09 Apr 2018, 19:02
Distribution: Porteus Kiosk

External Devices - Prevent tab from opening

Post#4 by enorthwood » 08 Jun 2018, 17:07

Hmm,

I put the parameter in the kiosk config file as specified, however the tab still opens in firefox when mounting the device.

Best Regards,
Liz Northwood

User avatar
fanthom
Moderator Team
Moderator Team
Posts: 5666
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland
Contact:

External Devices - Prevent tab from opening

Post#5 by fanthom » 08 Jun 2018, 17:33

This file is renamed later so must be edited with a delay:

Code: Select all

run_command= ( sleep 10; sed -i 's|$browser /media|$browserr /media|' /sbin/udev-automount; ) &
"Is there a way for the system to read the device label, rather than mounting it as "media?""
This is bit more complicated as you must find the label of recently plugged device. You would have to edit 003-settings.xzm/sbin/udev-automount-disabled and read the label from udev variable or run blkid against partition. Then you can mount it under /mnt/device-label or anywhere you want.
Please add [Solved] to your thread title if the solution was found.

Locked