-
-
Notifications
You must be signed in to change notification settings - Fork 163
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Run flutter-pi app after boot #154
Comments
Hi, it is easy:)
Init autorun in system |
And yes, you have to set 'Auto login in console' in Raspi-config |
Thanks, works good! So my goal would be to start the flutter-pi app on boot, but being still able to use the normal shell with SSH or when working locally on the Raspberry Pi. |
I used systemd on ubuntu for that. SSH is still possible, login on device not. Also tty2… is not accessible.
|
@w3p706 's method should work perfectly I think
You can't switch to terminal without terminating flutter-pi, but if you meant terminating flutter-pi without pressing EDIT: You can also look at |
Thanks, finally got it working using
Yeah I meant to exit flutter-pi without having to use a keyboard, just with a software button. Works, thanks for that.
Thank you for that aswell. Helped me getting on the right way. |
Hey @w3p706 I am trying to do the same using an executable file from c. In this code I also check if there is an update which means there is a new directory and rename it to run it. But my code is not working I edited the
Can someone fix it, or suggest me another way?
EDIT: Now I am able to load the app at boot using this code
(Added this code)
(made it run it)
But how can I do the update check as my c code? I mean check if there is a directory called update (a new flutter project directory downloaded by the user), rename os (current flutter project directory) as old and delete it, rename update to os and then run it. |
I want to run my flutter-pi app right after the RaspberryPi has booted up.
At first, I created a script, which runs my flutter-pi project. When running the script just from the command line it worked out completely fine. The goal of the script is it, to restart the flutter-pi app if anything has crashed. After 10 fails the Raspberry Pi will be shutdown.
Run the script on boot
I tried to use
crontab
andsystemd
(following this tutorial). Both of them resulted in the same problem. After rebooting the Raspberry Pi at first nothing happend. After about 35 seconds the Raspberry Pi just shutdown.Following of the script from above, flutter-pi failed to run and finally just shutdown.
So how can I run flutter-pi after boot? Thanks for the help!
The text was updated successfully, but these errors were encountered: