Web

Redirect failing URLs to other webserver

A typical FAQ about URL rewriting is how to redirect failing requests on webserver A to webserver B. Usually this is done via ErrorDocument CGI-scripts in Perl, but there is also a mod_rewrite solution. But notice that this performs more poorly than using an ErrorDocument CGI-script! Place this in your httpd.conf og .htaccess file on…

Read More
Linux

Force fsck at reboot

There are at least two ways to force a disk check (fsck) at reboot. Creating a /forcefsck file As root run the following command # touch /forcefsck Using the shutdown command # shutdown -rF now Note This command switch might not work on modern Linux operating systems since they use Upstart instead of the old…

Read More
Linux

HP Compaq 8540p hardware list in linux

You can use lspci -n to analyce what hardware is on your system. My new laptop a HP EliteBook 8540p gives the following output: 00:00.0 0600: 8086:0044 (rev 12) 00:01.0 0604: 8086:0045 (rev 12) 00:16.0 0780: 8086:3b64 (rev 06) 00:19.0 0200: 8086:10ea (rev 06) 00:1a.0 0c03: 8086:3b3c (rev 06) 00:1b.0 0403: 8086:3b56 (rev 06) 00:1c.0…

Read More