Instalacia gentaa jednoducha ako ms-dos

Sekcia: Aplikácie & Desktop 28.06.2006 | 13:43
worky   Návštevník
Co poviete nato ze instalacia gentaa je jednoducha ako ms-dos. Nedavno som sa nudil a sadli mi mp3 tak som ma napadlo ze napisem instalacny skript. Ovladanie je fakt jednoduche staci vediet citat. Vypis skriptu: #!/bin/bash mirror=ftp://mirror.gentoo.sk/releases/x86/current/stages rsync=ftp://mirror.gentoo.sk/snapshots portagev=portage-20060627.tar.bz2 gentoo_=http://gentoo.ynet.sk/pub sync=rsync://rsync.europe.gentoo.org/gentoo-portage function stage { links stage1.info #} echo "[1] - Nastavenie stage " echo "Vyber si ake chces pouzit stage: " echo -e " "1", Stage 1 ( bootsrap a emerge system ) " echo -e " "2", Stage 2 ( len emerge system ) " echo -e " "3", Stage 3 ( stiahne stage 3 archyv ) " read vyber #{ if [ "$vyber" = "1" ] then wget -c $mirror/stage1-x86-2006.0.tar.bz2 rozbal_stage=stage1-x86-2006.0.tar.bz2 fi if [ "$vyber" = "2" ] then wget -c $mirror/stage2-x86-2006.0.tar.bz2 rozbal_stage=stage2-x86-2006.0.tar.bz2 fi if [ "$vyber" = "2" ] then wget -c $mirror/stage3-x86-2006.0.tar.bz2 rozbal_stage=stage3-x86-2006.0.tar.bz2 fi wget $rsyns/$portagev tar xvjpf $rozbal_stage tar xvjf $portagev -C /mnt/gentoo/usr rm /mnt/gentoo/make.conf #} echo "Aky mas tip procesora ?" echo " "1" Mam Amd Athlom XP, Amd Athlon " echo " "2" Mam Pentium, Celeron, Duron " read cpu if [ "$cpu" = "1" ] then cpua="athlon-xp" if if [ "$cpu" = "2" ] then cpua="i686" if links use.info echo "[1] - Nastavenie use zavislosti" read useconf echo $useconf echo -e "Chete tieto nastavenia zapisat do make.conf ? ("y")" #} if [ "$useconf" = "y" ] then echo "CFLAGS="-march=$cpua -O2 -pipe -fomit-frame-pointer" >> /mnt/gentoo/makec.fon echo " CHOST="x86-pc-linux-gnu" " >> /mnt/gentoo/make.conf echo " USE="$useconf" " >> /mnt/gentoo/make.conf echo " MAKEOPTS="-j2" " >> /mnt/gentoo/make.conf echo " GENTOO_MIRRORS="$gentoo_" >> /mnt/gentoo/make.conf echo " SYNC="$sync" >> /mnt/gentoo/make.conf fi } Samozrejme ze temto kod neni celi. Kto ma zaujem onho nech mi posle mail: jbakos@winetsro.sk alebo nech si pocka kim spustim web. http://213.151.235.246