| View previous topic :: View next topic |
| Author |
Message |
fgleich Professor

Joined: 27 Dec 2008 Posts: 588 Location: Albuquerque NM
|
Posted: Wed Dec 31, 2008 9:08 pm Post subject: scripts |
|
|
| Anyone write any useful scripts, bash or otherwise ? |
|
| Back to top |
|
 |
starsunflower Spiritual Warrior

Joined: 18 Dec 2008 Posts: 1267 Location: Mecosta Michigan
|
Posted: Thu Jan 01, 2009 3:22 am Post subject: I don't but I want to learn |
|
|
I want to learn how to use two config files for synergy and call whichever one I have a desire to use at the moment ie: wireless ip addies connection or ethernet. I'm gonna have to look into that. _________________ StarSunflower.com
StarSunflower.etsy.com |
|
| Back to top |
|
 |
xeros
Joined: 04 Jan 2009 Posts: 33
|
|
| Back to top |
|
 |
pogson

Joined: 31 May 2009 Posts: 32
|
Posted: Sat Dec 05, 2009 9:28 am Post subject: Backups using SystemRescueCD |
|
|
Where I am working there are an unknown number of XP machines, many unusable because that other OS is broken or malware. A few have real hardware problems. I managed to get a couple of models restored to "factory" (SP1!) and then updated to SP2,3 and today. I wanted to set up Clonezilla to make images to propagate throughout the building but the network has some 10 megabits/s boxes in the rack so I have to carry them to my lab to fix. I also enter data on the machines into a database. I find it easier to use SystemRescueCD rather than use Clonezilla (needs dhcp server and PXE booting) for this one-at-a-time approach. I cannot even bring all machines in at once because all the doors have different keys and I have no master key. I need to make an appointment...
I have SystemRescueCD running on the "golden" system.
dhclient eth0 gets it an IP address
passwd sets a password for the root user
I start SystemRescueCD on the target system.
dhclient eth0 gets it an IP address.
ssh goldenmachineIPaddress dd if=/dev/sda |dd of=/dev/sda
That runs for an hour and overwrites the whole 40 gB of hard drive. It would be more efficient to use tar just to write files only, but I need to test the whole drive's surface anyway. This command runs a dd (disk duplicate) command on the golden machine and produces output from the ssh command on the target machine which is piped to a second dd command to write the local drive. The target machine then thinks it is the golden machine so I need to change its name and run the key update tool to use the correct COA code.
GNU/Linux is well accepted here. If I can generate enough interest, I could be installing GNU/Linux instead of preserving a dead OS next year. I was supposed to demonstrate GNU/Linux this week but events intervened. |
|
| Back to top |
|
 |
|