Questions tagged [busybox]

BusyBox combines tiny versions of many common UNIX utilities into a single small executable.

Filter by
Sorted by
Tagged with
1
vote
1answer
2k views

Monitor Busy Box NTPD in Tiny Core Linux

I use Busy Box with Tiny Core Linux in a virtual appliance. I can run NTP Daemon using /usr/sbin/ntpd -p pool.ntp.org The problem is it doesn't output any logs to /var/log/ntp.log. Am I looking at ...
2
votes
1answer
3k views

busybox shell script - unknown operand error message

I need to write a small shell script that will execute a python script and get the results. When I try to run it this way it works: #!/bin/sh /usr/bin/python /etc/scripts/backup.py result=$? if [ $...
2
votes
1answer
442 views

How to enable busybox httpd on Alpine linux image

When trying to run busybox httpd in alpine:latest image it ends with error httpd: applet not found How can I install httpd applet into Alpine image?
0
votes
0answers
167 views

Use uClibc for single package

I'm having some issues using busybox and dns lookups. I found a claim that this a glibc problem. I'm on gentoo. I would like to compile busybox against uClibc, without replacing glibc on the system. ...
0
votes
0answers
227 views

busybox dmesg old timestamp format

I'm working on an arm board running an old kernel(3.14.29) I trying to to get the dmesg output and pass it to the bootgraph.pl to generate an SVG of kernel boot sequence. However after passing the ...
1
vote
1answer
737 views

How to set up syslog to log to both file && buffer

I'm using an embedded Linux OS which was built using yocto. I'm trying to alter busybox syslogd in order to have it output to both a file & buffer. so I can use logread -f as well as have the ...
0
votes
1answer
800 views

Do math arithmetic on busybox sh

I have string variables MIN and SEC (minute and seconds): MIN="1" SEC="34" I want to do calculations on these: TOTSEC = MIN*60 + SEC I tried: expr $SEC + $MIN * 60 Result: expr: non-numeric ...
0
votes
1answer
61 views

Benchmark a USB host transfer speed with Busybox

I want to benchmark a USB host on my custom machine. It has Busybox V1.20.2. From google, I see that it can be done using dd command. For testing, i copy blender.exe (76MB) to the home folder in ...
0
votes
2answers
200 views

How can I expand a list of letters/numbers in ash?

In busybox, the default shell is ash, so some familiar tricks in bash are not available. One thing I would like to do is expand a list of letters, like {a..z}, which would expand to a b c d e f g h i ...
1
vote
0answers
217 views

NFS Shares on an unmounted file system

I am trying to run a file system check. First, I want to unmount the device. umount /dev/md2 umount: /dev/md2: not mounted Seems good. Then, I want to run the check: e2fsck -fp -C 0 /dev/md2 /dev/...
1
vote
1answer
179 views

watch netcat transfer dump from android to pc

how can i monitor netcat transferring from android to my linux machine i used this command on android device ( sender ) to make a full dump for my device : dd if=/dev/block/mmcblk0 | busybox nc -...
1
vote
1answer
2k views

How to Autorun a program using busybox after boot?

I am using an embedded linux with busybox. I would like to automatically run my app called "myApplication" (runlevel 5 after boot all the services are up). What I have done so far: I made a script ...
2
votes
1answer
741 views

bash script: capturing tcp traffic on a remote server sometimes works, sometimes fails. No errors

Background I am running BusyBox in the remote server. I have a bash script that does two things: 1. via ssh, starts a sub process to monitor tcp traffic using tcpdump command. Save results to a ...
7
votes
1answer
597 views

How can I convert a date with a named month to a unix timestamp with only Busybox tools?

I'm working in an environment where I pretty much only have access to busybox tools, and trying to convert a date in the format Mon Jan 1 23:59:59 2018 GMT to a unix timestamp, in a shell script. I ...
1
vote
0answers
826 views

.ash_history file is not created

I am using a login session in my ash machine. My problem is, when executing history command in ash shell, it returns 0. This is because the .ash_history is not created. I tried to triage the issue by ...
1
vote
0answers
273 views

Embedded Linux TTY font change

I'm using Linux kernel + Busybox on an embedded system with a video console (fbcon) on LCD. I'd like to be able to change between compiled-in fonts (e.g. VGA 8x8, MINI4x6) on runtime. I know it's ...
1
vote
1answer
449 views

how to move cursor left and right in default shell

my router runs asuswrt merlin. the /bin/sh is packaged in BusyBox v1.25.1 (2017-12-02 00:49:46 EST) multi-call binary. my question is how do I move my cursor one word left and right? with bash, i ...
0
votes
1answer
2k views

File system check of the root filesystem failed, manual fsck can not fix [closed]

Linux Mint 18 on SDD with LVM ext4 Booting in recovery mode shows: ata3.00: status: { DRDY DF ERR } ata3.00: error: { ABRT } ata3.00: configured for UDMA/100 sd 2:0:0:0: [sdb] tag#0 FAILED Result: ...
6
votes
2answers
10k views

Package manager for Busybox

Is there a package manager for busybox devices? After all Busybox utilities are quite restricted. I suppose one would have to compile it for specific device. Since I am asking on Unix/Linux exchange ...
1
vote
1answer
123 views

Buildroot use classic GNU package instead of BusyBox one

I'm wondering how to use the "classic" GNU tools instead of BusyBox ones for a specific command. The command I want to act like on a classic Linux is mount, but I think it's the same for every ...
1
vote
1answer
102 views

How to get Device Status Report on Busybox?;

I'm trying to get DSR on busybox (to get terminal size), but echo '\x1b[6n' does not report anything, it outputs \x1b[6n.
3
votes
1answer
3k views

busybox and nfs mounts

As part of a startup a rescuecd uses busybox to mount a nfs share with data, but during the nfs share mount, busybox (version v1.18.2 from systemrescuecd) always fails to mount the nfs share. And i do ...
1
vote
1answer
119 views

Better way to retrieve n-th (index) positional parameter value in `ash` then `eval echo \$$n`?

I'd wish the user to select a file from a numbered list on screen in a mkinitcpio busybox ash environment. The list needs to be filled/sorted from top to bottom and printed in columns, like: 1) 2017-...
0
votes
1answer
310 views

Since which version does busybox ash built with ASH_BASH_COMPAT include array support?

March 12th, 2009 Denys Vlasenko wrote: Plans to implement it — BASH like array support — eventually for ASH_BASH_COMPAT, yes. Need to have enough free time for that. (volunteers ...
1
vote
1answer
298 views

How to make mkinitcpio busybox ash to source /etc/profile?

Arch Linux /usr/lib/initcpio/busybox is owned by package mkinitcpio-busybox 1.27.2-1 and is configured low on features, for example CONFIG_FEATURE_USE_INITTAB is not set. In a custom initramfs, ...
4
votes
1answer
180 views

Clone a block device using 'cat'

I am able to telnet into a router that's running a customized linux firmware. It was compiled using 'buildroot'. I was able to dig out some specs of the router. I intend to clone the router's ...
1
vote
1answer
442 views

busysbox reboot doesn't work from init script

We have Beaglebone black based custom board with 256MB RAM and 4GB eMMC. We upgraded from Linux-3.12 to Linux-4.4 and busybox-1.20.2 to busybox-1.26.2. Now in busybox-1.26.2 we are seeing and issue ...
1
vote
1answer
537 views

Unable to boot into Zorin OS - ending in BusyBox

I'm running Zorin OS 12.2 (downloaded and installed in September 27th this year) on a Dell XPS 13. I installed Zorin instead of the pre-installed Windows 10 (I'm aware that Dell XPS ships with Ubuntu ...
0
votes
0answers
363 views

Can't close luks volume on android (device busy)

I'm trying to use luks on my phone (android 4.2.2). I can create luks volume, mount and unmount it without problem, but when i'm trying to luksClose it here the problem start ..(in fact i can close ...
1
vote
0answers
578 views

Ubuntu 16.04 booted to BusyBox, fsck repaired, now sudoers.so file has no contents

Upon bootup, my Ubuntu 16.04 system booted to busybox (initramfs). I ran fsck on the boot drive, found and resolved errors. The system now boots fine, but I am unable to do anything as sudo. I get the ...
0
votes
1answer
369 views

df from busybox shows different number of inodes than that of tune2fs

we have Beaglebone black based custom board, we have busybox shell including coreutils. busybox version is BusyBox v1.20.2 (2017-10-16 16:39:36 EDT) now we wanted to check the inode usage in each ...
0
votes
1answer
548 views

Problem with rebooting Linux Mint 18 Cinnamon 32-bit

I was browsing on FireFox in Linux mint 18 cinnamon and I couldn't log in my google account, so I closed the browser, but after I tried to turn it back on, it showed me a notification: "Firefox is ...
3
votes
1answer
4k views

adduser, addgroup “group in use”

I'm trying to create a System-Wide PulseAudio daemon (I am aware of the security problems associated with that). However, I'm getting an access-denied error when playing through the PulseAudio daemnon ...
1
vote
1answer
618 views

Buildroot busybox limited command set

I'm using the raspberrypi0_defconfig to create an image for the Raspberry Pi Zero-W. I'm having a number of issues, but the first one I want to address is why my Busybox shell has so little build in ...
3
votes
1answer
231 views

How do I get the type of internal card reader?

I have a Linux box which runs Busybox. There are two card reader build in. How can I get the type of the card readers? I tried lshw, hwinfo and lspci but these commands are not implemented on ...
1
vote
1answer
408 views

busybox regular expression for group of IP addresses

I need to be able to validate a group of IP addresses that will appear in a file that looks like this: IP_SUBNETS=['10.1.111.0','10.2.111.0','10.2.123.0'] I'd like to write a regular expression ...
1
vote
0answers
35 views

Can I debug download/network issues while using a standard ISO with debian-installer?

During the installation of e.g. Ubuntu with the debian-installer, is there any visible (debug) output, where I can see what is downloaded from where? (I have a local mirror configured, but it is so ...
0
votes
1answer
501 views

Busybox - How to build a package for opkg

I know how to build a deb package on Ubuntu with the directory structures, the control files and so on for dpkg. Is it the same for opkg? How can I build a package for opkg? Can I produce the ...
0
votes
1answer
900 views

Fdisk does not match /proc/partitions or mount points (embedded)

I'm working on an existing embedded Linux device and am having trouble editing the partitions using fdisk. My goal is to create a partition for testing purposes on /dev/sda. I am using the fdisk ...
2
votes
0answers
2k views

How to Install and run python and database over busybox

I purchased a a WiFi server terminal which runs Busybox and only comes with a http web implementation which pops up once you connect to the WiFi. I'd like to support for SQL (or some variation) and ...
1
vote
1answer
442 views

How to work with multiple arrays in pure sh?

There is this machine where only sh is available, and cut doesn't have --output-delimiter option but I need to work with arrays, I tried this way, it works on my work machine, but the lack of --output-...
2
votes
2answers
606 views

How can i run a program with modified argv[0] using busybox ash shell?

In bash I would simply use exec -a. How can I do this in busybox? Is it even possible, or will I have to write my own C program to call exec(3) directly?
2
votes
2answers
60 views

Why is my IP address changing every time I flash a new rootfs?

I'm working on a Raspberry Pi 3 system and building my own rootfs using Buildroot. At first, I was using BusyBox as the init system and when configuring the on-board wifi card using wpa_supplicant, ...
3
votes
1answer
2k views

“send-mail: Applet not found” when using mail command on alpine linux

I am using alpine linux running in a docker container to run a webapp. The webapp is supposed to send emails using the mail command from the command line. To support this, I have installed mail as ...
1
vote
1answer
183 views

Add & execute package to Defrag a fragmented Ext3 Volume under BusyBox in Synology CS407? How?

Add & execute package to Defrag a fragmented Ext3 Volume under BusyBox in Synology CS407? How? Note: Debunking the myth of Linux Filesystems not getting fragmented. http://www.webupd8.org/2010/...
2
votes
1answer
2k views

How to set up busybox dpkg android?

Similar problems to https://unix.stackexchange.com/questions/235795/use-dpkg-in-busybox Hi! I was excited to find that dpkg came with newer versions of busybox, so I set to work installing a package. ...
6
votes
3answers
9k views

Converting from binary to hex and back

Given a binary file, how do you convert it to a hex string and back, using only standard tools like sed and cut, on a minimal system with busybox installed? These tools are not available: perl ...
0
votes
1answer
45 views

Getting Git repo onto BusyBox system (StarDot NetCam SC)

The StarDot NetCam SC comes with ucLinux and Busybox. I am struggling to load a Git repository onto the device. No git No SSH so I cannot scp No support for HTTPS so I cannot wget directly from ...
1
vote
0answers
326 views

Using busybox with UBI files system on an MTD flash device, du and df commands give incorrect values

I have mounted a UBIFS on my MTD partition which is 191.9MB in size. When I run mtdinfo -a the partition shows: mtd6 Name: data2fs Type: nor Eraseblock size: 65536 (64KB) Amount of Erase Blocks: ...
-1
votes
1answer
371 views

Although users exist in /etc/passwd, but only one of them able to login

Output from /etc/passwd admin:VyaVORqi23kjg:0:0:Administrator:/:/bin/sh user1:VyaVORqi23kjg:0:0:User1:/:/bin/sh user:VyaVORqi23kjg:0:0:User:/:/bin/sh nobody:p/hyihIrG/5hM:0:0:nobody for ftp:/:/bin/sh ...