On 23/06/2015 15:05, behrouz khosravi wrote: > Hello everyone. > > I really like to have control over my machine as much as possible. In > this way I will learn a lot, so I am trying to remove all the default > use flags and control them manually.
Here's some good advice: Don't do that. See below. > I just don't know which "global" use flags are absolutely necessary to > the system to make it snappier or secure. That's a bit of a nonsensical line of thought, as what you think you want doesn't really exist. Long ago (like 2004) there were a bunch of really stupid fanboy Gentoo users[1] without any clue at all who thought they could make their system race along at faster-than-light speed by tweaking flags. What they actually did was 1. usually slow it down and 2. break it completely with insane compiler flags (like -O9[2]) The single most significant thing you can do to your system to avoid it being slow (note, I did NOT say "make it fast") is to select an appropriate CPU type for the compiler to build with. All other optimizations tend to be insignificant compared to just this one thing. Put "-march=native" in CFLAGS > What do you recommend ? DO NOT SET "USE=-*" This is only useful for people who want a profile that Gentoo does not provide or assemble a system in a way that Gentoo isn't built for. Or people who really know what they are doing and why. You are nowhere near this category. Pick a profile that suits what you want to use the computer for. You have a desktop? Pick a suitable desktop profile. Don't pick a KDE one unless oyu use KDE for instance (all that does is set some KDE flags (like semantic-desktop or baloo or whatever they call it now) and force some KDE packages to be merged. It doesn't change the underlying way things work. Then look at what you have. You never print? Don't install cups or set it's flag. etc, etc, etc I very much doubt you can "increase security" by picking some USE flags. There is no USE="open-me-up-to-the-world" or USE="rock-solid-nsa-proff-tight" USE flags :-) So what security features do you need or want? Figure that out and then set the system up to provide that. You will get what you want. It's a lot like starting a restaurant, and wondering what must go on the menu. First state what kind of restaurant, then the menu is easy. If you have a fancy French place, you don't sell pizza and don't need the oven. Got a small cozy like bistro place? Then you DO need a pizza oven. See? You can't answer the menu question till you know what kind of place. > > Thanks > [1] Lucky for us, they all moved on to other distros. Most folks left behind in Gentoo now understand their systems well [2] Which doesn't actually exist.... -- Alan McKinnon [email protected]

