+ - 0:00:00
Notes for current slide
Notes for next slide

GNU/Linux in tiny places

small platforms for all types of shenanigans

Chris McCormick

chris@mccormick.cx

1 / 24

History

linux.conf.au 2005

...developing software for the Gameboy Advance using Linux and other open source tools...

linux.conf.au 2007

GNU/Linux on handheld gaming devices

(Nintendo DS, gp2x)

2 / 24

Tiny places

  • Termux on Android
  • piCore on RPi
3 / 24

Setup

  • Seven square
  • Webcam
4 / 24

Termux on Android

Termux icon

5 / 24

Termux on Android

  • Android application
  • GNUish userspace
  • on Android Linux kernel
6 / 24

Termux on Android

Hardware

  • $39 Android phone
  • Cheap prepaid plan

ZTE Zip

7 / 24

Termux on Android

Hardware

  • $39 Android phone
  • Cheap prepaid plan
  • Screen + camera
  • Speaker + Microphone
  • GSM data (internet)
  • SMS
8 / 24

Termux on Android

Software

  • F-Droid
  • GOOG
  • Termux packages
  • No root
9 / 24

Termux on Android

Scripting

  • Terminal UI
  • Shortcuts UI
    • ~/.shortcuts
  • Boot scripts
    • ~/.termux/boot
  • Package manager:
    • pkg install somepackage
10 / 24

Termux on Android

Scripting

  • Capabilities?
    • termux-*
11 / 24

Termux on Android

Scripting

  • Capabilities?
    • termux-*
    • termux-sms-*
12 / 24

Termux on Android

Scripting

  • Capabilities?
    • termux-*
    • termux-sms-*
    • termux-camera-photo
13 / 24

Termux on Android

Scripting

  • Capabilities?
    • termux-*
    • termux-sms-*
    • termux-camera-photo
    • termux-tts-speak
14 / 24

Termux on Android

Server

  • SSH server
  • HTTP server
  • Public IP
  • SSH tunnel
15 / 24

piCore on RPi

Raspberry Pi model B+

16 / 24

piCore on RPi

Hardware

  • Raspberry Pi
  • Everything via GPIO
17 / 24

piCore on RPi

Software

  • piCore == TinyCore Linux
  • 49M image
  • Read only - immutable!
  • packages as mount points
18 / 24

piCore on RPi

Software

  • Persist changes:
    • filetool.sh -b
  • Boot scripts:
    • /opt/bootlocal.sh
  • Package manager:

tce-load -wi somepackagename

19 / 24

piCore on RPi

Hack

  • LED flash demo:
    • Nodejs
    • Python
  • Hats
20 / 24

piCore on RPi

LED-over-HTTP

Server QR

http://10.27.8.217:8000/led.php

21 / 24

piCore on RPi

LED-over-SMS

0481 300 706

22 / 24

piCore + Termux

World's cheapest robotics platform?

23 / 24

GNU/Linux in tiny places

Chris McCormick

chris@mccormick.cx

24 / 24

History

linux.conf.au 2005

...developing software for the Gameboy Advance using Linux and other open source tools...

linux.conf.au 2007

GNU/Linux on handheld gaming devices

(Nintendo DS, gp2x)

2 / 24
Paused

Help

Keyboard shortcuts

, , Pg Up, k Go to previous slide
, , Pg Dn, Space, j Go to next slide
Home Go to first slide
End Go to last slide
b / m / f Toggle blackout / mirrored / fullscreen mode
c Clone slideshow
p Toggle presenter mode
t Restart the presentation timer
?, h Toggle this help
Esc Back to slideshow