User Tools

Site Tools


windows:opensuse_tumbleweed_wsl

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
windows:opensuse_tumbleweed_wsl [2025/11/21 01:06] Sean Rhonewindows:opensuse_tumbleweed_wsl [2026/03/11 19:19] (current) Sean Rhone
Line 4: Line 4:
   * Tumbleweed ((https://en.opensuse.org/Portal:Tumbleweed))   * Tumbleweed ((https://en.opensuse.org/Portal:Tumbleweed))
   * WSL ((https://en.opensuse.org/openSUSE:WSL))   * WSL ((https://en.opensuse.org/openSUSE:WSL))
 +
 +  openSUSE Tumbleweed
  
 ===== Prerequisites ===== ===== Prerequisites =====
  
-  * [[windows;10|Windows 10 (21H2)]]+  * [[windows;10_ltsc_server|Windows 10 (21H2)]]
   * [[windows;notes;wsl|WSL2]]   * [[windows;notes;wsl|WSL2]]
  
Line 16: Line 18:
   * https://download.opensuse.org/repositories/Virtualization:/WSL:/instarball/openSUSE_Tumbleweed_images/   * 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+  "%SystemRoot%\System32\wsl.exe" --install --from-file "%UserProfile%\Downloads\openSUSE-Tumbleweed-20251120.x86_64.tar.xz" --name "openSUSE-Tumbleweed" --no-launch
  
-  "wsl.exe" --set-default openSUSE-Tumbleweed+  "%SystemRoot%\System32\wsl.exe" --set-default openSUSE-Tumbleweed
  
-  "wsl.exe" --distribution openSUSE-Tumbleweed+===== Initial Setup ===== 
 + 
 +  "%SystemRoot%\System32\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   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
Line 26: Line 30:
   exit   exit
  
-  "wsl.exe" --distribution openSUSE-Tumbleweed --shutdown+  "%SystemRoot%\System32\wsl.exe" --distribution openSUSE-Tumbleweed --shutdown
  
 ====== nano ====== ====== nano ======
Line 34: Line 38:
   * Sets ''nowrap'' for current user   * Sets ''nowrap'' for current user
  
-  "wsl.exe" --distribution openSUSE-Tumbleweed+  "%SystemRoot%\System32\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'   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'
Line 40: Line 44:
   exit   exit
  
-  "wsl.exe" --distribution openSUSE-Tumbleweed --shutdown+  "%SystemRoot%\System32\wsl.exe" --distribution openSUSE-Tumbleweed --shutdown 
 + 
 +====== Scripts ====== 
 + 
 +  MKDIR "%SystemDrive%\www\scripts\wsl" 
 + 
 +  "%SystemRoot%\explorer.exe" "%SystemDrive%\www\scripts\wsl" 
 + 
 +===== Updater ===== 
 + 
 +  "%SystemRoot%\System32\notepad.exe" "%SystemDrive%\www\scripts\wsl\openSUSE Updater.bat" 
 + 
 +<code> 
 +@echo off 
 + 
 +TITLE openSUSE Updater 
 +CD "%Temp%" 
 + 
 +"%SystemRoot%\System32\wsl.exe" --update 
 + 
 +"%SystemRoot%\System32\wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" --user root -- '/usr/bin/zypper' clean --all 
 +"%SystemRoot%\System32\wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" --user root -- '/usr/bin/zypper' --non-interactive refresh --force --services 
 +"%SystemRoot%\System32\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 
 + 
 +"%SystemRoot%\System32\wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" -- '/usr/bin/sync' 
 + 
 +:: End</code> 
 + 
 +  "%SystemDrive%\www\scripts\wsl\openSUSE Updater.bat" 
 + 
 +====== Task Scheduler ======
  
-====== Update ======+===== Update =====
  
-****+  Daily ''05:45:00 AM''
  
-  "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+  "%SystemRoot%\System32\schtasks.exe" /Create /SC "DAILY" /TN "openSUSE Update/TR "'%SystemDrive%\www\scripts\wsl\openSUSE Updater.bat'/ST "05:45" /F
  
/srv/www/wiki/data/attic/windows/opensuse_tumbleweed_wsl.1763705160.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