People who code: we want your input. Take the Survey

Questions tagged [busybox]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
52 views

Getting logger to log to rsyslog in alpine

I installed rsyslog on my Alpine-based system to replace busybox syslogd. After completely disabling syslogd in openrc, enabling ryslog at boot and rebooting, all services correctly started logging to ...
0
votes
0answers
29 views

How to wipe my hard drive on busybox? Messed up trying to install galliumOS with unetBootIn,

So, I am using my school computer to make my flash drive bootable so I can install galliumOS on my personal computer which is a chromebook. I used unetBootIn to make my flash drive live and it ended ...
0
votes
0answers
53 views

Kernel Panic: How to solve the linux kernel panic for unable to mount root fs on unknown-block(0,0)?

How to solve the linux kernel panic for unable to mount root fs on unknown-block(0,0)? Here is the debug info(sorry for no embed image cause i have no enough reputations): My plan is this: build a ...
0
votes
0answers
14 views

BusyBox get rid of debug messages on serial port of Netgear R7000

Firmware version V1.0.11.106_10.2.100 BusyBox v1.7.2 Old telnet enabling tools no longer work because of the latest firmware upgrade to my Netgear R7000 router. I can gain console access through the ...
1
vote
0answers
46 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
1answer
56 views

Let ash pick up /home/user/.profile when invoked as non-interactive shell

I have an Alpine-based container that offers sshd for an account user. The container's /home/user/.ssh/authorized_keys invokes a specific command: command="ash -lc /usr/local/bin/command.sh" ...
0
votes
0answers
391 views

Possibly broken WAN port: how to verify and how to work around?

Is it possible surely if the WAN port is dead or not? The green LED blinking is inconsistent and happens while connection and some time after, for me it looks like working. The context: when I ...
0
votes
0answers
12 views

linux crash while booting up with journal errors

Hi I was using parrot os for 2 months and I was using an external hard drive to boot to my parrot ; In a lot of cases my external HDD gets disconnected because of me removing the usb plug-in by ...
0
votes
2answers
42 views

unable to boot due to moved root directory

I'm currently running ParrotOS in VMWare Workstations 15 Player. Running uname -r returns 5.5.0-1parrot1-amd64. I was testing some py code that managed files in a subDirectory under ~/Downloads/htb/...
0
votes
2answers
42 views

Oldest file in directory tree matching pattern

I'm looking for a good portable way of finding the oldest file in a directory tree matching a pattern, explicitly without using find's -printf option. So far I found this solution: https://superuser....
0
votes
2answers
47 views

View long output in initramfs busybox shell

My Ubuntu is dropping to an initramfs shell on boot. I'm trying to diagnose the problem but some of the commands are producing results that flow out the top of the screen. I tried less but that's not ...
0
votes
1answer
142 views

loop through a list without array in shell

I'm trying to write a short shell script to loop through a list (given by a certain command I run) line by line and push values to CSV file a list for example: aaa bbb ccc ddd eee fff jjj ...
1
vote
1answer
1k views

shell script loop through list line by line

I'm trying to write a short shell script to loop through a list (given by a certain command I run) line by line and push values to CSV file list for example: aaa bbb ccc ddd eee fff jjj ...
0
votes
2answers
423 views

“Access Denied” as root

I have connected to my wireless router via telnet as root. It runs on linux kernel and has busybox. / # cat /proc/version Linux version 3.4.110 (root@A23176683) (gcc version 4.7.2 (Buildroot 2013.02) ...
0
votes
1answer
332 views

Installing tarballs on Busybox

I want to preface this with I am new to Linux. I am trying to install some libraries (and a program that depends on them) on an embedded Linux server running Busybox v1.20.2. I am not able to run ./...
1
vote
1answer
70 views

Allowing internet access overt ppp0 from eth2

So i'm trying to set up access over a hotspot to internet via a ppp0 interface (similar to a 4g dongle). I've setup the default route with highest priority (Metric 1) for ppp0. Set all iptable ...
1
vote
0answers
811 views

how to update Busybox commands by modifying /lib and /bin directly?

I am developing on a router from Advantech that has manufacturer's firmware built with BusyBox and LTIB. It's built with bare minimum commands, and I want to extend the commands to meet some needs. ...
0
votes
1answer
90 views

terminal freeze after reboot command

In my customized embedded linux kernel 4.x.x, when reboot command(implemented in busy box) is given, it freezes the console/terminal and hangs. however linux is still accessible from other terminals. ...
0
votes
1answer
2k views

How to Add Something Extra to a Busybox System?

So suppose that I have Busybox installed on an embedded device (e.g a router) and need to add something extra to it (a package). Now suppose that now I need to install a package to it besides using ...
0
votes
1answer
43 views

Truncate short day names in variable

I have a variable with short day names, it can be in any order, with less or more week days, always comma separated like this: days='Tue,Wed,Thu,Fri,Sat,Sun' How can I cut the last letter from each ...
0
votes
0answers
2k views

Enable telnet and telnetd services on Busybox

In order to enable Telnet on Busybox, should be enabled both telnet client and telnetd server services?
1
vote
0answers
201 views

Yocto Build Error

I am building images(yocto,bitbake,busybox) for two differnt karo SOM's. Both of the configuration files are the same (including my own software) One build fails during the QA portion of the build ...
0
votes
1answer
160 views

Bash scripting: how to iterate through all drives?

I have buildroot readonly bootable image, which is normally loaded via TFTP in PXE enviroment. Filesystem in unpacked into ram and remounted as rw. And accidentally I wished to boot it from a USB ...
0
votes
1answer
37 views

No file sourced in non-login shells

In login shells, no problem : /etc/profile and ~/.profile are sourced. But in non-login shells (xterm in XOrg), they aren't. The $HOME variable isn't even set. I'm using Fluxbox and the Bourne shell (...
0
votes
1answer
308 views

Boot automatically into Debian instead of busybox/initrd?

I'm using an old TS-7500 (https://www.embeddedarm.com/products/TS-7500) rugged platform for a home automation project (it was a freebie from my college) and I want to get the platform to boot into the ...
0
votes
1answer
647 views

Extract line from file in .tar.bz2 Archive

I'd like to use stdin/stdout on a single line to display the version from a file within a .tar.bz2 archive without affecting the existing archive or leaving any temporary files behind. The file only ...
0
votes
1answer
264 views

Busybox filter string list

Consider I have a list like this: list='item1.service item2.service item3.target item4.service' I need to filter this list to get something as: item1 item2 item4 So, there are two things to notice:...
0
votes
1answer
756 views

Busybox Recursive Non-Overwriting File Copy?

How do I do a recursive file copy to copy any missing files without overwriting? (Busybox cp has no -n option and no rsync.) The line below would be fine if the overwrite n response was automatically ...
-1
votes
1answer
425 views

Parsing JSON with BusyBox tools

I have a POSIX-compatible install script which determines the latest version of some software by grepping info from a json blob retrieved from a software registry: meta=$(wget -qO - https://registry....
0
votes
1answer
408 views

Instal and setup IKEv2/IPsec on WD PR4100

I have a WD PR4100 NAS and would like to set up a IKEv2/IPsec VPN tunnel. Currently, I am using OpenVPN as it is installed. I believe the system is BusyBox based. Any suggestions on how to install ...
4
votes
6answers
13k views

moving files and folders to a subfolder

I would like to move all files and folder from one directory to one of its subfolders. How do I do that? I am using BusyBox and linux. ex: move all files and folder in /my/path/ to /my/path/...
1
vote
0answers
458 views

How to configure a listening-only NTP client?

I'm creating an advertisement display, based on RaspberryPi (no real time clock present) and piCore, which is busybox-based tinycorelinux. It will be behind a firewall, and even within its own network ...
0
votes
0answers
265 views

Do scripts 'block' when executed from rcS?

I'm using Busybox (ash), which at startup runs rcS, which in turn executes, in numerical order, all the S?? scripts in /etc/init.d Does this script wait for completion before execution the next? Or ...
1
vote
1answer
341 views

IF block statement in inside an execlineb script

I have a Docker Container based on Alpine which runs S6 Overlay to manage two services inside it (a music DB, and a web interface to manage it). The problem is that the second service is optional, and ...
0
votes
0answers
3k views

Implement a reverse shell on busybox?

Scenario: You telnet in, you double tab and find these are the available commands. IPv6-relay ipaddr preinit acl_logd iplink ps acos_init ...
0
votes
1answer
741 views

BUSYBOX: How do I check if I have a 32 or a 64 architecture?

I am on a Busybox and uname –a results: Linux 3.14.28-1.12 #1 SMP Thu Jun 15 08:53:06 CEST 2017 armv7l GNU/Linux. Is this a 32 bit architecture or how can I check it?
2
votes
0answers
229 views

Determine if a user exists on ESXi (Busybox)

I'm writing a shell script in which I need to check if a given user exists. On most Linux systems, I can use: id -u ${USER} 2>&1 || die "User ${USER} not found" or getent passwd ${USER} 2>...
2
votes
0answers
2k views

PPP: Modem hangup on IPCP negotiation

First of all, sorry for the question if it is obvious, I'm not very good at network configuration. I'm currently trying to connect a Linux machine with Busybox through a modem to a cellular network (...
1
vote
0answers
1k views

busybox' udhcpc can not be killed

On an linux device using busybox I use the following /etc/network/interfaces ... # Wired interface eth0 is using dhcp, enabled while system start auto eth0 iface eth0 inet dhcp pre-up [ -n "$(cat ...
0
votes
1answer
430 views

ubuntu boots into busybox tried one of the following but didn't work

right before it boots into busybox i caught this error error: failure reading sector 0xbffc from hd0 I tried one of your suggestions i typed root=/dev/sda1 but it still boots into busybox I tried ...
0
votes
2answers
994 views

How do I use find and execute a command for each file in Bash shell?

I tried the following, which normally works in Bash: root@nycmesh-eb94:/etc# find . -exec grep eth0 {}\; find: -exec requires an argument root@nycmesh-eb94:/etc# find . -exec 'grep eth0 {};' find: -...
0
votes
0answers
116 views

Linux BusyBox files

Do someone know which is the file (and where is it located) that is executed when BusyBox is turned on ? Also, which is the file (and again, where is it located) that is executed when you connect to ...
0
votes
0answers
102 views

Linux/BusyBox multimedia Server

I bought an EMTEC Movie Cube Q8000 some years ago. Now it has no use, and I have recently realize I can use it as multimedia server. It is a Linux/BusyBox system. I changed a file so now the NAS mode ...
1
vote
0answers
160 views

Debugging inetd issue on BusyBox

I'm having issues with connecting via FTP to an embedded ARM system running BusyBox on Linux 2.6. When I try to initiate a session, inetd correctly spawns a ftpd process, but it does not respond to ...
1
vote
1answer
725 views

How to grep literal match in list of domains

I have a hosts file full of hosts, like so: 127.0.0.1 home-domain.net 127.0.0.1 here.home-domain.net 127.0.0.1 home-domain.netn 127.0.0.1 home.domain.net 127.0.0.1 home.domain.net.some In an ash ...
0
votes
3answers
242 views

Why does less +F say “can't open '+F'”?

I just read about the advantages of using less +F over tail -f and wanted to try it out. When I do I get the following: less +F /log/nginx_error.log less: can't open '+F': No such file or directory ...
4
votes
0answers
402 views

BusyBox Tar shows different ownership than GNU Tar

UPDATE: I discovered that I could view/extract with the original permissions using the "--numeric-owner" flag on GNU Tar. However, I'd still like to understand exactly what tar is doing here, as it's ...
0
votes
2answers
180 views

How to test for active options in ash shell?

In bash, it is possible to check for active option with -o: such as [ -o nounset ] && echo "Option -u active" But (d)ash (the shell included in busybox) does not seem to recognize -o in ...
1
vote
3answers
7k views

what is default username and passoword for busybox's ftpd [closed]

I am trying to ftp into my android device which is running ftpd server of busybox's multi-binary, As the ftpd applet quotes "Anonymous ftp server" but when I use anonymous as username and my email ...
2
votes
1answer
3k views

Set up git on busybox

I want to set up git on busybox. But I can't find any instructions on doing so. I found this previous question but the link is dead. What are the basic steps?