Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Installation Guide for GRP Stage 3 (comments please)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
DirtyDirty
n00b
n00b


Joined: 29 Sep 2003
Posts: 9

PostPosted: Tue Sep 30, 2003 12:50 pm    Post subject: Installation Guide for GRP Stage 3 (comments please) Reply with quote

After much fustration i have made this guide for those who do not have fast internet access to download packages online. This guide is only for offline installation of gentoo using the 2 cd set.

Quote:

Note :

1. The section where details are not given please reffer the original guide for it. they are the same.

2. The section that needs to be skipped have been specifically mentioned as "skip". do not read them if you are doing a stage 3 GRP install. I have even changed the color to green so that it becomes easier to distinguish

4. The section that had some errors in original documentation are now corrected and colored as red.

3. I have kept the topic numbering same - since it becomes much easier to follow.



Gentoo Stage 3 GRP Install Guide

1. Introduction

2. Booting

3. Optional hardware configuration

4. Optional Networking configuration

5. Setting your system's date and time

6. Filesystems, partitions and block devices

7. Mount Partitions

8. Stage tarballs and chroot

Unpack the stage tarball as follows:

# cd /mnt/gentoo

# tar -xvjpf /mnt/cdrom/stages/stage3-*.tar.bz2

Untar Portage snapshot on the Live CD as follows :

Replace DATE with the datestamp in the filename.

# tar -xvjf /mnt/cdrom/snapshots/portage-yyyymmdd.tar.bz2 -C /mnt/gentoo/usr

Now, copy distfiles and packages from the Live CD into place:

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.

Entering the chroot

Next, we will chroot over to the new Gentoo Linux build installation to "enter" the new Gentoo Linux system.

Preparing and entering the chroot environment

# mount -t proc proc /mnt/gentoo/proc
# cp /etc/resolv.conf /mnt/gentoo/etc/resolv.conf
# chroot /mnt/gentoo /bin/bash
# env-update
Regenerating /etc/ld.so.cache...
# source /etc/profile
(The above points your shell to the new paths and updated binaries.)

After you execute these commands, you will be "inside" your new Gentoo Linux environment in /mnt/gentoo. We can perform the rest of the installation process inside the chroot.


9. Getting the Current Portage Tree using sync

Skip

10. Setting Gentoo optimizations (make.conf)

Skip

11. Starting from Stage1

Skip

12. Starting from Stage2 and continuing Stage1

Skip

13. Starting from Stage3

Skip


14. Setting your time zone

15. Installing the kernel and system logger

Kernel selections

(same as docs)

Using genkernel to compile your kernel

# emerge -k sys-kernel/genkernel

# genkernel

Note: Advanced users: you can type genkernel --config instead, which will cause genkernel to allow you to tweak the default kernel configuration before building begins.

Once genkernel completes, a kernel, full set of modules...rest is same as mentioned in docs


16. Installing miscellaneous necessary packages

17. Modifying /etc/fstab for your machine

18. User Management

19. Setting your Hostname

20. Modifying /etc/hosts

21. Final Network Configuration

22. Final steps: Configure Basic Settings (including the international keymap setting)

23. Configure a Bootloader

24. Creating Bootdisks

25. Using GRP

26. Installation Complete!

27. Gentoo-Stats

28. Gentoo On Less-Common Hardware

Done!

If there are mistakes or any errors in this guide please post here.

I hope you enjoy working on Gentoo :)


Note :

I am not a linux expert, but i have done my best to provide information for others who are looking forward to install Gentoo using GRP (stage3)

Most of the information was taken from this forum, so i would i like to thanks all those who contributed.

English is not my first language so please let me know of any spelling or grammatical mistakes


Last edited by DirtyDirty on Thu Oct 02, 2003 7:41 am; edited 5 times in total
Back to top
View user's profile Send private message
Lycander
Guru
Guru


Joined: 10 Apr 2003
Posts: 468

PostPosted: Tue Sep 30, 2003 5:22 pm    Post subject: Reply with quote

Regarding K or k (upper or lower) I've heard many people complain that either KDE or Gnome on the GRP CDs is "incomplete." I've used Gentoo PPC GRP CD sets and KDE/Gnome installs fine, no network connection. The same might not be true for x86 users, heck I've even heard complaints from other PPC users. So if/when forcing binary packages only (capital K) doesn't work, then yeah the only option is to use lower case k, some binary packages will still be used hopefully.

Also, I followed the "official" GRP guide word for word but when I get to this part:

# cp -a /mnt/cdrom/packages /mnt/gentoo/usr/portage/packages

I end up with /mnt/gentoo/usr/portage/packages/package
The different is, the various category folders and bin pkgs are in a folder called 'packages' within yet another folder called 'packages'. I had to manually 'mv' all the sub folders up one level to get them into /usr/portage/packages. It's been a while since I first did the GRP install, but if I remember correctly the command I used that worked PROPERLY was:

# cp -a /mnt/cdrom/packages /mnt/gentoo/usr/portage

Notice I did not mention 'packages' in the destination path, it will be created automatically because the cp command is copying the folder 'packages' on the CD disc. Imagine if you will, if you were in a gui interface, the "cp -a /mnt/cdrom/packages [dest]" command is like dragging and dropping the whole 'packages' folder, rather than selecting all of its contents and then copying them over. But if you already have a /mnt/gentoo/usr/portage/packages folder and just want to copy the sub folders into there, I believe the right way to do it is:

# cp -a /mnt/cdrom/package/* /mnt/gentoo/usr/portage/packages

That will properly copy the contents of the 'packages' dir on the CD to the 'packages' dir on hard disk. This is just my complaint against the "official" guide, not yours, but I can see that yours is influenced by the official guide and thus has the same problem.
_________________
* Blessing /dev/hda2 with holy penguin pee
Back to top
View user's profile Send private message
Lycander
Guru
Guru


Joined: 10 Apr 2003
Posts: 468

PostPosted: Tue Sep 30, 2003 5:24 pm    Post subject: Reply with quote

I also like how it's nice and clean, clearly states what parts to SKIP if doing a GRP install. I've heard beginners complain that the install guide can be unclear sometimes (simply because there's just so much text to read through) so they are uncertain as to what parts to do and what to skip.
_________________
* Blessing /dev/hda2 with holy penguin pee
Back to top
View user's profile Send private message
DirtyDirty
n00b
n00b


Joined: 29 Sep 2003
Posts: 9

PostPosted: Tue Sep 30, 2003 6:50 pm    Post subject: Reply with quote

hum...maybe you are right.

i missed a line :!:

# PKGDIR=/usr/portage/packages/

updated the guide.

thx.

i installed it as above & it worked :)

another option is as you said.

to

# cp -a /mnt/cdrom/packages /mnt/gentoo/usr/portage

right ?

so we have like two ways.

Quote:


# cp -a /mnt/cdrom/packages /mnt/gentoo/usr/portage

or

# cp -a /mnt/cdrom/packages /mnt/gentoo/usr/portage/packages
# PKGDIR=/usr/portage/packages/




correct me if i am wrong.

i will try installing gentoo again with that (when i finish the download of 2 cds for athlon-xp. i had downloaded the i686 - my bad)

also i havent tried the 2nd cd yet. so cant comment on gnome.

thx for the feedback :D
Back to top
View user's profile Send private message
Lycander
Guru
Guru


Joined: 10 Apr 2003
Posts: 468

PostPosted: Tue Sep 30, 2003 7:38 pm    Post subject: Reply with quote

PKGDIR=/usr/portage/packages inside /etc/make.conf simply tells portage where to find the packages, doesn't really affect the 'cp' operation in any way. I suppose it's possible to change that PKGDIR variable temporarily to point to the CDROM mount point and the 'packages' dir just to grab packages.

But in order to do that, one would have to first compile and install a kernel, install the bootloader and reboot because you can't eject the CD while in the cdimage environment and mount another disc, unless you have 2 CDROM drives. This is only true when using the second CD. The official guide and your guide doesn't make that point clear to users.
_________________
* Blessing /dev/hda2 with holy penguin pee
Back to top
View user's profile Send private message
DirtyDirty
n00b
n00b


Joined: 29 Sep 2003
Posts: 9

PostPosted: Tue Sep 30, 2003 8:31 pm    Post subject: Reply with quote

PKGDIR is issued after the copy operation & after changing the root

it doesnt afftect the copy operation, but maybe it does affect the subsequent emerge operation where it will look into the new path of

/usr/portage/pakages

rather than

/usr/portage

so installation continues as normal.

just my idea :)

but how did i manage to install it correctly then ??
Back to top
View user's profile Send private message
echo6
Guru
Guru


Joined: 04 Jan 2003
Posts: 587

PostPosted: Tue Sep 30, 2003 9:19 pm    Post subject: Reply with quote

Thanks for your efforts. I would add
Code:
genkernel --config

For those who want the option to tweak their kernel, I found the default .config file not optimized for my cpu when I did this for my last install off the recent P4 GRP release.
Back to top
View user's profile Send private message
Lycander
Guru
Guru


Joined: 10 Apr 2003
Posts: 468

PostPosted: Wed Oct 01, 2003 2:18 am    Post subject: Reply with quote

echo6 wrote:
Thanks for your efforts. I would add
Code:
genkernel --config

For those who want the option to tweak their kernel, I found the default .config file not optimized for my cpu when I did this for my last install off the recent P4 GRP release.

I've heard good and bad things about genkernel. Personally, I prefer to make menuconfig and do it the old fashion way, and the install guide covers this procedure somewhat adequetly.

DirtyDirty:
Yes, PKGDIR does affect subsequent emerge operations, I wasn't challenging that. My point is that it does not affect the 'cp' operation.
_________________
* Blessing /dev/hda2 with holy penguin pee
Back to top
View user's profile Send private message
DirtyDirty
n00b
n00b


Joined: 29 Sep 2003
Posts: 9

PostPosted: Thu Oct 02, 2003 7:40 am    Post subject: Reply with quote

ok this time i reinstalled gentoo & noted every step carefully.

1. PKGDIR= isnt needed

2. cp - a /mnt/cdrom/packages /mnt/gentoo/usr/portage/packages

works & it will copy all packages in /mnt/gentoo/usr/portage/packages correctly ! (no double /packages/packages). i checked it twice.

3. emerge -k sys-kernel/genkernel

also works. no need of capital K

made the changes & now it should work for ewveryone.
Back to top
View user's profile Send private message
Lycander
Guru
Guru


Joined: 10 Apr 2003
Posts: 468

PostPosted: Thu Oct 02, 2003 1:26 pm    Post subject: Reply with quote

DirtyDirty wrote:
ok this time i reinstalled gentoo & noted every step carefully.

1. PKGDIR= isnt needed

2. cp - a /mnt/cdrom/packages /mnt/gentoo/usr/portage/packages

works & it will copy all packages in /mnt/gentoo/usr/portage/packages correctly ! (no double /packages/packages). i checked it twice.

No double /packages/packages huh? I do remember the instructions saying to NOT put a / at the end, maybe I did and didn't realize it. Well now I can take back what I said about the docs being incorrect.
DirtyDirty wrote:

3. emerge -k sys-kernel/genkernel

also works. no need of capital K

Some people use capital K anyways to make sure only binaries are used and it also exposes problems if a bin pkg is missing which is good for reporting and quality assurance and such.
_________________
* Blessing /dev/hda2 with holy penguin pee
Back to top
View user's profile Send private message
_Corvus
n00b
n00b


Joined: 12 Jul 2003
Posts: 32

PostPosted: Sat Oct 04, 2003 1:55 am    Post subject: Reply with quote

..urgh.. I had gone through all of that. and rebooted and was ready for fun..

But..

kernel panic: ..I need a pen :)

I'll be back. (without the truck ;) )

retrieved pen from wall.

ONE? more time? :)

I know something was misplaced, but forgot what and had already removed HD and put RH in. Atleast that recignised my hardware - which MDK did not. RH - 1 MDK - 0 Gentoo..well still trying.
Atleast I could play dimonds/boulderdash.. whatever one calls it. from 80's :)

l8r but not too late.
Back to top
View user's profile Send private message
DirtyDirty
n00b
n00b


Joined: 29 Sep 2003
Posts: 9

PostPosted: Sat Oct 04, 2003 6:06 pm    Post subject: Reply with quote

use lilo & not grub

r u using the onboard graphics card or display card ??


Last edited by DirtyDirty on Sat Oct 04, 2003 6:09 pm; edited 1 time in total
Back to top
View user's profile Send private message
DirtyDirty
n00b
n00b


Joined: 29 Sep 2003
Posts: 9

PostPosted: Sat Oct 04, 2003 6:06 pm    Post subject: Reply with quote

use genkernel (try the defaults)
Back to top
View user's profile Send private message
nikc
n00b
n00b


Joined: 29 Apr 2003
Posts: 23

PostPosted: Mon Feb 16, 2004 7:06 pm    Post subject: Reply with quote

tag to use when i get home tonight and install; hope for the best
Back to top
View user's profile Send private message
bsolar
Bodhisattva
Bodhisattva


Joined: 12 Jan 2003
Posts: 2764

PostPosted: Mon Feb 16, 2004 7:37 pm    Post subject: Reply with quote

Moved from Installing Gentoo.
_________________
I may not agree with what you say, but I'll defend to the death your right to say it.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum