Upgrade to Pro — share decks privately, control downloads, hide ads and more …

openSUSE Asia Summit 2023 - openSUSE inside WSL

openSUSE Asia Summit 2023 - openSUSE inside WSL

My slide for openSUSE Asia Summit 2023, at Chongqing University of Posts and Telecommunications, Chongqing, China | https://events.opensuse.org/conferences/oSAS23/program/proposals/4265

Estu Fardani

October 26, 2023
Tweet

More Decks by Estu Fardani

Other Decks in Technology

Transcript

  1. About Me • Estu Fardani / @tuanpembual • openSUSE Indonesia

    • Cloud Platform Engineer | GCP • Know openSUSE since 12.1 • Start using openSUSE since 42.2 • Using Tumbleweed for daily activity.
  2. Agenda • What is WSL • Why using WSL •

    How Install WSL • How add openSUSE Leap • How add Tumbleweed • Getting Started after install • How upgrade to Slowroll • Tuning and Backup • What next ?
  3. What is WSL WSL stands for "Windows Subsystem for Linux."

    It is a compatibility layer or feature in Windows 10 and Windows 11 that allows users to run a Linux environment directly within the Windows operating system.
  4. Why using WSL Enables to access the powerful Linux command-line

    tools, utilities, and applications without the need for dual-booting or virtual machines For me, I am too lazy for re-install my laptop
  5. How to Install WSL • Enabling WSL on Windows 10

    – dism.exe /online /enable-feature /featurename:Microsoft- Windows-Subsystem-Linux /all /norestart – wsl --set-default-version 2 Ref: https://en.opensuse.org/openSUSE%3AWSL
  6. Slowroll From tumbleweed, to slowroll Tumbleweed is openSUSE with fast

    release (and big download packages. Slowroll is a new experimental distribution from 2023 based on Tumbleweed, but rolling slower. With big updates every one or two months, and continous bug fixes and security fixes as they come in.
  7. Upgrade to slowroll Ref: https://en.opensuse.org/openSUSE:Slowroll sudo su rm /etc/zypp/repos.d/* zypper

    ar --refresh http://cdn.opensuse.org/repositories/openSUSE:/ALP:/Experimental:/Slowroll/base/ repo/oss/ base-oss zypper ar --refresh http://cdn.opensuse.org/repositories/openSUSE:/ALP:/Experimental:/Slowroll/base/ repo/non-oss/ base-non-oss zypper ar --refresh -p 80 http://cdn.opensuse.org/repositories/openSUSE:/ALP:/Experimental:/Slowroll/ standard/ update
  8. Upgrade to slowroll Ref: https://en.opensuse.org/openSUSE:Slowroll zypper ar --refresh http://codecs.opensuse.org/openh264/openSUSE_Tumblewee d/

    h264 zypper ar --refresh -p 70 http://ftp.gwdg.de/pub/linux/misc/packman/suse/openSUSE_S lowroll/Essentials/ packman zypper dup
  9. Tuning WSL From openSUSE terminal: vim /mnt/c/Users/yourusername/.wslconfig # fill with

    [wsl2] memory=2GB swap=12GB kernelCommandLine = "sysctl.vm.swappiness=90"
  10. Backup WSL and Restore From windows terminal: wsl --list wsl

    --export openSUSE-Tumbleweed tw-backup.tar wsl --import openSUSE-Tumbleweed tw-backup.tar
  11. What next? • Install terminal (on windows) • And start

    use for daily activity • For me: – Terraform – Gcloud – Ansible – Docker