Tag Archives: Debian

How to Install Sun Java on Debian

Quick Guide

If you are fairly confident and don’t want to read the whole document the following summary should probably be enough to get java working on your system. Lines 1 and 3 are preformed as root line 2 as a standard user.

apt-get install java-package
fakeroot make-jpkg <java-binary-package-name>.bin
dpkg -i <created-package-name>.deb

Read More

Various Tricks

dpkg-reconfigure -phigh xserver-xorg -> reconfigures the xorg server http://www.realvnc.com/products/free/4.1/x0.html http://wiki.debian.org/FluxBox Remove files in a directory when rm won’t work: find /home/$u/tmp/ -name ‘*.wrk’ -print0 | xargs -0 rm -f find . -name ‘spam-*’ -print0 | xargs -0 rm find /some/directory -name ‘*.wrk’ -print0 | xargs -n1000 -0 rm -f ls | xargs -n1000 -0 rm

Read More

Cacti and Debian

The patch can fix the issue sudo pico /usr/share/cacti/site/include/config.php replace what is under /* Sanity Check on “Corrupt” PHP_SELF */ with if ((!is_file($_SERVER[“PHP_SELF”])) && (!is_file($config[“base_path”] . ‘/’ . $_SERVER[“PHP_SELF”]))) { if (!is_file($_SERVER[“DOCUMENT_ROOT”] . $_SERVER[“PHP_SELF”])) { if (!((is_file($_SERVER[“SCRIPT_FILENAME”])) && (substr_count($_SERVER[“SCRIPT_FILENAME”], $_SERVER[“PHP_SELF”])))) { if (!((is_file($_SERVER[“SCRIPT_FILENAME”])))) { echo “\nInvalid PHP_SELF Path\n”; exit; }

Bad Behavior has blocked 98 access attempts in the last 7 days.