Gentoo Toss Small Notes

Source: Internet
Author: User

In the installation of various Google, Baidu article, but found that the effect is not very good, because many old articles, Gentoo version has been updated, a lot of things are not the same, for us this novice, 100 steps inside as long as there is a step wrong, it is difficult to get out. Finally, I am referring to this website wiki for installation.

But wikis offer a lot of roads to take care of different people's choices as much as possible, so this wiki needs to be carefully read through and choose the path that you think is the quickest way to get there.

I installed on the virtual machine, after loading the live CD image, we have to partition our disk, divided by how many areas, I choose to be the traditional MBR partition table, so I divided the hard disk into 3 areas, follow the wiki, using Fdisk this tool.

I won't use Fdisk when I start the installation, but Google will do it. Specific steps can also be referenced on the wiki, very detailed. I'm here to give you a piece of my partition.

Here the boot below * indicates that this is a boot partition that has been marked here.

After partitioning, we are going to format the partitioning operation. Referring to the wiki, I formatted the SDA1 as Ext2,sda3 to Ext4,sda2 is the swap partition.

Give me the formatting.

Here I am using the P command of the parted tool to view.

After formatting, we mount the partition and mount my/dev/sd3 to/mnt/gentoo

Then manually create a/boot directory below the Gentoo directory. To mount the/DEV/SDA1, which is our boot partition, wait here to install the boot driver.

Continue to look at the wiki, see a bunch of descriptions, no tube, links this tool is actually a text web browser, the foreigner is more geek, this can be developed, the effect is not very good, browse the Chinese site will be garbled, but also the operation of egg pain =. =

We first cd/mnt/gentoo the catalogue and download the stage* directly. can use Sohu mirror, I, we wget a copy, wget http://mirrors.sohu.com/gentoo/releases/amd64/autobuilds/current-stage3-amd64/ stage3-amd64-20150507.tar.bz2

After download, unzip TAR-XVJPF stage*.

After the decompression we need to configure the compilation, Gentoo all the things are compiled by the source code installation, it is conceivable that this configuration file is what to do

Cflags This parameter is the GCC compile the source time some configuration,-o2 represents the maximum optimization, but also can specify the CPU type, let GCC compiles to perform the best binary code on this machine. To compile the perfect binary code, you need to have some understanding of GCC.

There is a need to configure a resource distribution point, can be selected through Mirrorselect, however, Chinese users can use my configuration.

The image is configured with Sohu, and Rsync is configured with the Xiamen University.

Then execute the command cp-l/etc/resolv.conf/mnt/gentoo/etc

Copy the DNS configuration file from the Live CD.

Here's a series of mounts, just follow the wiki.

root #mount -t proc proc /mnt/gentoo/proc

root #mount --rbind /sys /mnt/gentoo/sys

root #mount --make-rslave /mnt/gentoo/sys

root #mount --rbind /dev /mnt/gentoo/dev

root #mount --make-rslave /mnt/gentoo/dev

After mounting, we can use our own installation of the system, using the chroot command to switch the past, and then update the environment variables.

root #chroot /mnt/gentoo /bin/bash

root #source /etc/profile

root #export PS1="(chroot) $PS1"

Here is the installation of Portage, we can go to the official website to download, and then unzip, you can simply use the command

Emerge-webrsync

Re-execute Emerge--sync

Synchronizing the local protage tree

And then execute

root #eselect news list

See what needs to be updated, and then perform the following command update.

root #eselect news read




Gentoo Toss Small Notes

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.