This program was made by and for the Solar Car Team at UVA as a tool to onboard new members. This program downloads, installs, and configures the necessary software stack to develop, compile, and upload our embedded code to the car. This program can be run multiple times, as any step where the requirement is already met will just be skipped.
Prerequisites:
- Install Python (Link)
- Install and configure Windows Subsystem for Linux 2 (WSL) (Guide)
- Note that whatever Linux user and distro you set as the default will be what this program uses
- Download the code as a
.zip
file and unzip it. Alternatively, if you have Git installed then clone it
Execution:
To run the program, enter the following commands in a terminal prompt with administrator privileges:
cd path\where\the\script\was\downloaded\to
py .\main.py password
- Replace
password
with your WSL sudo password (not your normal windows password) - Note that you may need to use
python
orpython3
instead ofpy
If any step failed, then you will need to manually complete the step. Debug data is saved to log.txt
Prerequisites:
- Install Python (Link)
- Install Homebrew (Link)
- Download the code as a
.zip
file and unzip it. Alternatively, if you have Git installed then clone it
Execution:
To run the program, enter the following commands in a terminal prompt:
cd path/where/the/script/was/downloaded/to
sudo python3 ./main.py path
- Replace
path
with the absolute path to the folder where you want Solar Car code saved; the folder must already exist - Note that you may need to use
python
orpy
instead ofpython3
If any step failed, then you will need to manually complete the step. Debug data is saved to log.txt
- A step involving Docker containers failed -> Docker Desktop must be running for these commands to work.
- All steps involving WSL failed -> WSL was probably not completely setup then.
- Failures can cascade. Often later steps rely on earlier steps working.