Slide 1

Slide 1 text

openSUSE Inside WSL How easy setup openSUSE for daily using inside WSL Estu Fardani [email protected]

Slide 2

Slide 2 text

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.

Slide 3

Slide 3 text

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 ?

Slide 4

Slide 4 text

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.

Slide 5

Slide 5 text

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

Slide 6

Slide 6 text

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

Slide 7

Slide 7 text

Add openSUSE to WSL Easy way: Use Microsoft Store

Slide 8

Slide 8 text

Open Microsoft Store

Slide 9

Slide 9 text

Open Microsoft Store

Slide 10

Slide 10 text

Add openSUSE to WSL Ref: https://learn.microsoft.com/en-us/windows/wsl/basic-commands Hard way: Use wsl command wsl --list --online wsl --install -d openSUSE-Tumbleweed

Slide 11

Slide 11 text

Getting Started After Install Find from menu, and open.

Slide 12

Slide 12 text

And waiting Waiting for Install

Slide 13

Slide 13 text

And waiting Waiting for Install

Slide 14

Slide 14 text

And waiting Waiting for Install

Slide 15

Slide 15 text

And waiting Waiting for Install

Slide 16

Slide 16 text

And waiting Waiting for Install

Slide 17

Slide 17 text

Finally, done We have console

Slide 18

Slide 18 text

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.

Slide 19

Slide 19 text

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

Slide 20

Slide 20 text

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

Slide 21

Slide 21 text

Slowroll

Slide 22

Slide 22 text

Tuning WSL From openSUSE terminal: vim /mnt/c/Users/yourusername/.wslconfig # fill with [wsl2] memory=2GB swap=12GB kernelCommandLine = "sysctl.vm.swappiness=90"

Slide 23

Slide 23 text

Backup WSL and Restore From windows terminal: wsl --list wsl --export openSUSE-Tumbleweed tw-backup.tar wsl --import openSUSE-Tumbleweed tw-backup.tar

Slide 24

Slide 24 text

What next? ● Install terminal (on windows) ● And start use for daily activity ● For me: – Terraform – Gcloud – Ansible – Docker

Slide 25

Slide 25 text

Q & A

Slide 26

Slide 26 text

Xie Xie Terima kasih Thank you