Skip to content

Commit

Permalink
opensource.md updated
Browse files Browse the repository at this point in the history
  • Loading branch information
shawn111 committed Apr 10, 2024
1 parent 3994782 commit a93daca
Showing 1 changed file with 97 additions and 17 deletions.
114 changes: 97 additions & 17 deletions opensource.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ theme:

---

# Opensource and Linux Distro
# Open Source and Linux Distro

Linux Desktop: 4% or 4x%?

Expand All @@ -26,7 +26,6 @@ Linux Desktop: 4% or 4x%?
-----
<!-- end_slide -->


# Open Source Era

https://gitnux.org/open-source-software-statistics/
Expand All @@ -37,11 +36,15 @@ https://gitnux.org/open-source-software-statistics/
- 96% of applications have at least one open-source component.
- Open-source maintains a 33% lower organizational cost in the long run compared to proprietary software.

## My opinions how open source dominate the world:

- linux / container / ...
- git / github / ...

-----
<!-- end_slide -->


# A World Without Linux
## A World Without Linux

Linux Foundation 2015

Expand All @@ -54,7 +57,7 @@ The remainder is split between Windows, 1.9 percent, and FreeBSD, 1.8 percent.
-----
<!-- end_slide -->

# Linux has a little over 4% (actually 4.03%) of the desktop OS market.
## Linux has a little over 4% (actually 4.03%) of the desktop OS market.

https://gs.statcounter.com/os-market-share/desktop/worldwide

Expand All @@ -66,7 +69,7 @@ https://gs.statcounter.com/os-market-share/desktop/worldwide
-----
<!-- end_slide -->

# Microsoft has a majority market share
## Microsoft has a majority market share
https://bugs.launchpad.net/bugs/1

- 2004 created
Expand All @@ -92,9 +95,30 @@ https://en.wikipedia.org/wiki/Criticism_of_desktop_Linux
-----
<!-- end_slide -->

# Linux
## Why Linux is good as your PC OS?

- Rich Open Source resources - linux / containers
- Network native
- ssh / tunnel

### Not so good about

- Many application like office
- cloud version or android version
- chinese input

### others
- Windows: WSL
- Mac M1/M2/M3: Asahi Linux

-----
<!-- end_slide -->

# Linux kernel

- modules
- eBPF
- rust for linux
- abi (application binary interface)
- https://opensource.com/article/22/12/linux-abi
- LTS - 6.6 / 6.1 / 5.15 / 5.10 / 5.4 / 4.19
Expand All @@ -112,7 +136,7 @@ https://en.wikipedia.org/wiki/Criticism_of_desktop_Linux

# Linux Distro - packages and dependencies

- binary package
- binary package / repos
- debian / Ubuntu (deb) / termux
- REHL / CentOS
- alpine
Expand All @@ -125,7 +149,6 @@ https://en.wikipedia.org/wiki/Criticism_of_desktop_Linux

* upstream packages


-----
<!-- end_slide -->

Expand Down Expand Up @@ -155,6 +178,46 @@ https://en.wikipedia.org/wiki/Criticism_of_desktop_Linux
-----
<!-- end_slide -->

## Dependency hell

- binary packages
- library dependency

-----
<!-- end_slide -->

## Nix
- Nix is a purely functional package manager.
- /nix/store/b6gvzjyb2pg0kjfwrjmg1vfhh54ad73z-firefox-33.1/

-----
<!-- end_slide -->

### Nix pkgs
- Multiple versions
- Complete dependencies
- Multi-user support
- Atomic upgrades and rollbacks
- Garbage collection
- Functional package language
- Transparent source/binary deployment
- Nix Packages collection
- Portability

-----
<!-- end_slide -->

### NixOS
- Declarative system configuration model
- Reliable upgrades
- Atomic upgrades
- Rollbacks
- Reproducible system configurations
- Safe to test changes

-----
<!-- end_slide -->

# Linux container

- LXC (machine container)
Expand Down Expand Up @@ -196,8 +259,8 @@ https://en.wikipedia.org/wiki/Criticism_of_desktop_Linux

# Libc

- glibc
- musl
- glibc - most linux distro
- musl - apline
- bionic (android)
- BSD-licensed
- Small size
Expand All @@ -214,6 +277,9 @@ https://en.wikipedia.org/wiki/Criticism_of_desktop_Linux
-----
<!-- end_slide -->


# Gui

## gnome

-----
Expand All @@ -231,11 +297,6 @@ https://en.wikipedia.org/wiki/Criticism_of_desktop_Linux
## Cosmic


-----
<!-- end_slide -->

## PackageKit



-----
Expand All @@ -249,7 +310,26 @@ https://en.wikipedia.org/wiki/Criticism_of_desktop_Linux
-----
<!-- end_slide -->

# immutable / atomic
# package vs image

- deb
- rpm
- nix
- snap

## PackageKit

-----
<!-- end_slide -->

## immutable / atomic

- container (OCI) image
- ostree
- rpm-ostree
- systemd
- portable services
- snap - squashfs

-----
<!-- end_slide -->
Expand Down

0 comments on commit a93daca

Please sign in to comment.