ghid rapid instalare gentoo linux

3
Ghid rapid instalare Gentoo Linux de mudrii pe 02 Feb 2004 11:12 Inspecial pentru cei ce au mai instalat Gentoo boot-ati de pe cd configurati reteaua #net-setup Introducem data curenta # date Fri Dec 19 14:18:10 JST 2003 (Daca data este incorecta modifica cu cea curenta) # date 022709042003 (date MMDDhhmmCCYY) ------------------------------- ------- Partitionarea HDD-ului fdisk /dev/hda ------ Disk /dev/hda: 30.0 GB, 30005821440 bytes 240 heads, 63 sectors/track, 3876 cylinders Units = cylinders of 15120 * 512 = 7741440 bytes Device Boot Start End Blocks Id System /dev/hda1 * 1 14 105808+ 83 Linux /dev/hda2 15 81 506520 82 Linux swap /dev/hda3 82 3876 28690200 83 Linux ------ Command (m for help): d Partition number (1-4): 1 *typing p and now it should be empty Command (m for help): n Command action e extended p primary partition (1-4) p Partition number (1-4): 1 First cylinder (1-3876, default 1): (Hit Enter) Using default value 1 Last cylinder or +size or +sizeM or +sizeK (1-3876, default 3876): +32M Command (m for help): n Command action e extended p primary partition (1-4) p Partition number (1-4): 2 First cylinder (1-3876, default 1): (Hit Enter) Using default value 1 Last cylinder or +size or +sizeM or +sizeK (1-3876, default 3876): +1024M type t to set the partition type, 2 to select the partition you just created and then type in 82 to set the partition type to "Linux Swap". Command (m for help): n Command action e extended p primary partition (1-4) p Partition number (1-4): 3 First cylinder (1-3876, default 1): (Hit Enter) Using default value 1 Last cylinder or +size or +sizeM or +sizeK (1-3876, default 3876): (Hit Enter) type a at the menu and then type in 1 for the partition number. If you type p now, you'll now see that /dev/hda1 has a * in the "Boot" column. Now, let's write our changes to disk. To do this, type w and hit enter. Your disk partitions are now properly configured for a Gentoo Linux install.

Upload: stefan-radu

Post on 31-Mar-2015

62 views

Category:

Documents


7 download

TRANSCRIPT

Page 1: Ghid rapid instalare Gentoo Linux

Ghid rapid instalare Gentoo Linuxde mudrii pe 02 Feb 2004 11:12

Inspecial pentru cei ce au mai instalat Gentoo

boot-ati de pe cd

configurati reteaua #net-setup

Introducem data curenta # date Fri Dec 19 14:18:10 JST 2003 (Daca data este incorecta modifica cu cea curenta) # date 022709042003 (date MMDDhhmmCCYY) -------------------------------------- Partitionarea HDD-ului

fdisk /dev/hda

------ Disk /dev/hda: 30.0 GB, 30005821440 bytes 240 heads, 63 sectors/track, 3876 cylinders Units = cylinders of 15120 * 512 = 7741440 bytes

Device Boot Start End Blocks Id System /dev/hda1 * 1 14 105808+ 83 Linux /dev/hda2 15 81 506520 82 Linux swap /dev/hda3 82 3876 28690200 83 Linux ------ Command (m for help): d Partition number (1-4): 1 *typing p and now it should be empty

Command (m for help): n Command action e extended p primary partition (1-4) p Partition number (1-4): 1 First cylinder (1-3876, default 1): (Hit Enter) Using default value 1 Last cylinder or +size or +sizeM or +sizeK (1-3876, default 3876): +32M

Command (m for help): n Command action e extended p primary partition (1-4) p Partition number (1-4): 2 First cylinder (1-3876, default 1): (Hit Enter) Using default value 1 Last cylinder or +size or +sizeM or +sizeK (1-3876, default 3876): +1024M

type t to set the partition type, 2 to select the partition you just created and then type in 82 to set the partition type to "Linux Swap".

Command (m for help): n Command action e extended p primary partition (1-4) p Partition number (1-4): 3 First cylinder (1-3876, default 1): (Hit Enter) Using default value 1 Last cylinder or +size or +sizeM or +sizeK (1-3876, default 3876): (Hit Enter)

type a at the menu and then type in 1 for the partition number. If you type p now, you'll now see that /dev/hda1 has a * in the "Boot" column. Now, let's write our changes to disk. To do this, type w and hit enter. Your disk partitions are now properly configured for a Gentoo Linux install. Dar parerea mea e sa folosesti cfdisk e mai simplu dar nu stiu de ce Gentoo recomanda fdisk.

Crearea sistemului de fisiere

mke2fs /dev/hda1 mkswap /dev/hda2 mkreiserfs /dev/hda3 swapon /dev/hda2

Montarea sistemului de fisiere creat

mount /dev/hda3 /mnt/gentoo mkdir /mnt/gentoo/boot mount /dev/hda1 /mnt/gentoo/boot cd /mnt/gentoo

Decomprimarea pe HDD a stageX In acest caz este 3 dupa cum vezi tar -xvjpf /mnt/cdrom/stages/stage3-*.tar.bz2 tar -xvjf /mnt/cdrom/snapshots/portage-yyyymmdd.tar.bz2 -C /mnt/gentoo/usr mkdir /mnt/gentoo/usr/portage/distfiles cp -R /mnt/cdrom/distfiles/* /mnt/gentoo/usr/portage/distfiles cp -a /mnt/cdrom/packages/* /mnt/gentoo/usr/portage/packages mount -t proc proc /mnt/gentoo/proc cp /etc/resolv.conf /mnt/gentoo/etc/resolv.conf chroot /mnt/gentoo /bin/bash env-update source /etc/profile ln -sf /usr/share/zoneinfo/path/to/timezonefile /etc/localtime nano -w /etc/fstab

Page 2: Ghid rapid instalare Gentoo Linux

/dev/BOOT /boot ext2 noauto,noatime 1 2 /dev/ROOT / reiserfs noatime 0 1 /dev/SWAP none swap sw 0 0 /dev/cdroms/cdrom0 /mnt/cdrom iso9660 noauto,ro,user 0 0 none /proc proc defaults 0 0

emerge -k sys-kernel/gentoo-sources merge -k genkernel genkernel gentoo-sources OR genkernel emerge -k hotplug rc-update add hotplug default emerge -k app-admin/syslog-ng rc-update add syslog-ng default emerge -k sys-apps/vcron rc-update add vcron default emerge -k reiserfsprogs passwd useradd josh -m -G users,wheel,audio -s /bin/bash passwd josh echo PhantomAMD > /etc/hostname echo cablerocket.com > /etc/dnsdomainname nano -w /etc/hosts

127.0.0.1 localhost Care_vreai_tu 8 *Care_vreai_tu nu este chiar necesar /etc/modules.autoload.d/kernel-2.4

alias eth0 via-rhine alias usb-controller usb-uhci alias usb-controller1 ehci-hcd alias sound-slot-0 via82cxxx_audio post-install sound-slot-0 /bin/aumix-minimal -f /etc/.aumixrc -L >/dev/null 2>&1 || : pre-remove sound-slot-0 /bin/aumix-minimal -f /etc/.aumixrc -S >/dev/null 2>&1 |

nano -w /etc/conf.d/net set iface_eth0 to dhcp rc-update add net.eth0 default nano -w /etc/rc.conf emerge -k grub grub

grub> root (hd0,0) grub> setup (hd0)

ln -s /boot/grub/grub.conf /boot/grub/menu.lst nano -w /boot/grub/grub.conf

default 0 timeout 30 splashimage=(hd0,0)/boot/grub/splash.xpm.gz

# If you're using genkernel, use something like this instead: title=My example Gentoo Linux (genkernel)

root (hd0,0) kernel (hd0,0)/boot/kernel-gk_linux root=/dev/hda3 hdd=ide-scsi initrd (hd0,0)/boot/initrd-gk_linux

*no spaces in (hd0,0) *gk_linux might be gentoo-sources

emerge -k xfree etc-update exit cd / umount /mnt/gentoo/boot umount /mnt/gentoo/proc umount /mnt/gentoo reboot Sa nu scoti CD-ul din unitate modules-update

Deci acestea sunt pasii in mare daca urmezi pasii nu vad care poate fi problema.Ultima oară modificat de mudrii pe 01 Mai 2004 18:15, modificat 1 dată în total.www.gentoo.ro Totul se cunoaste prin comparatie [code:1]#emerge life[/code:1]

mudrii Mesaje: 2572Membru din: 03 Sep 2003 15:51Locaţie: Tokyo