Page 1 of 1

How to not open a Removable device in seperate Browser tab

Posted: 03 Mar 2023, 10:54
by Tim steute
Hello,

I was wondering if I can disable the feature that a new browser tab opens when I plug in a USB-stick into the PC. The browser tab whitch is opening is an index of the usb stick. But it is not nessasary because I use the Porteus Kiosk to connect to Nextcloud. I can upload my files from the USB stick via that. It is way easier for my usecase.

Thank you! :P

How to not open a Removable device in seperate Browser tab

Posted: 03 Mar 2023, 19:43
by fanthom
Tim,

Please add this parameter to your kiosk config:

Code: Select all

run_command=sed -i 's|$browser|$browser-disabled|' /sbin/udev-automount
Thanks

How to not open a Removable device in seperate Browser tab

Posted: 06 Mar 2023, 07:31
by Tim steute
fanthom wrote:
03 Mar 2023, 19:43
Please add this parameter to your kiosk config:
Thank you. Do I have to add it after the installation process? And if so, can you help me explain me how I do that? :D

How to not open a Removable device in seperate Browser tab

Posted: 06 Mar 2023, 08:48
by fanthom
You need to enable 'run command' function in the installation wizard or use remote management and add this parameter to your remote kiosk config.

Thanks

How to not open a Removable device in seperate Browser tab

Posted: 06 Mar 2023, 09:46
by Tim steute
fanthom wrote:
06 Mar 2023, 08:48
You need to enable 'run command' function in the installation wizard
I tried this now several times, but every time I plug in a USB device a new tab with the USB index opens. Do I have to add the whole code length or only after the "="?

How to not open a Removable device in seperate Browser tab

Posted: 06 Mar 2023, 15:17
by fanthom
You need to have the parameter listed here:
https://porteus-kiosk.org/screens/wizard/config.png

Thanks

How to not open a Removable device in seperate Browser tab

Posted: 07 Mar 2023, 10:38
by Tim steute
I deleded the code "browser=firefox" and insertet the "run_command=[...]" code.
If I plug in a USB device now, a new tab still opens with the Index of the USB.

How to not open a Removable device in seperate Browser tab

Posted: 07 Mar 2023, 14:02
by fanthom
This one will work (I forgot that this script is renamed later in the boot process):

Code: Select all

run_command=sed -i 's|$browser|$browser-disabled|' /sbin/udev-automount-disabled
Do not delete the browser parameter, just add 'run_command=' there.

Thanks

How to not open a Removable device in seperate Browser tab

Posted: 07 Mar 2023, 14:41
by Tim steute
Thank you a lot!
Now it works but I just discovered, that the USB device doesn't show up on the "upload" screen in the Nextcloud.

To put together what I wanted from the beginning was, to plug in a USB-stick and upload its files to the nextcloud. The problem was the new browser tab (with the Index of the USB stick) which opens every time i plug the stick into the pc. I have the fear, that it will annoy the users, so I don't want this "Index Tab" to show up.

How to not open a Removable device in seperate Browser tab

Posted: 08 Mar 2023, 09:22
by fanthom
"Now it works but I just discovered, that the USB device doesn't show up on the "upload" screen in the Nextcloud."
Run command only disabled opening the tab in the browser, nothing else.

Please connect to the kiosk over SSH, run 'mount' command and check if your USB is mounted under the /media folder.

Thanks

How to not open a Removable device in seperate Browser tab

Posted: 22 Mar 2023, 10:31
by Tim steute
The SSH command works, but this does not lead to the goal I meant. It is still this:
Tim steute wrote:
07 Mar 2023, 14:41
to plug in a USB-stick and upload its files to the nextcloud. The problem was the new browser tab (with the Index of the USB stick) which opens every time i plug the stick into the pc. I have the fear, that it will annoy the users, so I don't want this "Index Tab" to show up.

How to not open a Removable device in seperate Browser tab

Posted: 22 Mar 2023, 13:36
by fanthom
Tim,

I'm out of ideas.

Maybe customized build could help:
https://porteus-kiosk.org/builds.html

Thanks