Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Handy tip for re-install.. AUTOMATION
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
Ash
Guest





PostPosted: Thu May 16, 2002 7:12 am    Post subject: Handy tip for re-install.. AUTOMATION Reply with quote

After fighting with DRI and my radeon for several weeks, I got it working but somehow hosed portage. So, time to reinstall.

I thought I would share this tip for anyone who might find themselves in this predicament.

I realized that wget is on the source CD and quickly set about writing a script that would go throuh the install steps (not the disk partitioning since thats already done, just rm -rf /* your screwed-up system before rebooting to start the install).

you can script everything after setting up your ethernet card.
chroot'ing should be the last line.
upload it to your home page or whatever for safe keeping.

the second script is everything afer the chroot up to the point of setting up grub. Thats how far I went anyways, because the rest is easy after that.

Yout could probably backup some things like modules.autoload too, to keep from editing by hand. Just wget em (add it to your scripts even)

So the install ends up like this:
boot cd and hit enter 3 billion times (lol)
insert the module for your network card
setup network card
wget http://your.homepage.com/script1.sh
(i had to chmod +x mine after wgeting it)
then do ./script1.sh
a few seconds later, you get bash prompt.
wget http://your.homepage.com/script2.sh
(possibly chmod +x it)
./script2.sh
Fire up Urban Terror Mod on your other machine and start fraggin! (Shamless plug: Urban Terror rocks. You dont need quake3 to play, just install the latest update for quake3, get the urban terror files and read the forum about making the link to start it....)
Setup grub and finish the install

You may end up rm -rf /*ing a few times to get your scripts setup, but as long as the install process stays the same, and you can keep your scripts on a server for safe keeping, you should be able to quickly recover when The Worst happens.

You may even want a post install script to emerge your favorite stuff once you have your base install done.

Thanks to the gentoo team for including wget :)

Now, if we can talk em into adding the option to run autoexpect at the begining of the install and save the results to floppy (for brand new installations), the whole process would be even easier :)

Happy hacking kids
Back to top
Jeevz
Bodhisattva
Bodhisattva


Joined: 15 Apr 2002
Posts: 195
Location: Boston, MA

PostPosted: Fri May 17, 2002 12:44 pm    Post subject: Reply with quote

Hmm... interesting idea.
Back to top
View user's profile Send private message
TheWart
Guru
Guru


Joined: 10 May 2002
Posts: 432
Location: Nashville,TN - USA

PostPosted: Fri May 17, 2002 3:00 pm    Post subject: Reply with quote

Does this make the partitions for you? (not in fdisk, i mean the "make2fs or mkfs.xfs part)
_________________
Face it, we are all noobs.

On the box it said it was designed for Win XP or better, so why won't it work with Linux?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
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