View previous topic :: View next topic |
Author |
Message |
Bunzinator n00b
Joined: 05 Dec 2014 Posts: 2 Location: Canberra, Australia
|
Posted: Fri Dec 05, 2014 2:46 am Post subject: New to Gentoo |
|
|
Hi Folks,
I'm a long time linux user, having used Slackware, Redhat, (K)Ubuntu and LFS over the past twenty or so years. With Ubuntu's decision to adopt systemd, I find myself needing a new less inflexible distro, and Gentoo wins.
If anyone has any experiences, gotchas or hints in adapting to Gentoo specifically from Ubuntu, I'd love to hear from you. If not, all good. I'm off to start R'ingTFM when I finish posting this.
Bunz |
|
Back to top |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
|
Back to top |
|
|
The Doctor Moderator
Joined: 27 Jul 2010 Posts: 2678
|
Posted: Fri Dec 05, 2014 3:06 am Post subject: |
|
|
Welcome!
One big hint is don't use the minimal install CD. The hardware support kind of sucks. The System Rescue CD is a much more useful install media. It will not change anything in the handbook, but it will give you a nicer environment to install from and better hardware support.
Two potentially big ones are sys-apps/smartmontools and net-misc/openntpd. These are not mentioned anywhere in the Handbook but are really handy. Smartmontools will monitor your drives and can help you detect an imminent failure and/or test the drive function. Openntpd will set the clock. Both have wiki entries and you don't need to worry about them until after you have a bootable system.
You may also want to look into eudev. It has 2 main advantages over udev. The first is that it doesn't require any special configuration to retain the old network names (ie, eth0 and wlan0). The second advantages is that $upstream is no longer LP. There is no real functional difference, so other than the political statement it really isn't worth mentioning. _________________ 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 |
|
|
ct85711 Veteran
Joined: 27 Sep 2005 Posts: 1791
|
Posted: Fri Dec 05, 2014 3:17 am Post subject: |
|
|
Like Jaglover mentioned, if you have any questions or issues, just ask in the forums or in IRC. Both the Gentoo handbook (to get your base system setup) and Gentoo's wiki are very useful to get you started. Beyond that, let portage worry about all dependencies for the packages you want. Portage is really good to usually solve most dependency issues automatically, the few times it will tell you want USE flag you need to add to allow a package to be installed. The rare times it can't, just ask in the forums; however, please put the entire portage message in the post (it will save you and everyone else time).
Using -pa will make it significantly easier for you to monitor what portage wants to pull in too. |
|
Back to top |
|
|
WWWW Tux's lil' helper
Joined: 30 Nov 2014 Posts: 143
|
Posted: Sat Dec 06, 2014 3:50 am Post subject: |
|
|
the THREE programs I reccomend to used from the beginning:
eix
portage-utils
gentoolkit
Basic eix usage:
For any package:
To filter by category:
With the -C option the category doesn't have to be the full name 'foo-bar', but any characters in the contruction 'xxx-xxx'. Try it, it's fun.
To search in description:
With -S you use any word related to what could be related to the program. So eix -S sony will search all packages where the word "sony" appears in the description.
Lastly, this one comes in handy when you want list of packages in plain (useful for copy paste or piping, etc):
Oops another one, exact match:
I wonder who are the brains behind eix but it's an incredible powerful search engine, perhaps better than google.
The forte of Gentoo are the USE flags, in order to get to know them this one helps to know what they do with this:
This one is either in gentoolkit or portage-utils, forgot :/
Pay special attention to make.conf.
These are the bits more specific to Gentoo.
Oh and as somebody mentioned above, use:
openrc
eudev
Stock Gentoo comes with udev. However, after install, to switch is as simple as:
emerge -Cv udev (ignore the warning)
emerge eudev
salutes. |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54744 Location: 56N 3W
|
Posted: Sat Dec 06, 2014 1:51 pm Post subject: |
|
|
Bunzinator,
Welcome.
Gentoo will give you two things. The packages you ask for and tho packages you need to support the packages you asked for.
Keep in mind that the converse is (mostly) true too - if you didn't ask for it, its not installed.
The well trodden path is install the base system, including selecting a profile that matches your use case.
Reboot, install and configure X, test X, install your desktop. Configure X way be a NOP.
This should mostly JustWork - the profile will set some useful USE flags for you. If you use emerge -av, you can decide if you need to change any USE flags to suit your taste befare emerge runs.
Gentoo is portage and the ebuild tree. Everything else is $UPSTREAM. As such, its a toolkit you use to build and maintain your own distro. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
Bunzinator n00b
Joined: 05 Dec 2014 Posts: 2 Location: Canberra, Australia
|
Posted: Mon Dec 08, 2014 5:17 am Post subject: |
|
|
Thanks for all your replies, folks. All most useful. I was hoping to get stuck in over the weekend, but things got in the way. C'est la vie. Maybe tonight.
Bunz |
|
Back to top |
|
|
hasufell Retired Dev
Joined: 29 Oct 2011 Posts: 429
|
Posted: Tue Dec 16, 2014 11:20 pm Post subject: |
|
|
Advice: don't use portage, but paludis. It's easier that way than switching after ~2 years or so.
Portage:
pros:
- user friendly in a sense that it provides a lot of functionality (for better or good) that isn't related to the dependency solver
- it is fully supported and handles lots of corner cases and junk input (like very bad ebuilds that shouldn't be in the tree)
cons:
- the code is a pure nightmare and almost no one understands the immense complexity, indirection and side effects happening there
- the code is not modular (repoman is still part of portage)
- the resolver often misses packages and is highly undeterministic (running the same thing twice may yield different results)
- the user has VERY poor control over the details of the resolver compared to paludis
- dynamic dependencies are not only supported, but still default (this MAY change in the future), although they are dangerous and cause all kinds of weird side effects and inconsistencies in your vdb
- autounmask is regularly broken and dangerous
- you get TONS of weird and impossible to understand error messages on non-trivial dependency-solver problems
- merging is not entirely safe afair, see here, but I'm not entirely sure whether that's still a problem
- portage appears to do some unpredictable automatic directory creation, see here but as before I'm not entirely sure if that's still a problem
- VERY poor overlay support... most people don't realize that, because they never tried paludis and depend on stuff like layman which doesn't solve the problem of dependency resolution across repositories
- configuration is rather limited and chaotic compared to paludis and sometimes has tricky bits not everyone knows of
- people are used to weird workarounds and stop caring why stuff happens, because no one can figure out what is happening
Paludis:
pros:
- clear distinction between dependency solver and client (cave) and modular design
- has actual API documentation
- the dependency resolver seems to be correcter and stricter in most cases
- the dependency resolver doesn't allow dynamic deps and doesn't allow to randomly break your vdb
- the dependency resolver does not make random assumptions about what you want
- the dependency resolver quits WAY "earlier" than portage if it's not sure what you want and as such often gives more reasonable errors/warnings
- merging files and folders is more strict/safe
- automatic directory creation is more strict/safe
- it's way stricter about broken configuration/overlays/packages and throws lots of warnings if things are messed up
- cave (the client to paludis) allows very fine-grained control over the details of the dependency solver, see here
- no misfeatures like autounmask or preserved-rebuild
- configuration is properly organized, explained and sometimes more powerful than in portage, also see paludis hooks
- helper tools are not scattered across 20 packages, but are mostly part of subcommands of cave (e.g. 'cave resolve', 'cave fix-linkage', 'cave print-id-contents foo/bar', ...)
- VERY good overlay support, including dependency resolution across overlays, no need for 3rd party tools like layman
cons:
- not consistently supported in gentoo... some devs may close your bug reports if you report them while using paludis (although they are not entitled to do so)
- since paludis upstream cares more about support for exherbo and says gentoo has to fix it's input... they won't add workarounds for utterly broken ebuilds like virtual/rubygems
- it's not particularly user friendly if you don't know what you want and is more difficult to handle at first (you should understand what the different resolver switches do etc)
- it's probably debatable whether it's because of missing portage hacks or just a bug, but "|| ( ... )" deps seem to cause more trouble in paludis than in portage (e.g. with those auto-generated haskell ebuilds, sometimes for perl as well)
- afais, support for subslots is still poor, see mismatched sub-slots don't trigger rebuilds of dependant packages
- a lot of 3rd party tools are written for portage and may only partially or not work at all with paludis
- no repoman equivalent afaik... but repoman still works ofc
Probably forgot a lot. |
|
Back to top |
|
|
krinn Watchman
Joined: 02 May 2003 Posts: 7470
|
Posted: Wed Dec 17, 2014 1:49 am Post subject: |
|
|
hasufell forget
Paludis:
pros:
- kick ass support given by hasufell that is a dev
- awesome friendly to use when you're back from a drunk party
cons:
- poor support as only hasufell is mad enough to use it as-is, few users can also provide random support because they are drunk.
- no better package manager if you don't plan to give your liver to anyone.
|
|
Back to top |
|
|
Ant P. Watchman
Joined: 18 Apr 2009 Posts: 6920
|
Posted: Wed Dec 17, 2014 3:39 pm Post subject: |
|
|
hasufell wrote: | Probably forgot a lot. |
There's a few missing from the bottom.
- No sync security (instead of implementing webrsync-gpg upstream, once, correctly, every single user is expected to become an expert and build their own)
- Resolver is slow as hell on an average Gentoo (~900 in ::installed, 4 cores)
- Incredibly user-hostile interface (would it kill them to ask by default instead of *throwing away* a 10 minute resolution?) |
|
Back to top |
|
|
hasufell Retired Dev
Joined: 29 Oct 2011 Posts: 429
|
Posted: Wed Dec 17, 2014 4:00 pm Post subject: |
|
|
Ant P. wrote: | - No sync security (instead of implementing webrsync-gpg upstream, once, correctly, every single user is expected to become an expert and build their own) |
This isn't a real-world problem. You can tell paludis how to sync and also just use plain emerge-webrsync.
Ant P. wrote: | - Resolver is slow as hell on an average Gentoo (~900 in ::installed, 4 cores) |
The most common false information spread about paludis. The algorithms are different and the OUTPUT is different, so comparing both PMs isn't as easy as you make it sound.
If you use '-z', then there isn't really any time difference to a regular portage merge. But I doubt those people who blog about paludis vs portage speed even know what that switch means and that the interface is fundamentally different.
In addition... it also depends on the junk input which portage works around in lots of ways while paludis does not. Go ahead and try exherbo from scratch and you'll see that the difference of input makes paludis magnitudes faster.
Ant P. wrote: | - Incredibly user-hostile interface (would it kill them to ask by default instead of *throwing away* a 10 minute resolution?) |
It's a different concept, so it must be hostile.
Similar like git is hostile to people who have been using svn/cvs for decades. |
|
Back to top |
|
|
Fitzcarraldo Advocate
Joined: 30 Aug 2008 Posts: 2056 Location: United Kingdom
|
Posted: Wed Dec 17, 2014 7:18 pm Post subject: |
|
|
krinn wrote: | hasufell forget
Paludis:
pros:
- kick ass support given by hasufell that is a dev
- awesome friendly to use when you're back from a drunk party
cons:
- poor support as only hasufell is mad enough to use it as-is, few users can also provide random support because they are drunk.
- no better package manager if you don't plan to give your liver to anyone.
|
Très amusant.
Bunzinator, in case you're confused, Portage works fine. _________________ Clevo W230SS: amd64, VIDEO_CARDS="intel modesetting nvidia".
Compal NBLB2: ~amd64, xf86-video-ati. Dual boot Win 7 Pro 64-bit.
OpenRC systemd-utils[udev] elogind KDE on both.
My blog |
|
Back to top |
|
|
yngwin Retired Dev
Joined: 19 Dec 2002 Posts: 4572 Location: Suzhou, China
|
Posted: Thu Dec 18, 2014 8:23 am Post subject: |
|
|
While it may be technically less correct, portage is the only package manager that gets full support on Gentoo. Generally it is also faster, and has a huge and friendly community that can help you with it. _________________ "Those who deny freedom to others deserve it not for themselves." - Abraham Lincoln
Free Culture | Defective by Design | EFF |
|
Back to top |
|
|
mrbassie l33t
Joined: 31 May 2013 Posts: 832 Location: Go past the sign for cope, right at the sign for seethe. If you see the target you've missed it.
|
Posted: Thu Dec 18, 2014 9:03 am Post subject: |
|
|
yngwin wrote: | While it may be technically less correct, portage is the only package manager that gets full support on Gentoo. Generally it is also faster, and has a huge and friendly community that can help you with it. |
Are you saying we're all fat? |
|
Back to top |
|
|
hasufell Retired Dev
Joined: 29 Oct 2011 Posts: 429
|
Posted: Thu Dec 18, 2014 6:48 pm Post subject: |
|
|
yngwin wrote: | Generally it is also faster, |
Please stop spreading misinformation. |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54744 Location: 56N 3W
|
Posted: Thu Dec 18, 2014 6:57 pm Post subject: |
|
|
/me bangs a few heads together for derailing topic.
This is not the thread to use for evanglising over package managers. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
hasufell Retired Dev
Joined: 29 Oct 2011 Posts: 429
|
Posted: Fri Dec 19, 2014 12:10 am Post subject: |
|
|
NeddySeagoon wrote: | /me bangs a few heads together for derailing topic.
This is not the thread to use for evanglising over package managers. |
I'm not sure what the problem is
Bunzinator wrote: | If anyone has any experiences, gotchas or hints in adapting to Gentoo |
the PM choice is *very* important for people who are new to gentoo. |
|
Back to top |
|
|
a3li Retired Dev
Joined: 02 Sep 2008 Posts: 122 Location: 독일
|
Posted: Fri Dec 19, 2014 8:57 am Post subject: |
|
|
hasufell wrote: | NeddySeagoon wrote: | /me bangs a few heads together for derailing topic.
This is not the thread to use for evanglising over package managers. |
I'm not sure what the problem is
|
I don't think it's a 'what'. _________________ I am Confuism. Do not bother me. |
|
Back to top |
|
|
hasufell Retired Dev
Joined: 29 Oct 2011 Posts: 429
|
Posted: Fri Dec 19, 2014 2:14 pm Post subject: |
|
|
a3li wrote: | hasufell wrote: | NeddySeagoon wrote: | /me bangs a few heads together for derailing topic.
This is not the thread to use for evanglising over package managers. |
I'm not sure what the problem is
|
I don't think it's a 'what'. |
Could you clarify why you are going ad hominem without adding anything to the thread? |
|
Back to top |
|
|
Hypnos Advocate
Joined: 18 Jul 2002 Posts: 2889 Location: Omnipresent
|
Posted: Fri Dec 19, 2014 2:34 pm Post subject: |
|
|
Buzzinator,
Welcome. The virtue of Gentoo is that flamewars don't affect you directly, since you have so much choice in how you want to set up your system.
FWIW, I use eudev and Paludis. _________________ Personal overlay | Simple backup scheme |
|
Back to top |
|
|
jenkler Apprentice
Joined: 28 Apr 2003 Posts: 223 Location: Sweden - Stockholm
|
Posted: Tue Dec 23, 2014 12:35 pm Post subject: |
|
|
Welcome Bunzinator, I used Slackware in the far back But stuck with Gentoo since 2002 _________________ Hello from me: Jenkler IT AB (swedish) (use google translate). Check out my Linux manpages for web in english. |
|
Back to top |
|
|
Naib Watchman
Joined: 21 May 2004 Posts: 6069 Location: Removed by Neddy
|
Posted: Tue Dec 23, 2014 12:51 pm Post subject: |
|
|
*sigh* some people
Welcome Bunzinator, I hope you will enjoy gentoo. I learnt more in the weekend installing gentoo than I did running RH/Mandrake for a couple of years prior to trying it.
Gentoo is primarily about choice not only in the USE flag "I want python but I don't want tk support" but equally in packages. FFMPEG or LIBAV (complete dropin), init system (OpenRC, SystemD, etc ) , libc ...or even package managers (portage, paludis, pkgcore [needs some love to bring up to speed]).
It has a reasonable separation of stable & "bleeding edge"
My advice is stick with stable, use portage, get familiar with tinkering and how things can break before you consider trying some of the alternatives for some packages (especially since the motivation for using an alternative is highly politicised) _________________ #define HelloWorld int
#define Int main()
#define Return printf
#define Print return
#include <stdio>
HelloWorld Int {
Return("Hello, world!\n");
Print 0; |
|
Back to top |
|
|
hasufell Retired Dev
Joined: 29 Oct 2011 Posts: 429
|
Posted: Tue Dec 23, 2014 5:43 pm Post subject: |
|
|
Naib wrote: | Gentoo is primarily about choice not only in the USE flag "I want python but I don't want tk support" but equally in packages. FFMPEG or LIBAV (complete dropin), init system (OpenRC, SystemD, etc ) , libc ...or even package managers (portage, paludis, pkgcore [needs some love to bring up to speed]).
It has a reasonable separation of stable & "bleeding edge" |
Separation of stable & "bleeding edge" is not always reasonable. Some developers use ~arch for testing, others use package.mask to mark ebuilds for testing. Some developers don't file stablereqs at all, because they don't care about stable arch.
As such, users of stable arch will often hit the case that something they want is not present in stable arch at all. At that point they have to MIX stable and unstable arch. This is not a trivial thing to do and can lead to very complex and confusing emerge output, especially because autounmask is broken and should not be used.
Additionally, the complexity of your system configuration increases.
Naib wrote: | My advice is stick with stable, use portage, get familiar with tinkering and how things can break before you consider trying some of the alternatives for some packages (especially since the motivation for using an alternative is highly politicised) |
While I use stable arch myself I'm not sure I agree. Maybe it's best to start with stable arch, but if you repeatedly have to add stable keywords for unstable packages... it might be time to just go full ~arch, unless you are very familiar with understanding obscure package blockers. |
|
Back to top |
|
|
steveL Watchman
Joined: 13 Sep 2006 Posts: 5153 Location: The Peanut Gallery
|
Posted: Wed Dec 24, 2014 4:23 pm Post subject: Re: New to Gentoo |
|
|
Bunzinator wrote: | I'm a long time linux user, having used Slackware, Redhat, (K)Ubuntu and LFS over the past twenty or so years. With Ubuntu's decision to adopt systemd, I find myself needing a new less inflexible distro, and Gentoo wins. |
Welcome to the forums. :-)
I think you're going to love Gentoo.
Quote: | If anyone has any experiences, gotchas or hints in adapting to Gentoo specifically from Ubuntu, I'd love to hear from you. :) | Try the tips thread; make sure you've read the basics post at the top of second page. |
|
Back to top |
|
|
steveL Watchman
Joined: 13 Sep 2006 Posts: 5153 Location: The Peanut Gallery
|
Posted: Wed Dec 24, 2014 4:25 pm Post subject: |
|
|
hasufell wrote: | Maybe it's best to start with stable arch, but if you repeatedly have to add stable keywords for unstable packages... it might be time to just go full ~arch, unless you are very familiar with understanding obscure package blockers. |
Ugh not this canard again. Bad idea; can't believe you're even recommending it, especially as a way to deal with blockers. Is that really the "correct" approach we keep hearing about?
Lul. |
|
Back to top |
|
|
|