[GH-ISSUE #16] OS Compatibility Code Needed #15

Open
opened 2026-02-28 00:40:09 +03:00 by kerem · 4 comments
Owner

Originally created by @kylegato on GitHub (Jan 31, 2014).
Original GitHub issue: https://github.com/telephone/LookingGlass/issues/16

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.

Originally created by @kylegato on GitHub (Jan 31, 2014). Original GitHub issue: https://github.com/telephone/LookingGlass/issues/16 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.
Author
Owner

@bpvarsity commented on GitHub (Sep 23, 2014):

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

Thanks

<!-- gh-comment-id:56605221 --> @bpvarsity commented on GitHub (Sep 23, 2014): @kylegato Can you let me know what command syntaxes you changed? Thanks
Author
Owner

@Ezerbeth commented on GitHub (Jun 14, 2016):

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.

<!-- gh-comment-id:225939273 --> @Ezerbeth commented on GitHub (Jun 14, 2016): 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.
Author
Owner

@fsgmhoward commented on GitHub (Aug 7, 2016):

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

<!-- gh-comment-id:238075794 --> @fsgmhoward commented on GitHub (Aug 7, 2016): OMG... This issue is still not fixed now. Ping/Mtr do not work on CentOS 6 with Apache.
Author
Owner

@fsgmhoward commented on GitHub (Aug 7, 2016):

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

<!-- gh-comment-id:238095246 --> @fsgmhoward commented on GitHub (Aug 7, 2016): @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 in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/LookingGlass#15
No description provided.