Maybe Oasis Linux might be fun to try on Tierhive?
Maybe Oasis Linux might be fun to try on Tierhive?
Is there an equivalently available BSD distribution which is equivalently small?
Has anyone here at LES used Oasis or an equivalently small BSD distribution?
Thanks!
Tom
References:
https://github.com/oasislinux/oasis
- Completely statically linked.
- Fast builds that are 100% reproducible.
- Minimal bootstrap dependencies.
- BearSSL is the system TLS and crypto library.
- No package manager. (Can use pkgsrc or nix.)
- Integrates well with OS-agnostic package systems.
- Extremely simple system configuration.
- Mostly ISO C conformant.
https://github.com/oasislinux/oasis/wiki/Install
https://www.osnews.com/story/141713/oasis-a-small-statically-linked-linux-system-2/
Oasis seems to work with Qemu inside my Chromebook's Debian Crostini container:
chronos@penguin:~/oasis$ ls -l oasis-qemu
total 397036
-rw-r--r-- 1 chronos chronos 3769872 Jan 26 2024 bzImage
-rw-r--r-- 1 chronos chronos 1420 Jan 26 2024 README.md
-rw-r--r-- 1 chronos chronos 402784256 Apr 28 21:00 root.qcow2
-rwxr-xr-x 1 chronos chronos 1456 Apr 28 20:59 run
chronos@penguin:~/oasis$ ls -lh $_
total 388M
-rw-r--r-- 1 chronos chronos 3.6M Jan 26 2024 bzImage
-rw-r--r-- 1 chronos chronos 1.4K Jan 26 2024 README.md
-rw-r--r-- 1 chronos chronos 385M Apr 28 21:00 root.qcow2
-rwxr-xr-x 1 chronos chronos 1.5K Apr 28 20:59 run
chronos@penguin:~/oasis$
Initial boot messages:
Note: qemu command inside run file modified by removing -enable-kvm and -cpu host.
chronos@penguin:~/oasis/oasis-qemu$ ./run -s
Booting oasis qemu image...
Tips:
- To access the qemu monitor, use Ctrl-a c.
- The root password is empty.
- A regular user 'oasis' is available, also with empty password.
- To run commands as root, use doas(1)
- Text editors available are vis(1) and ed(1)
- To launch velox, run `swc-launch velox`.
* To launch st from velox, use Alt-Shift-Enter
* To launch netsurf from velox, use Alt-b
* To launch dmenu from velox, use Alt-r
- To shutdown, run `kill -s USR1 1`.
See README.md for more information.
ACPI: bus type drm_connector registered
random: crng init done
loop: module loaded
virtio_blk virtio4: 1/0/0 default/read/poll queues
virtio_blk virtio4: [vda] 16777216 512-byte logical blocks (8.59 GB/8.00 GiB)
NET: Registered PF_INET6 protocol family
Segment Routing with IPv6
In-situ OAM (IOAM) with IPv6
NET: Registered PF_PACKET protocol family
9pnet: Installing 9P2000 support
IPI shorthand broadcast: enabled
sched_clock: Marking stable (2274137438, 23672496)->(2344706219, -46896285)
ALSA device list:
No soundcards found.
EXT4-fs (vda): orphan cleanup on readonly fs
EXT4-fs (vda): mounted filesystem with ordered data mode. Quota mode: disabled.
VFS: Mounted root (ext4 filesystem) readonly on device 254:0.
devtmpfs: mounted
Freeing unused kernel image (initmem) memory: 760K
Write protecting the kernel read-only data: 12288k
Freeing unused kernel image (text/rodata gap) memory: 2044K
Freeing unused kernel image (rodata/data gap) memory: 852K
Run /bin/sinit as init process
EXT4-fs (vda): re-mounted. Quota mode: disabled.
oasis login: root
Password:
#
Not too much in /etc:
# cd /etc; ls
LICENSE
doas.conf
fstab
gitconfig
group
hosts
hotplug
kshrc
mtab
ntpd.conf
passwd
perp
plumb
profile
rc.init
rc.local
rc.shutdown
resolv.conf
services
shadow
ssh
ssl
sysctl.conf
velox.conf
#

Comments
I like that shutdown is by manually just sigging init.
"It's a hard life- to be a stick insect." - Karl Pilkington
@Not_Oles can you ELI5 why I'd want this instead of Alpine Linux?
Looks interesting, keeping things short simple and safe, is something that many projects are lacking.
Have you noticed that the last time it had any traction was 2017?
"It's a hard life- to be a stick insect." - Karl Pilkington
I just found oasis yesterday.
Oasis seems possibly a little different than Alpine: even smaller, statically linked, has its own compiler project (not fully used for everything yet), more?
Alpine has been a lot of fun for me!
What counts as "traction?"
https://lobste.rs/s/c7hgkj/oasis_small_statically_linked_linux (2024)
https://lobste.rs/s/n6ehna/oasis_small_statically_linked_linux (2020)
https://lobste.rs/s/blwlw9/oasis_small_statically_linked_linux (2020)
https://news.ycombinator.com/item?id=39142748 (2024)
https://news.ycombinator.com/item?id=32458744 (2022)
https://news.ycombinator.com/item?id=25265761 (2020)
From https://github.com/oasislinux/oasis :
3.1k stars
Last week: 3 commits
Three weeks ago: 4 commits
Last month: 5 commits
Maybe see this comment from February 8 (untested here):
https://github.com/oasislinux/oasis/issues/37#issuecomment-3867791902
Maybe the initial announcement of Oasis was on the Suckless dev mailing list in 2017:
[dev] oasis: small linux system inspired by stali
https://lists.suckless.org/dev/1702/31114.html
I will give you some free credit to try it if you want, I do enjoy people messing with it with odd distros.
TierHive - Hourly VPS - NAT Native - /24 per customer - DE, UK, SG, CA, USA x3, FR, AU, PL, NL
FREE tokens on sign up, try before you buy. | Join us on Reddit
Thanks, Ant! Sounds like fun!
You might need to put a ticket in if your subnet was reclaimed iirc you did have an account
TierHive - Hourly VPS - NAT Native - /24 per customer - DE, UK, SG, CA, USA x3, FR, AU, PL, NL
FREE tokens on sign up, try before you buy. | Join us on Reddit
Logged in successfully!
https://control.tierhive.com/subnet-config still says there is a 10.x.x.x/24 subnet.
Successfully added IPv6/64!
@AnthonySmith Might take me a day or two to attempt the next step since I have a BSD thingy I want to try first. But, more soon. Meanwhile, may I please ask, do you prefer that I continue posting in this thread, post in your new Tierhive discussion thread, post elsewhere, or just proceed quietly? Thanks again!
Thanks!
i dont mind tbh, this thread seems natural as it has the start so it should have the finish
I found your account and added some playing with stuff tokens.
TierHive - Hourly VPS - NAT Native - /24 per customer - DE, UK, SG, CA, USA x3, FR, AU, PL, NL
FREE tokens on sign up, try before you buy. | Join us on Reddit