LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-10-2006, 07:30 PM   #1
cjae
Member
 
Registered: Mar 2004
Distribution: bouncing
Posts: 277

Rep: Reputation: 30
gentoo install make.conf


Hi, Trying a gentoo install on a pentium 4 machine. Got all the way to editing make.conf from the handbook. I open the file and it has cflags, chost, and cxxflags.

What do I do from here? Do I have to optimize all my apps?
 
Old 04-10-2006, 09:16 PM   #2
cjae
Member
 
Registered: Mar 2004
Distribution: bouncing
Posts: 277

Original Poster
Rep: Reputation: 30
Sorry had to go for a second.

Ok I punked out and did a stage 3 anyway I was reading on one site that if select a stage 3 you need not create a make.conf from scratch.

Anyway I have pentium 4 2.6 ghz hyper threading cpu, I have a gigabyte GA-8IG1000MK rev 1.x motherboard with:

1. Socket 478 for IntelŪ PentiumŪ 4 processor.

Chipset

1. North Bridge : IntelŪ 865G GMCH
2. IntelŪ 82801EB
3. IntelŪ 82562EZ Ethernet Controller
4. Super I/O: ITE I/O IT8712F chip
5. Realtek ALC655 CODEC
6. 3M bit flash ROM

Front Side Bus

1. 800 / 533 / 400 MHz FSB

Memory

1. Type: Dual Channel DDR 400 / 333 / 266 support
2. Max capacity: 4 GB (Please read FAQ for further information)
3. DIMM slots: 4

Internal I/O Connectors

1. 2 x Serial ATA ports
2. 2 x USB 2.0 (supports 4 ports by cable)
3. 2 x UltraDMA 100/66 Bus Master IDE
4. 1 x FDD
5. CD/AUX in
6. 1 x COM port
7. 1 x Game port pin header

Expansion Slots

1. 1 x AGP 8x slot
2. 3 x PCI slots (PCI 2.3 compliant)

Rear Panel I/O

1. 4 x USB 2.0 ports
2. 1 x RJ45 LAN port
3. 1 x LPT port
4. 1 x VGA port
5. 1 x COM port
6. 3 x Audio ports (Line-in / Line-out / MIC)
7. 2 x PS/2 ports (Keyboard/Mouse)

Form Factor

1. Micro ATX
2. 24.4cm x 24.4cm

H/W Monitoring

1. ITE 8712F
2. System health status auto-detect and report by BIOS

BIOS

1. 1 x 3M bit flash ROM, Award BIOS

This bios has the latest update.

I also have a western digital 160 gig w/8mb cache 7200 IDE drive
- an eVGA e-GeForce FX-5500 256MB DDR AGP8X w/TV-Out (Retail)
- a logitech mx 700 wireless mouse

The motherboard supports acpi s1 and s3 and is set to s1.

I also have a plextor 716a optical drive and a DVD/CDRW 16X/52X Combo LG GCC-4520B w/o sw Blk

What are some simple setting for USE that I would want for this system. I want it to be a workstation w/ networking and media, with at most samba sharing for other local networked boxes. Also don't I have enable smp somehow on this cpu under the cflags because of the hyperthreading?

If someone could post some examples I would greatly appreciate it.

Also how would I support alsa on the mb?

Last edited by cjae; 04-10-2006 at 11:47 PM.
 
Old 04-10-2006, 09:24 PM   #3
Penguin of Wonder
Senior Member
 
Registered: Sep 2005
Location: West Virginia
Distribution: Gentoo
Posts: 1,249

Rep: Reputation: 45
Gentoo will optimize for you. Have you looked at the handbook? When I first did this I was really confused as well, as far as I know Gentoo is the only Linux that makes you go through this (please correct me if I'm wrong on that). If I were you I would just fill in everything exactly like they did it in the Handbook. That will get your system up and running. After that you can go in and edit your USE flags and such to suit your future needs. Naturally after updating your USE flags though you'll have to re-emerge some of your programs so that'll take advantage of the new flags.

Here's an example for an AMD64 system:
Code:
-march=athlon-xp
CFLAGS="-march=athlon-xp -pipe -O2"   # AMD64 users use march=k8
                                      # EM64T users use march=nocona   
CXXFLAGS="${CFLAGS}"                  # Use the same settings for both variables
MAKEOPTS="-j2"
USE="-gtk -gnome qt kde dvd alsa cdr"
That will get you up and running, if nothing else, using an AMD64 setup. You'll be using the x86 setup guide though, so your march flag will change, but nothing else really should. The use flags listed there will give you a KDE setup without any GNOME built in.
Code:
USE="gtk gnome -qt -kde dvd alsa cdr"
That will give you a GNOME system without KDE.

If you need any further help just ask. Hope this helped alittle. The best advice I can give is just follow the handbook to the letter.
 
Old 04-10-2006, 09:25 PM   #4
Penguin of Wonder
Senior Member
 
Registered: Sep 2005
Location: West Virginia
Distribution: Gentoo
Posts: 1,249

Rep: Reputation: 45
All of the hardware you listed won't be a factor in your make.conf file except for you processor type. Which is x86. So follow that version of the guide. All of that will be more important later though, espeically if you don't use genkernel and custom compile your own.
 
Old 04-10-2006, 09:33 PM   #5
Penguin of Wonder
Senior Member
 
Registered: Sep 2005
Location: West Virginia
Distribution: Gentoo
Posts: 1,249

Rep: Reputation: 45
Here is the Gentoo Guide for setting up ALSA
Here is the Gentoo Guide for setting up Nvidia Cards
Here is the Gentoo Guide for setting up ATI Cards

I recomend reading all three of those before configuring your kernel, they'll all ask you to select certain options to make everything else work right.

As far as smp, and hyperthreading go, thats all done through your kernel setup. So make sure to enable them when you compile your kernel. If you use genkernel you won't have to worry about it, it will do it for you. Don't mess with your CXXFLAGS unless you absolutly sure of what your doing. You might crash the whole setup. As far as CFLAGS go, just use -pipe, -O2, Gentoo dosen't recomend to many modifers there because it might cause your system to run funny. Never experienced that personally, but I took hede of thier warning.

Last edited by Penguin of Wonder; 04-10-2006 at 09:37 PM.
 
Old 04-10-2006, 09:40 PM   #6
ingvildr
Member
 
Registered: Mar 2005
Location: England, South East
Distribution: Fedora
Posts: 358

Rep: Reputation: 30
as a simple guide here is my make.conf for a simple system for kde,multimedia,internet
Code:
CFLAGS="-O2 -march=k8 -pipe -msse3"
CHOST="i686-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j3"
GENTOO_MIRRORS="ftp://ftp.heanet.ie/pub/gentoo/"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="-eds -pppd -xmms -gnome -gtk -gtk2 -cups -gstreamer -gpm 3dnow mmx xine fam
 X qt kde hal alsa cdr dvd dvdr mp3 win32codecs bitmap-fonts truetype-fonts type
1-fonts truetype spell"
CCACHE_SIZE="2G"
FEATURES="ccache candy"
ALSA_CARDS="intel8x0"
For more info go on the gentoo.org site and look at the documents section and also check out the forums and the gentoo wiki at gentoo-wiki.com for more info on what to put in a make.conf file because there are alot of options and my make.conf is pretty tame to what some people have

Last edited by ingvildr; 04-10-2006 at 09:47 PM.
 
Old 04-10-2006, 10:21 PM   #7
Penguin of Wonder
Senior Member
 
Registered: Sep 2005
Location: West Virginia
Distribution: Gentoo
Posts: 1,249

Rep: Reputation: 45
After getting home from the library I realized/remembered what you were talking about with CFLAGS and hyperthreading. The flag, -j2, actually is a reference to how many processors you have. So, according to the install guide, you'll probably want to just put -j2 since your hyperthreading. But this can be played without to much danger. At worst you'll just run slower. Thats how I understand it to work anyway.

As far as your make.conf file goes, don't throw everything ingvildr gave you into your make.conf right off. Alot of the information in there is put in there automatically through commands given later in the install process from the prompt. So just write in what it tells you to and don't worry about the rest. It should fill out on its "own," if you know what I mean.

Last edited by Penguin of Wonder; 04-10-2006 at 10:22 PM.
 
Old 04-10-2006, 10:26 PM   #8
ingvildr
Member
 
Registered: Mar 2005
Location: England, South East
Distribution: Fedora
Posts: 358

Rep: Reputation: 30
Haha yeah don't just throw everything i said in its just a reference for what can be done. It seems a little overwhelming but like penguin said it will fill itself eventually.

Last edited by ingvildr; 04-10-2006 at 10:28 PM.
 
Old 04-11-2006, 12:02 AM   #9
cjae
Member
 
Registered: Mar 2004
Distribution: bouncing
Posts: 277

Original Poster
Rep: Reputation: 30
Ok I was reading and it said that there are more than one make files, located in different dirs and one out prioritizes the other and so on. Do I need to edit the current one? If so don't I need to put that I have a p4 in cflags and put the instructions it uses in USE=?

I was reading gcc.pdf trying to find out what to put in cflags cannot seem to find proper syntax.

I would like to compile for kde, with cd dvd support, divx support, mpeg support, avi support, alsa support, true type fonts and list goes on.

I do not want gnome or anything gnome related cause I don't like it. I know many say it more advanced and I am certainly not trying to start a war, but I like windowmaker or xfce's more advanced.

Is is qt to kde as gtk is to gnome? What would I need for wm and xfce?
 
Old 04-11-2006, 12:52 AM   #10
cjae
Member
 
Registered: Mar 2004
Distribution: bouncing
Posts: 277

Original Poster
Rep: Reputation: 30
how about

CHOST="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer"
CXXFLAGS="${CFLAGS}"

are you sure about the pentium 4 makeopts being -j2 or should it be j3 cause it says use one more than you have. hYperthreading is seen as two cpu's as far as I can see. Installs of suse enable smp by default. So one more than two would be three.
 
Old 04-11-2006, 07:10 AM   #11
Emerson
LQ Guru
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 5,872

Rep: Reputation: Disabled
-j option sets how many compiler instances are run concurrently. It is considered 2 per CPU is optimal. In case you have a dual CPU -j5 might give you fastest compilation. I do not recommend using -fomit-frame-pointer as system-wide flag. Let developers choose when it should be used.
 
Old 04-11-2006, 07:21 AM   #12
cjae
Member
 
Registered: Mar 2004
Distribution: bouncing
Posts: 277

Original Poster
Rep: Reputation: 30
Ok i just compiled my kernel, it just finished in the gentoo hanbook they say now just name your kernel whatever you like. How the heck do I so this?

and then I have to cp arch/i386/boot/bzImage /boot/<kernel-version> how do I know my kernel-version I can't just type uname -r as this is not the right kernel? What must I do?
 
Old 04-11-2006, 12:43 PM   #13
Penguin of Wonder
Senior Member
 
Registered: Sep 2005
Location: West Virginia
Distribution: Gentoo
Posts: 1,249

Rep: Reputation: 45
You can name your kernel anything you want, just be sure to write it down so you'll know what its called when your write your grub.conf. When you saved your configuration they should of asked you what you wanted to save it as. What you choose its called now.

Code:
cp arch/i386/boot/bzImage /boot/<kernel-version>
The <kernel-version> refers to the name of your kernel. Again you saved your kernel as "my-gentoo-kernel-2.6.xx" so write that in there. If the file dosen't exist, thats not the name of your kernel.

If you can't remember the name or you don't know what you named it

Code:
ls arch/i386/boot/bzimage
That should, if i remember correctly, tell you what you named it.
 
Old 04-11-2006, 03:56 PM   #14
cjae
Member
 
Registered: Mar 2004
Distribution: bouncing
Posts: 277

Original Poster
Rep: Reputation: 30
It did not ask me what to save it as, but it did say would you like to save your configuration and I choose yes, I never prompted me for anything else, so I did make && make modules_install.

Can I still name it or will it have a default name?
 
Old 04-11-2006, 04:01 PM   #15
Penguin of Wonder
Senior Member
 
Registered: Sep 2005
Location: West Virginia
Distribution: Gentoo
Posts: 1,249

Rep: Reputation: 45
You can go in and rename if you want, but there's no need to. Just use the name it was given.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Gentoo make & make.conf & emerge Trouble geagon Linux - Newbie 5 10-28-2005 07:33 PM
cflag settings for gentoo make.conf shanenin Linux - Software 1 10-27-2005 10:27 PM
make.conf in gentoo d1l2w3 Linux - Software 2 12-21-2004 05:42 PM
gentoo install problem, error with /etc/make.conf pyropenguin Linux - Distributions 2 08-13-2004 05:55 PM
Gentoo /etc/make.conf jiggywiggy Linux - Newbie 4 02-07-2004 03:47 PM


All times are GMT -5. The time now is 08:02 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration