Convert a Folder into an ISO on the Mac

Open up the terminal on the mac and use the following: hdiutil makehybrid -o image_name.iso folder_name Where folder_name is the folder you want to convert to an ISO.
Read more →

Wireshark Error on the Mac

When you reboot and get this error after installing Wireshark on the mac: Insecure startup item disabled chmodBPF I always forget where the file is that needs the permissions change. So for my failing memory: cd /Library/StartupItems sudo chown -R root:wheel ChmodBPF
Read more →

Exif from a Terminal

It is sometimes useful to see exif information in image files. If you want to examine exif information for an image then exiftool by Phil Harvey is excellent at doing this from the commandline. If you want to quickly examine exif from the internet then I have put together a small shell script which you can pass a url i.e. get_exif_info http://path/to/image.jpg That will pass the file direct to exiftool without saving it.
Read more →

Print The Mac OS X Operating System Version Information From the Terminal

Use: sw_vers In my case: ProductName: Mac OS X ProductVersion: 10.6.4 BuildVersion: 10F569 Update: This still works in os x yosemite: ProductName: Mac OS X ProductVersion: 10.10.2 BuildVersion: 14C1514
Read more →

Displaying Current Network Information Using Geektool in OS X

I put together a script from a variety of sources including some customisations which displays the following information in the form: External : x.x.x.x Ethernet : INACTIVE SSL : x.x.x.x AirPort : x.x.x.x SSID: name Channel: 4 The External entry uses http://checkip.dyndns.org/ to get the current external IP address. Ethernet give you your local wired ipv4 address. SSL displays the current Juniper Network Connect assigned IP address. Airport shows the currently connected wireless network (SSID) and the associated channel.
Read more →

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 →