Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [busybox]

The tag has no usage guidance.

-1
votes
0answers
42 views

plink connection refused to busybox distro

From Windows10, I can putty to the distro fine. No problem. putty -ssh -l root -pw root 192.168.82.102 It opens putty console and a prompt. But when i try plink: plink -ssh -l root -pw root 192....
0
votes
0answers
48 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
108 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
0answers
129 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 ...
0
votes
0answers
62 views

useradd with --no-create-home option creates home directory

Both useradd and adduser create the home directories of users under /home/ and adds entry in /etc/passwd even when specified with "-M" / "--no-create-home" options for useradd and "-H" for adduser. ...
0
votes
5answers
242 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
167 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
50 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 ...
0
votes
0answers
63 views

How to use Ash command in Terminal Emulator on Android

I installed Busybox in my device. Then I got an applet called 'Ash'. I googled a lot but I couldn't get any answers. Can anyone guide me how to use this applet.[![Screenshot Attached]!]
1
vote
1answer
100 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
721 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
283 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?
3
votes
0answers
133 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>...
0
votes
0answers
956 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
458 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
267 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 ...
-1
votes
1answer
438 views

How do I use find and execute a command for each file in ash 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
75 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
61 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
103 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
342 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
88 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 ...
3
votes
0answers
214 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
76 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
2k 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 ...
1
vote
1answer
890 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
78 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
105 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
50 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
449 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
218 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
317 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
144 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
201 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 ...
0
votes
2answers
3k views

Can ActionTec routers (e.g. FiOS MI424WR) be tweaked?

Every site that I've looked for info on customizing a LAN connected to FiOS has offered variations of this: configure the ActionTec as a WAN bridge. buy a different router and customize that. connect ...
4
votes
2answers
7k views

Run ifconfig without sudo

I have an embedded Linux running on a imx6 platform. This is a freescale embedded linux. The problem is that there is no sudo available for this linux, but I need to activate and deactivate the wlan0 ...
0
votes
2answers
3k views

How to check if busybox has a command?

In my case, I want to see if busybox has "md5sum" builtin. I am currently doing this: $ echo | busybox md5sum &>/dev/null && echo yes || echo no I have not been able to find any ...
1
vote
2answers
3k views

Why does my busybox diff report 'Common subdirectories' for every file pair?

I am using this version of diff on my Synology NAS to verify a backup: xyz> diff BusyBox v1.16.1 (2014-05-29 11:26:15 CST) multi-call binary. Usage: diff [-abBdiNqrTstw] [-L LABEL] [-S FILE] [-U ...
1
vote
1answer
3k views

devmem: can't open '/dev/mem': Permission denied

I have 2 phones (Samsung Galaxy S4 LTE I9505, Android 4.4.2 Kitkat) which I already rooted and have root access to the phones. Previously, on my rooted Samsung Galaxy S3 LTE I9505 running Android 4.1....
1
vote
1answer
212 views

Is this expected reverse DNS behaviour or something weirder?

Excuse me as I'm a linux noob: I have a system (specifically, a Nexus 7 running CM 10.2.1 with busybox), which, when I run host or traceroute on its nominal private IP (192.168.1.7) gives a hostname ...
0
votes
1answer
68 views

How to find files that contain a string in its content OR the path?

Find and grep does not work afaik because I need to create a list of files that satisfy EITHER requirement, not both. I assume this requires more than a one-liner. Any suggestions?
3
votes
2answers
5k views

How to wait for a response on the inbound side of the socket using NC command under BusyBox?

I am having problems using the Netcat that comes with BusyBox 1.1.3 to make an HTTP request and then receive the response. The NC command seems to quit out as soon as it reaches the end of the request ...
1
vote
1answer
3k views

Adding a C compiler to BusyBox

I recently started using BusyBox to do simple tasks, but now I need gcc, tcc or any C compiler on it. I heard about adding an applet, but I don't know how to do it. I have gcc source, BusyBox source, ...
0
votes
1answer
2k views

Howto Isolate a computer from my network using a billion 7800n and a busybox prompt

My only router is a billion 7800n connected to the internet using the ewan port. I have 4 computers connected to it 2 wired and 2 using wifi. I want to isolate one of the wired ports from seeing the ...
0
votes
1answer
1k views

How can I find out the vfstype of a hard drive partition?

How do I find out the vfstype of a hard drive partition when it is unmounted in BusyBox? My question is specific for BusyBox since I am trying to do a mount during a Debian install. If I do fdisk -l ...
4
votes
4answers
13k views

mount on busybox: invalid argument when trying to mount smb share

I am trying to mount a smb share on my embedded Linux running on ARM (3.6.9) with busybox 1.21 mount -t cifs //192.168.0.12/mydata /mnt/myData results in an invalid argument error: mount: mounting ...
35
votes
5answers
174k views

How to display current path in command prompt in linux's sh (not bash)?

I would like to display current path in sh prompt (not bash shell), which currently just shows "#", I tried with introducing this env PS1="$(whoami)@$(hostname):$(pwd)" and set PS1="$(whoami)@$(...
0
votes
1answer
169 views

How to run a script uninterrupted accross power-cycling

I'm stomped on how to accomplish this task. I need to run this script that fills up the nand flash on an embedded (linux-Busybox v1) device with random data, then continually repeats this process ...
4
votes
2answers
274 views

Attempting to test an embedded nand flash chip by filling up a file to drive capacity

I'm trying to test an embedded nand flash chip using the dd command (write random data to a file): dd if=/dev/urandom of=/nand/storage/testnand/test.raw bs=100000 count=50 2> /dev/null However, ...
2
votes
2answers
4k views

How do I gracefully fall back to AutoIP when there is no DHCP service available?

I am developing an embedded device based on Linux and Busybox, and trying to make it adaptable to different network configurations. I want to: 1- At boot time, if there is no DHCP reply, use an ...