Welcome to ROSMASTER X3 repository
5.2 Turn off the self-starting process at startup
2. Close the large self-starting program at boot
2. Close the large self-starting program at boot2.1. What is a large program that starts automatically at boot?2.2. Temporarily close large programs2.3. Permanently close large programs2.4. Set up the startup program2.5. Temporarily start a large program
2.1. What is a large program that starts automatically at boot?
In order to facilitate the experience of the APP function of the car, a program has been added to the system. This program integrates the control functions and gameplay of the APP, so it is called the "big program". Moreover, when the motherboard system is turned on, this program will automatically start, so it is called Do "self-starting large programs at boot".
The large program that automatically starts at startup is just for the convenience of experiencing the functions of the mobile APP. In actual development, the large program needs to be closed, otherwise it will occupy the device and cause unpredictable errors. Therefore, before developing a program, please manually close the large auto-start program at startup.
There are two ways to close the large self-starting program at startup. One is to close it only once and it will start automatically the next time you turn on the computer. This is called temporary shutdown. The other way is to close it and it will not start automatically again the next time you turn on the computer unless you manually restart it. Turning on is called permanent turning off.
The default username and password of the factory system are as follows:
jetson series motherboard
Username: jetson Password: yahboom
Raspberry Pi motherboard
Username: pi Password: yahboom
2.2. Temporarily close large programs
If you have a 7-inch touch screen or display and mouse and keyboard, log in to the desktop after connecting.
If there is no display screen, mouse and keyboard, please use a computer in the same LAN to open the VNC Viewer software and log in to the desktop remotely to enter the desktop.
For detailed operations on the VNC remote login method, please refer to the following web page. The configuration content has been configured. Jump directly to step 6 to connect.
VNC Remote Desktop Configuration (yahboom.com)
Username: jetson
Password:yahboom
After entering the desktop, you will see a terminal. Just click the X symbol in the upper left corner to close the terminal to close the large program. Sometimes you may be prompted that closing the terminal will close the running program. Just select Confirm to close.

2.3. Permanently close large programs
First, close the large running program by temporarily closing it.
After opening the Ubuntu system application, search for Startup Applications, and uncheck the check mark in front of start_rosmaster_app, as shown in the figure below, to permanently close the large program.

Raspberry Pi 5
xxxxxxxxxxsudo rm -rf /home/pi/.config/autostart/rosmaster.desktop
2.4. Set up the startup program
Open the Ubuntu system application, search for Startup Applications, and check the box in front of start_rosmaster_app, as shown in the figure below, then the large program will automatically start next time the system is turned on.

Raspberry Pi 5
xxxxxxxxxxsudo cp -r /home/pi/Rosmaster/rosmaster/rosmaster.desktop /home/pi/.config/autostart/sudo chown -R pi:pi /home/pi/.config/autostart/rosmaster.desktop
2.5. Temporarily start a large program
If you need to manually run a large program, please open the Ubuntu terminal first, and then enter the following command:
xxxxxxxxxxpython3 ~/Rosmaster-App/rosmaster/rosmaster_main.pyRaspberry Pi 5
xxxxxxxxxxpython3 /home/pi/Rosmaster/rosmaster/rosmaster_main.py