Linux




VMWare Fusion 5 Set Static IP Address

I previously posted on setting a static ip address in vmware fusion 4. This also still works for VMWare Fusion 5. Steps are the same. First on your linux vm in terminal run the following command ifconfig Then copy the HWaddr it varies from vm to vm so you need …



Setup an alias in Linux

Setting up an alias in linux is very easy and very helpful. It allows you to determine a short phrase for running a longer command. Or change a common typo to the command you meant. Here's an example alias: \$ alias lsl="ls -la" This maps lsl to the command ls …



Create a new ssh key

I have to do this whenever setting up a new system. Makes the server more secure to disable password based login and only allow ssh keys. To create an ssh key it's as easy as running one of the two following commands. ssh-keygen -t dsa or ssh-keygen -t rsa The …



Linux Ubuntu 12.04 alt-tab not working

I’ve recently installed Ubuntu 12.04 Prestige Pangolin (I use Gnome Classic), and immediately noticed that the alt+tab shortcut wasn’t working. I tried fixing it within Applications>Systems Tools>System Settings, but that did not work. I have compiz Config Manager already install so I figured I …



VMWare Fusion 4 - Set static IP address

In vmware Fusion 4 there is no boot.shthat 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 …



Recursively remove svn directories from a directory

Removing all .svn directories from a file structure in linux is as simple as running a one liner. find . -name .svn -print0 | xargs -0 rm -rf



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 …



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 …



Display phpinfo from the command line

This afternoon I was wanting to get a couple things from phpinfo but didn't want to do the typical make a php file, put phpinfo, run it from a browser or command prompt. There's a better, quicker way if you know what you want. One will output it to a …