mcbash icon indicating copy to clipboard operation
mcbash copied to clipboard

Running on Windows linux subsystem?

Open stzokev opened this issue 1 year ago • 9 comments

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 avatar Feb 29 '24 18:02 stzokev

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.

stzokev avatar Feb 29 '24 18:02 stzokev

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

dougy147 avatar Mar 05 '24 22:03 dougy147

@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 avatar Mar 06 '24 17:03 stzokev

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...

stzokev avatar Mar 06 '24 21:03 stzokev

I'm also interesting in revisiting the app to find tune it, do we have working ID and SN functionality yet for servers that require more than MAC? I have info to help add functions to the app but am not a coder

On Wed, Mar 6, 2024, 4:31 p.m. Steve Tsokev @.***> wrote:

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...

— Reply to this email directly, view it on GitHub https://github.com/dougy147/mcbash/issues/22#issuecomment-1981821649, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADXEL6JYLO27TQX6LXCZKILYW6DJNAVCNFSM6AAAAABEAORVBWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOBRHAZDCNRUHE . You are receiving this because you are subscribed to this thread.Message ID: @.***>

frozen-cdn avatar Mar 06 '24 21:03 frozen-cdn

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?

HITman-DE avatar Jun 02 '24 07:06 HITman-DE

Hello, I'm novice user linux. I use ubunto with windows WSL. Here's what I have: : ~$ git clone https://github.com/dougy147/mcbash Cloning into 'mcbash'... remote: Enumerating objects: 1060, done. remote: Counting objects: 100% (32/32), done. remote: Compressing objects: 100% (7/7), done. remote: Total 1060 (delta 25), reused 26 (delta 25), pack-reused 1028 (from 1) Receiving objects: 100% (1060/1060), 2.89 MiB | 16.27 MiB/s, done. Resolving deltas: 100% (595/595), done. : ~$ cd ./mcbash : ~/mcbash$ sudo make install sudo: make: command not found

I don't know what to do. Could you help me? Thanks in advance.

AskyFr avatar Jan 12 '25 11:01 AskyFr

@AskyFr Not a problem with mcbash, use google to find how to proceed further.

stzokev avatar Jan 13 '25 14:01 stzokev

$ bash ./bin/mcbash WARNING: mcbash could need this optional dependency : 'bc'. Consider installing it on your machine. ░█▄▒▄█░▄▀▀░██▄▒▄▀▄░▄▀▀░█▄█ ░█▒▀▒█░▀▄▄▒█▄█░█▀█▒▄██▒█▒█ Server address 👍

Where is the optional dependency : "bc"? How to find it? How to install it? Thanks in advance

AskyFr avatar Jan 17 '25 11:01 AskyFr