VMWare Fusion 4 – Set static IP address

In vmware Fusion 4 there is no boot.sh that is found in previous versions

sudo “/Library/Application Support/VMware Fusion/boot.sh” –restart

So if you make a change to the network settings like setting a static ip address you’ll need to restart your computer for the settings to take effect.

To set a static ip in VMWare Fusion 4 do the following:

First on your vm in terminal run


Then edit the HWaddr

Link encap:Ethernet  HWaddr 00:0c:29:f4:13:e4

Next copy the dhcp.conf file on your mac

sudo vim /Library/Preferences/VMware\ Fusion/vmnet8/dhcpd.conf

After the

####### VMNET DHCP Configuration. End of “DO NOT MODIFY SECTION” #######

Add your new configuration, replace “vmnamehere” with the name of your vm.

host vmnamehere {
hardware ethernet 00:0c:22:f6:11:e8;

Now reboot your Mac.

Your vm’s ip address should be what you set.

If that doesn’t work, you may need to remove the network adapter and then re-add it. Make sure that your network adapter is connected to the virtual machine by removing and re-adding it. See Step 12

How to add git to an amazon ami ec2 instance

To install git on amazon ami is really simple. Make sure you have sudo and then run yum to install it.

sudo yum install git

That’s it. The output should be something like:

$ sudo yum install git
Loaded plugins: fastestmirror, priorities, security
Determining fastest mirrors
amzn-main | 2.1 kB 00:00
amzn-main/primary_db | 1.6 MB 00:00
amzn-updates | 2.3 kB 00:00
amzn-updates/primary_db | 233 kB 00:00
Setting up Install Process
Resolving Dependencies
–> Running transaction check
–> Processing Dependency: git = for package: perl-Git-
—> Package git.i686 0: set to be updated
–> Running transaction check
—> Package perl-Git.i686 0: set to be updated
–> Finished Dependency Resolution

Dependencies Resolved

Package Arch Version Repository Size
git i686 amzn-main 4.4 M
Updating for dependencies:
perl-Git i686 amzn-main 16 k

Transaction Summary
Install 0 Package(s)
Upgrade 2 Package(s)

Total download size: 4.4 M
Is this ok [y/N]: y
Downloading Packages:
(1/2): git- | 4.4 MB 00:00
(2/2): perl-Git- | 16 kB 00:00
Total 7.9 MB/s | 4.4 MB 00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Updating : git- 1/4
Updating : perl-Git- 2/4
Cleanup : git- 3/4
Cleanup : perl-Git- 4/4

git.i686 0:

Dependency Updated:
perl-Git.i686 0:


Find loaded modules in Apache 2.x

I was trying to figure out how to find the loaded modules in Apache and came across this nice command.

httpd -M

Used like:

$ httpd -M
Loaded Modules:
core_module (static)
mpm_prefork_module (static)
http_module (static)
so_module (static)
authn_file_module (shared)
authn_default_module (shared)


rewrite_module (shared)
php5_module (shared)
extract_forwarded_module (shared)
geoip_module (shared)
Syntax OK