• Some users have recently had their accounts hijacked. It seems that the now defunct EVGA forums might have compromised your password there and seems many are using the same PW here. We would suggest you UPDATE YOUR PASSWORD and TURN ON 2FA for your account here to further secure it. None of the compromised accounts had 2FA turned on.
    Once you have enabled 2FA, your account will be updated soon to show a badge, letting other members know that you use 2FA to protect your account. This should be beneficial for everyone that uses FSFT.

Monitoring Linux remotely

Codegen

Gawd
Joined
Aug 28, 2004
Messages
915
Is there anyway I can go about remotely monitoring my Linux box for the [H]oard?
 
Yes. I have put up a version of the script used in fold-server here. With a little configuration you should be able to get it going on your machine. Here are the basic steps:

- Save this to your cgi-bin directory (/var/www/cgi-bin on redhat, /var/www/localhost/cgi-bin/ on gentoo, /usr/lib/cgi-bin on debian) and ungzip it if necessary. `chmod +x log.pl`.
- Change /foldsave to match your FAH directory everywhere it occurs in the script.
- Access http://localhost/cgi-bin/log.pl to make sure it works.
- Access http://your.ip.address/cgi-bin/log.pl to view remotely. Or get a dns redirect service from no-ip.org.

HTH ;)
 
What about on Mandrake?

What package do I need, I cannot find that anywhere.
 
Look at your Apache configuration (try "slocate httpd" or look in /etc) for the line containing ScriptAlias. That directory is where you should put it.

What do you mean by "what package"? All it'll take is Perl and Apache, and those are very likely installed by default.
 
Well, I now have Apache going and the test.cgi works.

But when I go "ungzip" it tells me that it's not there. I do gunzip or gzip -d it tells me that it's not a gzip file.
 
Try "file log.pl.gz". If it says "log.pl.gz: gzip compressed data, was "log.pl", from Unix", then it's compressed. If it says "log.pl.gz: perl script text executable" then it's already uncompressed and you can just rename it to "log.pl". Then it should work.
 
Got an internal server error.

It said that it was the perl executable blah-dee-blah-blah, so I renamed it.

Now when I go 192.168.1.100/cgi-bin/log.pl, I get the Internal Server error.

When I go 192.168.1.100/gi-bin/test.cgi, for the test page, it works like a charm.

editL: I just went ./log.pl, and that was a lot of errors...
 
Okay. Try running it in a terminal. Start konsole or gnome-terminal (or a plain ol' xterm) and do this:
cd /your/cgi-bin/
./log.pl
and if that gives an error, let me know. If the error is "-bash: ./log.pl: Permission denied", however, do "chmod +x log.pl" and it should do something different.

HTH

Edit responding to your edit: What's the first error?
 
Okay, but what's the first one? Hit shift+pageup to scroll up if it's on a console, and copy/paste it.

My guess would be something got modified incorrectly, because it works fine on my machine (I have a /foldsave directory, so ymmv). If I have the first error message I can figure out what the problem is, though.
 
Back
Top