This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
win10:wsl [2020/03/11 13:18] – Bernard Condrau | win10:wsl [2024/04/25 16:40] (current) – [LAMP] Bernard Condrau | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Windows Subsystem for Linux ===== | + | ====== Windows Subsystem for Linux - Debian 10.3 ===== |
+ | ===== Cassandra, Hera, Vulcan, Hercules, Poseidon, Iapetus | ||
===== Installation ===== | ===== Installation ===== | ||
+ | * Enable " | ||
+ | * Press Windows key + R and run **optionalfeatures.exe**. Enable //Windows Subsystem for Linux//. Restart the computer. | ||
* Open Windows Power Shell as Administrator, | * Open Windows Power Shell as Administrator, | ||
* Open the Microsoft Store and search for " | * Open the Microsoft Store and search for " | ||
Line 10: | Line 13: | ||
sudo apt install zip | sudo apt install zip | ||
sudo apt install rsync</ | sudo apt install rsync</ | ||
- | * If you want to add a shortcut to your desktop, run the following | + | * Create /run/sshd folder:< |
+ | * Create | ||
* The root file system can be found at a path similar to:< | * The root file system can be found at a path similar to:< | ||
* Add {{: | * Add {{: | ||
Line 25: | Line 29: | ||
- General | - General | ||
* Name : Start Bash SSH Server | * Name : Start Bash SSH Server | ||
- | * Description: | + | * Description: |
* Run only when user is logged on | * Run only when user is logged on | ||
* Run with highest privileges | * Run with highest privileges | ||
- Trigger | - Trigger | ||
- | * Begin the task: At log on | + | * Begin the task: At log on [OR] On an event |
+ | * (if you mount VeraCrypt volumes during boot it's better to use //On an event// and begin the task when the volumes are mounted) | ||
* Specific user: < | * Specific user: < | ||
* Enabled | * Enabled | ||
Line 35: | Line 40: | ||
* Action: Start a program | * Action: Start a program | ||
* Program/ | * Program/ | ||
- | * Add arguments (optional): -c "sudo / | + | * Add arguments (optional): -c "/usr/bin/sudo / |
- Conditions | - Conditions | ||
* Start the task only if the computer is on AC power | * Start the task only if the computer is on AC power | ||
- Settings | - Settings | ||
* //Uncheck// Stop the task if it runs longer than: | * //Uncheck// Stop the task if it runs longer than: | ||
+ | - Alternative Action when starting a non elevated script " | ||
+ | * Action: Start a program | ||
+ | * Program/ | ||
+ | * Add arguments (optional): -c "/ | ||
+ | * Script " | ||
+ | sudo / | ||
+ | |||
+ | ===== LAMP ===== | ||
+ | * [[deb12: | ||
+ | * [[deb9: | ||
+ | * [[deb9: | ||
===== Mounting encrypted drives ===== | ===== Mounting encrypted drives ===== | ||
* WSL can mount encrypted drives, but they must be mounted at the time wsl or bash runs the first time after boot. | * WSL can mount encrypted drives, but they must be mounted at the time wsl or bash runs the first time after boot. | ||
- | * You can follow my guide to mount [[win10: | + | * If you do not execute any tasks when the host boots up, then just make sure your encrypted |
- | < | + | * If you **do** execute WSL tasks when the host boots up, replace |
<Query Id=" | <Query Id=" | ||
- | <Select Path=" | + | <Select Path=" |
</ | </ | ||
</ | </ | ||
+ | * Remember to " | ||
+ | |||
+ | ===== Mounting external drives ===== | ||
+ | mkdir /mnt/f | ||
+ | mount -t drvfs f: /mnt/f | ||
===== Links ===== | ===== Links ===== | ||
* [[https:// | * [[https:// |