In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
This article introduces to you what are the two ways to set the raspberry pie to boot and self-boot, the content is very detailed, interested friends can refer to, hope to be helpful to you.
There are two ways to set the self-boot of raspberry pie
Configure the rc.local file to set the raspberry pie boot startup item
Edit / etc/rc.local file
Sudo vi / etc/rc.local
Add programs that need to be executed before exit 0 in the file, using absolute paths, as follows
Python python / home/pi/example.py & exit 0
In particular, if the program is blocked, the & symbol must be added to run in the background, otherwise the system will not start.
Restart the system, and it will take effect.
Sudo reboot
Create a new desktop file to set the startup item for raspberry pie boot.
This method is similar to the Startup item in the start menu of the Windows system, and it works as follows:
Create a folder under / home/pi/.config named autostart
Mkdir / home/pi/.config/autostart
Create a xxx.desktop file under this folder with a customizable file name ending with .clients. The contents of the file are as follows:
[Desktop Entry] Name=exampleComment=My Python ProgramExec=python / home/pi/example.pyIcon=/home/pi/example.pngTerminal=falseMultipleArgs=falseType=ApplicationCategories=Application;Development;StartupNotify=true
The Name, Comment and Icon in the file represent the name, remarks and displayed icon of the startup project respectively, and the specific value can be set by yourself; Exec represents the instruction to be called.
Restart the system, and it will take effect.
Sudo reboot on the raspberry pie setup boot self-boot what are two ways to share here, I hope the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.