|
Edited by 1646062069 at 2022-3-16 05:15 AM
If you are new to Linux, you will need to be careful when doing this (you may want to make a copy of the webserver.py file elsewhere or backup your Micro SD card to another one before modifying it, just in case).
To modify the webServer.py file (for the PiCar Pro), do the following:
1. Open up a terminal window.
2. Change to the directory where this resides by typing: cd adeept_picarpro/server [ENTER].
3. Check the permissions of the files in that directory by typing: ls -l [ENTER].
(NOTE: This file should be set to “-rw-r--r--1 root root” which numerically equals “644” for its current permissions of read only).
4. Before you can change the permissions, you need to elevate to root status, by typing: sudo su [ENTER]
5. To change it and make this file writable, type: chmod 777 webServer.py
6. Leave the terminal window open and go modify the webserver.py file using a program such as “Geany” or “Thonny Python IDE” under the Programing apps within Raspbian.
7. When you are done modifying the file, go back to the terminal window and change the permissions back to read only, by typing: chmod 644 webServer.py
8. You may need to reboot for the changes to take effect.
And that is it, enjoy!!
|
|