Top Banner
Chromium OS vs Cub Linux workshop DigiPinguïns (LUG Kortrijk) dd 2/2/2016 Merijn Supply Vormingplus MZW Wandelweg 11 8500 Kortrijk
27

Chromium os vs Cub Linux

Jan 12, 2017

Download

Technology

Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Chromium os vs Cub Linux

Chromium OS vs Cub Linux

workshopDigiPinguïns

(LUG Kortrijk)dd 2/2/2016

Merijn SupplyVormingplus MZW

Wandelweg 118500 Kortrijk

Page 2: Chromium os vs Cub Linux

Chrome (browser)

Page 3: Chromium os vs Cub Linux

Chrome (browser)

● sept 2008○ Google brengt eerste bèta uit○ grote verrassing: nood aan nieuwe browser?○ Mozilla Firefox had toen zeer dominante positie○ curve: na stille start stijle opmars (zie verder)

● nov 2015○ 54% marktaandeel (StatCounter)

● platformen○ eerst enkel voor Windows ○ sinds dec 2009: Mac OS X○ intussen ook Linuxversie beschikbaar○ Android versie sinds februari 2012

Page 4: Chromium os vs Cub Linux

Chrome (browser)

Page 5: Chromium os vs Cub Linux

Chrome (browser)

● concept / filosofie:○ webpagina’s/webapplicaties alle ruimte geven

(browser moet uit de weg blijven)○ elke tab als apart proces

> tab crasht, niet de browser● bij eerste release zeer ‘spartaans’

○ vederlicht, minimalistisch○ nauwelijks of geen extensies

● evolutie 2008 > 2016: history repeats itself○ laatste jaren meer en meer klachten dat Chrome te

zwaar wordt

Page 6: Chromium os vs Cub Linux

Chrome (browser)

“free RAM is useless RAM”

> hoog RAM-gebruik (doorgaans) goed teken

Page 7: Chromium os vs Cub Linux

● pas problematisch wanneer RAM *voortdurend* en *volledig* wordt opgesoupeerd en je systeem vertraagt

● usual suspects○ plug-ins○ extensies○ teveel tabs, perhaps?

○ auto-opstart chrome (boot time) i.f.v. Hangouts e.a.

Chrome (browser)

Page 8: Chromium os vs Cub Linux

Chrome (browser)

● webpagina’s worden steeds zwaarder○ eind 2015: gemiddeld 2.2MB (!) www.sitepoint.

com/ average-page-weight-increased-another-16-2015/

● oorzaken○ luiheid, gemakzucht bij webdevelopers○ ‘UI-enhancements’

■ overvloedig JavaScript-gebruik, continuous scrolling, (flash) advertenties animated GIF’s, …

■ verwend door breedband internet, snelle Wi-Fi, 4G

● oplossingen: browserdiet.com

Page 9: Chromium os vs Cub Linux

Chromium (browser)

● open source project● Google Chrome = codebase Chromium +

○ Pepper Flash (proprietary license and code)○ propriërtaire mediacodecs H.264, AAC and MP3○ ingebouwde PDF-lezer / print preview (initieel Foxit)

> in juni 2014 gaf Google de code vrij, sinds aug 2015 dan ook ingebouwd in Chromium (v. 47 e.v.)

○ auto-update functies● pepper flash installeren in ubuntu/debian

○ sudo aptitude install pepperflashplugin-

nonfree browser-plugin-freshplayer-pepperflash

Page 10: Chromium os vs Cub Linux

Chromium (browser): technisch

● web-engine of ‘html renderer’○ aanvankelijk WebKit

■ ook gebruikt door Safari, KDE/Konquerer, Nokia, Blackberry, Opera…

■ was fork (door Apple medewerker) van KHTML○ sinds april 2013: Blink

■ Google & partners(Opera, ASA, Intel, Samsung, ...)

■ fork van WebKit● WebCore (layout/rendering HTML & SVG ● JavaScriptCore (JavaScript engine)

Page 11: Chromium os vs Cub Linux

● in juli 2009 door Googleaangekondigd besturingssysteem

● basis: webbrowser Chrome + Linux-kernel● initieel gericht op netbooks● special: ‘Chromebook Pixel’● producenten anno 2016:

Acer, ASUS,Toshiba, Lenovo, HP

● platformen:ARM, x64, x86

Chrome OS

Page 12: Chromium os vs Cub Linux

● minimalistische look ‘n’ feel● performantie: ‘boots up in seconds’● onderhoudsvrij: ‘silent updates’● geen traditionele desktopapplicaties

○ enige echte toepassing is de browser Chrome○ webapplicaties via extenties toe te voegen

(soms ook offline applicaties!)○ ook PC-instellingen (wifi, bluetooth, peripherals, …)

worden in settings van browser geconfigureerd● gebruikersdata

○ versleuteld opgeslagen op de SSD ○ voortdurende sync met online (Google-) diensten

Chrome OS: concept

Page 13: Chromium os vs Cub Linux

Chromium OS

● nov 2009: source code vrijgegeven als ‘Chromium OS’

● initieel gebaseerd op Ubuntu○ deal met Canonical○ ‘upstart’ wordt nog steeds gebruikt (terwijl Ubuntu

zelf intussen is overgeschakeld naar system.d)○ lees zdnet.com/ article/the-secret-origins-of-

googles-chrome-os/● wat later: switch naar Gentoo● april 2012: ‘Aura’ Window Manager

○ switch van ‘full-screen’ naar meer conventionele ‘windowed GUI’ (venster, taakbalk, startmenu)

Page 14: Chromium os vs Cub Linux

Aura:hardware-acceleratie laat schaduweffecten en vensteranimaties toelifehacker.com/5900679

Chromium OS: technisch

Page 15: Chromium os vs Cub Linux

Chrome OS vs Chromium OS

● Chrome OS: enkel pre-installed, en geöptimaliseerd voor specifieke hardware- da’s juist, zoals bij Apple :)

● soorten toestellen○ Chromebook

(netbook/laptop)○ Chromebox

(desktop/kiosk)○ Chromebase

(all-in-one system)○ Chromebit

(HDMI-stick)

Page 16: Chromium os vs Cub Linux

Chromium OS: installatie

● source code zelf te compileren● gemakkelijker: ‘vanilla build’ downloaden● populaire aanbieders

○ hexxeh (chromeos.hexxeh.net) - niet meer actief?○ arnold the bat (arnoldthebat.co.uk) - daily builds○ beschikbare architecturen (image ca 2,8GB (!)

CARMOS (ARM), Camd64OS (x64) & Cx86OS (x86)

Page 17: Chromium os vs Cub Linux

● bootable USB-stick maken op Linux○ gebruik p7zip of fileroller of… om IMG bestand te

extraheren of ‘uit te pakken’○ voer volgend commando uit op een shell

dd if=ChromeOS.img of=/dev/sdX bs=4M■ (sdX is je USB stick■ ChromeOS.img is pad naar IMG-bestand

○ tijdje wachten ;)○ USB veilig verwijderen, rebooten en ‘vingers

kruisen’○ nu kan je booten van die USB stick (evt BIOS

aanpassen)

Chromium OS - installatie

Page 18: Chromium os vs Cub Linux

Chromium OS - shell

● Crosh○ Open Chrome browser○ Press CTRL + ALT + T (terminal tab)○ ‘shell’ (enter)

● TTY2 ○ Ctrl+Alt+F2○ login als ‘chronos’○ wachtwoord

= ‘password’ (enter)○ terug naar browser (windowed): Ctrl+Alt+F1

Page 19: Chromium os vs Cub Linux

Chromium OS - installatie op SSD/HD

● ga naar terminal (zie verder)● ‘shell’ (zonder wachtwoord)● nu zie je deze (root) command prompt

chronos@localhost / $ ● install /dev/sda● rebooten en usb-stick verwijderen● installatie flash

http://benjaminpeters.co.uk/installing-flash-on-chromium-os

Page 20: Chromium os vs Cub Linux

Chromium OS: screenshot

Page 21: Chromium os vs Cub Linux

● Ubuntu installeren op Chromebook?

○ ChrUbuntu: Ubuntu voor Chromebooks. Werkt zoals een traditioneel dual-boot systeem (HOWTO https://goo.gl/ojZxAd)

○ Crouton gebruikt “chroot” omgeving om Chrome OS en Ubuntu *gelijktijdig* te draaien. Je kan je ‘on the fly’ van omgeving switchen met een toetsencombinatie (HOWTO https://goo.gl/JO3Cdn)

Appendix: Linux op Chromebook?

Page 22: Chromium os vs Cub Linux

Cub Linux (voorheen ‘Chromixium’)

Page 23: Chromium os vs Cub Linux

Cub Linux

● nieuwe naam voor ‘Chromixium’(sinds jan ‘16)

● Cub = Chrome + Ubuntu● custom build Ubuntu-afgeleide (zie verder)● doelstelling:

○ a/ gebruikersinterface Chrome OS combineren met○ b/ kracht en flexibiliteit volwaardige GNU/Linux

distro○ c/ stabiliteit van Ubuntu LTS (Long Term Support)

● builds (voorlopig enkel) 32-bit en x86 ● image bestand = ca 800 MB

Page 24: Chromium os vs Cub Linux

● Downloaden ISOhttps://cublinux.com

● installeert zoals elke gewone Linux-distributie

● Ubiquity (Ubuntu installer)● standaard setup zeer minimalistisch:

webgeörienteerd, ‘browser-only’● na installatie kan je eender welke software

installeren die ook op Ubuntu draait, zoals LibreOffice, Skype, Steam, enzoverder...

Cub Linux: installatie

Page 25: Chromium os vs Cub Linux

Cub Linux: technisch

● basis: Ubuntu LTS Linux Kernel● desktop-omgeving

○ Openbox (Window Manager)lijkt op eerste zicht ‘Tiling’ maar is ‘Compositing’(3de soort WM is ‘Stacking’)

○ Compton (desktop compositor)○ Planck (dock of applicatie-launcher)○ LXPanel

● toepassingssoftware○ Chromium Web Browser + Pepperflash Plugin○ Nautilus (Files)○ ...

Page 26: Chromium os vs Cub Linux

Cub Linux: screenshot

Page 27: Chromium os vs Cub Linux

Demo’s & installatie….

Bedankt!Merijn Supply

Vormingplus MZWWandelweg 118500 Kortrijk

[email protected]