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
External Devices - Prevent tab from opening
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
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
-
- White ninja
- Posts: 9
- Joined: 09 Apr 2018, 19:02
- Distribution: Porteus Kiosk
- fanthom
- Moderator Team
- Posts: 5667
- Joined: 28 Dec 2010, 02:42
- Distribution: Porteus Kiosk
- Location: Poland
- Contact:
External Devices - Prevent tab from opening
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:
If you dont want the sticks to be automounted at all then please remove:
removable_devices=yes
from your kiosk config.
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
removable_devices=yes
from your kiosk config.
Please add [Solved] to your thread title if the solution was found.
-
- White ninja
- Posts: 9
- Joined: 09 Apr 2018, 19:02
- Distribution: Porteus Kiosk
External Devices - Prevent tab from opening
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
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
-
- White ninja
- Posts: 9
- Joined: 09 Apr 2018, 19:02
- Distribution: Porteus Kiosk
External Devices - Prevent tab from opening
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
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
- fanthom
- Moderator Team
- Posts: 5667
- Joined: 28 Dec 2010, 02:42
- Distribution: Porteus Kiosk
- Location: Poland
- Contact:
External Devices - Prevent tab from opening
This file is renamed later so must be edited with a delay:
"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.
Code: Select all
run_command= ( sleep 10; sed -i 's|$browser /media|$browserr /media|' /sbin/udev-automount; ) &
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.