How to install Gentoo Linux

Source: Internet
Author: User
Tags bz2 locale domain name server

Install Gentoo Linux steps:

1. Engraved plate.

2. Start, press ENTER directly.

Enter the System DOS interface and start typing commands ...

3. Change the password of the existing root user passwd

4. Open SSHD service to facilitate Remote installation/etc/init.d/sshd start

5. Configure the network for network access ifconfig eth0 192.168.1.20 broadcast 192.168.1.255 netmask

6. Add Gateway route add default GW 192.168.1.1

7. The configuration of the domain name server nano/etc/resolv.conf

Note: If installed in the virtual machine, set the virtual machine networking mode to NET, and then set up the network to automatically obtain on the line, input DHCPCD

8. Start Zoning Fdisk/dev/hda, enter P view information, enter d Delete Information

9. The command to begin setting up the boot partition input is n,p,1,+128m

10. Start to build Linux swap area, enter the command for n,p,2,+1024m,t,2,82

11. Create the root partition, enter the command for n,p,3

12. Start to write the partition information, enter the command for W

13. Format File system (MKFS.EXT4/DEV/HDA1);

Mkfs.ext4/dev/hda3;

14. Start Formatting Partitions mkswap/dev/hda2

15. Start Active partition Swapon/dev/hda2

16. Start mounting File system Mount/dev/hda3/mnt/gentoo

Mkdir/mnt/gentoo/boot

Mount/dev/hda1/mnt/gentoo/boot

17. Start Setup time to ensure the correct installation date mmddhhmmyyyy (Month, day, hour, minute and year); Date 020316212013

18. Use Uname-m to see what kind of stage you need to download

19. Mount point CD Mnt/gentoo into Gentoo

20. Use links to select a mirror from which to locate the stage information that was used during the actual installation

This address to get the stage packet, move the cursor to the top and press D to select download

21. Select the stage3-i686-2007.0.tar.bz2 package download

22. Start Decompression Stage Package tar Xvjpf stage3-*.tar.bz2

23. Start download the latest Portage snapshot, the method of operation above, the actual download address is

24. Start decompression portage snapshots, tar xvjf/mnt/gentoo/portage-2007.0.tar.bz2-c/mnt/gentoo/usr

25. Compilation parameters do not need to be modified make.conf

26. Use the tool to select the mirror site to quickly download the source code mirrorselect-i-O >>/mnt/gentoo/etc/make.conf, using a space to select

27. Start selecting the updated mirror site mirrorselect-i-r-o >>/mnt/gentoo/etc/make.conf

28. Start copying Domain Name resolution information in case the new system can normally access external cp-l/etc/resolv.conf/mnt/gentoo/etc/resolv.conf

29. Start mount Virtual partition mount-t proc None/mnt/gentoo/proc;mount-o Bind/dev/mnt/gentoo/dev

30. Start into the new installation environment Chroot/mnt/gentoo/bin/bash;env-update;source/etc/profile;export ps1= "(chroot) $PS 1"

31. Start to update the Portage tree, emerge--sync the length of time to compare

32. Start to select the correct property profile, Ls-fgg/etc/make.profile, generally do not need to make special changes

33. Start setting the correct use variable, less/usr/portage/profiles/use.desc;nano-w/etc/make.conf; Use= "-gtk-gnome qt3 qt4 KDE DVD Alsa CDR"

34. Start setting up local locale, nano-w/etc/locale.gen;locale-gen

35. Start setting time zone Ls/usr/share/zoneinfo;cp/usr/share/zoneinfo/utc/etc/localtime must be set to UTC time zone

36. Start installation of core emerge gentoo-sources

37. Start to generate Configuration menu, first enter the core source code path Cd/usr/src/linux;make Menuconfig

38. Start compiling core source code, make && make Modules_install

39. Start installing kernel CP ARCH/I386/BOOT/BZIMAGE/BOOT/KERNEL-2.6.19-GENTOO-R5

40. Start configuring the Nano-w/etc/modules.autoload.d/kernel-2.6 module

41. Start creating the File partition Table Nano-w/etc/fstab

42. Start setting up the host name of this machine nano-w/etc/conf.d/hostname

43. Start configuring the network environment Nano-w/etc/conf.d/net

44. Start setting up the NIC boot rc-update add net.eth0 default

45. Start configuring host information Nano-w/etc/hosts

46. Change the password of root user passwd

47. Start installing the appropriate tool software Grub,emerge Grub

48. Start writing the appropriate boot boot file nano-w/boot/grub/grub.conf

49. Execute command grep-v rootfs/proc/mounts >/etc/mtab

50. Execute command grub-install--no-floppy/dev/hda

51. The system compiles completes the finishing work Exit;cd;umount/mnt/gentoo/boot/mnt/gentoo/dev/mnt/gentoo/proc/mnt/gentoo;

52.reboot

This completes the installation of Gentoo Linux!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.