Activating a Script on Network Change

I needed to figure out how to launch a script to find the ip when the network was started and up on SuSE Linux. After doing some research I found out that you can add scripts to the ifup.d and ifdown.d folders.

I created a file a script

cd /etc/sysconfig/networking/scripts 
touch ifup.quickstart
vim ifup.quickstart 
# contents are below

Then I went ahead and added a symoblic link to /etc/sysconfig/networking/ifup.d

cd /etc/sysconfig/networking/ifup.d
ln -s /etc/sysconfig/networking/scripts/ifup.quickstart quickstart

Every time the interface is started up, it checks to see if the ip changed for the given hostname, and makes the modifications automatically.

This file is here is the one I created to do the edits to the hosts file.

Recovering Windows via USB Key

Download your Windows 7 Install ISO from your Microsoft Software Developer Network

The Download, in my case, is en_windows_7_ultimate_with_sp1_x64_dvd_u_677332.iso
Note the path the to the system eg /home/paul/Downloads/en_windows_7_ultimate_with_sp1_x64_dvd_u_677332.iso

Plugin a USB key you care nothing about (I threw in the Transcend 64GB USB)

Type ls /dev/disk/by-label/
I see Transcend

Type  findfs LABEL=Transcend
I see /dev/sdb1

Type dd if=/home/paul/Downloads/en_windows_7_ultimate_with_sp1_x64_dvd_u_677332.iso of=/dev/sdb


Note, if you see input/output error, you should redo the command

I then unplugged the USB Key and put it in my Windows Desktop machine to recover it.

Based on the directions from Red Hat Enterprise Linux