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

OS Compatibility Code Needed #16

Open
kylegato opened this issue Jan 31, 2014 · 4 comments
Open

OS Compatibility Code Needed #16

kylegato opened this issue Jan 31, 2014 · 4 comments

Comments

@kylegato
Copy link

There needs to be a method for detecting the operating system, as some program tools have different flags or are missing flags that others may have.

For example LookingGlass does not work out of the box with FreeBSD, you have to change some of the command syntaxes.

@bpvarsity
Copy link

@kylegato Can you let me know what command syntaxes you changed?

Thanks

@Ezerbeth
Copy link

First, ps needs to be changed. I used:
ps -o ppid $ppid | tail -1
But there's probably a better set of options.

Second, there's no "shred" command on FreeBSD.The coreutils package provides the "gshred" port, which is the gnu shred. This needs to be manually installed.

The ping ping, traceoute, etc commands are located elsewhere. The config checks should also check /sbin/, not only /bin:
/sbin/ping
/usr/sbin/traceroute
/usr/local/sbin/mtr
/usr/local/bin/gshred

However now when I run "ping" it does nothing and the button becomes clickable right away. Nothing in the Apache logs regarding this. So I assume it's statically looking for the locations defined in configure.sh.

And lastly, the test files all give blank pages on FreeBSD. Again, no errors in Apache.

Hope this helps.

@fsgmhoward
Copy link

OMG... This issue is still not fixed now. Ping/Mtr do not work on CentOS 6 with Apache.

@fsgmhoward
Copy link

@Ezerbeth Actually I found the way to solve the blank page in CentOS. It may be caused by the SELinux module. This module, when it is enabled, prevents user apache from sending icmp packet. Therefore the program goes wrong.

I just simply disabled SELinux and it works now.

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

No branches or pull requests

5 participants