I am trying to setup BusyBox on top of ArchLinux, Fedora or Ubuntu. So that when i telnet i can get something like this following:
But how do i get started? Simply install Busybox on top of my existing distro? Will that wrap all my external third party libraries?
$ telnet 192.168.0.198 23
Trying 192.168.0.198...
Connected to 192.168.0.198.
Escape character is '^]'.
(none) login: root
Password:
BusyBox v1.1.2 (2008.07.18-08:25+0000) Built-in shell (ash)
Enter 'help' for a list of built-in commands.
Welcome to HiLinux.
-sh: nfsroot: not found
~ $ help
Built-in commands:
-------------------
. : alias bg break cd chdir command continue echo eval exec exit
export false fg getopts hash help jobs kill let local pwd read
readonly return set shift times trap true type ulimit umask unalias
unset wait
~ $ man alias
-sh: man: not found
Follow up:
For experiment i have tried on full-blown installed unit:
0) backend operating system is Arch, Ubuntu, Fedora, CentOS
1) install busy box on all
2) run busybox
$ busybox
BusyBox v1.17.1 (Ubuntu 1:1.17.1-10ubuntu1) multi-call binary.
Copyright (C) 1998-2009 Erik Andersen, Rob Landley, Denys Vlasenko
and others. Licensed under GPLv2.
See source distribution for full notice.
Usage: busybox [function] [arguments]...
or: function [arguments]...
BusyBox is a multi-call binary that combines many common Unix
utilities into a single executable. Most people will create a
link to busybox for each function they wish to use and BusyBox
will act like whatever it was invoked as.
Currently defined functions:
[, [[, adjtimex, arping, ash, awk, basename, blockdev, brctl, bunzip2, bzcat,
bzip2, cal, cat, chgrp, chmod, chown, chroot, chvt, clear, cmp, cp, cpio, cut,
date, dc, dd, deallocvt, df, dirname, dmesg, dnsdomainname, dos2unix, du,
dumpkmap, dumpleases, echo, egrep, env, expr, false, fgrep, find, fold, free,
ftpget, ftpput, getopt, grep, gunzip, gzip, head, hexdump, hostid, hostname,
httpd, id, ifconfig, ionice, ip, ipcalc, kill, killall, klogd, last, length,
ln, loadfont, loadkmap, logger, logname, logread, losetup, ls, lzcat, lzma,
md5sum, mdev, mkdir, mkfifo, mknod, mktemp, more, mount, mt, mv, nameif, nc,
netstat, nslookup, od, openvt, patch, pidof, ping, ping6, printf, ps, pwd,
rdate, readlink, realpath, renice, reset, rev, rm, rmdir, route, rpm, rpm2cpio,
run-parts, sed, setkeycodes, sh, sha1sum, sha256sum, sha512sum, sleep, sort,
start-stop-daemon, static-sh, strings, stty, swapoff, swapon, sync, sysctl,
syslogd, tac, tail, tar, tee, telnet, test, tftp, time, top, touch, tr,
traceroute, traceroute6, true, tty, udhcpc, udhcpd, umount, uname, uncompress,
uniq, unix2dos, unlzma, unxz, unzip, uptime, usleep, uudecode, uuencode, vi,
watch, watchdog, wc, wget, which, who, whoami, xargs, xz, xzcat, yes, zcat
ssh
. And don'ttelnet
as root.