Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running on Windows linux subsystem? #22

Open
stzokev opened this issue Feb 29, 2024 · 6 comments
Open

Running on Windows linux subsystem? #22

stzokev opened this issue Feb 29, 2024 · 6 comments

Comments

@stzokev
Copy link

stzokev commented Feb 29, 2024

Hey,

I'm occasional linux user and currently do not have any linux available besides the linux subsystem on Windows 10. When I ran sudo make install I got the following error:
mkdir -p /usr/local/bin
sh build.sh

  • CONF_DEST=${HOME}/.config/mcbash
  • ALT_CONF_DEST=/etc
  • [[ -d ./build ]]
    build.sh: 10: [[: not found
  • mkdir ./build
  • touch ./build/mcbash
  • echo #!/bin/bash
  • echo CONF_DEST="${HOME}/.config/mcbash"
  • echo ALT_CONF_DEST="/etc"
  • cat ./misc/colors.conf
  • sed /^#!/bin/(ba)?sh/d ; /^#.*/d
  • cat ./func/00_dependencies
  • sed /^#!/bin/(ba)?sh/d ; /^#.*/d
  • cat ./func/01_args
  • sed /^#!/bin/(ba)?sh/d ; /^#.*/d
  • cat ./func/02_config_file
  • sed /^#!/bin/(ba)?sh/d ; /^#.*/d
  • cat ./func/03_destination_folder
  • sed /^#!/bin/(ba)?sh/d ; /^#.*/d
  • cat ./func/04_dns+
    sed /^#!/bin/(ba)?sh/d ; /^#.*/d
  • cat ./func/05_checkpoint
  • sed /^#!/bin/(ba)?sh/d ; /^#.*/d
  • cat ./func/06_interface
  • sed /^#!/bin/(ba)?sh/d ; /^#.*/d
  • cat ./func/07_mac
  • sed /^#!/bin/(ba)?sh/d ; /^#.*/d
  • cat ./func/08_interactive_mode
  • sed /^#!/bin/(ba)?sh/d ; /^#.*/d
  • cat ./func/09_proxy
  • sed /^#!/bin/(ba)?sh/d ; /^#.*/d
  • cat ./func/10_scan
  • sed /^#!/bin/(ba)?sh/d ; /^#.*/d
  • cat ./func/11_user_agent+
    sed /^#!/bin/(ba)?sh/d ; /^#.*/d
  • cat ./func/99_mcbash
  • sed /^#!/bin/(ba)?sh/d ; /^#.*/d
    build.sh: 34: Syntax error: redirection unexpected
    make: *** [Makefile:14: install] Error 2

If I run the same command again sudo make install it now results in following error:

mkdir -p /usr/local/bin
sh build.sh

  • CONF_DEST=${HOME}/.config/mcbash
  • ALT_CONF_DEST=/etc
  • [[ -d ./build ]]
    build.sh: 10: [[: not found
  • mkdir ./build
    make: *** [Makefile:14: install] Error 1

The linux subsystem installed in Ubuntu. Thanks for any help!

@stzokev
Copy link
Author

stzokev commented Feb 29, 2024

Ok definitely not an error with my linux subsystem, I get the same error when I run sudo make install in a console under MacOS.

@dougy147
Copy link
Owner

dougy147 commented Mar 5, 2024

Hi @stzokev,
I've changed build.sh for better compliance with different shells, there's a chance for it to work on your machines !

@stzokev
Copy link
Author

stzokev commented Mar 6, 2024

@dougy147 Thanks a lot, I can confirm it now installs on Ubuntu subsystem successfully and the app itself works as advertised (tested on a couple of servers). Big thanks!

@stzokev
Copy link
Author

stzokev commented Mar 6, 2024

Ok I've just noticed something strange, so better to ask here and if we manage to formulate/explain it, then we could log it as separate issue? On one of the servers I tested, EVERY single mac address is reported as expired, I've reached 16k and all are reported as expired. This is hardly the case, there must be something specific here that fools mcbash to report every single mac as expired. Here is the server for you to test if you wish Dougy
=> Scan @ 185.182.193.203:25461 [0.5 s/request]
[16063] 00:1A:79:3A:54:EF [expired] g for 2 seconds...

@frozen905
Copy link

frozen905 commented Mar 6, 2024 via email

@HITman-DE
Copy link

WARNING: mcbash could need this optional dependency : 'bc'.
Consider installing it on your machine.
WARNING: Config file not found. This can cause weird behaviors.
But it actually run's, what should I do to fix these issues?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants