←  [EN] Enduser support

Forums

»

auto run command on startup

's foto kemoogo 12 nov 2022

Hi

I want to run a command every time system boot or startup

Device : Vu+ Duo 4k SE 

OS : Openpli 8.3

 

Citeren

's foto 40H3X 12 nov 2022

Create

enigma2_pre_start.sh

in

/usr/bin/

Than make it executable and edit it

Citeren

's foto 40H3X 12 nov 2022

As this Q comes once in a while, I have put it in our wiki https://wiki.openpli...ands_at_startup

Citeren

's foto s3n0 12 nov 2022

Hi.

 

This URL with the sharp sign does not work for me. But without sharp it works:
https://wiki.openpli...Tips_and_Tweaks

or:

https://wiki.openpli...ands_at_startup

 

I also wanted to add that the "/usr/bin/enigma2_pre_start.sh" script is executed before Enigma is started, so if the script is to do something only after Enigma is started, it is necessary to use another method, for example the "init.d" method (or "systemd" for Enigma distributions other than OpenPLi).

 

It is also necessary to set the attributes of the file for this script: chmod a+x /usr/bin/enigma2_pre_start.sh

Citeren

's foto kemoogo 13 nov 2022

Create

enigma2_pre_start.sh

in

/usr/bin/

Than make it executable and edit it

^_^ Thanks it works finally

Citeren

's foto 40H3X 13 nov 2022

Hi.

 

This URL with the sharp sign does not work for me. But without sharp it works:
https://wiki.openpli...Tips_and_Tweaks

or:

https://wiki.openpli...ands_at_startup

 

I also wanted to add that the "/usr/bin/enigma2_pre_start.sh" script is executed before Enigma is started, so if the script is to do something only after Enigma is started, it is necessary to use another method, for example the "init.d" method (or "systemd" for Enigma distributions other than OpenPLi).

 

It is also necessary to set the attributes of the file for this script: chmod a+x /usr/bin/enigma2_pre_start.sh

Strange, here both work. Tested 2 OS and 2 browsers and none have a problem with the # in the url

Citeren

's foto 40H3X 13 nov 2022

 

Create

enigma2_pre_start.sh

in

/usr/bin/

Than make it executable and edit it

^_^ Thanks it works finally

 

Good to hear, thanks for reporting back

Citeren

's foto s3n0 13 nov 2022

It didn't work for me because of problems with the installed blockers of: cookies / spyware scripts / advertisements / ... and so on - in my web browser :).

 

When I disabled cookie filtering for OpenPLi, it worked OK.

 

Sorry. As always :). I always have this problem with OpenPLi websites after clearing all my cookies. I have to fix it then, for this particular OpenPLi website.


Veranderd door s3n0, 13 november 2022 - 17:59
Citeren

's foto WanWizard 13 nov 2022

Using an anchor in the URL is RFC standard, and has nothing to do with cookies, scripts or adds.

 

It just means "jump to this anchor" after loading the page. If it doesn't work for you, it is more likely your stack of tools does something it isn't supposed to do.

 

Also, blanked cookie filtering is a bad idea, most websites need to use (some) cookies. Without cookies, our websites can't track whether or not you have accepted our GDPR terms, and maintain your login status between requests.

 

See https://openpli.org/...d-personal-data to find which cookies are required, and which you can filter.

Citeren

's foto s3n0 13 nov 2022

Cookies can be abused. This also applies to private computers. Not just on public computers. If someone gets access to the cookies, he will find out a lot info about the user. If someone gets to these cookie files, he can use them to his advantage (in an illegal way).

 

I filter everything what I can ... or everything what I don't need. Some websites may be unfiltered, but these are exceptions. Such as electronic banking. Because web designers in electronic banking ensure access to their websites very well.

 

It can also be googled, for example here:

https://quadrantsec....issues-cookies/

https://www.kaspersk...nitions/cookies

Citeren

's foto WanWizard 13 nov 2022

If you believe some cookies are more secure than other cookies, we need to talk, as I have a bridge for sale...

 

But have it your way. Just know the consequences of your actions.

Citeren

's foto 40H3X 13 nov 2022

It didn't work for me because of problems with the installed blockers of: cookies / spyware scripts / advertisements / ... and so on - in my web browser :).

 

When I disabled cookie filtering for OpenPLi, it worked OK.

 

Sorry. As always :). I always have this problem with OpenPLi websites after clearing all my cookies. I have to fix it then, for this particular OpenPLi website.

 

Good that you found the culprit and nothing to be sorry about. If I may suggest something, if you want more safety/privacy use a DNS sinkhole and use your own DNS resolver

Citeren