User Tools

Site Tools


windows:opensuse_tumbleweed_wsl

This is an old revision of the document!


Information

  • openSUSE 1)
  • Tumbleweed 2)
  • WSL 3)

Prerequisites

Install

tar.xz

"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
"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" --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
/var/www/wiki/data/attic/windows/opensuse_tumbleweed_wsl.1763706158.txt.gz · Last modified: by Sean Rhone

Except where otherwise noted, content on this wiki is licensed under the following license: CC0 1.0 Universal
CC0 1.0 Universal Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki