autostart script-python after full linux boot

please help me someone. I need to run script-python after fully loading ubuntu which is the main OS for jetson nano. I do not understand how this can be done.

Not knowing exactly what you are trying to accomplish, I can only speculate that you just want to start a python code at boot. If that’s the case, you can create a Ubuntu service; check ~/jetbot/jetbot/utils directory and check the sample python code. Of course, can create it by hand but the sample code shows exactly what needs to be done to create a service.

If you want to execute a python code in shell on boot, since Nano uses gnome desktop, you can put a start script in ~/.config/autostart directory (if the directory is not there, you can create one). For example, create a file called, ‘my_autostart.desktop’ and place the content below.

[Desktop Entry]
Exec=/bin/sh -c ‘your script name’
Name=Your autostart Script

Or if you want to place the auto start script in your .bashrc, you can still use the above but update the ‘Exec=’ to be ‘Exec=gnome-terminal’. This should invoke gnome-terminal which in turn loads your .bashrc.

I am sure there are many different ways to do it but this method is what I normally use.

Another solution that may interest you is supervisor ( ).