Questions tagged [busybox]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
6 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
0answers
27 views

“UBL Mode” in u-boot/busybox kills firmware update script for Cisco PrecisionHD webcam

On GNU/Linux (Debian Buster), upgrading firmware of Cisco (Tandberg?) PrecisionHD USB Webcam from current version 1.4 (confirmed by checking shutter screen) to latest 1.5, using the .sh script ...
0
votes
1answer
63 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 ...
0
votes
1answer
109 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
1answer
96 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
0answers
6 views

Ubunutu 16.04 boot stop showing busybox error

I have Ubuntu 16.04 PC with some application running and connected to internet at remote location, and few days before internet goes offline and pc goes offline. And when I reboot the PC goat ...
0
votes
1answer
90 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
57 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 ...
0
votes
0answers
198 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
48 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
378 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
923 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
136 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
86 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
32 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
268 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
533 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
234 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
370 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
293 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
366 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 ...
1
vote
6answers
7k 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
437 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
229 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
259 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
2k 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
607 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
207 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>...
1
vote
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
895 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
385 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
827 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
106 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
94 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
146 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
604 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
183 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
336 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
157 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
5k 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
2k 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?
2
votes
0answers
121 views

sshd throws invalid password after date change

Problem I am working on an embedded device, while developing code it is really nice to have a ssh connection. The device is portable and sometimes completely disconnected from battery thus to keep ...
0
votes
0answers
275 views

Why would a linux system mount partitions from fstab with one kernel config, but not another?

I have a linux ROM image made by Buildroot with BusyBox init and eudev. The image has an /etc/fstab, which mounts /dev/mmcblk0p1 at /boot, and /dev/mmcblk0p2 at /mnt/var.rw (the upper filesystem for /...
1
vote
0answers
73 views

Ubuntu Machine boots into BusyBox

My ubuntu VM was working fine. Now when I boot up it boots into BusyBox. I have run the Unbuntu boot tool with no luck. Here is the log from the boot tool. http://paste.ubuntu.com/17567076/ How can I ...
3
votes
1answer
667 views

Fastest way to transfer data to new QNAP disk?

I have (just) added a new disk to my QNAP NAS. What is the fastest way to transfer all data from QNAP disk 2 (2TB, 80% used) to the new QNAP disk (disk 5, 4TB)?
0
votes
1answer
242 views

Assigning unique IP ranges for multiple USB Ethernet gadgets on a single host

I am currently developing an embedded device running Linux, that allows being connected to a Windows host using USB. To achieve this, I am successfully using the USB Ethernet gadget driver on this ...
0
votes
1answer
372 views

This bash command runs on OSX but not on Busybox ..why?

I've got this bash one-liner , it runs fine on OSX, but doesn't on Linux, I'm suspecting the linux distro (Busybox) on my Qnap has got something to do with this . Here is the command that runs on OSX ...
1
vote
0answers
210 views

Allowing ::1 on busybox httpd

I'm running busybox 1.23.2 (compiled by myself from source) on Linux. I'm trying to prevent other people from accessing the files I put on my server, so I thought I'd configure the server: $ cat etc/...
-1
votes
2answers
232 views

How to install exe versions of linux utilities on windows? [duplicate]

I am aware that we can get .exe versions of many linux utilities. I happen to have wget.exe, curl.exe and busybox.exe. But how can I install them so that instead of typing C:\Users\Rahul>cd ...