Setting a Non-Persistent route in OS X

From a terminal: sudo route -n add 172.168.17.0/24 192.168.1.27 Where 172.168.17.0/24 is the network and 192.168.1.27 is the gateway
Read more →

Change the Timezone in Ubuntu Server

The simplest way to do this is: dpkg-reconfigure tzdata Then follow the onscreen prompts
Read more →

Finding Your External IP from Linux/BSD

If you have curl installed: echo External IP: curl -s http://checkip.dyndns.org/ | awk '{print $6}' | cut -f 1 -d < This comes in real handy if you move sites and have more than one route out. It also works rather well from OSX Geektool.
Read more →

Disable Disk Signature Writing in Windows

Windows default behaviour is to write to the disk signature of basic disks when they are attached/detected by windows. This can cause merry hell with iscsi volumes, especially those with existing setups. Start diskpart interactively and put in the following: automount disable Then: automount scrub The first setting disables automounting and the second resets any past configs for disks that have been previously attached.
Read more →

Running Network WMI Queries on the Command Line

Try: wmic /node:machine_name product get name,version,vendor Where machine_name is the computer you are interested in. You will need the correct permissions to get to the remote machine. This example just returns installed software.
Read more →

Ubuntu Wireless with BCM4322

I have been having issues with the BCM4322 wireless card on my macbook pro under ubuntu. As it turns out after some digging the BCM4322 driver only supports the ‘Rest of World’ locale which does not include wireless channels 12 & 13. You can test this by trying: sudo iwlist eth2 channel Which on the macbook pro returns: eth2 20 channels in total; available frequencies : Channel 01 : 2.412 GHz Channel 02 : 2.
Read more →

Windows 7 Explorer Context Menu Options

Hold down shift when you right click a folder to get some quite useful options: If you choose ‘Open a command window from here’ and you are in a network location it will automatically mount a drive for you.
Read more →

Issues with Ubuntu Apache Vhost File

In Ubuntu server after an upgrade to apache, the process can copy your 000-default file and leave it with the name 000-default.save. This can cause issues with your vhost config and lead to unpredictable results. If you do have strange vhost issues, check in /etc/apache/sites-enabled and make sure that there is no duplication and all the files there are required. In my case it was causing the error: [warn] NameVirtualHost *:80 has no VirtualHosts
Read more →

Finding out Your Mac Model Identifier

From a terminal use: sysctl hw.model In my case: hw.model: MacBookPro5,2 Update: This still works on OS X Yosemite: hw.model: MacBookPro10,1
Read more →

Listing System Center Configuration Manager Inbox Folders with Powershell

It is a good idea to keep track of these folders as they can get out of control quite quickly. This powershell command quickly highlights if you have any build up going on. Look out for large numbers of files: Get-ChildItem “c:\Program Files\Microsoft Configuration Manager\inboxes” -recurse | Where {!$_.PSIsContainer} | Group Directory | Format-Table Name, Count -autosize
Read more →