The Zones :: View topic - scripts
The Zones - An Open Source Community
 Log in • FAQ • Search •  Register  • Album •

scripts

 
Post new topic   Reply to topic    The Zones Forum Index -> How-to's, Tips & Tricks
View previous topic :: View next topic  
Author Message
fgleich
Professor


Joined: 27 Dec 2008
Posts: 588
Location: Albuquerque NM

PostPosted: Wed Dec 31, 2008 9:08 pm    Post subject: scripts Reply with quote

Anyone write any useful scripts, bash or otherwise ?
Back to top
fgleich is offline View user's profile Send private message Send e-mail
starsunflower
Spiritual Warrior


Joined: 18 Dec 2008
Posts: 1267
Location: Mecosta Michigan

PostPosted: Thu Jan 01, 2009 3:22 am    Post subject: I don't but I want to learn Reply with quote

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
starsunflower is offline View user's profile Send private message Send e-mail Blog Visit poster's website AIM Address Yahoo Messenger
xeros



Joined: 04 Jan 2009
Posts: 33


PostPosted: Sun Jan 04, 2009 12:44 am    Post subject: Reply with quote

Dunno if it qualifies as useful but it might be fun...

http://linuxshellaccount.blogspot.com/2008/10/get-your-local-tv-listings-from-bash.html
Back to top
xeros is offline View user's profile Send private message
pogson



Joined: 31 May 2009
Posts: 32


PostPosted: Sat Dec 05, 2009 9:28 am    Post subject: Backups using SystemRescueCD Reply with quote

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... Sad

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
pogson is offline View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    The Zones Forum Index -> How-to's, Tips & Tricks All times are GMT - 7 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Valued Contributer


A true craftsperson
Starsunflower.com