| Both sides previous revisionPrevious revisionNext revision | Previous revision |
| windows:opensuse_tumbleweed_wsl [2025/10/13 13:07] – Sean Rhone | windows:opensuse_tumbleweed_wsl [2025/11/21 14:11] (current) – Sean Rhone |
|---|
| ===== Prerequisites ===== | ===== Prerequisites ===== |
| |
| * [[windows;11_ltsc_server|Windows 11 (24H2)]] | * [[windows;10|Windows 10 (21H2)]] |
| * [[windows;notes;wsl|WSL2]] | * [[windows;notes;wsl|WSL2]] |
| |
| ====== Windows ====== | ====== Install ====== |
| |
| ===== Windows Terminal ===== | ===== tar.xz ===== |
| |
| ==== VCLibs ==== | * https://download.opensuse.org/repositories/Virtualization:/WSL:/instarball/openSUSE_Tumbleweed_images/ |
| |
| **** | "wsl.exe" --install --from-file "%UserProfile%\Downloads\openSUSE-Tumbleweed-20251119.x86_64.tar.xz" --name "openSUSE-Tumbleweed" --no-launch |
| |
| powershell -Command "Add-AppxPackage https://aka.ms/Microsoft.VCLibs.x64.14.00.Desktop.appx" | "wsl.exe" --set-default openSUSE-Tumbleweed |
| |
| ==== Windows Terminal ==== | ===== Initial Setup ===== |
| |
| * https://github.com/microsoft/terminal/releases | "wsl.exe" --distribution openSUSE-Tumbleweed |
| |
| powershell -Command "Add-AppxPackage https://github.com/microsoft/terminal/releases/download/v1.16.10261.0/Microsoft.WindowsTerminal_Win10_1.16.10261.0_8wekyb3d8bbwe.msixbundle" | sudo zypper clean --all && sudo zypper refresh --force --services && sudo zypper dist-upgrade --details --allow-downgrade --allow-name-change --allow-arch-change --allow-vendor-change |
| |
| ===== WSL ===== | exit |
| |
| ==== Install ==== | "wsl.exe" --distribution openSUSE-Tumbleweed --shutdown |
| |
| * :!: Reboot after installing | ====== nano ====== |
| |
| dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart | * Installs ''nano'' |
| | * Sets ''VISUAL'' and ''EDITOR'' to ''nano'' via environment variable |
| | * Sets ''nowrap'' for current user |
| |
| ====== Install ====== | "wsl.exe" --distribution openSUSE-Tumbleweed |
| |
| ===== tar.xz ===== | sudo zypper install 'nano' && export 'VISUAL=nano' && export 'EDITOR=nano' && echo -e 'export VISUAL=nano\nexport EDITOR=nano' | sudo tee '/etc/profile.d/editor-nano.sh' > '/dev/null' && cat '/etc/profile.d/editor-nano.sh' && mkdir -p ~/'.config/nano' && echo 'set nowrap' | tee ~/'.config/nano/nanorc' > '/dev/null' && cat ~/'.config/nano/nanorc' |
| |
| * https://download.opensuse.org/repositories/Virtualization:/WSL:/instarball/openSUSE_Tumbleweed_images/ | exit |
| |
| "wsl.exe" --set-default-version 2 | "wsl.exe" --distribution openSUSE-Tumbleweed --shutdown |
| |
| "wsl.exe" --install --from-file "%UserProfile%\Downloads\openSUSE-Tumbleweed-20251007.x86_64.tar.xz" --name "openSUSE-Tumbleweed" --no-launch | ====== Scripts ====== |
| |
| "wsl.exe" --set-default openSUSE-Tumbleweed | MKDIR "%SystemDrive%\www\scripts\wsl" |
| |
| "wsl.exe" --distribution openSUSE-Tumbleweed | "explorer.exe" "%SystemDrive%\www\scripts\wsl" |
| |
| sudo zypper clean --all && sudo zypper refresh --force --services && sudo zypper dist-upgrade --details --allow-downgrade --allow-name-change --allow-arch-change --allow-vendor-change | ===== Updater ===== |
| |
| exit | "notepad.exe" "%SystemDrive%\www\scripts\wsl\openSUSE Updater.bat" |
| |
| "wsl.exe" --distribution openSUSE-Tumbleweed --shutdown | <code> |
| | @echo off |
| | |
| | TITLE openSUSE Updater |
| | |
| | "wsl.exe" --update |
| | |
| | "wsl.exe" --distribution openSUSE-Tumbleweed --user root -- '/usr/bin/zypper' clean --all |
| | "wsl.exe" --distribution openSUSE-Tumbleweed --user root -- '/usr/bin/zypper' --non-interactive refresh --force --services |
| | "wsl.exe" --distribution openSUSE-Tumbleweed --user root -- '/usr/bin/zypper' --non-interactive dist-upgrade --auto-agree-with-licenses --allow-downgrade --allow-name-change --allow-arch-change --allow-vendor-change |
| | |
| | "wsl.exe" --distribution openSUSE-Tumbleweed -- '/usr/bin/sync' |
| | |
| | :: End</code> |
| | |
| | "%SystemDrive%\www\scripts\wsl\openSUSE Updater.bat" |
| | |
| | ====== Task Scheduler ====== |
| | |
| | **** |
| | |
| | taskschd.msc |
| | |
| | ===== Updater ===== |
| | |
| | * ''5:45:00 AM'' daily |
| | |
| | openSUSE Update |
| | |
| | "%SystemDrive%\www\scripts\wsl\openSUSE Updater.bat" |
| | |
| | ====== Update ====== |
| | |
| | **** |
| | |
| | "wsl.exe" --distribution openSUSE-Tumbleweed --user root -- '/usr/bin/zypper' --non-interactive refresh --force --services && "wsl.exe" --distribution openSUSE-Tumbleweed --user root -- '/usr/bin/zypper' --non-interactive dist-upgrade --auto-agree-with-licenses --allow-downgrade --allow-name-change --allow-arch-change --allow-vendor-change |
| |