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
-
Tim steute
- White ninja
![White ninja White ninja](./images/ranks/SilverStar2.png)
- Posts: 7
- Joined: 03 Mar 2023, 10:42
- Distribution: Porteus Kiosk
Post#1
by Tim steute » 03 Mar 2023, 10:54
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!
![Tongue :P](./images/smilies/tongue.gif)
Tim steute
-
fanthom
- Moderator Team
![Moderator Team Moderator Team](./images/ranks/Moderator2.png)
- Posts: 5667
- Joined: 28 Dec 2010, 02:42
- Distribution: Porteus Kiosk
- Location: Poland
-
Contact:
Post#2
by fanthom » 03 Mar 2023, 19:43
Tim,
Please add this parameter to your kiosk config:
Code: Select all
run_command=sed -i 's|$browser|$browser-disabled|' /sbin/udev-automount
Thanks
Please add [Solved] to your thread title if the solution was found.
fanthom
-
Tim steute
- White ninja
![White ninja White ninja](./images/ranks/SilverStar2.png)
- Posts: 7
- Joined: 03 Mar 2023, 10:42
- Distribution: Porteus Kiosk
Post#3
by Tim steute » 06 Mar 2023, 07:31
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?
![Big Smile :D](./images/smilies/biggrin.gif)
Tim steute
-
fanthom
- Moderator Team
![Moderator Team Moderator Team](./images/ranks/Moderator2.png)
- Posts: 5667
- Joined: 28 Dec 2010, 02:42
- Distribution: Porteus Kiosk
- Location: Poland
-
Contact:
Post#4
by fanthom » 06 Mar 2023, 08:48
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
Please add [Solved] to your thread title if the solution was found.
fanthom
-
Tim steute
- White ninja
![White ninja White ninja](./images/ranks/SilverStar2.png)
- Posts: 7
- Joined: 03 Mar 2023, 10:42
- Distribution: Porteus Kiosk
Post#5
by Tim steute » 06 Mar 2023, 09:46
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 "="?
Tim steute
-
Tim steute
- White ninja
![White ninja White ninja](./images/ranks/SilverStar2.png)
- Posts: 7
- Joined: 03 Mar 2023, 10:42
- Distribution: Porteus Kiosk
Post#7
by Tim steute » 07 Mar 2023, 10:38
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.
Tim steute
-
fanthom
- Moderator Team
![Moderator Team Moderator Team](./images/ranks/Moderator2.png)
- Posts: 5667
- Joined: 28 Dec 2010, 02:42
- Distribution: Porteus Kiosk
- Location: Poland
-
Contact:
Post#8
by fanthom » 07 Mar 2023, 14:02
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
Please add [Solved] to your thread title if the solution was found.
fanthom
-
Tim steute
- White ninja
![White ninja White ninja](./images/ranks/SilverStar2.png)
- Posts: 7
- Joined: 03 Mar 2023, 10:42
- Distribution: Porteus Kiosk
Post#9
by Tim steute » 07 Mar 2023, 14:41
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.
Tim steute
-
fanthom
- Moderator Team
![Moderator Team Moderator Team](./images/ranks/Moderator2.png)
- Posts: 5667
- Joined: 28 Dec 2010, 02:42
- Distribution: Porteus Kiosk
- Location: Poland
-
Contact:
Post#10
by fanthom » 08 Mar 2023, 09:22
"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
Please add [Solved] to your thread title if the solution was found.
fanthom
-
Tim steute
- White ninja
![White ninja White ninja](./images/ranks/SilverStar2.png)
- Posts: 7
- Joined: 03 Mar 2023, 10:42
- Distribution: Porteus Kiosk
Post#11
by Tim steute » 22 Mar 2023, 10:31
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.
Tim steute
-
fanthom
- Moderator Team
![Moderator Team Moderator Team](./images/ranks/Moderator2.png)
- Posts: 5667
- Joined: 28 Dec 2010, 02:42
- Distribution: Porteus Kiosk
- Location: Poland
-
Contact:
Post#12
by fanthom » 22 Mar 2023, 13:36
Tim,
I'm out of ideas.
Maybe customized build could help:
https://porteus-kiosk.org/builds.html
Thanks
Please add [Solved] to your thread title if the solution was found.
fanthom