PHP mail() function on Ubuntu computer.

This will get the PHP mail() function to work on a Ubuntu computer.

sudo apt-get install php-pear
sudo pear install mail
sudo pear install Net_SMTP
sudo pear install Auth_SASL
sudo pear install mail_mime
sudo apt-get install postfix
# Choose Internet Site
# System mail name: localhost

Common .htaccess issues.

There is alot that can be done with an .htaccess file on an Apache HTTP Server server. Below are just some quick examples without much explanation outside of the comments I've left.

Side note: you can block out complete IP address blocks by leaving off the last digit of the IP address sequence. so if you wanted 12.34.56.1 all the way to 12.34.56.254 then you'd put 12.34.56

Read more: Common .htaccess issues.

Block any site with Windows hosts file.

Default file contents are below. You can easily edit this file and block people from viewing certain domains on a single computer.

File Location: C:\WINDOWS\system32\drivers\etc
File Name: hosts, there is no extention at all.

Default Contents:

Read more: Block any site with Windows hosts file.

Download anything with Firefox and Firebug.

Advanced Downloading

Using Firefox and Firebug you can download just about anything, including finding the location of radio streams and such for online stations that attempt to restrict you to their ad filled players. A friendly reminder that this technique isn't foolproof, company's constantly change techniques to get their data and sometimes it is just impossible to obtain content. But for the most part anything is obtainable.

Read more: Download anything with Firefox and Firebug.

Block Facebook on Windows computer.

Theres a file located in C:\Windows\System32\drivers\etc called hosts that allows you to block domains. This isn't permanent, if the user you're trying to block knows this method then they can easily edit it themselves and regrant access themselves, just with past experiences most people don't know this method.

Read more: Block Facebook on Windows computer.

Apache permission issues with virtualhosts.

For many years I have played with Linux servers, and the one issue I always had that seemed non-fixable was permission issues between FTP and my virtualhosts on Apache. But now that has been solved.

Read more: Apache permission issues with virtualhosts.

ESXi 5 and the Intel 82579

This weekend I had the joy of setting up a new server, it's main purpose to replace 3 other machines that run like a stick in mud.

Specs:

  • Intel i7-2600k
  • ASUS P8Z68-V Pro GEN3 (Bundled with CPU)
  • Corsair Dominator DDR3-1600 32GB (4x8GB)
  • 2 x Western Digital Velociraptor 300GB 10K hard drives
  • Seasonic X760 Gold Power Supply
  • Cooler Master CM690 II Advanced case
  • Intel Pro/1000GT Ethernet Card
  • APC BX1500G UPS

Problems right off the bat:

  • Intel 82579 onboard ethernet nic is too new for the standard ESXi 5.0 installation ISO. It will not install without an HCL listed ethernet card, there is however a work around to insert the drivers needed into the ESXi installer so that it will work. You will find the files listed below.
  • the i7-2600k does not support VT-D. The motherboard does support VT so you can run 64-bit images but you cannot use hardware passthrough as it isnot supposed at all. It's my understanding that the i7-2600 does support VT-D (note, no k after the 2600, there is a difference)

Aside from that, I personally do not need the hardware passthrough, but I obvisouly had issues with the ethernet connection. To solve that problem I found a blog post elsewhere that gave the drivers and the converter program.

Basically, all you need to do is download the ISO from VMware, download the ethernet driver and the customizer program then use the custom program to insert the drivers into the ISO, reburn that ISO to a new CD and then install from there.

Useful Code to remember

Since ESXi requires preallocated disks and won't work with Dynamic sized disks, they must be converted. This is easily done through an SSH connection to the server, CD'ing into the folder with the disk and running this command:

vmkfstools -i original-name.vmdk new-name.vmdk

Files:
e1001e - ethernet driver
Date 2012-02-26 Filesize 922.66 KB Download 183

esxi-customizer-v2.7

Homepage: http://v-front.blogspot.com/p/esxi-customizer.html

Date 2012-02-26 Filesize 2.83 MB Download 136

ESXi 5.0 with ASUS P8Z68-V PRO GEN3 Ethernet Drivers package.
Date 2012-02-29 Filesize 293.65 MB Download 198