-
Notifications
You must be signed in to change notification settings - Fork 92
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
Can't get server to autostart on boot #18
Comments
Please refer to this video: @Regenhardt |
You can also tell me the missing parts and your address. We can send you replacements. Freenove Support Team |
Oh so the server only autostarts when I login to the desktop? Can't I autostart it whenever I start the raspberry pi? |
so the instructions aren't clear. |
|
no it starts logged in or not |
It can start without login. |
No worries, my user is indeed called "pi" (as you can see in the screenshot).
When I follow the video exactly, the server only starts when I login to the desktop.
How? Do I need to add anything that isn't in the video you linked earlier? |
Add -tn after sudo python main.py to try. Add the following contents to “start.sh” file. |
As mentioned in my original post, and visible in the screenshot aswell, I did just that - add -tn to the call so it doesn't open the window. Unfortunately nothing happens until I login via RDP/VNC. To further test this I even tried adding |
Can you use the commands to start server without window successfully?
|
Yes, this works perfectly fine. I can also login using ssh and then call |
Sorry I don't know the reason. It works here. |
Thank you.Sent using the mobile mail appOn 4/21/22 at 8:59 PM, DenzelChen wrote:
From: "DenzelChen" ***@***.***>Date: April 21, 2022To: "Freenove/Freenove_Robot_Dog_Kit_for_Raspberry_Pi" ***@***.***>Cc: "Comment" ***@***.***>,"DiscipulusNakamoto" ***@***.***>Subject: Re: [Freenove/Freenove_Robot_Dog_Kit_for_Raspberry_Pi] Can't get server to autostart on boot (Issue #18)
Please refer to this video:
https://youtu.be/EWo_V3cXfNw?list=PLOkhax8xuWu3ldxhU4kDk0GDPlg9XWmKU&t=43
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: ***@***.***>
|
Hi,
not sure why, hope you can help me. I followed the tutorial.pdf, but it won't automatically start.
Manually calling
sudo python main.py -tn
starts the server and works as expected.After following the tutorial exactly and it didn't work, I manually executed the start.sh and an error was displayed that it couldn't connect to display, which makes sense since I used ssh. So I added -tn to the call in the start.sh and now it works if I call it manually.
Since the point.txt isn't copied to ~ when rebooting, I guess start.sh isn't even being called, but I don't know why.
Here is a screenshot of the actual file contents and
ls
output to show the executable status:The text was updated successfully, but these errors were encountered: