Questions tagged [busybox]

The tag has no usage guidance.

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

Why does busybox ping expect root?

Why does busybox ping expect root? $ ping dec.com -c1 PING dec.com (216.239.32.21) 56(84) bytes of data. 64 bytes from any-in-2015.1e100.net (216.239.32.21): icmp_seq=1 ttl=119 time=54.9 ms --- dec....
user avatar
0 votes
0 answers
36 views

Linux System goes back to vendor's default config after reboot

I hope everyone is 0k. I have embraced Linux systems for around 3-4 years now, I am not what you called an expert nor a rookie. Anyway, I have a NAS device running BusyBox v1.20.2 - Linux version 3.2....
user avatar
0 votes
2 answers
111 views

How to remove Busybox after uninstalling Linux

After trying out linux for a week, I decided to switch back to Windows because of the apps I use daily. Yesterday I decided to completely reinstall windows for whatever reason, and I noticed the linux ...
user avatar
0 votes
0 answers
141 views

How can I make dropbear-initramfs restart when the network is back up?

I use dropbear to remotely unlock my Luks encrypted bootup disk via SSH. Unfortunately, if the network is down before dropbear starts or goes down whilst running, dropbear becomes unreachable. I would ...
user avatar
0 votes
1 answer
2k 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 ...
user avatar
0 votes
0 answers
94 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 ...
user avatar
1 vote
0 answers
61 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 ...
user avatar
  • 11
0 votes
1 answer
155 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" ...
user avatar
  • 135
0 votes
0 answers
874 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 ...
user avatar
  • 1,272
0 votes
2 answers
113 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/...
user avatar
0 votes
2 answers
273 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....
user avatar
  • 1
0 votes
2 answers
157 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 ...
user avatar
0 votes
1 answer
286 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 ...
user avatar
1 vote
1 answer
2k 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 ...
user avatar
0 votes
2 answers
760 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) ...
user avatar
  • 11
1 vote
1 answer
553 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 ./...
user avatar
1 vote
1 answer
126 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 ...
user avatar
  • 11
1 vote
0 answers
1k 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. ...
user avatar
  • 11
0 votes
1 answer
173 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. ...
user avatar
  • 1
0 votes
1 answer
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 ...
user avatar
  • 176
0 votes
1 answer
46 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 ...
user avatar
0 votes
0 answers
3k 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?
user avatar
  • 351
1 vote
0 answers
286 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 ...
user avatar
  • 111
0 votes
1 answer
325 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 ...
user avatar
  • 329
0 votes
1 answer
58 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 (...
user avatar
  • 151
0 votes
1 answer
339 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 ...
user avatar
0 votes
1 answer
769 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 ...
user avatar
  • 175
0 votes
1 answer
332 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:...
user avatar
  • 177
1 vote
1 answer
1k 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 ...
user avatar
  • 175
-1 votes
1 answer
545 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....
user avatar
  • 256
0 votes
1 answer
467 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 ...
user avatar
  • 51
4 votes
6 answers
21k 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/...
user avatar
  • 219
1 vote
0 answers
523 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 ...
user avatar
  • 133
0 votes
0 answers
337 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 ...
user avatar
  • 111
1 vote
1 answer
458 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 ...
user avatar
0 votes
0 answers
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 ...
user avatar
  • 111
0 votes
1 answer
941 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?
user avatar
  • 779
2 votes
1 answer
275 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>...
user avatar
  • 302
2 votes
0 answers
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 (...
user avatar
1 vote
0 answers
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 ...
user avatar
0 votes
1 answer
455 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 ...
user avatar
  • 1
0 votes
2 answers
1k 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: -...
user avatar
  • 5,426
0 votes
0 answers
118 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 ...
user avatar
  • 15
0 votes
0 answers
109 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 ...
user avatar
  • 15
1 vote
0 answers
186 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 ...
user avatar
1 vote
1 answer
851 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 ...
user avatar
0 votes
3 answers
311 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 ...
user avatar
4 votes
0 answers
501 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 ...
user avatar
  • 161
0 votes
2 answers
216 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 ...
user avatar
  • 189
1 vote
3 answers
9k 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 ...
user avatar