Plan 9 : The Infinity Notebook
Plan 9 is an Operating System (OS) from Bell Labs which is a successor to UNIX. It builds on the learnings from the previous Operating systems. Network computing and graphics is an integral part of the OS rather than an afterthought. It is modular and portable - it comes with a cross compiler. It is available, under MIT License, which anybody can use, learn and tweak.
Features
- Everything is a file.
- Singular Grid: All the computers running Plan 9 OS and connected together act like a singular grid. So there's no need for remote access solutions like VNC or RDP. This cool video shows a small glimpse of the possibilities.
- Process Isolation: Processes run within their own namespaces and are isolated from each other. So you can run rio (the window manager) within rio. Applications like Browsers don't need complicated sandboxing. And a crashing program is unlikely to bring down the OS.
- No DLL Hell: Binaries are always statically linked. So there's no DLL hell and there's no need for application bundles like Snap, Flatpak and Appimage.
- Plumber: This allows user to define custom rules for disparate application interactions. e.g. opening a browser for HTTP URL or a mail client for mailto URL or a text editor for a file URL.
- Rune: Unicode (UTF) character handling (multi-lingual support) is easily done via Rune API.
Plan 9 Keybindings
Plan 9 OS user interface (UI) is mouse oriented. However, thanks to Common User Access (CUA) specification, we have come to expect keyboard shortcuts to work for certain repeated actions. e.g. Ctrl+x, Ctrl+c and Ctrl+v for cut, copy and paste respectively. This is an attempt to introduce the same in Plan 9.
Rio Autosuggest
Rio supports basic auto-suggest via Ctrl+F. Here's an attempt to add a drop-down for the same.
Code (Work in Progress)
- https://gitlab.com/atamariya/plan9front/-/blob/dev/sys/src/cmd/rio/dat.h
- https://gitlab.com/atamariya/plan9front/-/blob/dev/sys/src/cmd/rio/rio.c
- https://gitlab.com/atamariya/plan9front/-/blob/dev/sys/src/cmd/rio/ui1.c
- https://gitlab.com/atamariya/plan9front/-/blob/dev/sys/src/cmd/rio/wind.c
Plumber
Running rules are in /mnt/plumb/rules. For permanent changes, modify /sys/lib/plumb/basic.
Some useful plumbing rules: treason (video)
type is text
data matches '[a-zA-Z¡-0-9_\-.,/]+'
data matches '([a-zA-Z¡-0-9_\-.,/]+)\.(mp4|MP4|avi|mkv)'
arg isfile $0
plumb to video
plumb start window -scroll treason $file
Truetype Font
![]() |
ttfrender output |
Truetype fonts (TTF variable width font) work somewhat fine - you can notice some jarring. Just follow the manual (man truetypefs) and remember that /n/ttf is a virtual filesystem - don't expect to see any files listed there.
font=/n/ttf/bold.ttf.16/font
acme -c 1 /lib/glass
References
- Typing Unicode Characters (see also man keyboard(6))
- Context Menu is Personal (GNU Emacs)
- Alternatives in GNU Emacs - File Explorer
Comments
Post a Comment