Welcome to the most active Linux Forum on the web.
Go Back > Blogs
User Name



Fix: browser downloads PHP file instead of running it (Debian Squeeze)

Posted 01-31-2012 at 03:39 AM by catkin

This problem took nearly a day to solve so here's the solution.

The problem symptom was with nagios3. After browsing http://<server>/nagios3 and logging on, Firefox opened a download dialog with said "You have chosen to open <blank line> which is a: application/x-httpd-php".

Looking for nagios-specific solutions was not fruitful. It was only when I searched for solutions to the browser downloading PHP files instead of running them I found solutions...
LQ 5k Club
Posted in Uncategorized
Views 1972 Comments 0 catkin is offline

Slackware-13.37-Hacks-Turning Off Services

Posted 01-30-2012 at 08:18 PM by arniekat

These are all of the Services that are available upon Installation. It is better to deactivate them upon the initial Slackware 13.37 installation, however in this tutorial will go through deactivating services as an exercise.

Confirm startup services to run

[ ] rc.atalk
[ ] rc.bind
[ ] rc.cups
[ ] rc.dnsmasq
[X] rc.fuse
[X] rc.hald
[ ] rc.httpd
[ ] rc.inetd
[ ] rc.ip_forward
[X] rc.messagebus
[ ]...
LQ Newbie
Posted in Uncategorized
Views 2734 Comments 2 arniekat is offline

Bash scripts and keyboard input

Posted 01-29-2012 at 03:43 PM by Nominal Animal

You can use Bash to read individual keypresses. Here is an example:

# Reset terminal to current state when we exit.
trap "stty $(stty -g)" EXIT

# Disable echo and special characters, set input timeout to 0.2 seconds.
stty -echo -icanon time 2 || exit $?

# String containing all keypresses.

# Set field separator to BEL (should not occur in keypresses)
Senior Member
Posted in Uncategorized
Views 7828 Comments 0 Nominal Animal is offline

Computer Mad Science: The Anatomy Of A Makefile Part 2

Posted 01-28-2012 at 02:24 PM by rainbowsally
Updated 04-09-2012 at 06:44 AM by rainbowsally (updated makefile creator posted)

Note: There's a much more full featured and easily customized makefile creator here. Many features can be added without even recompiling it.

For historical reasons we'll keep this blog entry for a while, I guess. -rs


  • Example: building an editable makefile creator.

  • Feb
Posted in Uncategorized
Views 1027 Comments 0 rainbowsally is offline

Computer Mad Science: The Anatomy Of A Makefile Part 1

Posted 01-28-2012 at 02:17 PM by rainbowsally

  • Anatomy of a Makefile

  • an editor that can produce real TABs
  • make
  • And bash (with a 'B')... Not DASH, the Debian default shell, which can cause problems with some makefiles, especially on KDE sytems when trying to link

This might be interesting for even non-programmers, just to see how makefiles efficiently work through their dependencies.

[If you're already up to speed on what make does, skip to Part 2 and we'll create...
Posted in Uncategorized
Views 13847 Comments 7 rainbowsally is offline


All times are GMT -5. The time now is 12:12 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration