| Both sides previous revisionPrevious revisionNext revision | Previous revision |
| windows:opensuse_tumbleweed_wsl [2025/11/21 01:04] – Sean Rhone | windows:opensuse_tumbleweed_wsl [2025/11/21 14:11] (current) – Sean Rhone |
|---|
| |
| "wsl.exe" --set-default openSUSE-Tumbleweed | "wsl.exe" --set-default openSUSE-Tumbleweed |
| | |
| | ===== Initial Setup ===== |
| |
| "wsl.exe" --distribution openSUSE-Tumbleweed | "wsl.exe" --distribution openSUSE-Tumbleweed |
| |
| "wsl.exe" --distribution openSUSE-Tumbleweed --shutdown | "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" |
| | |
| | <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 ====== | ====== Update ====== |