| Both sides previous revisionPrevious revisionNext revision | Previous revision |
| windows:opensuse_tumbleweed_wsl [2025/10/11 09:09] – Sean Rhone | windows:opensuse_tumbleweed_wsl [2026/02/11 07:47] (current) – [Update] Sean Rhone |
|---|
| ====== Information ====== | ====== Information ====== |
| |
| * openSUSE Tumbleweed | * openSUSE ((https://www.opensuse.org)) |
| * WSL | * Tumbleweed ((https://en.opensuse.org/Portal:Tumbleweed)) |
| | * WSL ((https://en.opensuse.org/openSUSE:WSL)) |
| |
| ===== TODO ===== | openSUSE Tumbleweed |
| |
| * https://en.opensuse.org/openSUSE:WSL | ===== Prerequisites ===== |
| * https://download.opensuse.org/repositories/Virtualization:/WSL:/instarball/openSUSE_Tumbleweed_images/ | |
| |
| sudo poweroff -f | * [[windows;10_ltsc_server|Windows 10 (21H2)]] |
| | * [[windows;notes;wsl|WSL2]] |
| |
| wsl -l -v | ====== Install ====== |
| |
| wsl -t "openSUSE-Tumbleweed" | ===== tar.xz ===== |
| |
| wsl -d "openSUSE-Tumbleweed" | * https://download.opensuse.org/repositories/Virtualization:/WSL:/instarball/openSUSE_Tumbleweed_images/ |
| |
| /mnt/c/ | "wsl.exe" --install --from-file "%UserProfile%\Downloads\openSUSE-Tumbleweed-20251120.x86_64.tar.xz" --name "openSUSE-Tumbleweed" --no-launch |
| |
| ====== Windows ====== | "wsl.exe" --set-default openSUSE-Tumbleweed |
| |
| ===== Windows Terminal ===== | ===== Initial Setup ===== |
| |
| ==== VCLibs ==== | "wsl.exe" --distribution openSUSE-Tumbleweed |
| |
| **** | 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 |
| |
| powershell -Command "Add-AppxPackage https://aka.ms/Microsoft.VCLibs.x64.14.00.Desktop.appx" | exit |
| |
| ==== Windows Terminal ==== | "wsl.exe" --distribution openSUSE-Tumbleweed --shutdown |
| |
| * https://github.com/microsoft/terminal/releases | ====== nano ====== |
| |
| powershell -Command "Add-AppxPackage https://github.com/microsoft/terminal/releases/download/v1.16.10261.0/Microsoft.WindowsTerminal_Win10_1.16.10261.0_8wekyb3d8bbwe.msixbundle" | * Installs ''nano'' |
| | * Sets ''VISUAL'' and ''EDITOR'' to ''nano'' via environment variable |
| | * Sets ''nowrap'' for current user |
| |
| ===== WSL ===== | "wsl.exe" --distribution openSUSE-Tumbleweed |
| |
| ==== Install ==== | 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' |
| |
| * :!: Reboot after installing | exit |
| |
| dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart | "wsl.exe" --distribution openSUSE-Tumbleweed --shutdown |
| |
| ==== WSL 2 ==== | ====== Scripts ====== |
| |
| **** | MKDIR "%SystemDrive%\www\scripts\wsl" |
| |
| wsl --set-default-version 2 | "explorer.exe" "%SystemDrive%\www\scripts\wsl" |
| |
| ==== openSUSE Tumbleweed ==== | ===== Updater ===== |
| |
| **** | "notepad.exe" "%SystemDrive%\www\scripts\wsl\openSUSE Updater.bat" |
| |
| wsl --install --distribution "openSUSE-Tumbleweed" --web-download | <code> |
| | @echo off |
| |
| ====== Ubuntu ====== | TITLE openSUSE Updater |
| | CD "%Temp%" |
| |
| ===== WSL ===== | "wsl.exe" --update |
| |
| **** | "wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" --user root -- '/usr/bin/zypper' clean --all |
| | "wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" --user root -- '/usr/bin/zypper' --non-interactive refresh --force --services |
| | "wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" --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 | "wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" -- '/usr/bin/sync' |
| |
| ===== Update ===== | :: End</code> |
| |
| sudo apt update && sudo apt full-upgrade -y && sudo apt autoremove -y && sudo apt clean && sync | "%SystemDrive%\www\scripts\wsl\openSUSE Updater.bat" |
| |
| sync && exit | ====== Task Scheduler ====== |
| |
| ===== Folders ===== | ===== Update ===== |
| |
| **** | * Daily ''05:45:00 AM'' |
| |
| mkdir -p ~/'Downloads' | SCHTASKS /Create /SC "DAILY" /TN "openSUSE Update" /TR "'%SystemDrive%\www\scripts\wsl\openSUSE Updater.bat'" /ST "05:45" /F |
| |