====== Information ====== * openSUSE ((https://www.opensuse.org)) * Tumbleweed ((https://en.opensuse.org/Portal:Tumbleweed)) * WSL ((https://en.opensuse.org/openSUSE:WSL)) ===== Prerequisites ===== * [[windows;10|Windows 10 (21H2)]] * [[windows;notes;wsl|WSL2]] ====== Install ====== ===== tar.xz ===== * 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 "wsl.exe" --set-default openSUSE-Tumbleweed ===== Initial Setup ===== "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 exit "wsl.exe" --distribution openSUSE-Tumbleweed --shutdown ====== nano ====== * Installs ''nano'' * Sets ''VISUAL'' and ''EDITOR'' to ''nano'' via environment variable * Sets ''nowrap'' for current user "wsl.exe" --distribution openSUSE-Tumbleweed 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' exit "wsl.exe" --distribution openSUSE-Tumbleweed --shutdown ====== Scripts ====== MKDIR "%SystemDrive%\www\scripts\wsl" "explorer.exe" "%SystemDrive%\www\scripts\wsl" ===== Updater ===== "notepad.exe" "%SystemDrive%\www\scripts\wsl\openSUSE Updater.bat" @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 "%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