Linux distro with just busybox and bash?
Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------
Music by Eric Matyas
https://www.soundimage.org
Track title: Lost Civilization
--
Chapters
00:00 Linux Distro With Just Busybox And Bash?
00:21 Accepted Answer Score 22
01:11 Answer 2 Score 8
01:45 Answer 3 Score 5
01:59 Answer 4 Score 4
02:25 Answer 5 Score 4
04:30 Thank you
--
Full question
https://superuser.com/questions/307087/l...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#linux #linuxdistributions
#avk47
ACCEPTED ANSWER
Score 22
Ttylinux
What you are searching for is called ttylinux.
Major components
- Kernel
- Glibc
- Iptables
- Dropbear (scp, ssh, sshd)
- GPM
- Bash
- Busybox
- E2fsprogs
Not maintained
The distribution was hosted at Ttylinux.net, and is currently not maintained.
Download
ANSWER 2
Score 8
A good linux distro that I've fallen in love with (and also has no GUI) is MicroCore Linux. It also has an older brother TinyCore Linux that does have a GUI (a pretty crappy one though).
You could always try DSL (Damn Small Linux)
I don't think any of these explicitly come with busybox (I don't know of any distro that ships with it), but it shouldn't be too hard to install it afterwards. From what I understand your main concern is a small fast system with a decent shell.
ANSWER 3
Score 5
"Alpine Linux is a security-oriented, lightweight Linux distribution based on musl libc and busybox."
ANSWER 4
Score 4
The best most current distribution I can think of is Debian NetInst: http://www.debian.org/CD/netinst/
There are a number of small Linux distributions out there but this one I think will be among the best maintained. Another thing is, if you need to grow it to full size, it's a trivial operation.
ANSWER 5
Score 4
Minimal Linux Live
https://github.com/ivandavidov/minimal
For a more interesting interactive system, this is a (mostly educational) small script that:
- downloads the source for the kernel and busybox
- compiles them
- generates a bootable 8Mb ISO with them
The ISO then leaves you in a minimal shell with busybox.
With QEMU you can easily boot into the system.
I have modified it to allow running it from the kernel source directory: https://github.com/cirosantilli/runlinux
Usage:
git clone https://github.com/ivandavidov/minimal
cd minimal/src
./build_minimal_linux_live.sh
# Wait.
# Install QEMU.
# minimal_linux_live.iso was generated
./qemu64.sh
and you will be left inside a QEMU Window with you new minimal system. Awesome.
Since it is small, this is a good option to read the source and understand what is going on.
Tested on Ubuntu 16.04.
Buildroot
Large set of Makefile scripts that manage:
- GCC cross compilation toolchain
- kernel compilation
- bootloader compilation
- generation of rootfs
- has tons of package download / build recipes in the source tree, including complex stuff like GTK. There is a dependency system.
Minimal example:
git clone git://git.buildroot.net/buildroot
cd buildroot
git checkout 2016.05
make qemu_x86_defconfig
# Can't use -jN, use `BR2_JLEVEL=2` instead.
BR2_JLEVEL=2 make
# Wait.
# cat board/qemu/x86_64/readme.txt
qemu-system-x86_64 -M pc -kernel output/images/bzImage -drive file=output/images/rootfs.ext2,if=virtio,format=raw -append root=/dev/vda -net nic,model=virtio -net user
# You are now in a shell with BusyBox utilities.
Professional stuff.
Alpine Linux
https://github.com/gliderlabs/docker-alpine
Embedded distribution with a package manager that offers precompiled binaries from a website.
Single executable rootfs
The absolute minimum system runs a single /init
program as I've explained at https://superuser.com/a/991733/128124