Giter Site home page Giter Site logo

fmfarshid / busybox-w32 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rmyorston/busybox-w32

0.0 0.0 0.0 50.25 MB

WIN32 native port of BusyBox.

Home Page: https://frippery.org/busybox

License: Other

Shell 4.09% C++ 0.98% Python 0.06% Perl 0.06% C 93.05% Assembly 0.83% Awk 0.01% Makefile 0.62% HTML 0.09% Yacc 0.15% Lex 0.07%

busybox-w32's Introduction

Status

Things may work for you, or may not. Things may never work because of huge differences between Linux and Windows. Or things may work in future, if you report the problem on GitHub or GitLab. If you don't have an account on one of those or you'd prefer to communicate privately you can email [email protected].

Additional information is available from the BusyBox for Windows web page. In particular:

  • There are downloads of precompiled binaries for i686, x86_64 and aarch64.
  • Release notes for the current and previous releases are available.

Building

You need a MinGW toolchain and a POSIX environment. I cross-compile on Linux. On Fedora the following should pull in everything required:

dnf install gcc make ncurses-devel perl-Pod-Html

dnf install mingw64-gcc (for a 64-bit build)

dnf install mingw32-gcc (for a 32-bit build)

On Microsoft Windows you can install w64devkit. Get the -i686 variant for a 32-bit build. Unzip the file and run w64devkit/w64devkit.exe.

On either Linux or Windows the commands make mingw64_defconfig or make mingw32_defconfig will pick up the default configuration. You can then customize your build with make menuconfig or by editing .config, if you know what you're doing.

Then just make.

See the Building busybox-w32 web page for additional information.

Hints

  • Use forward slashes in paths: Windows doesn't mind and the shell will be happier.
  • Windows paths are different from Unix (more detail):
    • Absolute paths: c:/path or //host/share/path
    • Relative to current directory of other drive: c:path
    • Relative to current root (drive or share): /path
    • Relative to current directory of current root (drive or share): path
  • Handling of users, groups and permissions is totally bogus. The system only admits to knowing about the current user and employs various heuristics to synthesise uid, gid and permission values.
  • Some crufty old Windows code (Windows XP, cmd.exe) doesn't like forward slashes in environment variables. The -X shell option prevents busybox-w32 from changing backslashes to forward slashes. If Windows programs don't run from the shell it's worth trying it.
  • If you want to install 32-bit BusyBox in a system directory on a 64-bit version of Windows you should put it in C:\Windows\SysWOW64, not C:\Windows\System32 as you might expect. On 64-bit systems the latter is for 64-bit binaries.
  • The system tries to detect the best way to handle the terminal being used. If this doesn't work you can try setting the environment variable BB_TERMINAL_MODE=1 to force the use of literal ANSI escapes or BB_TERMINAL_MODE=0 to emulate them using the Windows console API.
  • busybox-w32 prefers built-in applets to external programs when running commands. This preference can be overridden by setting the environment variable BB_OVERRIDE_APPLETS to a space-separated list of applet names. Thus, to use an external make in preference to the built-in applet set BB_OVERRIDE_APPLETS="make".
  • It's possible to obtain pseudo-random numbers using if=/dev/urandom as the input file to dd. The same emulation of /dev/urandom is used internally by the shred utility and to support https in wget. Serious users of random numbers may, of course, wish to make alternative arrangements.

busybox-w32's People

Contributors

erikbandersen avatar rmyorston avatar aldot avatar landley avatar vapier avatar pclouds avatar dvlasenk avatar dscho avatar brgl avatar dfandrich avatar aakoskin avatar explorer09 avatar jacmet avatar avih avatar clbr avatar ncopa avatar virtuoso avatar farmatito avatar martinl84 avatar timriker avatar jeremie-koenig avatar mizvekov avatar dvv avatar fabled avatar xmaks avatar pereorga avatar baruchsiach avatar theinric avatar nmeum avatar samm-git avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.