LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Gentoo
User Name
Password
Gentoo This forum is for the discussion of Gentoo Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 09-22-2011, 09:15 PM   #1
mrmnemo
Member
 
Registered: Aug 2009
Distribution: linux
Posts: 527

Rep: Reputation: 51
Setting up global USE flags


I am installing gentto. So, going by the handbook. Seems I continue to have issues with global USE flags. I have been able to get things sorted out; however, can someone let me know if it is better to have global or package based use flags. Perhaps some pointers to more detailed instructions that the hand book covers?
 
Old 09-22-2011, 09:31 PM   #2
andrewthomas
Senior Member
 
Registered: May 2010
Distribution: Arch, Gentoo, Slackware
Posts: 1,441

Rep: Reputation: 228Reputation: 228Reputation: 228
While I usually prefer the control that local USE flags provide, when I am going to want a flag to be applied in all available cases I put it in make.conf.

Quote:
A list of available global USE flags can be found online ( http://www.gentoo.org/dyn/use-index.xml )or locally in /usr/portage/profiles/use.desc.

A list of available local USE flags can be found locally in /usr/portage/profiles/use.local.desc.
http://www.gentoo.org/doc/en/handboo...?part=2&chap=2
 
1 members found this post helpful.
Old 09-23-2011, 03:19 AM   #3
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 3,905

Rep: Reputation: 353Reputation: 353Reputation: 353Reputation: 353
USE flags are something that takes time to learn, so don't worry too much about them. Your profile (provided you choose the right one for you) should set up the basic set of USE flags. Then, you can adjust them as the time goes by. You definitely don't need to fine tune them on a per-package basis now. That will come with the time.
 
1 members found this post helpful.
Old 09-23-2011, 09:12 AM   #4
silent
LQ Newbie
 
Registered: Sep 2011
Location: The road from nowhere to elsewhere
Distribution: Gentoo Linux
Posts: 14

Rep: Reputation: 3
In case you don't know the role of an use flag you still can run
Code:
euse -i <useflag>
Should be useful
 
1 members found this post helpful.
Old 09-23-2011, 09:30 AM   #5
andrewthomas
Senior Member
 
Registered: May 2010
Distribution: Arch, Gentoo, Slackware
Posts: 1,441

Rep: Reputation: 228Reputation: 228Reputation: 228
Quote:
Originally Posted by silent View Post
In case you don't know the role of an use flag you still can run
Code:
euse -i <useflag>
Should be useful
To use this you need gentoolkit.

Code:
emerge gentoolkit
 
1 members found this post helpful.
Old 09-25-2011, 11:23 AM   #6
mrmnemo
Member
 
Registered: Aug 2009
Distribution: linux
Posts: 527

Original Poster
Rep: Reputation: 51
Wink

Quote:
Originally Posted by i92guboj View Post
USE flags are something that takes time to learn, so don't worry too much about them. Your profile (provided you choose the right one for you) should set up the basic set of USE flags. Then, you can adjust them as the time goes by. You definitely don't need to fine tune them on a per-package basis now. That will come with the time.
Thats what I needed to know. So , when I set my profile I really dont need to do much outside of gnome settings as mentioned in the wiki? Also, the hardened flag is only for the gcc compile environment correct? whereas, gentoo hardened, at least from the wiki, seems more suited to a server environment? Any ways, thanks for the help guys, going to give the install another shot on my next 2 days off.

Goals: secure system that still has ease of use once set up. Meaning: I want my eye candy ( composting, etc.. ) and be able to set up labs ( vms, virtual routers, etc.. ) and the occasional game. I also want to use some of the build flags that AMD mentioned as being specific to the phenom x series.

If this goes well, any of you ever compiled for a consumer grade router ( embedded systems ) ?

The gentoo wiki for the hardened ( http://www.gentoo.org/proj/en/hardened/ ) does not seem to be suited to an environment running X / gnome / games. Is this the case?

Sick of ubuntu, and I dont fill like tracking down depends for slackware.

Sorry it took me so long to get back in touch. I do appreciate the input. I work nights and its turning me into a zombie I think. Been learning alot though. Thanks again.
 
Old 09-25-2011, 01:37 PM   #7
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 3,905

Rep: Reputation: 353Reputation: 353Reputation: 353Reputation: 353
Quote:
Originally Posted by mrmnemo View Post
Thats what I needed to know. So , when I set my profile I really dont need to do much outside of gnome settings as mentioned in the wiki?
You can set additional USE flags for specific purposes. The profile has a basic set of USE flags suited for its purpose. So, the desktop profile will contain flags aimed to build Xorg and a basic set of libraries that will be required for any desktop or window manager; the desktop/kde profile will contain a set of USE flags suitable for KDE; and so on.

That doesn't mean you can't change them to enable or disable extra funcionalities. For example, you might want to use KDE as your main desktop, but you might also want to install Gnome or XFCE, or Fluxbox for those times when you need all your RAM free to encode a movie or do some gaming.

But, as said in my other post, fine tuning the USE flags is something that you will eventually get the hang of. Don't worry too much about it. It's like driving: you can get a license but, regardless, you only learn by doing it.

Quote:
Also, the hardened flag is only for the gcc compile environment correct? whereas, gentoo hardened, at least from the wiki, seems more suited to a server environment? Any ways, thanks for the help guys, going to give the install another shot on my next 2 days off.
There are flags that are tightly tied to the profile, and "hardened" is one of those. If you use "emerge -pv gcc" you will see that this flag is listed in between parentheses. That means you can't change it. This flag is set by the profile, and you can't manually change it in a trivial way. "Hardened" should be ok for a server, but I don't know how the current status of that profile is. The Gentoo docs are probably the best place to start, there's a handbook for hardened if my memory serves correctly. It's been long since I used it, though.

Hardened touches more than gcc, though. Starting from your kernel.


Quote:
Goals: secure system that still has ease of use once set up. Meaning: I want my eye candy ( composting, etc.. ) and be able to set up labs ( vms, virtual routers, etc.. ) and the occasional game. I also want to use some of the build flags that AMD mentioned as being specific to the phenom x series.
Security always imply some degree of pain. You should start checking the video driver you want to use, as there might be some issues with OpenGL acceleration under restrictive profiles (such as hardened). Again, it's been long since I used hardened, and it was for servers anyway (so I didn't really bother about OpenGL nor about X at all).

As for the CFLAGS, -march=native should be all you need to get all the power that your CPU has to offer.

In any case, I'd better try the official Gentoo docs than relying in a Wiki. Not that they don't have a use, but they are not always accurate.
 
2 members found this post helpful.
Old 09-25-2011, 02:15 PM   #8
silent
LQ Newbie
 
Registered: Sep 2011
Location: The road from nowhere to elsewhere
Distribution: Gentoo Linux
Posts: 14

Rep: Reputation: 3
You might want to setup a system with good security. But you should also try to define how far you'd like to go.
As more you harden security, the more you can get tied up.
 
1 members found this post helpful.
  


Reply

Tags
gentoo use flag


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Global proxy setting petestaar Linux - Networking 4 11-13-2011 12:35 PM
[SOLVED] Setting USE flags advice mrmnemo Gentoo 3 06-22-2011 05:41 PM
setting a global $mailto CyberDog3K Linux - Server 5 07-08-2008 07:43 PM
Setting global varible Corrado Linux - Software 3 03-05-2007 02:24 PM
Setting global system variables AzidStar Linux - Newbie 5 03-11-2005 09:03 AM


All times are GMT -5. The time now is 07:35 AM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration