Solved

curl and mtr for windows BusyBox

Posted on 2015-01-13
21
308 Views
Last Modified: 2015-01-30
I have been searching and cannot find curl and mtr for the windows version of BusyBox.
Might someone know where I can find these or if they do not exist.

If they do not exist, are there any options for compiling for this version of BusyBox?
0
Comment
Question by:projects
  • 11
  • 10
21 Comments
 
LVL 61

Expert Comment

by:gheist
ID: 40553533
Which version? busybox is just packager that takes all executables you want in single one.
0
 

Author Comment

by:projects
ID: 40553783
What ever the latest version is... but the one I am using right now is;

BusyBox v1.19.1_18_0-306-geb28f73.git (2011-01-16 17:56:02 ICT) multi-call binary.
0
 
LVL 61

Expert Comment

by:gheist
ID: 40553885
0
 

Author Comment

by:projects
ID: 40556310
Yes, I know about that FAQ and that is why I posted this question, because it is still not clear if mtr and curl code might be available for this version of busybox.

I know where to find mtr and curl source for openwrt busybox but I cannot confirm anywhere if this source of other would be available for the win based busybox.
0
 

Author Comment

by:projects
ID: 40556453
In fact, the question could be...

The openWrt project uses BusyBox and of course we have BusyBox for windows.
Could the mtr and curl code for the openwrt project be re-compiled to work with win based BusyBox?
0
 
LVL 61

Expert Comment

by:gheist
ID: 40556491
curl and mtr are separate programs, not busybox on openwrt, your assumption is wrong. You need to use pure mtr and curl sources with busybox (that involves programming)
0
 

Author Comment

by:projects
ID: 40556649
I know they are separate programs and need to be added to busybox.

OpenWrt busybox doesn't package these two tools but you can include them in your custom build, which is what I do, or simply use opkg to install them.

For the win version of busybox, there are no assumptions being made, I am wanting to know if the curl and mtr for openwrt could be modified to be included in the win version of busybox.

Yes, with some programming involved :)
0
 
LVL 61

Expert Comment

by:gheist
ID: 40557126
You called in openwrt, not me. mtr and curl are fairly big packages for environments where busybox is relevant.

1) download, unzip busybox
2) download and add mtr
2A) change it accordingly to FAQ entry
3) download and add curl
3A) change it accordingly to FAQ entry
4) compile and enjoy
0
 

Author Comment

by:projects
ID: 40558652
I run curl and mtr on all of my openwrt routers. When I make a build, I simply add these extras into the build.

What I am wanting to find is more information on how I can do the same for a win busybox build, you know, without having to install a full separate version of curl and mtr.

Are you talking about the Linux (openwrt) version of bb or the win version? I'm not sure what you are suggesting in your last post. Based on the work we've done so far, it's more complicated than what you are suggesting but heck, if you know its this easy, I'd love more details.
0
 
LVL 61

Expert Comment

by:gheist
ID: 40558676
Read the busybox FAQ again
In case if doubt re-read it.

What help? On windows you should use powershell, cmd, vbs and all that nice stuff, not unix.
0
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 

Author Comment

by:projects
ID: 40566913
My goal is to maintain a Linux script based application as closely as possible on win as well using something like bb. That is why I am trying to find tools which will run from the command line, able to use scripts only.
0
 
LVL 61

Expert Comment

by:gheist
ID: 40566936
cygwin?
0
 

Author Comment

by:projects
ID: 40570890
The work first started with cygwin but it is much too bloated. Bb works out nicer.

So far, the downloadable curl was used and we've modified the mtr source code to work from command line but the problem is now that we have a raw sockets issue preventing mtr from running unless by admin.
0
 
LVL 61

Expert Comment

by:gheist
ID: 40570903
Yes, raw sockets are only for administrator, it is suid on Linux, so on windows it must be asking for elevation.
0
 

Author Comment

by:projects
ID: 40570913
The script will run as a console app I think it's called, as a service is the hope. Since the System or Local user would start that service, then would that take care of the raw sockets problem?
0
 
LVL 61

Accepted Solution

by:
gheist earned 500 total points
ID: 40570920
Make mtr a separate program, just in case it needs elevation... Curl will not complain about being part of busybox.
0
 

Author Comment

by:projects
ID: 40570947
Yes, it is a separate, stand alone executable at this moment.
From the command line using PowerShell in win 7...

W:/uploads/win_script $ ./mtr.exe
socket(sendsock4): Not owner
mtr: unable to get raw sockets.

W:/uploads/win_script $ ./mtr.exe  -h
socket(sendsock4): Not owner
mtr: unable to get raw sockets.
0
 
LVL 61

Expert Comment

by:gheist
ID: 40570993
0
 

Author Comment

by:projects
ID: 40571017
That seems to say that it will prompt a user for access every time? In my case, I need this to run autonomously once installed.
0
 
LVL 61

Expert Comment

by:gheist
ID: 40571077
There is no secret elevation in windows. User or service must be in administrators group, i.e permanently elevated.
0
 

Author Closing Comment

by:projects
ID: 40580998
We ended up building a custom version of mtr and using a separate version of curl.
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

A list of useful business intelligence software.
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
The viewer will learn common shortcuts with easy ways to remember them. The viewer will then learn where to find all of the keyboard shortcuts, how to create/change them, and how to speed up their workflow.
XMind Plus helps organize all details/aspects of any project from large to small in an orderly and concise manner. If you are working on a complex project, use this micro tutorial to show you how to make a basic flow chart. The software is free when…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now