tmcG
10-08-2003, 08:14 PM
I am having some difficulties with installing Gentoo.
I have followed the great documentation on the Gentoo site and have chosen a stage3 install (just to allow me to evaluate it, once I am ready for "production" I will use portage to connect to the 'net and update all packages. I don't have an internet connection currently on the PC I am testing it on).
I did read this thread but unfortunately, it provided no help for my problems:
Thread 1 (http://www.justlinux.com/forum/showthread.php?s=&threadid=113342&highlight=gentoo+and+install)
I have hit a snag when emerging the kernel.
I have copied all files to the hard disk (as discussed here in the Gentoo install doc:)
if you wanted to perform a stage3 install of Gentoo, then you would just unpack the stage3 tarball. Unpack the stage tarball as follows:
Important: Be sure to use the p option with tar. Forgetting to do this will cause certain files to have incorrect permissions.
Code listing 8.2: Unpacking the Stages
# cd /mnt/gentoo
Change "stage3" to "stage2" or "stage1" if you want to start from these stages instead.
If you downloaded your stage tarball, change the path below to begin with "/mnt/gentoo/"
instead of "/mnt/cdrom/stages/".
# tar -xvjpf /mnt/cdrom/stages/stage3-*.tar.bz2
If you downloaded your stage tarball to /mnt/gentoo, you can now delete it by typing rm /mnt/gentoo/stage*.tar.bz2.
GRP package/snapshot steps
Important: The following instructions are for GRP users only. If you are not using GRP, continue with "Selecting Mirrors (Optional)".
GRP Users: There is a Portage snapshot on the Live CD. You will need to use this snapshot so that you can skip the emerge sync step later in this document, since emerge sync requires a network connection. Untar this snapshot as follows:
Code listing 8.3: Using Portage snapshot
Replace yyyymmdd with the datestamp in the filename.
# tar -xvjf /mnt/cdrom/snapshots/portage-yyyymmdd.tar.bz2 -C /mnt/gentoo/usr
This will extract a snapshot of the Portage tree to your fresh Gentoo install. Now you won't need to connect to the Internet and use emerge sync to download a Portage tree. Now, copy distfiles and packages from the Live CD into place:
Code listing 8.4: Copying GRP files
# cp -R /mnt/cdrom/distfiles /mnt/gentoo/usr/portage/distfiles
# cp -a /mnt/cdrom/packages /mnt/gentoo/usr/portage/packages
All relevant files are now in place for using GRP. You should now have everything copied over and unpacked that you'll need to install Gentoo Linux -- even without a network connection.
I have successfully done the step of Emerging Kernel Sources with the command:
# emerge -k sys-kernel/gentoo-sources
but the next step fails when I run
# emerge -k genkernel
It attempts to connect to the internet to download the kernel files.
I thought that I had all files extracted to the hard disk? Am I wrong? If so, please help!
Thanks in anticipation!
:)
I have followed the great documentation on the Gentoo site and have chosen a stage3 install (just to allow me to evaluate it, once I am ready for "production" I will use portage to connect to the 'net and update all packages. I don't have an internet connection currently on the PC I am testing it on).
I did read this thread but unfortunately, it provided no help for my problems:
Thread 1 (http://www.justlinux.com/forum/showthread.php?s=&threadid=113342&highlight=gentoo+and+install)
I have hit a snag when emerging the kernel.
I have copied all files to the hard disk (as discussed here in the Gentoo install doc:)
if you wanted to perform a stage3 install of Gentoo, then you would just unpack the stage3 tarball. Unpack the stage tarball as follows:
Important: Be sure to use the p option with tar. Forgetting to do this will cause certain files to have incorrect permissions.
Code listing 8.2: Unpacking the Stages
# cd /mnt/gentoo
Change "stage3" to "stage2" or "stage1" if you want to start from these stages instead.
If you downloaded your stage tarball, change the path below to begin with "/mnt/gentoo/"
instead of "/mnt/cdrom/stages/".
# tar -xvjpf /mnt/cdrom/stages/stage3-*.tar.bz2
If you downloaded your stage tarball to /mnt/gentoo, you can now delete it by typing rm /mnt/gentoo/stage*.tar.bz2.
GRP package/snapshot steps
Important: The following instructions are for GRP users only. If you are not using GRP, continue with "Selecting Mirrors (Optional)".
GRP Users: There is a Portage snapshot on the Live CD. You will need to use this snapshot so that you can skip the emerge sync step later in this document, since emerge sync requires a network connection. Untar this snapshot as follows:
Code listing 8.3: Using Portage snapshot
Replace yyyymmdd with the datestamp in the filename.
# tar -xvjf /mnt/cdrom/snapshots/portage-yyyymmdd.tar.bz2 -C /mnt/gentoo/usr
This will extract a snapshot of the Portage tree to your fresh Gentoo install. Now you won't need to connect to the Internet and use emerge sync to download a Portage tree. Now, copy distfiles and packages from the Live CD into place:
Code listing 8.4: Copying GRP files
# cp -R /mnt/cdrom/distfiles /mnt/gentoo/usr/portage/distfiles
# cp -a /mnt/cdrom/packages /mnt/gentoo/usr/portage/packages
All relevant files are now in place for using GRP. You should now have everything copied over and unpacked that you'll need to install Gentoo Linux -- even without a network connection.
I have successfully done the step of Emerging Kernel Sources with the command:
# emerge -k sys-kernel/gentoo-sources
but the next step fails when I run
# emerge -k genkernel
It attempts to connect to the internet to download the kernel files.
I thought that I had all files extracted to the hard disk? Am I wrong? If so, please help!
Thanks in anticipation!
:)