NotebookForums.com › Forums › General Notebook Discussions › Linux & Other OS's › BT's BIG Gentoo Project.
New Posts  All Forums:Forum Nav:

BT's BIG Gentoo Project.

post #1 of 168
Thread Starter 
I'm finally tackling gentoo (thanks to abf, seablade and everyone else that's suggested it). I like ubuntu, but I want to tweak things from a much lower level. First I'll be installing gentoo on my desktop, then my laptop. I just started this thread to ask questions as I work through the install and configurations.

First question...
What's the best way to configure the USE variable in make.conf during the install?

Here's an example from the gentoo install docs:
Quote:
Originally Posted by
Are there additional flags I should add... like oss? Should I even load all of these flags at this point?

Second question...
I want to use a custom kernel. Being that I skipped stage 1 and 2, is it still painless to compile a new kernel after I get everything installed and configured?

That's it for now!
post #2 of 168
Ok I would reccomend not having quite so much USE in your make.conf unless you absolutely KNOW that is how you want it. Of course that being said I dont do the alternative myself yet which is to set USE by package, that I really SHOULD do That is next on my list of things I think..

Custom kernels are relatively painless in Gentoo, but I do reccomend you use the genkernel script with the --bootloader flag set, as that can take out the most annoying part(And one that seems to like to fail on me) of setting up your ramdisk, along with doing you the favor of setting up grub to boot correctly. Even if you use the menuconfig, or other config options do it with 'genkernel menuconfig' It makes life easier

But hey try your use flags if you want, it may work out great for you, it is just the make.conf is more for use flags you want on EVERY package, and for specifics I would try to use the more package specific options that I cant remember right now.

Seablade
post #3 of 168
Thread Starter 
OK, thanks seablade.

I'm just gonna use this for the moment:

USE="gtk gnome qt kde dvd alsa cdr"

I want to have a fully functional gnome and kde environment.
post #4 of 168
Here's my make.conf
Quote:
Originally Posted by
Brutal huh.
post #5 of 168
Thread Starter 
Quick question guys...
Does adding [gtk gnome qt kde] mean that if I compile a program like gparted it'll look correct in both kde and gnome automatically? Meaning the fonts and visual style will look consistant with those environments?

If the answer is yes (or no) why would I either not include those flags or do something like a -kde? Will programs be more sluggish if those flags are turned on?

I see what you mean seablade that you should set those flags on a per application basis. But I want every app I install to be supported in kde and gnome. I don't plan to use all those flags in the example above, as I don't even know what half of them are. I just want to get the critical ones that will allow me to get stuff running in gnome and kde with alsa sound support.
post #6 of 168
i liked to keep my tags simple. in my latest (failed) build i did "-gnome -gtk kde qt alsa" and thats pretty much it.....blah!

anyway...have fun!
post #7 of 168
Ya, start with as few flags as possible. Once you have your system built and running you can start adding flags slowly.

My make.conf has rather a lot of flags in it atm (over 100) that I've slowly added over the past 6 months. Machine is rock solid, and does exactly what I want it to. Gentoo FTW!

You may also want to check out a little utility called "ufed." It's a curses based (console based) Use Flag EDitor. Pretty decent front end, but it can be a liiiitle intimidating seeing the massive list of useflags to choose from.

Just remember to add them slowly, and periodically do an "emerge --newuse --update world" and "revdep-rebuild" to make sure your system is still stable with the new flags.

Gentoo can be a little intimidating, but the power, stability, and speed you gain is well worth the effort.

Oh, and BigTrouble: Yes and No. Adding a use flag (KDE for example) means that anything you emerge after that will compile with KDE support, but ONLY if the app has KDE support available.
e.g. If I have "KDE -GNOME" in my flags, and emerge Nautilus, it will NOT cause nautilus to run with QT widgets under KDE since it's clearly a Gnome/GTK app. However, emerging an app that supports BOTH Gnome and KDE with those flags would cause it to compile with KDE support and without gnome support, thus making a smaller/faster app tailored to my environment. Hope that makes sense to you.
post #8 of 168
Thread Starter 
Thanks Chenar, that makes sense.

I have another question...
Grub is giving me some problems on the initial boot. This is my grub.conf:
Quote:
Originally Posted by
Because my drives are SATA those partitions are coming up as sda1, sda2, etc. I had configured sda1 as boot with the boot flag, sda2 as swap and sda3 as root.

The error I get is:
root (sd0,0)
Error 23: Error while parsing number

Everything appears to be correct so I'm sorta stuck here.

EDIT: haha, I never named the kernel as "kernel-2.6..." So that's fixed at least.
post #9 of 168
BT, since you'll eventually get to the business of choosing your CFLAGS, I recommend this resource: http://gentoo-wiki.com/Safe_Cflags. Take that as a reference and start tweaking them if you know what you're doing. There is nothing worse than seeing compilation bug reports from people who have overdone their CFLAGS to hell and back.

As for the GRUB issue, try this: when you're faced with the GRUB screen, select your boot entry in the list and press the 'e' key. This will give you a list of lines that you can edit by pressing 'e' again (key combos should be listed on the screen). Select to edit the root(...,...) line, move your cursor to the right of the first bracket and press tab. Funky, isn't it? GRUB has tab-complete! It will give you a list of available drives for the first option, and a list of available partitions for the second option (it even identifies the file systems on those partitions).

Mikhail
post #10 of 168
LOL didn't notice the "its fixed" line. Well, the above GRUB trick still holds
post #11 of 168
Thread Starter 
Thanks mmarkin,
I figured out exactly what you said about editing the grub code within grub. What took me forever to figure out is that you have to hit [b] to boot with the changes. Everytime you escape back to the kernel selection menu you loose the changes. It would have been nice of the developers to acknowlege that.

Well, I'm hitting another snag... The system starts to boot, but I eventually get this error:

Root-NFS: No NFS server available, giving up
VFS: Unable to mount root fs via NFS, trying floppy.
VFS: Insert root floppy and press ENTER
VFS: Cannot open root device "hda3" or unknown-block(2,0)
Please append a correct "root=" boot option
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)

(sda3 is partitioned as root on my system)

I did a bunch of looking around and didn't make much progress. I have a feeling that is has something to do with the fact that grub sees my partitions as hda1, hda2,... and linux sees them as sda1, sda2,...

My drive is SATA. I'm quite certain that I selected the proper SATA drivers during kernel compilation.
post #12 of 168
That just looks like you forgot to include kernel support for whatever file system is on your root partition. Have you double-checked this?
post #13 of 168
Quote:
Originally Posted by bigtrouble77
Well, I'm hitting another snag... The system starts to boot, but I eventually get this error:

Root-NFS: No NFS server available, giving up
VFS: Unable to mount root fs via NFS, trying floppy.
VFS: Insert root floppy and press ENTER
VFS: Cannot open root device "hda3" or unknown-block(2,0)
Please append a correct "root=" boot option
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)

(sda3 is partitioned as root on my system)

I did a bunch of looking around and didn't make much progress. I have a feeling that is has something to do with the fact that grub sees my partitions as hda1, hda2,... and linux sees them as sda1, sda2,...

My drive is SATA. I'm quite certain that I selected the proper SATA drivers during kernel compilation.
Edit your /etc/fstab. Either that, or post it here and I'll give you the fix for it.
Most likely, your line that points to the root partition is incorrect, ie:

/dev/hda3 / ext3 noatime 0 1

when it should read

/dev/sda3 / ext3 noatime 0 1

note the differences, s instead of h. I'm also assuming you used ext3 for your filesystem. Make sure to change it to what you formatted your drive with, such as reiserfs, jfs, xfs or whatever. ext3 and reiserfs are the most common, and if you followed the handbook, it would be ext3.
post #14 of 168
Thread Starter 
Quote:
Originally Posted by dadams1969
Edit your /etc/fstab. Either that, or post it here and I'll give you the fix for it.
Most likely, your line that points to the root partition is incorrect, ie:

/dev/hda3 / ext3 noatime 0 1

when it should read

/dev/sda3 / ext3 noatime 0 1

note the differences, s instead of h. I'm also assuming you used ext3 for your filesystem. Make sure to change it to what you formatted your drive with, such as reiserfs, jfs, xfs or whatever. ext3 and reiserfs are the most common, and if you followed the handbook, it would be ext3.
Ahh, I'm almost certain that's it. I'll check that later tonight when I get home. I'm using reiserfs, btw.

EDIT- argh, I don't think that's it now.
post #15 of 168
Thread Starter 
Here's my fstab:
Quote:
Originally Posted by
post #16 of 168
Thread Starter 
Quote:
Originally Posted by mmarkin
That just looks like you forgot to include kernel support for whatever file system is on your root partition. Have you double-checked this?
Is there an easy way to check this other than reloading the config file I used to compile my kernel?
post #17 of 168
Yep, as long as your config file is still there...

less .config | grep EXT3

Or whatever your filesystem is. It is just a plain text file so all you have to do is look for the config varilables for it, the answer will either be Y, N, Or M. M means module and wont work in this instance without a ramdisk.

However backing up a second, did you do the genkernel route with the boot-loader option set? If not, USE THAT! You wouldnt believe how many headaches it will save you, and if you still do menuconfig you can still customize your kernel the same as if you hadnt.

Seablade
post #18 of 168
Thread Starter 
I'm compiling the gen kernel now...
post #19 of 168
Thread Starter 
Here's the error I get now with the genkernel:
Quote:
Originally Posted by
Seablade, if by boot loader option you mean installing grub, then yes that's what I did. I just followed the grub install info in the install docs. It's the same for both custom and genkernel.

EDIT: I changed my /etc/fstab to be reiserfs, not ReiserFS, but it still panics. Same error so I guess grub isn't case sensitive.

I don't inderstand why the genkernel isn't working because I copied over the config from the install which works perfectly fine.
post #20 of 168
When you invoke grub-install use the tab and verify that it sees it as either hd or sd and try making them match.
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Linux & Other OS's
NotebookForums.com › Forums › General Notebook Discussions › Linux & Other OS's › BT's BIG Gentoo Project.