We have upgraded the community system as part of the upgrade a password reset is required for all users before login in.

busybox: applets included isn't listed (resolved)



  • https://www.busybox.net/downloads/BusyBox.html
    says that
    "If you invoke BusyBox with no arguments, it will provide you with a list of the applets that have been compiled into your BusyBox binary."

    instead it reports:

    busybox: applet not found

    It would be great if it did.

    PS I must have done something wrong. I plugged it in and it just worked! Yipiee.
    Thanks for a GREAT system.



  • Nice you got it! Could you please mark your request in the title as resolved ?



  • @Luciano-S. Sorry I didn't mean to imply that I got the info about busybox, rather the onion works.

    Still don't know what's included in busybox!



  • On my Omega2+ 0.1.8 (b145)

    BusyBox Version: 1.25.1-2
    Currently defined applets:

    [ [[ ash awk basename brctl bunzip2 bzcat cat chgrp chmod chown chroot clear cmp cp cron crond crontab cut date dd df dirname dmesg du echo egrep env expr false fgrep find free fsync grep gunzip gzip halt head hexdump hwclock id ifconfig ip kill killall less ln lock logger login ls md5sum mkdir mkfifo mknod mkswap mktemp mount mv nc netmsg netstat nice nslookup ntpd ntpd-hotplug passwd pgrep pidof ping ping6 pivot_root poweroff printf ps pwd readlink reboot reset rm rmdir route sed seq sh sha256sum sleep sort start-stop-daemon strings switch_root sync sysctl sysntpd tail tar tee test time top touch tr traceroute traceroute6 true udhcpc umount uname uniq uptime vi wc which xargs yes zcat

    opkg is a useful command.
    opkg info busybox
    opkg files busybox

    Here you are a usage example and an edited list of BB's files:

    root@Omega-5BE1:~# opkg info busybox
    Package: busybox
    Version: 1.25.1-2
    Depends: libc
    Status: install user installed
    Section: base
    Essential: yes
    Architecture: mipsel_24kc
    Size: 205223
    Filename: busybox_1.25.1-2_mipsel_24kc.ipk
    Description: The Swiss Army Knife of embedded Linux.
     It slices, it dices, it makes Julian Fries.
    Installed-Time: 1484219717
    
    root@Omega-5BE1:~# opkg files busybox | sed 's|/usr||; s|/sbin/||; s|/bin/||; s|/etc/init.d/||; /^busybox/d' | sort
    Package busybox (1.25.1-2) is installed on root and has the following files:
    [
    [[
    ash
    awk
    basename
    brctl
    bunzip2
    bzcat
    cat
    chgrp
    chmod
    chown
    chroot
    clear
    cmp
    cp
    cron
    crond
    crontab
    cut
    date
    dd
    df
    dirname
    dmesg
    du
    echo
    egrep
    env
    expr
    false
    fgrep
    find
    free
    fsync
    grep
    gunzip
    gzip
    halt
    head
    hexdump
    hwclock
    id
    ifconfig
    ip
    kill
    killall
    less
    ln
    lock
    logger
    login
    ls
    md5sum
    mkdir
    mkfifo
    mknod
    mkswap
    mktemp
    mount
    mv
    nc
    netmsg
    netstat
    nice
    nslookup
    ntpd
    ntpd-hotplug
    passwd
    pgrep
    pidof
    ping
    ping6
    pivot_root
    poweroff
    printf
    ps
    pwd
    readlink
    reboot
    reset
    rm
    rmdir
    route
    sed
    seq
    sh
    sha256sum
    sleep
    sort
    start-stop-daemon
    strings
    switch_root
    sync
    sysctl
    sysntpd
    tail
    tar
    tee
    test
    time
    top
    touch
    tr
    traceroute
    traceroute6
    true
    udhcpc
    umount
    uname
    uniq
    uptime
    vi
    wc
    which
    xargs
    yes
    zcat
    


  • @György-Farkas Thanks for your help. Why doesn't busybox list the apps?



  • @Dennis-German said in busybox: applets included isn't listed (resolved):

    https://www.busybox.net/downloads/BusyBox.html

    DESCRIPTION
    BusyBox is extremely configurable. This allows you to include only the components you need, thereby reducing binary size.

    Please read also https://www.busybox.net/FAQ.html how to configure BB if you want to make a "well configured" busybox binary from source.

    Here you are a quick help if you really can't live without a fully featured BB 😉

    cd ~
    wget https://www.busybox.net/downloads/binaries/1.26.2-defconfig-multiarch/busybox-mipsel
    ls -l
    chmod +x busybox-mipsel
    ls -l
    ./busybox-mipsel

    And an example:
    stat
    ./busybox-mipsel stat
    ./busybox-mipsel stat /bin/busybox
    ./busybox-mipsel stat busybox-mipsel

    root@Omega-5BE1:~# cd ~
    root@Omega-5BE1:~# wget https://www.busybox.net/downloads/binaries/1.26.2-defconfig-multiarch/busybox-mipsel
    --2017-01-28 10:52:56--  https://www.busybox.net/downloads/binaries/1.26.2-defconfig-multiarch/busybox-mipsel
    Resolving www.busybox.net... 140.211.167.122
    Connecting to www.busybox.net|140.211.167.122|:443... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 1498448 (1.4M)
    Saving to: 'busybox-mipsel'
    
    busybox-mipsel                         100%[=========================================================================>]   1.43M   147KB/s    in 13s     
    
    2017-01-28 10:53:11 (110 KB/s) - 'busybox-mipsel' saved [1498448/1498448]
    
    root@Omega-5BE1:~# ls -l
    -rw-r--r--    1 root     root       1498448 Jan 11 10:38 busybox-mipsel
    root@Omega-5BE1:~# chmod +x busybox-mipsel
    root@Omega-5BE1:~# ls -l
    -rwxr-xr-x    1 root     root       1498448 Jan 11 10:38 busybox-mipsel
    root@Omega-5BE1:~# ./busybox-mipsel
    BusyBox v1.26.2 (2017-01-10 16:07:35 UTC) multi-call binary.
    BusyBox is copyrighted by many authors between 1998-2015.
    Licensed under GPLv2. See source distribution for detailed
    copyright notices.
    
    Usage: busybox [function [arguments]...]
       or: busybox --list[-full]
       or: busybox --install [-s] [DIR]
       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:
    	[, [[, acpid, add-shell, addgroup, adduser, adjtimex, arp, arping, ash, awk, base64, basename, beep, blkdiscard, blkid, blockdev, bootchartd,
    	brctl, bunzip2, bzcat, bzip2, cal, cat, catv, chat, chattr, chgrp, chmod, chown, chpasswd, chpst, chroot, chrt, chvt, cksum, clear, cmp, comm,
    	conspy, cp, cpio, crond, crontab, cryptpw, cttyhack, cut, date, dc, dd, deallocvt, delgroup, deluser, depmod, devmem, df, dhcprelay, diff,
    	dirname, dmesg, dnsd, dnsdomainname, dos2unix, dpkg, dpkg-deb, du, dumpkmap, dumpleases, echo, ed, egrep, eject, env, envdir, envuidgid,
    	ether-wake, expand, expr, fakeidentd, false, fatattr, fbset, fbsplash, fdflush, fdformat, fdisk, fgconsole, fgrep, find, findfs, flock, fold,
    	free, freeramdisk, fsck, fsck.minix, fstrim, fsync, ftpd, ftpget, ftpput, fuser, getopt, getty, grep, groups, gunzip, gzip, halt, hd, hdparm,
    	head, hexdump, hostid, hostname, httpd, hush, hwclock, i2cdetect, i2cdump, i2cget, i2cset, id, ifconfig, ifdown, ifenslave, ifplugd, ifup,
    	inetd, init, insmod, install, ionice, iostat, ip, ipaddr, ipcalc, ipcrm, ipcs, iplink, ipneigh, iproute, iprule, iptunnel, kbd_mode, kill,
    	killall, killall5, klogd, less, linux32, linux64, linuxrc, ln, loadfont, loadkmap, logger, login, logname, logread, losetup, lpd, lpq, lpr, ls,
    	lsattr, lsmod, lsof, lspci, lsusb, lzcat, lzma, lzop, lzopcat, makedevs, makemime, man, md5sum, mdev, mesg, microcom, mkdir, mkdosfs, mke2fs,
    	mkfifo, mkfs.ext2, mkfs.minix, mkfs.vfat, mknod, mkpasswd, mkswap, mktemp, modinfo, modprobe, more, mount, mountpoint, mpstat, mt, mv, nameif,
    	nanddump, nandwrite, nbd-client, nc, netstat, nice, nmeter, nohup, nsenter, nslookup, ntpd, od, openvt, passwd, patch, pgrep, pidof, ping,
    	ping6, pipe_progress, pivot_root, pkill, pmap, popmaildir, poweroff, powertop, printenv, printf, ps, pscan, pstree, pwd, pwdx, raidautorun,
    	rdate, rdev, readahead, readlink, readprofile, realpath, reboot, reformime, remove-shell, renice, reset, resize, rev, rm, rmdir, rmmod, route,
    	rpm, rpm2cpio, rtcwake, run-parts, runsv, runsvdir, rx, script, scriptreplay, sed, sendmail, seq, setarch, setconsole, setfont, setkeycodes,
    	setlogcons, setserial, setsid, setuidgid, sh, sha1sum, sha256sum, sha3sum, sha512sum, showkey, shuf, slattach, sleep, smemcap, softlimit, sort,
    	split, start-stop-daemon, stat, strings, stty, su, sulogin, sum, sv, svc, svlogd, swapoff, swapon, switch_root, sync, sysctl, syslogd, tac,
    	tail, tar, tcpsvd, tee, telnet, telnetd, test, tftp, tftpd, time, timeout, top, touch, tr, traceroute, traceroute6, true, truncate, tty,
    	ttysize, tunctl, ubiattach, ubidetach, ubimkvol, ubirename, ubirmvol, ubirsvol, ubiupdatevol, udhcpc, udhcpd, udpsvd, uevent, umount, uname,
    	unexpand, uniq, unix2dos, unlink, unlzma, unlzop, unshare, unxz, unzip, uptime, usleep, uudecode, uuencode, vconfig, vi, vlock, volname, watch,
    	watchdog, wc, wget, which, whoami, whois, xargs, xz, xzcat, yes, zcat, zcip
    root@Omega-5BE1:~# stat
    -ash: stat: not found
    root@Omega-5BE1:~# ./busybox-mipsel stat
    BusyBox v1.26.2 (2017-01-10 16:07:35 UTC) multi-call binary.
    
    Usage: stat [OPTIONS] FILE...
    
    Display file (default) or filesystem status
    
    	-c FMT	Use the specified format
    	-f	Display filesystem status
    	-L	Follow links
    	-t	Terse display
    
    FMT sequences for files:
     %a	Access rights in octal
     %A	Access rights in human readable form
     %b	Number of blocks allocated (see %B)
     %B	Size in bytes of each block reported by %b
     %d	Device number in decimal
     %D	Device number in hex
     %f	Raw mode in hex
     %F	File type
     %g	Group ID
     %G	Group name
     %h	Number of hard links
     %i	Inode number
     %n	File name
     %N	File name, with -> TARGET if symlink
     %o	I/O block size
     %s	Total size in bytes
     %t	Major device type in hex
     %T	Minor device type in hex
     %u	User ID
     %U	User name
     %x	Time of last access
     %X	Time of last access as seconds since Epoch
     %y	Time of last modification
     %Y	Time of last modification as seconds since Epoch
     %z	Time of last change
     %Z	Time of last change as seconds since Epoch
    
    FMT sequences for file systems:
     %a	Free blocks available to non-superuser
     %b	Total data blocks
     %c	Total file nodes
     %d	Free file nodes
     %f	Free blocks
     %i	File System ID in hex
     %l	Maximum length of filenames
     %n	File name
     %s	Block size (for faster transfer)
     %S	Fundamental block size (for block counts)
     %t	Type in hex
     %T	Type in human readable form
    root@Omega-5BE1:~# ./busybox-mipsel stat /bin/busybox
      File: /bin/busybox
      Size: 304408    	Blocks: 595        IO Block: 1024   regular file
    Device: 1f05h/7941d	Inode: 409         Links: 1
    Access: (0755/-rwxr-xr-x)  Uid: (    0/    root)   Gid: (    0/    root)
    Access: 2017-01-16 20:40:14.000000000
    Modify: 2017-01-16 20:40:14.000000000
    Change: 2017-01-16 20:40:14.000000000
    
    root@Omega-5BE1:~# ./busybox-mipsel stat busybox-mipsel
      File: busybox-mipsel
      Size: 1498448   	Blocks: 2927       IO Block: 4096   regular file
    Device: 1f06h/7942d	Inode: 1616        Links: 1
    Access: (0755/-rwxr-xr-x)  Uid: (    0/    root)   Gid: (    0/    root)
    Access: 2017-01-28 10:53:11.000000000
    Modify: 2017-01-11 10:38:42.000000000
    Change: 2017-01-28 10:53:31.000000000
    
    

    Happy BusyBoxing! 🙂



  • @György-Farkas Thank you very much



  • hey guys i have sony z1s and i installed busybox pro version 50 and when i run the dspoit shows error killall binary not found kindly help me out



  • @man-hunter said in busybox: applets included isn't listed (resolved):

    hey guys i have sony z1s and i installed busybox pro version 50 and when i run the dspoit shows error killall binary not found kindly help me out

    Sorry asking, what has your Sony z1s to do with the onion omega1/2 or2+ ?
    Are you in the correct community? Or did I miss out something 😧



  • @György-Farkas said in busybox: applets included isn't listed (resolved):

    Here you are a quick help if you really can't live without a full featured BB

     cd ~
     wget https://www.busybox.net/downloads/binaries/1.26.2-defconfig-multiarch/busybox-mipsel
     ls -l
     chmod +x busybox-mipsel
     ls -l
     ./busybox-mipsel
    

    As @Dennis-German i also had this incomplete busybox installation with the message busybox: applet not found

    I replaced /bin/busybox with the -mipsel one and made:
    busybox --install [-s] [/bin]

    Now i have peace and a full working BB.

    @Dennis-German i guess onion.io made this lousy images on a Friday night or Monday morning early 😉



  • @Dennis-German said in busybox: applets included isn't listed (resolved):

    busybox: applet not found
    It would be great if it did.
    
    • Coming back 2 this question ...
    1. why do we have now to fiddle around with Busybox before we can use it?

    I would say in the Firmware it misses the command help and install ... then we probably could fix it ?!

    Or does this come fom LEDE already this way?


Log in to reply
 

Looks like your connection to Community was lost, please wait while we try to reconnect.