-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #76 from Electrostat-Lab/vs-code-run-configs
Vs code run configs and optimizations for WSL
- Loading branch information
Showing
48 changed files
with
72 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file modified
0
helper-scripts/project-impl/post-compile/post-compile-electrostatic.sh
100644 → 100755
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file modified
0
helper-scripts/setup-environment/setup-scripts/abstract/setup-utils.sh
100644 → 100755
Empty file.
Empty file modified
0
helper-scripts/setup-environment/setup-scripts/manuals/setup-manuals.sh
100644 → 100755
Empty file.
Empty file modified
0
helper-scripts/setup-environment/setup-scripts/testing/README.md
100644 → 100755
Empty file.
Empty file modified
0
helper-scripts/setup-environment/setup-scripts/testing/testing.sh
100644 → 100755
Empty file.
Empty file modified
0
helper-scripts/setup-environment/setup-scripts/tools/setup-android-ndk.sh
100644 → 100755
Empty file.
Empty file modified
0
helper-scripts/setup-environment/setup-scripts/tools/setup-arduinoide.sh
100644 → 100755
Empty file.
Empty file modified
0
helper-scripts/setup-environment/setup-scripts/tools/setup-avr-toolchains.sh
100644 → 100755
Empty file.
Empty file modified
0
helper-scripts/setup-environment/setup-scripts/tools/setup-avrdude.sh
100644 → 100755
Empty file.
Empty file modified
0
helper-scripts/setup-environment/setup-scripts/tools/setup-cmake.sh
100644 → 100755
Empty file.
Empty file modified
0
helper-scripts/setup-environment/setup-scripts/tools/setup-doxygen.sh
100644 → 100755
Empty file.
Empty file modified
0
helper-scripts/setup-environment/setup-scripts/tools/setup-gradle.sh
100644 → 100755
Empty file.
Empty file modified
0
helper-scripts/setup-environment/setup-scripts/tools/setup-ide.sh
100644 → 100755
Empty file.
Empty file modified
0
helper-scripts/setup-environment/setup-scripts/tools/setup-jdk.sh
100644 → 100755
Empty file.
Empty file modified
0
helper-scripts/setup-environment/setup-scripts/tools/setup-vscode.sh
100644 → 100755
Empty file.
Empty file.
25 changes: 25 additions & 0 deletions
25
helper-scripts/setup-environment/windows/setup-wsl-debian.ps1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Step 1: Enable WSL with Virtual Machine Platform features | ||
Write-Output "Enabling WSL and Virtual Machine Platform..." | ||
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart | ||
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart | ||
|
||
# Step 2: Install USBIPD-WIN for USB device sharing between Windows and WSL | ||
Write-Output "Installing USBIPD-WIN..." | ||
winget install --id usbipd usbipd-win -e --accept-package-agreements --accept-source-agreements | ||
|
||
# Step 3: Install Debian from the Microsoft Store using the WSL command | ||
Write-Output "Installing Debian WSL Distro..." | ||
wsl --install -d Debian | ||
|
||
# Prompt for restart to apply changes if necessary | ||
$restartPrompt = Read-Host "Would you like to restart now to apply changes? (Y/N)" | ||
if ($restartPrompt -eq "Y" -or $restartPrompt -eq "y") { | ||
Write-Output "Restarting computer..." | ||
Restart-Computer -Force | ||
exit | ||
} else { | ||
Write-Output "Please remember to restart the computer to apply changes, and to enable BIOS/UEFI CPU Virtualization features." | ||
} | ||
|
||
# Confirm installation success | ||
Write-Output "Installation completed. WSL Debian is installed, and USBIPD-WIN should now be set up." |