This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
code:wsl [2017/11/13 22:03] hansek |
code:wsl [2024/09/30 22:20] (current) hansek |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== WSL hints ====== | + | ====== WSL 2 hints ====== |
- | ===== SSH settings | + | ====== |
+ | |||
+ | Source: https:// | ||
+ | |||
+ | <code bash> | ||
+ | sudo systemctl disable snapd.service | ||
+ | sudo systemctl disable snapd.socket | ||
+ | sudo systemctl disable snapd.seeded.service | ||
+ | sudo systemctl mask snapd.service | ||
+ | </ | ||
+ | |||
+ | |||
+ | ===== / | ||
+ | |||
+ | < | ||
+ | [automount] | ||
+ | enabled = true | ||
+ | # options = " | ||
+ | options = " | ||
+ | mountFsTab = true | ||
+ | crossDistro = true | ||
+ | |||
+ | [Interop] | ||
+ | appendWindowsPath = false | ||
+ | |||
+ | [network] | ||
+ | generateHosts = true | ||
+ | generateResolvConf = false | ||
+ | </ | ||
+ | |||
+ | |||
+ | ===== Manualy free RAM ===== | ||
+ | |||
+ | Source: https:// | ||
+ | |||
+ | <code bash> | ||
+ | sudo su | ||
+ | sync; echo 3 > / | ||
+ | </ | ||
+ | |||
+ | //older way// | ||
+ | source: https:// | ||
+ | |||
+ | <code bash> | ||
+ | echo 1 > / | ||
+ | </ | ||
+ | |||
+ | |||
+ | ===== Sync linux time with windows issue ===== | ||
+ | |||
+ | source: https:// | ||
+ | |||
+ | <code bash> | ||
+ | sudo hwclock -s | ||
+ | </ | ||
+ | |||
+ | |||
+ | ===== Outdated stuff for WSL 1 ===== | ||
+ | |||
+ | ==== 1803 ==== | ||
+ | |||
+ | === Chmod/Chown === | ||
+ | Source: https:// | ||
+ | |||
+ | <code bash> | ||
+ | sudo umount /mnt/c | ||
+ | sudo mount -t drvfs C: /mnt/c -o metadata | ||
+ | |||
+ | sudo chmod 600 .ssh/ | ||
+ | sudo chowin $USER .ssh/ | ||
+ | </ | ||
+ | |||
+ | |||
+ | |||
+ | ==== 1709 ==== | ||
+ | === SSH settings | ||
Source: https:// | Source: https:// | ||