Visit the website at jetsonhacks.com
Sign up for the newsletter! newsletter.jetsonhacks.com
Join this channel to get access to perks:
/ @jetsonhacks
Running a Python script on System Startup is usually one of the things people want to do once they get their feet wet in Ubuntu and Jetson Development. Here we go over on how to auto start a Python script on boot on a NVIDIA Jetson Nano. This method works on the other Jetsons as well, like the Jetson Xavier and Jetson Orins. Here's the script we are working with:
#!/usr/bin/python3
import tkinter as tk
#Create the main window
root = tk.Tk()
root.title("Startup Script Test")
#Create a label with a message
label = tk.Label(root, text="This script runs at startup", font=("Helvetica", 16))
label.pack(pady=20, padx=20)
#Run the application
root.mainloop()
Hope this helps!
As an Amazon Associate I earn from qualifying purchases.
Visit the JetsonHacks storefront on Amazon: www.amazon.com/shop/jetsonhacks
Visit the website at jetsonhacks.com
Sign up for the newsletter! newsletter.jetsonhacks.com
Github accounts: github.com/jetsonhacks
github.com/jetsonhacksnano
Twitter: / jetsonhacks
Some of these links here are affiliate links. As an Amazon Associate I earn from qualifying purchases at no extra cost to you.
Негізгі бет Ғылым және технология Run Python at Startup - Ubuntu
Пікірлер: 17