Arthur's Journal

A journal of all the tidbits of information I gathered through the years.

How to: Time Machine Backup to Network Drives

Introduction

I wanted to setup Time Machine on my Macbook to backup to my network drive. However after some tinkering I come to realize that by default the Time Machine program can not do this unless it was formatted using the apple file system. After some research and some testing I have come up with the solution and just jotting them down here for anyone having the same issue as me.

Setup

There will be multiple steps for this tutorial. I recommend that you read through this tutorial before you begin. Terminal commands will be supplied at the end for the CLI users.

[Read the rest of this entry…]

How to: Setup Cisco IOS to authenticate via Active Directory

Introduction

This guide will show you how to setup Cisco IOS authentication via Active Directory. This guide is based on Cisco 2600 Router and Windows Server 2008 R2 using NPS.

Active Directory NPS Setup

This section assumes that active directory is already setup and running in your environment. Now for the fun part.

  1. We will need to Add the NPS Role via Control Panel > Admin Tools > Server Manager. Click Add Roles then select Network Policy and Access Services then Network Policy Server use defaults and install.
  2. We will need to add a RADIUS Client by expanding Roles > Network Policy and Access Services > NPS (Local) > RADIUS Clients and Servers.
    Server Manager with NPS installed

[Read the rest of this entry…]

How to: Setup SSH terminal access on Cisco IOS

This tutorial will show you how to enable SSH terminal access on your Cisco IOS device.

The first few commands may already be set on your router, if this is the case you may skip them.

  • Set a hostname on your router using the hostname command: ‘hostname Edge’
  • Set a domain name on your router using the following command: ‘ip domain-name Example.com’
  • Set a username on your router using the following command: ‘username administrator privilege level 15 password 0 1234’

Once you have finished the previous commands you will then need to do the following:

[Read the rest of this entry…]

OS X Lion Clean Install with Bootable CD

This quick guide will show you the steps needed to create a bootable OSX Lion CD and then will describe how to do a clean install of the OSX Operating System.

Make a bootable CD of Lion

  1. First you will need to obtain a copy of the Lion installer application.
  2. Locate the Lion installer application with Finder.
  3. Right (Secondar) click on the application and goto Show Package Contents.
  4. Look for a  folder called SharedSupport.  Inside the folder you will see InstallESD.dmg, copy this file to a different location.
  5. Launch the Disk Utility application.
  6. Click the Burn icon then select the InstallESD.dmg you copied earlier and then insert a blank DVD.
  7. Once finished you will have a bootable OS X Lion CD!

[Read the rest of this entry…]

Block ads with DD-WRT

I have been using a windows host file to block ads on websites for a while now.  The host file (http://www.mvps.org/winhelp2002/hosts.txt) redirects most ad links to 127.0.0.1 instead of their IP address.  By doing this, it shows either a blank page or “page can not be displayed” instead of the normal advertisements.

I wanted to take this one step further and apply this to my router (Linksys E2000) using DD-WRT.  After searching the dd-wrt forums (http://www.dd-wrt.com/phpBB2/viewtopic.php?t=20346), I came across the script to do this.  Some routers like WRT54G v5 and v6 will not be able to do this as there is not enough memeory to store the host file.

[Read the rest of this entry…]

Linux on Microsoft VirtualPC

I had an interesting thing happen to me when I tried installing CentOS 5 on VirualPC 2007.

Currently RedHat and SuSe linux guests are supported by VirtualPC. Installing other linux guests is possible. To install CentOS 5 as a guest in VirtualPC you will need to install it via text mode. If you try to run the setup normally, you get wierd graphic issues like the one posted below. This is due to the fact that it does not understand the graphics chipset that VirtualPC uses.

CentOS 5 graphical installation on VirtualPC 2007

To get into text mode in CentOS 5 at the boot: prompt type in linux text

To install Ubuntu 8 and later on VirtualPC you will need to run the installer in SafeMode.

After that, its pretty much straight forward.

Installation of Street View on Google Maps unsucessful

Usually this happens when the trying to update Street View, Voice Search, etc. and the signatures do not match.  Either there was a hacked version of this installed or something happened.  I found a fix for this, this requires the Android SDK (adb atleast).  If you have this run the following commands:

adb root
adb remount
adb shell
rm /system/app/Street.apk
exit
adb uninstall com.google.android.street

Then reinstall Street View from the Market Place.

I have tried this method with VoiceSearch as well by doing:

rm /system/app/VoiceSearch.apk
adb uninstall com.google.android.voicesearch

This works with Google Search as well:

rm /system/app/GoogleQuickSearchBox.apk
adb uninstall com.google.android.googlequicksearchbox

If you get a Failure on trying to uninstall these apps, you will need to delete the APK first.

As always please backup your system first, I take no responsibility if this does not work.

ISC-DHCP Programming Notes

Here are some programming notes that I have collected working with ISC-DHCP at my job that may come in handy.

If you put this code in the dhcpd.conf file (Located at /etc/dhcpd.conf in RedHat/CentOS or /etc/dhcp3/dhcpd.conf in Ubuntu)

if known {
log (info, concat ("HOSTNAME: ", host-decl-name, " on ",binary-to-ascii (10, 8, ".", leased-address)," at ", binary-to-ascii (16, 8, ":", substring (hardware, 1, 6))));
}

Will result in a message simular to the following in your DHCP Log file:

HOSTNAME: TestPC001 on 208.x.x.75 at d0:50:56:ac:74:71
DHCPDISCOVER from d0:50:56:ac:74:71 via eth0
DHCPOFFER on 208.x.x.75 to d0:50:56:ac:74:71 via eth0
DHCPREQUEST for 208.x.x.75 (172.18.1.2) from d0:50:56:ac:74:71 via eth0
DHCPACK on 208.x.x.75 to d0:50:56:ac:74:71 via eth0

[Read the rest of this entry…]