View previous topic :: View next topic |
Author |
Message |
minsoehan Tux's lil' helper
Joined: 02 Jan 2015 Posts: 101 Location: Yangon, Burma. (Mother Su's Country)
|
Posted: Mon Mar 14, 2016 10:33 am Post subject: [Solved] Suggestion USE Flags to build Gentoo Workstation |
|
|
I am planning to install Gentoo on one of my Laptops. I will use it seriously as my main workstation.
I want it supports as much as possible.
My choice for DE is "Plasma". Of course, I will set profile to desktop/plasma.
But I want a little suggestion for USE Flags setting.
I think Code: | USE="-systemd -gnome -pulseaudio *" | should be ok.
It does enable all except systemd, gnome and pulseaudio, right?
What about "gtk"? Should I disable gtk?
And please give me if there is any other suggestion?
Last edited by minsoehan on Thu Mar 17, 2016 12:13 am; edited 1 time in total |
|
Back to top |
|
|
krinn Watchman
Joined: 02 May 2003 Posts: 7470
|
Posted: Mon Mar 14, 2016 11:35 am Post subject: |
|
|
it enable nothing, you have disable something, but didn't ask to enable anything.
some flags will be enable by the profile you will use. Per example, a desktop profile will certainly enable the "X" use flag.
so even when you pickup a profile, that profile will enable some flags that should logically be enable, but any other flags will not, it's your choice to enable what is not.
your gtk question, if your profile need gtk useflag it will enable it, if it doesn't enable it and cannot work with it, it will blacklist it.
if it doesn't care about it (no use of it, but could use it), it's up to you to know if you will have any usage of gtk or not.
you have list of use flag desc in your profile to see what they will do, or you can use equery (emerge gentookit) to see what a use flag will do an a package (equery u package) |
|
Back to top |
|
|
szczerb Veteran
Joined: 24 Feb 2007 Posts: 1709 Location: Poland => Lodz
|
Posted: Mon Mar 14, 2016 11:46 am Post subject: |
|
|
That's for my work laptop (OpenRC, XFCE):
Code: | USE_MEDIA="aacplus opus musepack"
USE_DE="-gnome-media-accounts -qt4 qt5"
USE="amr archive bash-completion ffmpeg gconf gnome-keyring gps gstreamer icu javascript libproxy libsecret lm_sensors mtp netlink networkmanager nsplugin offensive pulseaudio python samba sftp sqlite syslog v4l vim-syntax wavpack webstart xcomposite xinerama"
USE="$USE $USE_MEDIA $USE_DE"
|
Also note that all the cpu intructions USE flags are not used any more, so in my case (i7-4810MQ) I set:
Code: | CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext sse sse2 sse3 sse4_1 sse4_2 ssse3" |
And just in case you have a similar CPU and build with march=native....qt5 doesn't work because of rtm. That fixed it:
Code: | CFLAGS="-O2 -pipe -march=native -mno-rtm"
|
|
|
Back to top |
|
|
charles17 Advocate
Joined: 02 Mar 2008 Posts: 3664
|
Posted: Mon Mar 14, 2016 12:39 pm Post subject: Re: Suggestion for USE Flags to build Gentoo Workstation? |
|
|
minsoehan wrote: | I think Code: | USE="-systemd -gnome -pulseaudio *" | should be ok.
It does enable all except systemd, gnome and pulseaudio, right? |
Why not completely delete that line and check if there's anything installed trying to pull-in systemd, gnome or pulseaudio? If nothing pulls them, no need to disable them.
Then only add USE flags on request when emerge wants them enabled for certain packages. Do this per-package based in /etc/portage/package.use |
|
Back to top |
|
|
arnvidr l33t
Joined: 19 Aug 2004 Posts: 629 Location: Oslo, Norway
|
Posted: Tue Mar 15, 2016 8:48 am Post subject: |
|
|
At least remove the asterisk from the USE line. Activating all other use flags WILL pull in packages that needs systemd, gnome and pulseaudio. Add USE flags as you need them, as charles17 mentions above. _________________
|
|
Back to top |
|
|
minsoehan Tux's lil' helper
Joined: 02 Jan 2015 Posts: 101 Location: Yangon, Burma. (Mother Su's Country)
|
Posted: Wed Mar 16, 2016 5:15 am Post subject: |
|
|
thanks for all suggestions.
I have installed Gentoo on my laptops.
I just set to profile to /desktop/plasma and left USE Flags as it was.
I mean, Code: | USE="bindist mmx sse sse2" | is already in /etc/portage/make.conf file, I didn't touch it.
Then install Xorg and kde-plasma/plasma-meta package. Total compilation time was about 20 hours.
It pulled neither systemd nor pulseaudio nor gnome because of /desktop/plasma profile.
Now my system is working well there is some small problems like missing network icon though.
I will open some thread in desktop environment section for those little problems.
It is funny I thought " * " represents all USE Flags enable because Gentoo handbook says " -* " means to ignore default USE Flags.
Now I understand. |
|
Back to top |
|
|
The Doctor Moderator
Joined: 27 Jul 2010 Posts: 2678
|
Posted: Wed Mar 16, 2016 6:25 am Post subject: |
|
|
I don't think your question is well formed.
Without knowing what you intend to do no one can actually give specific advice. I've used gentoo as a primary workstation in several situations. As a student I needed LaTeX, libreoffice, mathematica, and a web browser with javscript and flash support. As a research scientist I needed a laptop with a gcc compiler, pythia8, root, ssh, and a functional terminal. I emphasis "functional terminal" since there are many examples of Quake-style terminals which close unexpectedly or transparent terminals which are hard to use for anything production related. As a pilot and general nerd I need openfoam, blender, eclipse, and a web browser without flash and javascript because reasons.
The key is to know what you need and what you want. For example, you want plasma but you really could use fluxbox or i3. You need X.
The software you have to run is going to determine what use flags you must have or use flags you don't want. Install the software with whatever features you need and the rest should fall into place.
Another personal anecdote. As a pilot I must have the Foreflight app. This means I must have an ipad running iOS. My tablet would be useless to me if I bought a run of the mill tablet and installed Gentoo no matter what use flags I selected.
As a side note for the CPU flags mentioned above, you want to install emerge -1v app-portage/cpuinfo2cpuflags, run cpuinfo2cpuflags-x86 and put the result in your CPU_FLAGS_X86 variable. _________________ First things first, but not necessarily in that order.
Apologies if I take a while to respond. I'm currently working on the dematerialization circuit for my blue box. |
|
Back to top |
|
|
C5ace Guru
Joined: 23 Dec 2013 Posts: 472 Location: Brisbane, Australia
|
Posted: Wed Mar 16, 2016 10:31 am Post subject: |
|
|
My /etc/make.conf and /etc/portage/repos.conf/gentoo.conf ised on my AMD Phenom II 3Ghz Quad Core workstation with Xfce DE and 5 disk RAID 5 array:
/etc/portage/make.conf
Code: |
CFLAGS="-O2 -march=native -pipe -ggdb -fno-builtin-strlen"
CXXFLAGS="$CFLAGS"
CPU_FLAGS_X86="3dnow 3dnowext mmx mmxext popcnt sse sse2 sse3 sse4a"
MAKEOPTS="-j5"
FEATURES="-preserve-libs"
#FEATURES="preserve-libs nostrip splitdebug"
CHOST="x86_64-pc-linux-gnu"
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
LINGUAS="en"
INPUT_DEVISES="evdev"
VIDEO_CARDS="nouveau"
SANE_BACKENDS="hp"
USE="-kde -gnome -qt -ipv6 -bluetooth -systemd gtk samba"
XFCE_PLUGINS="brightness clock trash"
GENTOO_MIRRORS="http://ftp.swin.edu.au/gentoo"
|
/etc/portage/repos.conf/gentoo.conf
Code: |
[DEFAULT]
main-repo = gentoo
[gentoo]
location = /usr/portage
sync-type = rsync
sync-uri = rsync://rsync1.au.gentoo.org/gentoo-portage
auto-sync = yes
|
|
|
Back to top |
|
|
arnvidr l33t
Joined: 19 Aug 2004 Posts: 629 Location: Oslo, Norway
|
Posted: Thu Mar 17, 2016 7:35 am Post subject: |
|
|
minsoehan wrote: | It is funny I thought " * " represents all USE Flags enable because Gentoo handbook says " -* " means to ignore default USE Flags. | That is what it means. But enabling all USE flags is not a good idea. _________________
|
|
Back to top |
|
|
|