This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
code:wsl [2018/05/01 22:01] hansek |
code:wsl [2024/09/30 22:20] (current) hansek |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== WSL hints ====== | + | ====== WSL 2 hints ====== |
| - | ===== 1803 ===== | + | ====== Disable Snap ====== |
| - | ==== Chmod/ | + | 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:// | Source: https:// | ||
| Line 16: | Line 75: | ||
| - | ===== 1709 ===== | + | ==== 1709 ==== |
| - | ==== SSH settings | + | === SSH settings === |
| Source: https:// | Source: https:// | ||