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
0answers
19 views

Check Internet speed in router BusyBox

I have a Huaweii router running Linux version 4.1.17, it has a BusyBox v1.24.2 and the arch for this router is MIPS32. From my Ubuntu 16.04 LTS connected to the router by ethernet cable, I ssh to ...
0
votes
0answers
55 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
49 views

Multiple servers for Busybox syslogd

Is there a way to use multiple servers when using busybox syslogd ? I saw the option -R allowing to specify a server but it says nothing about mulitple servers. However, in syslogd source code, I ...
0
votes
0answers
138 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
38 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
254 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
80 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
40 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
366 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
434 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 ...
0
votes
1answer
1k 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
913 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
496 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
1answer
581 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
1k 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
519 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
493 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
126 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
105 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
556 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/...
4
votes
1answer
10k 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 ...
20
votes
4answers
15k 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
513 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
56 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
119 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
1k 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
2k views

Installing sshd on an existing BusyBox installation? [closed]

Is it possible to install sshd on a running BusyBox-based router?
0
votes
1answer
377 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
633 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
184 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
48 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
145 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
8k 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 ...
2
votes
1answer
8k 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
722 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
12k 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
5k 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
4k 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
4k 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
7k 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: ...
0
votes
1answer
1k views

Time problems on my Synology NAS 1511 running Busybox linux

I'm running a MS windows, using Netbeans 7. I occasionally get a problem when I hit save, "This file was modified externally, are you sure you want to overwrite" Further investigation has led me to ...
0
votes
1answer
2k views

Need to edit boot.lst from busybox

I have just managed to break my Debian install. I was having problems with a kernel update, and had to edit menu.lst to get it to install. I have managed to typo and set the boot device to /dev/...
17
votes
2answers
18k views

What's the Busybox default shell?

My guess is this defaults to Bash, but would like to know for sure. Thanks.
10
votes
3answers
13k views

Busybox, netstat, no -p

I have an ultra old (don't ask why) BusyBox (BusyBox v1.01 (2008.12.19-21:31+0000) Built-in shell (ash)) on my DreamBox. I would like to find out which process opened which connection using netstat. ...
3
votes
1answer
860 views

Ubuntu Server - Power failure leads to boot failure

I have installed Ubuntu Server 10.04.1 LTS on an ext4 partition. Whenever my system looses power suddenly, It doesn't boot into the normal procedure to fix the problems automatically, but switches to ...
0
votes
2answers
445 views

Named pipe with shell command date

I want to let a standard user change the system date. So I created a named pipe. The standard user write a date to the named pipe and a root process listens to it and sets the date accordingly: (...