Questions tagged [busybox]

BusyBox combines common UNIX utilities into a single, small executable, providing a fairly complete environment for any small or embedded operating system. It supports most of the utilities usually found in GNU fileutils, shellutils, etc. BusyBox commands generally have fewer options than their full-featured GNU cousins; however, the options that are included provide the expected functionality and behave very much like their GNU counterparts.

Filter by
Sorted by
Tagged with
0
votes
1answer
92 views

K8s no dns resolution on all used test images

Hi community and K8s experts, I installed a clean K8s cluster based on virtual machines (Debian 10). After the installation and the integration into my landscape, I repaired in the first step the ...
0
votes
0answers
19 views

How to log debug messages to file with syslogd from BusyBox?

In busybox based environment (BusyBox v1.23.1, a bit old), I run own application logging to syslog. #define SYSLOG_DEBUG(...) syslog(LOG_DEBUG, __VA_ARGS__); #define SYSLOG_INFO(...) syslog(...
0
votes
2answers
96 views

Alpine Linux is not sending hostname to dhcp server

When alpine linux asks for ipv4 address from dhcp server, it is not sending hostname to dhcp server. So I cant access by server's hostname in LAN. Here is my setup I am using Alpine Linux 3.12 on my ...
2
votes
2answers
99 views

ZFS modules suddenly stopped loading - Debian 10

My ZFS modules have mysteriously stopped loading at the point during boot when you would usually unlock the pool with encrypted ZFS on root (Debian 10). It drops into busybox and suggests loading the ...
0
votes
0answers
92 views

mask FQDNs from any command output (for diagnostic)

Very similar to this other request (now resolved): mask public IP addresses from any command output (for diagnostic) I'm looking for a safe masking option to hide FQDNs from command line outputs. The ...
1
vote
1answer
73 views

mask public IP addresses from any command output (for diagnostic)

I'm writing a script to extract information from BusyBox v1.25.1/Linux 2.6.36/router where the user can simply run the script and copy/paste the output into a submission form to request support. The ...
1
vote
1answer
89 views

MMCLI on BusyBox returns "Cannot request manual scan of devices: unsupported' - IMEI

I have a USB modem plugged into a BusyBox v1.23.2 appliance. Typically I would be able to get the IMEI number using the MMCLI command set. However when this specific card (multiple of the same card - ...
0
votes
0answers
26 views

Troubleshooting ipset: multiple ipset identical name created - why?

I have a script that populates ipset automatically with iblocklist, so there's a fair amount of IP going into the ipset. Have been using this for few years now but all of a sudden I notice an issue, ...
0
votes
0answers
66 views

Dual NIC on Busybox: How to set up a global default gateway bound to just one of the NICs?

I have a network appliance based on Busybox (on a Zynq device), and it has two NICs. One network has access to the internet, while the other is private. Both have DHCP, so both are reporting ...
0
votes
0answers
3k views

How to manually setup network connection from Busybox shell (ash)?

An embedded device running Linux version 2.6.26.5, ARM Linux Kernel. Busybox v1.10.2 shell (ash), I'm in Busybox shell. I want to set up connection between embedded device and computer. Is it ...
2
votes
0answers
72 views

No access to router via eth lan port, only accessible over wifi

Router is an old Intento FG101R2 connected via fiber and has 4 Lan ports. After fiddling around and numerous factory resets I no longer have access to router and internet via any of the Eth ports on ...
0
votes
0answers
804 views

can't execute bash script on busybox

I'm new to vmware and I'm tying to execute a script but can't seem to get it to work. I've changed the file permissions a whole bunch and I end up getting either Permission Denied or if I open it up a ...
0
votes
0answers
176 views

console login hangs on “Last login” line

I'm logging in as root to an embedded system running Linux, on the console, as root. After issuing the "Last Login" line, the console hangs. It echoes any characters I type but otherwise I get no ...
0
votes
1answer
45 views

Reroute IP to different IP, but there is a catch

This is not the normal reroute IP through iptables but it is a bit more complicated. I am using a very stripped down version of Busybox. The version has dropbear installed only a few limitations. It ...
0
votes
0answers
796 views

Docker don't allow to install using dpkg command

I am trying to install docker cron package in running prometheus docker container. I downloaded cron package but somehow it is not allowing me do that. I downloaded cron package using wget command. ...
3
votes
2answers
678 views

ESXi 6.5 NFS41 always mounts as Read-Only

I'm trying to mount my NFS41 share from my Freenas box onto ESXi for backup purposes. However, it always mounts as read-only for some reason. I have tried from the GUI as well as the CLI with no ...
3
votes
1answer
3k views

How to set header with busybox httpd

I am running busybox httpd with following command: busybox httpd -p 80 -h /var/www It works, however I need to set cache-control header to no cache. Currently my server append only these headers: ...
1
vote
1answer
2k views

Start udhcpd (busybox) with Systemd?

I'd like to start the busybox udhcpd service using systemd. I have a simple /etc/udhcpd.conf file: start 192.168.8.20 #default: 192.168.0.20 end 192.168.8.254 #default: ...
2
votes
2answers
718 views

Static route in initramfs

My hosting provider unfortunately requires the use of static routes for network configuration (gateway is on a different subnet than the host IP). For that purpose I added the following lines to the ...
1
vote
2answers
1k views

Is it possible to check NTPd status on a Busybox system?

I need to know if current date/time is reliable in a small embedded Linux system Busybox-based. I have Busybox ntpd running, but apparently there is no program to to query status. On a more ...
0
votes
1answer
2k views

Running Node.js on Docker Busybox

I'm trying to build a minimal node.js docker image. I have compiled node on my Debian system, it installs/works well. Correct me if I'm wrong, to my understanding it should be enough of copying node....
2
votes
1answer
699 views

Difference between busybox system vs non-system users/groups?

Regarding adduser -S and addgroup -S described at https://busybox.net/downloads/BusyBox.html What is the difference between creating a 'system user' and a non-system user? I cannot find additional ...
0
votes
1answer
623 views

forword wan ip:port to external ip2:port2

I have router based on linux (BusyBox). I can login to terminal by telnet. I want to forward wan port to ip_external:port for example: my wan ip (on my router):77.30.109.251 my wan port (on my ...
0
votes
1answer
154 views

Use deadline I/O Scheduler on BusyBox v1.16.1

Does anyone know how to add / make available the deadline I/O schedulers on BusyBox v1.16.1 ? The only two I see when I run "cat/sys/block/sda/queue/scheduler" is as follows: [noop] cfq My ...
1
vote
1answer
108 views

create data container from another docker image

I have a docker image that is about 900MB it has a directory /data where all the data i want are in and also a /data/.git directory that i will like to exclude. I will like to create a data container(...
0
votes
1answer
670 views

busybox: watchdog - logging

I'm trying to debug a reboot of an embedded device and suspect watchdog might be involved but cannot find any logs. I also cannot find the watchdog.conf anywhere. The device is available at /dev/...
5
votes
1answer
13k views

How do I use busybox and ftpd to get access to my embedded system

I have an embedded system which has busybox support. I am trying to run an FTP server so I can edit the files and upload data to my embedded system. However when I run busybox ftpd -w / It tells me ...
24
votes
4answers
20k views

What is NTP dispersion and how do I control it?

We roll out Ubuntu 14.04 servers on isolated networks, running ntpd 4.2.6p5, configured to use multiple NTP servers as provided by customers (no access to pool.ntp.org). Our dumb terminal client ...
2
votes
1answer
604 views

What do angle brackets (“less than”) mean in busybox 'top' command process STAT column?

I am looking at Busybox top command: Mem: 39444K used, 4404K free, 0K shrd, 0K buff, 24704K cached CPU: 4% usr 7% sys 0% nic 87% idle 0% io 0% irq 0% sirq Load average: 0.02 0.12 0.10 1/...
0
votes
1answer
63 views

Network interface fails to come up under heavy traffic

We're investigating an issue with our kit, which is an IP camera running Busybox Linux on a Ti-Davinci SoC. On one particular site there is a lot of network traffic (over which we do not have control)...
-3
votes
1answer
125 views

Redirect all websites to a single webpage using iptables

I have a router which runs busybox, it has iptables so i wanted to redirect all webpages clients request to a single webpage. I cant use hosts file because the /etc folder is mounted as read-only. Is ...
0
votes
2answers
2k views

Changed /bin/sh to /bin/busybox for root, broke SSH access. How to fix it?

I made a silly mistake... I was playing around with busybox and used chsh to switch the root shell from /bin/sh to /bin/busybox which seems to have broken the SSH access. When I do: root@dev:~$ ssh ...
0
votes
1answer
3k views

Installing sshd on an existing BusyBox installation? [closed]

Is it possible to install sshd on a running BusyBox-based router?
0
votes
1answer
421 views

How to lock file from system changes using BusyBox (on a Synology NAS)

I have a specific file that an app is randomly changing and that I need to be immutable. I.e. stop the system from rewriting the file. Considering that the NAS has BusyBox for ssh access, how can I ...
0
votes
1answer
715 views

How to set locale for schedule task in Synology BusyBox?

I am trying to set up a schedule task to download some files from YouTube. The download script works well when I am ssh'ing as a user. However, the download filenames are wrong when started by the ...
0
votes
0answers
201 views

EC2 Booting an EBS-backed AMI instance gives a kernel panic

TLDR: I'm trying to create an EBS-backed AMI instance and then pivot to it using Busybox but I get a kernel panic: VFS: Mounted root (ext3 filesystem) readonly. Freeing unused kernel memory: 156k ...
-1
votes
1answer
50 views

Expand linux memory to disk [closed]

I know you can create RAM Disks but is there a way to turn disk space from say a USB drive to RAM? I have a small router based device with SSH and I would like to install a side app on it. The ...
0
votes
0answers
167 views

switch_root not included in initramfs image

After upgrading the kernel via yum to the latest version the initramfs image file is missing the switch_root binary from the /sbin/ folder. This causes the machine to not boot, from this kernel. ...
2
votes
1answer
4k views

Does exist a curl equivalent command in routeros?

Just starting with routeros and after searching the official docs just fetch appears I need to do a POST request to REST API but I cannot find any curl like command. Is it possible to install curl ...
0
votes
0answers
3k views

transparent proxy with squid3 dansguardian iptables and one nic

I am attempting to filter my home internet connection through transparent proxy (squid3) and dansguardian . I have the following setup: http://i.stack.imgur.com/5Z3DP.png My Ubuntu Server is ...
1
vote
2answers
11k views

Wget on busybox v1.9.1

I have busybox 1.9.1 runing in huawei router. There is few commands, one of them wget and I want to use it, but there is some strange syntax. When I type wget www.google.com like I do normaly on my ...
3
votes
1answer
9k views

How to monitor CPU usage on a device running embedded Linux and BusyBox?

I recently began working with a device that uses embedded Linux and BusyBox. It is very stripped down, and does not have iostat or sar. It also doesn't have dpkg or apt for package management. The ...
1
vote
1answer
793 views

How to shutdown ESXi 5 in N minutes

On the VmWare commandline, I can shutdown the box using the halt command ~ # halt --help BusyBox v1.9.1-VMware-visor-6030 (2011-02-15 14:57:41 PST) multi-call binary Usage: halt [-d delay] [-n] [-f] ...
1
vote
1answer
14k views

How to install apt-get on a busybox embedded system?

My embedded system is for sh4 CPU. The debian distribution may get on http://www.si-linux.co.jp/pub/debian-sh/lenny-sh4/ I get the apt*.deb and extract the data.tar.gz. After setup the /etc/apt/...
2
votes
2answers
6k views

How to use dpkg of busybox

I'm trying to install pkg in a limited space embedded system. I use busybox's dpkg. To let dpkg work, I just touch a file touch /var/lib/dpkg/status ...
0
votes
3answers
2k views

Chroot on startup

I have a script that runs on startup, but it wont launch a application in chroot. #!/bin/sh /usr/sbin/chroot /root/chrootdir/ /bin/sh -c "lighttpd -f /etc/lighttpd.conf -m /lib" echo "script ...
1
vote
1answer
5k views

how to sync/flush after fdisk in linux (busybox)

when I change the partition table in Linux (busybox) and exit fdisk I'm still able to mount the old partitions, until I perform a reboot for example a) system is setup and has a /dev/sda1 and /...
0
votes
1answer
5k views

Telnet does not give a response

Some wireless access points are acting a little weird, so I want to reboot them every couple of hours. Luckily there exists a security flaw which lets me login as root through telnet when using port ...
2
votes
2answers
8k views

Busybox-like binaries which ext3 and ext4 support?

We're building a tool right now which includes booting a tiny Linux environment via PXE, and having it perform a number of system configuration operations without loading a larger system. (Formatting ...
0
votes
3answers
3k views

stat command filesize reporting on busybox

I'm trying to write a shell script in busybox to check the filesize of a file. Having read that stat is more reliable then ls, I decided to use that, but somehow when using the following command: ...