Category Archives: Linux

All things *nix.

Apache Segfault when Navigating to WP-Admin

Argh! When trying to get into WordPress' administration panel, Apache segfaults. First troubleshooting steps involved moving all plugins/ to a temporary folder. This didn't produce any new results, still segfaulting. Here are some notes on how I went about debugging this with GDB 7.3 wp-admin crashing setup core dump in /etc/apache2.conf CoreDumpDirectory /tmp-apache2/ Restart apache. /etc/init.d/apache2 restart install GDB 7.1+ for PIE support (See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=346409) gdb Continue reading →

Ncurses Motha F##ka

I love when I read through code as I'm hacking it up and I actually laugh out loud.  This one got me today when I was hacking up Linfo (PHP Linux System information script). // Extensions runExtensions($info, $settings); // Make sure we have an array of what not to show $info['contains'] = array_key_exists('contains', $info) ? (array) $info['contains'] : array(); // From the command prompt? Ncurses motha fucka! if (defined('LINFO_CLI')) { $out = new out_ncurses(); $out->work($info, Continue reading →

Use hdparm to Benchmark Disk in Linux

I use this often in the vm-land to test VMFS stores/LUN performance of new VMs I setup and I also use a few other benchmark tools to monitor how performance is impacted over the course of time. root@nitrous:~# hdparm -Tt /dev/sda /dev/sda: Timing cached reads: 12420 MB in 2.00 seconds = 6217.17 MB/sec Timing buffered disk reads: 584 MB in 3.00 seconds = 194.43 MB/sec The -T option: The speed of reading through the buffer cache to the disk without any prior caching of data.The -t option: Continue reading →

Install VMware Tools on Linux Guest

The instructions are outlined by VMware here.
These are my notes.
To install VMware Tools in a Linux guest operating system using Compiler:

Ensure that your Linux virtual machine is powered on.
If you are running a GUI interface, open a command shell.Note: Log in as a root user, or use the sudo command to complete each of these steps.
Click VM in the virtual machine menu, then click Guest > Install/Upgrade VMware Tools and click OK.
To create a mount point, run:mkdir /mnt/cdrom
To mount Continue reading →

HylaFAX faxaddmodem Funny

This is kinda funny as I was reading along while adding a modem…

Now we are going to probe the tty port to figure out the type
of modem that is attached.  This takes a few seconds, so be patient.
Note that if you do not have the modem cabled to the port, or the
modem is turned off, this may hang (just go and cable up the modem
or turn it on, or whatever).

Was just a bit comical for me, I s’pose.