| 10 | | |
| 11 | | |
| 12 | | == Setup your disk == |
| 13 | | |
| 14 | | Determine your disk and partition it through fdisk[[BR]] |
| 15 | | Format the root partition as you'd like it, and mount it on /mnt/gentoo |
| 16 | | Format the boot partition as you'd like it, and mount it on /mnt/gentoo/boot |
| 17 | | |
| 18 | | == Copy the files == |
| 19 | | |
| 20 | | Copy all dirs from /mnt/livecd to /mnt/gentoo[[BR]] |
| 21 | | Copy /etc /root to /mnt/gentoo[[BR]] |
| 22 | | |
| 23 | | {{{ |
| 24 | | # \cp -avf /mnt/livecd/* /etc /root /mnt/gentoo |
| 25 | | }}} |
| 26 | | |
| 27 | | Copy /usr/portage to /mnt/gentoo/usr[[BR]] |
| 28 | | |
| 29 | | {{{ |
| 30 | | # \cp -avf /usr/portage /mnt/gentoo/usr |
| 31 | | }}} |
| 32 | | |
| 33 | | |
| 34 | | == Configure your "installation" == |
| 35 | | |
| 36 | | Mount proc and dev on /mnt/gentoo[[BR]] |
| 37 | | {{{ |
| 38 | | # mount -t proc none /mnt/gentoo/proc |
| 39 | | # mount -o bind /dev /mnt/gentoo/dev |
| 40 | | }}} |
| 41 | | Chroot on /mnt/gentoo[[BR]] |
| 42 | | |
| 43 | | {{{ |
| 44 | | # chroot /mnt/gentoo /bin/bash |
| 45 | | # env-update |
| 46 | | >> Regenerating /etc/ld.so.cache... |
| 47 | | # source /etc/profile |
| 48 | | # export PS1="(chroot) $PS1" |
| 49 | | }}} |
| 50 | | Configure your /etc/fstab and /boot/grub/grub.conf /etc/conf.d/*[[BR]] |
| 51 | | |
| 52 | | Remove autoconfig from default runlevel[[BR]] |
| 53 | | |
| 54 | | {{{ |
| 55 | | # rc-update del autoconfig default |
| 56 | | }}} |
| 57 | | |
| 58 | | Add keymaps to default[[BR]] |
| 59 | | {{{ |
| 60 | | # rc-update add keymaps default |
| 61 | | }}} |
| 62 | | |
| 63 | | And edit /etc/conf.d/keymaps |
| 64 | | |
| 65 | | |
| 66 | | {{{ |
| 67 | | # mv /etc/inittab.old /etc/inittab |
| 68 | | # mv /etc/init.d/halt.sh.orig /etc/init.d/halt.sh |
| 69 | | # passwd root |
| 70 | | }}} |
| 71 | | |
| 72 | | Change your password |
| 73 | | |
| 74 | | |
| 75 | | == Setup bootloader == |
| 76 | | |
| 77 | | Setup grub by editing it's configuration file. |
| 78 | | If your hdd is /dev/sda it would look like this: |
| 79 | | {{{ |
| 80 | | # grep -v rootfs /proc/mounts > /etc/mtab |
| 81 | | # grub-install --no-floppy /dev/sda |
| 82 | | }}} |
| 83 | | |
| 84 | | |
| 85 | | |
| 86 | | == Finish installation == |
| 87 | | |
| 88 | | Exit from chroot, umount /mnt/gentoo/*[[BR]] |
| 89 | | {{{ |
| 90 | | # exit |
| 91 | | # umount /mnt/gentoo/boot /mnt/gentoo/dev /mnt/gentoo/proc /mnt/gentoo |
| 92 | | }}} |
| 93 | | Reboot |
| 94 | | Enjoy |