Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
auto-install
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
killfire
l33t
l33t


Joined: 04 Oct 2003
Posts: 618

PostPosted: Fri Aug 13, 2004 10:10 pm    Post subject: auto-install Reply with quote

after a long post, (https://forums.gentoo.org/viewtopic.php?t=204521) i became curious, and wondered if i could make an auto-install script.

i would also need to make a changed livecd, but maybe if it started working, it could get incorperated, AS AN OPTION.

i am by NO MEANS advocating adding an installer to gentoo. i like it the way it is, but as was mentioned, it would be handy for people who did not want this, or were going to install many systems.

a couple things have come up, and i wonder if people know how to do a couple things:

partition by command line, without goign into fdisk.

basic shell scripting (get a number input, and a for loop, and if it exists, a switch)....

is there a place that i can get an overview of bash shell scripts?

also, how can one edit iso's in the easiest possible way?

as in, i would like to add files to a livecd, to test if im doign this correctly.

thats all for now,

if anyone wants to see it, let me know. its not functioning yet, and its not portable.... :)

[EDIT]
forgot to mention, its not portable from an ibook g3 800mhz
[/EDIT]

killfire
Back to top
View user's profile Send private message
killfire
l33t
l33t


Joined: 04 Oct 2003
Posts: 618

PostPosted: Fri Aug 13, 2004 11:32 pm    Post subject: Reply with quote

got the script up!

not sure if it works, will test later when i have fast internet connection,

here it is:
www.sover.net/~ljohnstn/install-0.01.sh


tell me what you think!

killfire
Back to top
View user's profile Send private message
donni
n00b
n00b


Joined: 23 Jul 2004
Posts: 17

PostPosted: Sat Aug 14, 2004 12:39 am    Post subject: Reply with quote

YOU FUCKED UP MY COMPUTER BIG TIME!


























jk
Back to top
View user's profile Send private message
killfire
l33t
l33t


Joined: 04 Oct 2003
Posts: 618

PostPosted: Sat Aug 14, 2004 2:03 am    Post subject: Reply with quote

lol.

as i told you, i have not even started to test this (i wrote it this afternoon)...

some sections are not even complete.

but did you test it? or were you just messing around?

if you did test it, what worked/didnt work?

otherwise, thanks for bumping my post :)

killfire
Back to top
View user's profile Send private message
HighOnBonsai
Apprentice
Apprentice


Joined: 05 Jan 2004
Posts: 260

PostPosted: Sat Aug 14, 2004 7:46 am    Post subject: Reply with quote

So far it is a nice idea to automate the installation process, but I have to say that I learned much while doing it manually. What I would consider is to write my own script with my own settings for my own machine - but I don't install my gentoo over and over again. ;-) Few months ago I installed gentoo on four Sun high-performance servers and I didn't either use a shell-script to install them: I simply installed the first one than created a big tar-file of the root directory and then copied it to the other servers - and it worked. :roll:

BTW: There a also some thread in this forums about an automated installation process! Have a look! :-)

Code:
## someone who knows shell scripts, can you turn this into a for?
## in c something like for(x=10;x<0;x--) and then echoing the numbers and sleeping
## would do it, but i dont know bash syntax...
echo -n "10.."
sleep 1
echo -n "9.."
sleep 1
echo -n "8.."
sleep 1
echo -n "7.."
sleep 1
echo -n "6.."
sleep 1
echo -n "5.."
sleep 1
echo -n "4.."
sleep 1
echo -n "3.."
sleep 1
echo -n "2.."
sleep 1
echo -n "1.."
sleep 1


A shorter version:

Code:
c=10
while [ ${c} -gt 1 ]; do
  echo -n "${c}..."
  sleep 1
  # watch the backticks!
  c=`expr ${c} - 1`
done


Before I forget it:

Code:
# Before doing a
echo "some line" > some-important-file
# make a backup
cp some-imporated-file backup-of-important-file
# especially in a beta-version of your script

:-)


Christopher
_________________
Are YOU high - on bonsai?
Back to top
View user's profile Send private message
killfire
l33t
l33t


Joined: 04 Oct 2003
Posts: 618

PostPosted: Sat Aug 14, 2004 2:56 pm    Post subject: Reply with quote

thanks a lot.

i really need to learn shell scripting.

i was planning on a for loop, but a while works just as well :)

i will back them up, good idea. i thought, since in the final, i know that i need to erase them first, then in a beta, i should as well.

but thats dumb. because i could wreck them, and not end up with anything in them anymore....

this was meant mainly as an exercise, because i am planning on reinstalling gentoo in about a month, and i was curious if i could do it all with a shell script.

but i also agree, the install process is a rgeta learning process (the three other times ive done it, it was great... on three different boxes)

if you are talking about thread called "why doesnt gentoo automate install"

then yes, iw as aware of that (from posting in that, and seeing others posts is what prompted me to start this... :)

killfire
Back to top
View user's profile Send private message
DiskBreaker
Apprentice
Apprentice


Joined: 07 Oct 2003
Posts: 224

PostPosted: Sun Aug 15, 2004 8:31 am    Post subject: Reply with quote

Not to disappoint you here, but there is already a working script in early beta stage at:
http://glis.sourceforge.net

The corresponding forum threads are here:
https://forums.gentoo.org/viewtopic.php?t=126045
https://forums.gentoo.org/viewtopic.php?t=55293

You could append those existing scripts with ppc-specific things from the manual and try if it works.
Back to top
View user's profile Send private message
killfire
l33t
l33t


Joined: 04 Oct 2003
Posts: 618

PostPosted: Sun Aug 15, 2004 2:35 pm    Post subject: Reply with quote

what would be the fun in that?

:)

as i said, i did this mainly to see if i could get it to automate MY install, which i am doing soon.

i dont need an autoinstall, but if i COULD get it to work, then that would be cool.

this is mainly an exercise (and hopefully ill finally learn shell scripting)

killfire

[EDIT]
i have seen those, and there is also a cluster script lying around, based on glis too.
it looks cool, but im not installing on such a mass number of systems to need it
[/EDIT]
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC 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