signin.ritlug.com sign in! Windows Subsystem For Linux RITlug - - - PowerPoint PPT Presentation

signin ritlug com
SMART_READER_LITE
LIVE PREVIEW

signin.ritlug.com sign in! Windows Subsystem For Linux RITlug - - - PowerPoint PPT Presentation

Dont forget to signin.ritlug.com sign in! Windows Subsystem For Linux RITlug - Week 4! Solomon Rubin Hold up. Linux... on windows? Overview What is it? Literally, Linux on Windows Allows for actual ELF Binaries to be executed


slide-1
SLIDE 1

Don’t forget to sign in!

signin.ritlug.com

slide-2
SLIDE 2

Windows Subsystem For Linux

RITlug - Week 4! Solomon Rubin

slide-3
SLIDE 3

Hold up. Linux... on windows?

slide-4
SLIDE 4

Overview

  • What is it? Literally, Linux on Windows
  • Allows for actual ELF Binaries to be executed natively
  • No, this is not a virtual machine!
  • Low resource, native emulation
slide-5
SLIDE 5

Let’s Review - The Linux Kernel

  • Linux Kernel
slide-6
SLIDE 6

Something new - Windows NT Kernel

slide-7
SLIDE 7

Where does WSL fall in?

  • Replacement for previous User Mode Unix utilities. (Windows Services for

UNIX) So how does this work?

  • User mode services for Linux instance life cycle
  • “Pico” Process as a Kernel/User mode interface
  • So what’s Pico?
slide-8
SLIDE 8

Pico

  • Hosts the unmodified user mode Linux applications
  • A Linux kernel emulator
  • Translates Linux syscalls to Windows NT syscalls

○ Provider for Kernel Mode Drivers (LXCore, LXSS) ○ Host for the unmodified user mode Linux applications. ○ Process flow diagram incoming.

slide-9
SLIDE 9

Pico Process Diagram

slide-10
SLIDE 10

Where and How Does WSL get stored?

  • NTFS doesn’t use iNode like objects

○ By default, does not store: Owner/Group, Permissions, File times, etc

  • NTFS Extended Attributes

○ Allows for iNode like behavior using extended attribute files

  • How does WSL read/write these? Pico!

○ VolFS - Equivalent to rootfs (/, /etc, /home, etc) ○ DrvFS - Handles NTFS/Windows Drive mounting (/mnt/c) ○ TmpFS - Handles /dev and /tmp ○ ProcFS/SysFS - Handles /proc and /sys

slide-11
SLIDE 11

Pico File Handling

slide-12
SLIDE 12

Where is Linux Stored?

  • No admin rights required:

○ %LocalAppData% --> /Users/Serubin/AppData/Local/lxss

  • Hidden by default - this should NOT be modified by windows.
  • Windows does not respect or modify NTFS extended attributes
  • Microsoft warns modifying lxss will break your rootfs/wsl install.
slide-13
SLIDE 13

So why use WSL?

  • Removes the need for tools like Cygwin or Git Bash
  • Allows for the native use of Unix Tools like Ssh, Wget, Curl, Vim, Emacs
  • Helps linux beginners start the migration to linux tools without changing their

entire OS.

  • It’s just kind of cool?
slide-14
SLIDE 14

Upcoming events!

Weekly!

  • RITLug, 4-6pm every friday!

○ GOL-2620

  • FOSS Hours, 4-6pm Wednesdays

○ GOL-2500

Join our Club Mailing List!

  • ==> http://link.ritlug.com <==

One off Events!

  • WiCHacks February 25-26, 2017.

○ Wic-hacks.rit.edu

  • Imagine RIT May 6th - More to come
  • FOSSTALKS - Wednedsays 4-6pm

○ Magic Center on : . 3/22, 4/19 ○ Women in FOSS!

slide-15
SLIDE 15

Demo? Demo.