Gentoo General

24MB ram edition

Nice bloat, faggot.

Previous thread: web.archive.org/web/20180121064749/https://8ch.net/tech/res/751551.html

Other urls found in this thread:

chiru.no/u/gentoo.xz
distro.ibiblio.org/tinycorelinux/8.x/x86/release/src/kernel/config-4.8.17-tinycore64
liquorix.net/sources/4.14/config.amd64
gentoo.org/support/news-items/2017-08-19-hardened-sources-removal.html
pastebin.com/raw/eTzBXKLs
liquorix.net/sources/4.14/config.amd64genkernel
kroah.com/lkn/
gitgud.io/cloveros/cloveros/blob/master/binhost_settings/etc/portage/package.env
youtube.com/watch?v=PXFwN3q1VaY&
wiki.archlinux.org/index.php/swap#Swap_file_creation
distfiles.gentoo.org/snapshots/portage-20180205.tar.xz.gpgsig
distfiles.gentoo.org/snapshots/portage-20180205.tar.xz
ca.cloveros.ga/s/signatures/
wiki.gentoo.org/wiki/Radeon,
wiki.gentoo.org/wiki/ALSA#Kernel
wiki.gentoo.org/wiki/Radeon
forums.gentoo.org/viewtopic-p-8183654.html#8183654
forums.gentoo.org/viewtopic-p-8183668.html#8183668
blog.flameeyes.eu/2009/10/explaining-the-sudo-crapfest/
gitgud.io/cloveros/cloveros/blob/master/home/user/stats.sh
twitter.com/SFWRedditGifs

I'm not /that/ minimal, but 414MB RAM with the entire KDE Plasna suite is pretty good.

Almost twice as high as I need it to be to run a webserver on my PowerBook 180 with 14mb ram.

How do I achieve this level of non-bloatness? Why tinycore kernel exactly? Is it somehow special on handling ram? Would all that shit go up to 2 gigs once you start Firefox? Does anyone have a guide on Liniux kernel debloating?

install gentoo

You're the faggot. Samethreading and you're on a tech board, not minimal server or raspberry pi. People on here want to talk about pseudo-int hackerwarez, not gloat about high school level kernel-speak.
your machine is weak, OP. have fun getting absolutely nothing done.

chiru.no/u/gentoo.xz
How much of that image is actually used up for OS files?
Would I be safe upon dd'ing 30 gigs on a smaller flash drive?

It's a raw dd image of the Thinkpad's 32GB SSD. You could run it in qemu/virtualbox to check it out. I think it's about 6GB of useful (non zero) data.

That Gentoo install was for me to experiment low RAM use. I made an image of it because I was done and was about to wipe the drive to use it as a CloverOS testing machine.

These are all the things I did to minimize RAM usage:

- Use Gentoo. The stage3 is lean.
- Build xorg-server with USE=minimal. OpenGL won't work as a result of minimal.
- CFLAGS="-Os -pipe -march=native -floop-block -floop-interchange -floop-strip-mine -ftree-loop-distribution"
- Unload all of your kernel modules. Some hardware will stop working. lsmod | awk '{print $1}' | xargs -I{} rmmod {}
- Have only one TTY running.
- Minimize USE flags on the programs you want running. openrc should have close to no USE flags.
- Use aterm and dash instead of urxvt and zsh
- Kernel configs:
distro.ibiblio.org/tinycorelinux/8.x/x86/release/src/kernel/config-4.8.17-tinycore64
liquorix.net/sources/4.14/config.amd64
Tinycore config saves around 2-3MB compared to Liquorix config. May be less secure.
- # sysctl vm.drop_caches=3

How long did it take to compile on your machine?
Do you think it is possible to take all "go fast" patches like pf, ck and liquorix to forge an ultimate kernel? Why haven't anyone done that yet?

BFS isn't about "go fast", though. It's about better system reactivity; throughput is actually worse in my x264 tests.

You could use
emerge gentoolkitgenlop -t package
to see how long each package took to emerge on a 1.8GHz Core 2 Duo. Everything finished overnight before I woke up at least.

Anyone using musl on gentoo? Is it usable? I'm thinking about replacing Alpine with it on my rtorrent soon to be transmission box (because it's better and because it doesn't have a jew mindslave code).

Okay so I've installed gentoo on my thinkpad but I'm tried to get it installed on a UEFI only board and the minimal CD doesn't support UEFI boot?
Also, has anyone had issues with new experimental profile being shit??

Never gotten any of the gentoo medias to boot on any kind of hardware. Just use a void livemedia with the gentoo stage3 loaded on it and get to work.

Boot any Linux, install Gentoo.

So, just off the bat I assume the hardened kernel is something that is reccomended

It's dead. The so-called hardened kernel was grsecurity kernel patches. But recently grsecurity limited access to these kernel sources. gentoo.org/support/news-items/2017-08-19-hardened-sources-removal.html

Shiet, so I guess I would just use the regular gen2 kernel now

What about using alternative non-NSA approved MAC systems like TOMOYO in Linux?

Did you remove the heater from your car to make it lighter?

Yeah, but it consumes 200ml of gas less!

After launching
lspci -k
how do I understand which module is being used for the keyboard?

Let's say we need to customize it for a certain machine, a Thinkpad for example.
Obviously, obsolete hardware support is not needed, as well patches for newer hardware. Drivers for 500 different Acer trackpads, meme fie systems, copper backbone networking chipsets and so on. Also, deblobbing script would cut a big chunk of kernel too, unless special hardware is needed my stance is: if it's for networking, then it should be frei, but if it is a video codec, then firmware is fine since worst thing CIA niggers can do is corrupt my cartoons playback
Add "go fast" patches on top of that and we'll get a perfect kernel for Holla Forumsnicians.
Might as well adapt all main model-specific modifications for x60, x200, x220 and other Thinkpads.

What is the easiest way of doing it? Localmodconfig is too tight and lurking through menuconfig is boring and unproductive, plus it's easy to break something.

try next time
lsusb
lsusb -t

Keyboard and mouse use usbhid module

Alright... this is from my Arch installation, and in fact, there are multiple instances: pastebin.com/raw/eTzBXKLs
As soon as I un-fuck the Gentoo partition, am I supposed to see similar modules loaded, right? Should I try with gen-kernel first?
What if even with the correct module in use, my chink keyboard doesn't still work?

Is there any real reason to use floops when -pipe and -O3 exist?

Yes
I don't use genkernel so I don't know about that.
Remember to enable usb modules: ohci, ehci and xhci.

...and then you open Firefox and it goes to over 1GB

Pipe doesn't do anything, jewgle what you're talking about before making nonsense posts.

It doesn't optimize, you mean. Of course it "does something".

stop using these shit meme distros and switch to a real distro like fedora, opensuse or ubuntu and install whatever de you like the most

It's strange how this meme distro has better dependency resolution and a more mature packagebase than all three of the real distros you mentioned.

Use gentoo-sources with a hardened profile.

meme is in the eye of the beholder. you are the meme

...

This. Not to mention it's the only distro to ever be stable for more than one week straight (in fact it remains stable for years on end, unlike anything else).

...

A few notes about Gentoo Hardened:

- GCC 5.4.0 enabled stack smashing protection (SSP) by default
- GCC 6.4.0 and Gentoo 17.0 enabled position independent executable (PIE) by default
- hardened-sources is removed. You're encouraged to use gentoo-sources

This makes Gentoo almost the same as Gentoo Hardened other than the global USE flag change, which is:

USE="hardened pie pic -berkdb -dri -modules -orc -jit -cli -gdbm -profile -tcpd -pch -sanitize -fortran"

As far as I can tell, if you add that to your Gentoo's global USE, there's no difference between Gentoo and the Gentoo Hardened profile.

What's the point of having a unique "hardened" unstable compiled binaries when tested and reproducible builds exist? Do you guys compile Tor Browser with -O3 --YOLO too? Please, someone explain me, what is the point of compiling software on your own weak machine.

No point using Gentoo hardened unless you want to be susceptible to Meltdown and Spectre.

Kindly kill yourself.

Does -O3 still break packages often? Last time I did a changeduse emerge it fucked my entire build over so I'm a little hesistant.has anyone useed Ofast???

Maybe there's a package that says that, but that description sounds more like USE=livecd


CloverOS has packages built with CFLAGS="-Ofast -mmmx -mssse3 -pipe -funroll-loops -flto=8 -floop-block -floop-interchange -floop-strip-mine -ftree-loop-distribution"

Correction:
hardened/linux/amd64: USE="hardened pie pic urandom ptpax -orc -jit -profile -pch -sanitize -fortran"

default/linux/amd64/17.0/hardened: USE="hardened pie pic -berkdb -dri -modules -orc -jit -cli -gdbm -profile -tcpd -pch -sanitize -fortran"

hardened/linux/amd64 should be used.

I literally update Gentoo on a yearly basis, and it would be even less than that if it weren't for the occasional zeroday and security scare. The only package manager that isn't next-generation that's as powerful as Portage that I can think of is Arch's, and the Arch devs have made it painfully clear that they're aren't very interested in maintaining the quality of their packages to an enterprise-friendly threshold. Well, to each their own, but I'd prefer to spend the 1 hour time (the majority of which I spend taking a quick walk around the block) installing Gentoo + passing the one command necessary to git sync and emerge world before I go to bed than the 15 minutes installing arch + 10 minutes per week upgrading and fucking with broken packages on Arch. Gentoo is literally the opposite of a time-waster; it's the most hands-off distro you're gonna get for the scope of functionality it offers.

Jesus Christ, just use the default kernel config first and then localmodconfig once you've booted in, you potato.

Good argument.

...

This. Gentoo is the only non meme distro left.

You can have any other distro not change by not updating it...

You have excellent reading comprehension.

None of the fags on Gentoo's forum ever mentioned localmodconfig.
Didn't even know it was a thing... I don't remember it being in the Handbook either, to be quite honest.

Because it's common knowledge and not something that Gentoo is even responsible for.

I remember having trouble with UEFI too, and I ended up installing with SystemRescueCD.

Common knowledge for who? I'm not really configuring kernels on a daily basis.

There's literally no reason to use Gentoo's offical live medium. It's made literally only for ceremonial reasons and ships with FUCKING KDE. For a live medium. You literally unpack a tarball and chroot into it, and that's the extent to which your live medium is an issue.

For whom? Literally everyone who's read a manual. If you're curious about something and don't know what to do, what do you do? You read the documentation, THEN you whine.

emerge gentoo-sources genkerneleselect kernel set 1wget liquorix.net/sources/4.14/config.amd64genkernel --kernel-config=config.amd64 all

Yeah, try to be even more vague, ya LARPing faggot.

liqorix is cancer

Sup.

Okay. Well, now you know, don't you? You're welcome. I'm not going to flame some teenbro who can't do their own research and uses faggot as a pejorative with so much vitriol and not a lick of irony. Clearly you have your own issues if you're projecting so much scorn onto me. That's fine. You're still in the process of discovering and understanding your own sexuality.

Yes, didn't know because never saw it being mentioned anywhere, neither books or wikis.
It's quite astonishing though how hard you try to avoid answering about the manuals you read. They really must be for elite-only, if you can afford to be so cocky.

Linux Kernel in a Nutshell
kroah.com/lkn/
This is literally CS101

Some books that also reference localmodconfig:
Compiling and installing the system kernel: Loonix Intermediate. AL2-076
The Manga Guide to Microprocessors
Linux Kernel Development

CLoverOS is not hardened.

I know. I just wanted to show of the screenshot of my desktop because I rely on the validation of strangers on the internet to foster my own self-worth.

Y-you're stupid!!!

Yes it is.

...

I'm sorry you're an incompetent retard.

Gentoo also has eudev after pottering fucked udev to hell and back.

It's a Gentoo image that has PORTAGE_BINHOST="cloveros.ga" in the /etc/portage/make.conf and packages built with CFLAGS="-Ofast -mmmx -mssse3 -pipe -funroll-loops -flto=8 -floop-block -floop-interchange -floop-strip-mine -ftree-loop-distribution" Gentoo is hands down the best Linux distro and CloverOS only makes this perfection easier to achieve.

We did it reddit

Thats not why you don't have working OpenGL. As far as I'm aware building xorg-server minimal with -udev completely disables the (broken) lazy module loading. You have to manually specify which modules you want loaded.
Clearly you are just a massive LARP though because if you were actually going for minimal you would have used musl.


why are you using genlop when qlop is installed by default and quite a bit less shit.

What should I write in my make.conf if X basically freezes whenever I compile big stuff?

PORTAGE_NICENESS=19

Thanks.

What decides the graphite flags for cloveros? I'm using the following for a few select packages like emulators and I have no idea if those could be better.
cat /etc/portage/env/graphite-lto ~# yuguangzhang.com/blog/enabling-gcc-graphite-and-lto-on-gentoo/GRAPHITE="-fgraphite-identity -ftree-loop-optimize -ftree-loop-distribution -floop-nest-optimize -floop-parallelize-all -ftree-parallelize-loops=4"CFLAGS="-march=native -O3 -pipe -funroll-loops -flto=4 -Wl,-flto=4 ${GRAPHITE} -ftree-vectorize -fuse-linker-plugin"CXXFLAGS="${CFLAGS}"LDFLAGS="${LDFLAGS} ${CFLAGS} -Wl,-O1 -Wl,--as-needed -Wl,--sort-common"AR="gcc-ar"NM="gcc-nm"RANLIB="gcc-ranlib"

sdlmame rvschool -bench 90 has a 15% increase using graphite (without LTO since I don't have six million gigabyte RAM) compared to just using -O2

ftree-parallelize-loops should not be used system-wide.

In my experience the safe ones are "-floop-block -floop-interchange -floop-strip-mine -ftree-loop-distribution"

So what I am using is okay for things like pcsx2, sdlmame, desmume etc. as long as they compile and run without any weird behavior? I was asking because I wasn't sure if the flags I am using are less optimization than the cloveros ones.

Only -Ofast seems to really bother emulators, it's ok to go ahead and try. Add flto too. If it runs, it runs.

You can see which packages compiled with what cflags here: gitgud.io/cloveros/cloveros/blob/master/binhost_settings/etc/portage/package.env

you're joking right? Does a modern kernel boot on that?

Personally I hate having all the hassle of having to compile, make and install software myself. Frankly it's a huge time waste.
But on the other hand I hate the convenience of just downloading someone else's build.
What I want is a distro that makes me feel like I did something but without actually doing anything!
And that's where gentoo comes in. Gentoo only wastes 90% of my time. And with that saved 10% from reading makefile, error messages and documentation I can be a super productive ricer.
Really there's nothing as comfy as sitting down to a session of color scheme ricing and having firefox compiling in the background for the next 12 hours. After those 12 hours, even if I've ended up using solarized again, I get a little boost knowing I was also multitasking and compiling a very complex and riceable browser.

youtube.com/watch?v=PXFwN3q1VaY&

How much you have ram? If you have less than 8 GB add swapfile.
wiki.archlinux.org/index.php/swap#Swap_file_creation

Today I installed Gentoo on my desktop, but didn't do a costum kernel. I did make localmodconfig instead. I plan on going back to further lean out my system, but how bad did I fuck it up?


It was all just so over my head, I have no idea which drivers are essential to boot, which boxes I should've checked or unchecked, etc. But I'm going to be learning slowly but surely. Any advice here would be excellent.

Read Linux Kernel in a Nutshell

Also, I'm reading "Zen and the Art of Motorcycle Maintenance", and I can't help but think it's a great companion to installing Gentoo and learning more about your computer. It's not a selfhelp book, despite how the name comes off, it more like a modern Moby Dick (albeit without the literary prowess of Melville).


Thank you user, it's free online and under $5 on eBay, I might even buy a physical copy for something to read during compile times.

Just read it right now.

I'm still installing actually (I lied in my op), so I'm a bit preoccupied m8 but I will

Its pretty easy to mess with after you have a working kernel. My recommendation is to either make a copy of that working kernel, or to remember not to run make install twice when you only have one kernel version present. This will overwrite kernel.old which happens to be your known bootable one. I've had some scares in that past when I did that and didn't know if I would be able to boot. Though I usually remember that /proc/config.gz exists and quickly rebuild the working one before rebooting. It is possible to disable /proc/config.gz but I recommend that you do not do that, its a seriously bad idea.

So you just proceeded by incrementally poking around your kernel, removing what you learned you don't need? This sounds like it may be the most /comfy/ method

How do I que up a bunch of different programs to emerge while I sleep? I have a list of about 15 different software applications I'd like to instal, but compiling them one by one (and needing to command each one) is a burden and there's got to be a simple and slick solution for this without making a script (yes, am noob).

emerge program1 program2 program3...

Thanks, I did try searching but couldn't put together the right words I guess.

Turned out I fucked my install completely (probably due to thinking I was UEFI when I'm really BIOS, but hey gotta learn somehow), but this knowledge will hopefully come in handy tomorrow!

Did you try reading the manual.

The handbook? Ofc. But I wanted the question answered before bed, not after reading an entire manual for such a petty thing.

and if you're talking about bios vs uefi, yeah, but not good enough (i didn't run a command to confirm bios, just assumed uefi)

That is what I (different user) did. You can take it pretty easy with Gentoo, making improvements as you learn. At some point you will probably go through all your USE flags and redo them, for instance.

enjoy your CIAnigger exploits, dumb refu/g/ees

distfiles.gentoo.org/snapshots/portage-20180205.tar.xz.gpgsig
distfiles.gentoo.org/snapshots/portage-20180205.tar.xz

ca.cloveros.ga/s/signatures/

Chances are that you actually have a UEFI board, and you might be using it with BIOS-legacy.

Anyone try the most recent 2/5 release snapshot stage 3? I keep getting random code errors about portage code lines being incorrect.

have you tried reinstalling portage?

No. This is on a USB minimal install. I've dd the usb several times. Something tells me it might be the USB but I wanted to check.

Why not try an older snapshot? Can you at least post the output of those errors? If you're using a live medium with X, you should be able to copypaste.

But seriously localmodconfig is a hidden gem, they need to update the handbook with this information as a Gentoo install is often (and probably most commonly) ones first experience with customizing a kernel.

This must be the case, as I remember Windows was using UEFI on the same machine.


Ok, great. I'm reading Linux Kernel in a Nutshell too, feels good taking my Linux knowledge to the next level.

I'll try that.

Is that a problem? Would using UEFI instead have any positive effects? Not sure how I'd go about that but I'll begin to look.

Well, that explains why my system wouldn't boot yesterday, I set everything up (including GPT) for UEFI and I'm currently in BIOS-legacy mode.

Linux Kernel in a Nutshell (LKiaN) says a good variable for the '-j' option to the 'make' command is number of cores times two, while Gentoo handbook says a good MAKEOPTS variable number of cores plus one. Are these conflicting pieces of advice?

And, to further demonstrate my room temp IQ, my PC has 4 cores and 4 logical processors. That means each core can handle only one thread at a time, so my make opts variable should 4 + 1 (or 4*2 according to LKiaN), correct?

...

I feel bad bumping threads with low quality shitposting. Surely someone knowledgable will see it sooner or later..

Holy shit, gentoo handbook haven't updated itself yet? Do the umber of cores -j4. Core = logical processor. If your CPU had hyperthreading, then there would be 8 logical processors.

Ok, thanks user. So you (rather heavily) disagree with the author of LKiaN when he advises cores * 2? I mean, as a kernel developer he's got to be knowledgable in this domain. Itd be interesting if he was so off the mark here.

The theory is that since compilation involves a lot of disk IO, you won't use up your CPU capacity with just one job per core. I don't think it really matters that much and it depends on your system, what your're compiling, and what else you're doing at the same time, anyway.

Two cores is just a rule of thumb. The point is to understand WHY you use two cores, not to follow his advice brainlessly--that's what the handbook is for.

You mean (number of cores) * 2, right?

And regardless, your slight at me is inapplicable. There's reasons for either rule of thumb (whether plus one, times two, or whatever the fuck), I'm simply asking for opinions on the matter, since there's clearly two very different hueristics here.

Further, I invite you to show me where the author of LKiaN delves into his reasoning behind this statement and explains this elusive WHY of the matter. You probably won't, so I'll just quote it:

"It is best to give a number to the -j option that correpsonds to twice the number of processors in the system."


He doesn't explain the intricies of when to use more, when to use less, he simply advocates the brainless following of this hueristic, and my post is here to NOT do exactly that, and instead to help me understand.

faggot

*intricacies

fuck now I'm all rustled

What software optimizations in particular other than custom kernel patching are worth compiling on end user machines? It's not like software is that flexible, or am I wrong?

Just delete your post, you dummy.

Custom sources aren't worth compiling. Don't fret over optimizations. You'll learn to really appreciate Gentoo the day you stumble onto a package like anki where you have to build a bunch of testing packages or specify a use flag that said package typically isn't built with on other distros and you realize how streamlined and simple and efficient Gentoo is at handling those nuances that on other distros would involve you manually building packages over and over again.

It is that flexible. You can disable/enable support, and some choices exclude or require others. Portage puts all the source configs at your fingertips and manages dependencies for you. You can also supply your own patches and custom package ebuilds (which may fetch code from git and other repos), and let portage apply and manage them, where you'd need to handle the source manually in other distros.

I have to expand on this because it's the greatest thing. How many times have you had some software that had a simple but glaring flaw for how you used it? You can fetch the source, write a patch, and throw it in /etc/portage/patches, and now it will be automatically applied any time you install the package. The thing being that you're still completely within the package manager. You do have to redo them when the source you modified changes, but I haven't had to all that often. I guess the point is, Gentoo lets you not put up with shit without turning your system into spaghetti.

portage just makes things more complicated, no simple "apt-get (package)", bunch of extra steps

emerge package
There is no extra steps. The default settings are perfectly fine for a normal fag like you.

I use -j5 on a four core Phenom II with PORTDIR being a 6GB RAM disk and load reaches 5-6 but with X still being responsive.

Also, I tried make localmodconfig the other day after I restarted firehol and fireqos but it still deselected moduless that seemed to be necessary to start up firehol and fireqos during system boot. I'll keep my kernel config as is since shit's working fine and it's still compiled within ~12 minutes.

What I said was right though f a g

What's a good book regarding the Loonix Kernel?

Why doesn't other distros do this yet?

Do what?

Do what?

So empty, so pointless

LINUX KERNEL IN A NUTHSELL

Has anyone tried using NixOS' package manager on top of portage? Does it override package slots and allow one to switch between numerous installed 9999 version packages?

It barely covers the stuff necessary to a simple configuration. Anything deeper?

...

Probably, the appendix in that book supposedly had a lot of more advanced resources.

I just finished the sections of the book that were relevant to my tasks, and have to say I agree.

Are USE flags just a wrapper around ./config options? What advantages do they really offer?

Pretty much. The advantage is that you can enable or disable different ones system wide based on what you want included.

They're part of the dependency graph. You can enable or disable config options without fucking everything up (normally). There is a global set with a consistent meaning for system wide settings. They can do other things like install docs or build additional files.

...

So the window manager is confirmed Tom's, right? OP post configs or your a certified faggot, also post the background image.

There's nothing wrong with being gay.

This. You can open a few terminals and two tabs on your browser, but I right now have 67 tabs open across 5 groups, and I frequently have >100. There is no way your hipster walmart ram can handle that.

It's basically a Red Hat middleware testbed

I really enjoyed using the system rescue cd to install gentoo, what would be the easiest way to copy all the configs, packages, etc for it and implement it on my system?


Ideally I'd have two profiles/DEs, one of which mimics the system rescue cd, the other where I work toward a more minimalist/ricer set up, likely using i3m as my WM. But I want a fully fledged DE to begin with, because I have shit to do

You probably want to start off by emerging xfce and then copying the config files for it from the iso.
Checking what's installed in /var/lib/portage/world on the iso might be useful for finding other packages you'd like to install.

...

Go for a walk.

Nah, next time I'll just compile at night, as I always did in the past.

You should go for a walk regardless. It's good for your health. Also, using ccache will help tremendously at shortening the compile time of big packages at the expense of a slightly higher rate of build failure.

Thanks, I'll keep it in mind, but I'm too much of a noob right now to fuck around with Gentoo.
I need to do gradually get more comfortable with it.

Literally two lines in your make.conf.

How else does one use gentoo?

At any rate, fellow noob here with today's mess, pic related. Trying to build a new kernel but it's failing because I'm out of memory?

Not sure why it cut off there, here's the full pic (hopefully). I'm trying to get my sound working via HDMI + ALSA, so I needed to tweak a few things.

ok, killing myself if i don't get it this time, here's the png (my screen resolution is all fucked up, thought I clicked it last time)

I want to boot mpd at userland so that it plays nicely with pulseaudio. What runlevel to I add it to?

I thought I had successfully compiled Chromium, but then realized it actually wasn't.
I don't recall reading any errors/warning, what could have gone wrong?

Gave up on this and just recompiled my old kernel instead, still trying to get my sound to work via HDMI from my Radeon 6870 though, and I'm having a lot of trouble.

I don't think you understand what that means but in any case
None, you add it to your xinitrc and run it as a user

I meant to not go too extreme with it, and instead to things a little more gradually to avoid fucking up the entire installation.

When dealing with sound output and multiple audio cards, I found incredibly useful PulseAudio Volume Control (pavucontrol) which allows you to easily manage all the audio-streams/channels. But it obviously relies on pulseaudio, and you're quite likely not using (((SystemD))), so it may not help at all.

The install really isn't hard if you follow stick pretty close to what the guide lays out (partition schemes, profile choices, etc). But by nature of Gentoo, you will be fucking around quite a bit afaik, but that's where the learning happens.

Yeah no systemd on my machine, but hopefully I get this figured out today.

In an attempt to get my sound working I stumbled on this: wiki.gentoo.org/wiki/Radeon, and now my resolution is perfect, but the sound is still absent. One step closer though

My sound devices are also now showing up after I type "aplay -l", which was not happening before

And no it's not muted, it's showing up in ALSAmixer but not really (no bars to change volume, and it's the default; I have to cycle to it with f6)

I've been doing that, but it gets confusing knowing that I can't manage it like literally every other service I'm running. There are more things for which this issue is relevant, too, like with emacs daemon which basically has the same issue where it won't play sound otherwise.

Or, you know, RTFM.

I could never get a bunch of packages to compile with the systemd use flag while installing Gentoo with systemd. It probably doesn't help that there's less documentation than that of openrc.

Sure, installing Gentoo is fine, but if you push too beyond it will be more favorable to experience issues.
Try and error is a great way to gain new knowledge, but it can also be extremely bothering in certain cases.
Also
>ccache is a compiler cache. It speeds up recompilation
I would assume then that during the first install, it wouldn't have any affect (?)

While I agree with this sentiment I can't provide a solution besides using alsa instead of pulse. I haven't used pulse in a while but when I did I remember having issues with anything started before dbus/consolekit/whatever-other-shitware-pulse-needs gets started. Since all of that gets started when you start X I can't see a solution. I guess you could use systemd since all of that cancer is integrated into it but I can't imagine anyone wanting to do that.

Why do you want systemd?

If it has a cache miss it has to spend time adding that object to the cache.

Can someone help me get my sound working via ALSA?

No sound (I'm trying to get it to work via HDMI with a Radeon 6850 card)
The speaker-test does not work. "Playback error: -2,No such file or directory"
My card shows up as the default in AlsaMixer, but there are no volume bars. Just a single square with "00" in the middle of it, and a brackets that read .


edited /etc/asound.conf
pcm.!default { type hw card 1 device 3}ctl.!default { type hw card 1 }

I also edited ~/.asoundrc to look exactly the same. I have followed wiki.gentoo.org/wiki/ALSA#Kernel , wiki.gentoo.org/wiki/Radeon , with no luck, among many other random forums posts and guides.

I have not delved into /etc/modprobe.d/alsa.conf , as Gentoo's documentation is sparse for that and the helpful files are not where my alsa.conf said they would be, but I will likely be spending a portion of today going over that.

I'm also worried that this could be a simple problem of not having the right modules loaded or built in, would I be foolish to save a copy of my kernel and just run something like localyesconfig or some other very broad kernel build option?

As an update to my kernel concerns, I'm going to be booting a LiveCD in a bit and if the sound works on that, I'll get the necessary info to cross reference with and make sure my kernel has everything it needs.

Did you add yourself to the audio group? Please make sure!! I forgot to do so when I initially switched to alsa and it cause lots of head scratching.
Otherwise just enable all of the PCI audio drivers under sound/pci/* as modules and also the ACP one under drivers/gpu/drm/amd/acp. If this works you can cross reference with lsmod and disable the unloaded modules.
Other then that I can't think of anything else.

Just did, it still fails. I didn't think it'd work, because speaker-test doesn't even work as root.

where the fuck is the menu bar/button???

>>>/g/

Here's my current situation, in case you or anyone else might have some insight

LiveDVD sound didn't work either, so I didn't bother posting the modules. The problems were exactly the same as they are on my current system.


You mean /device_drivers/sound_cards/alsa/pci ?

device_drivers/graphics_support/Direct_Rendering_Manager/

?

Not trying to be snarky, just tried following your paths and got lost. I'd really appreciate any feedback.

Tried following the advice here . Not sure I did it properly, but still have no sound.

My alsamixer is listing the right card as default, but just says 00 .

Yep, If you read the help page it for each module it will say something like:
Defined at sound/pci/Kconfig:3
Which is where I got the names from. But the ones you said are correct.


Then your asoundrc is broken. Try without the "device 3" line. I've never used the device line, just "card".
That the last of the ideas I have, so if that doesn't work hopefully someone else comes up with something.

Well, no luck. But I made on a post on Gentoo forums, so hopefully I'll get some luck there. I can copy pasta it if anyone wants, but the link is here: forums.gentoo.org/viewtopic-p-8183654.html#8183654

What's the output of `amixer -l`?

This is probably me being dumb, but:

invalid option

invalid option

He means
aplay -L

Ah, I should've known. Anyhow:

null Discard all samples (playback) or generate zero samples (capture)sysdefault:CARD=PCH HDA Intel PCH, ALC889 Analog Default Audio Devicefront:CARD=PCH,DEV=0 HDA Intel PCH, ALC889 Analog Front speakerssurround21:CARD=PCH,DEV=0 HDA Intel PCH, ALC889 Analog 2.1 Surround output to Front and Subwoofer speakerssurround40:CARD=PCH,DEV=0 HDA Intel PCH, ALC889 Analog 4.0 Surround output to Front and Rear speakerssurround41:CARD=PCH,DEV=0 HDA Intel PCH, ALC889 Analog 4.1 Surround output to Front, Rear and Subwoofer speakerssurround50:CARD=PCH,DEV=0 HDA Intel PCH, ALC889 Analog 5.0 Surround output to Front, Center and Rear speakerssurround51:CARD=PCH,DEV=0 HDA Intel PCH, ALC889 Analog 5.1 Surround output to Front, Center, Rear and Subwoofer speakerssurround71:CARD=PCH,DEV=0 HDA Intel PCH, ALC889 Analog 7.1 Surround output to Front, Center, Side, Rear and Woofer speakersiec958:CARD=PCH,DEV=0 HDA Intel PCH, ALC889 Digital IEC958 (S/PDIF) Digital Audio Outputhdmi:CARD=HDMI,DEV=0 HDA ATI HDMI, HDMI 0 HDMI Audio Output

I'm getting help from a very experienced user on the Gentoo forums though, so I'm quite confident he'll be able to help me through this (thank god)

is it neddy, i bet its neddy
*checks*
based neddy. Literally a gentoo god.

Lowercase "L" flag.

shamelessly requesting help

>forums.gentoo.org/viewtopic-p-8183668.html#8183668

Rejoin the irc please

somewhat offtopic but: to the guy who runs chiru.no: your SSL certificate expired earlier today

I responded to that yesterday.

I ended up getting help from a kind user (tdr) who walked me through reviewing the situation (mainly focused on kernel and hardware config/support along with basic questions like if my monitor even has speakers, lol) and the talk ended with me resetting my configs to default and exploring pulseuadio as a solution, which is where I'm at currently.

but fuck me this is taking longer than I anticipated

is firefox really the only good browser? i would really like something with proper css support that does not need gtk or qt to work.

You may want to look into surf.

whats the genkernel for? make menuconfig does everything that is needed

I've never used genkernel before, but maybe it automatically does make && make install for you.

Has anyone here gone into manual initrd generation using utils/gen_ini_cpio?
I need an initrd since I am using zfs for my root partition. I had to patch genkernel to even get it to generate a bootable initrd, and now looking at it the initrd it generates is literally 10x the size of my kernel.


It requires webkitgtk. Which in turn requires gtk.

the best one i found was links but it cant even display imageboards properly.

Try netsurf. There is a newer version on their website so I recommend updating the ebuild in a local overlay

w3m is a usable browser that displays all you need to shitpost.

Same situation here. I've written my own initrd from scratch. Downsides are 1. I have to manually regenerate my initrd using cpio every time I update my kernel and 2. all tools inside my initrd only get updated when something breaks (virtually never), but who cares.

w3m will even DISPLAY THE IMAGES RIGHT INSIDE YOUR FUCKING TERMINAL if you set it up right, it also has fucking MOUSE support, and it can be used as a decent pager and file browser in addition to being a web browser.

I don't know why I didn't do this sooner. Genkernel takes at least a minute to generate the ramdisk whereas the script I wrote takes 1.5 secs (according to time). The initrd I generate is 30x smaller then the genkernel one (total size 1.8M) and it actually does its job way faster then the genkernel one since it actually uses the zpool.cache when importing the pool.
I'm not actually calling the usr/gen_init_cpio program and instead I'm just manually coping everything with my script into a tmp folder and then piping it through cpio and xz.

So is FVWM basically a less bloated openbox?

yes, and it's programmable

...

does anyone here have an ssd AND a hdd on a x60 thinkpad? I want to get a small pci mini sata ssd

So I ended up losing my Gentoo cherry today, and it felt like having teeth extracted, particularly with no native vi to edit the configs, and having to use nano instead.
xargs and awk helped modify the configs slightly faster.
I did a install of different distro while waiting for sources to compile.
It is a labor of love, but I could see myself taking the Gentoo route for any (relatively) underpowered ancient hardware.

If you wanted vi to be included with the image, why did you download the minimal cd?
???
le gentoo is just about compiling software from source meme

...

1) vi is a POSIX requirement
2) busybox vi is smaller than nano
Honestly, both mg and nvi should be installed.

Have you tried busybox vi? The symlink may not be here.

Most GNU/Linux systems are not completely POSIX compliant.

Why shouldn't the minimal CD contain vi?
I feel nano is popular solely because it requires a lower minimum IQ to use (part of a much wider symptom of society dumbing down). Searching for the reason, it turns out I'm right...
blog.flameeyes.eu/2009/10/explaining-the-sudo-crapfest/
>First, build results depending on the current value of an environment variable is not sound engineering, and against ebuild policy. Second, it was decided that there was never going to be agreement on the "best" editor. Third nano was kept as the default because it is small, straightforward, and easy to get out of when you don't know it (let's face it neither vi(m) nor (x)emacs is that easy to get out of). Fourth, by having the EDITOR/VISUAL variables point to nano (which is installed by stage2 as well as stage3) things would be working (although probably not optimal) out of the box.
>Remember that to not have nano you need to actually remove it from your system. If you are a part of that (probably) much smaller part of the user base, you might have the savvy to actually change the EDITOR variable.
The last paragraph of the quote is effectively - "If you're smart enough to be using vi then..."
You can save & quit vi simply with "Esc ZZ".

That explains my point about vi, tbh.
xargs piping into grep, awk, sed and so forth in order to print out config flags, use options, and such - for appending onto config files.
for example (this isn't exactly as I used, but illustrates the point aptly):
#append the partition essential info onto fstab (for further editing in nano) #instead of writing down long UUIDs then typing them in.blkid|grep UUID|awk '{ print $2 }' >>/etc/fstab

Thank you! It works perfectly!

I felt the fedora tipping in your post from here.

lel ;^)

...

enjoy getting fucked when you switch out a secondary disk

PARTUUIDs are understood by grub, though.

So are PARTLABELs, I'd assume. GRUB is shit anyway.

I'll repeat myself regarding the UUID example -"for example (this isn't exactly as I used, but illustrates the point aptly)"

I used PARTUUID as per the Gentoo handbook.

ok i waited 7 days what now

l-lewd

Now you get laughed at for being a virgin

go back to somethingawfulreddit

CFLAGS="-Og -ggdb -g3 -march=i486 -mtune=i486 -fstack-protector-all -pipe"
FEATURES="-nostrip compressdebug installsources splitdebug"
USE="-bindist -debug -pulseaudio -systemd"

Fully debug-able and observable masterrace reporting in.

uh what

I don't need every ebuild spilling its guts. I just want inspectability of anything I attach gdb to. Also I forgot to mention
LICENSE="-* @FREE"

how do you get that top bar in fvwm ?

I have a sick urge to enable -fsanitize=undefined systemwide and see what happens.

Maybe I should do that and report back?

whats in your init?>>876636
also I was disappointed to see that catgirl wasn't a trap.

It's ACCEPT_LICENSE

What latest +100 million dollar budget titles do you play?

Thx, been months since I edited make.conf. It's actually quite large I only posted the cliffnotes.

...

gitgud.io/cloveros/cloveros/blob/master/home/user/stats.sh

urxvt -geometry 400x1+0+0 -fn '6x13' -sl 0 -e stats.sh

Man, that lady's just spilling out of these thigh-highs.

the stage is set

it begins

...

Shit use flags tbh. Also you're missing something.

what?

Thanks for the daily reminder that ricers don't actually care about software quality and minimalism.

He's not using Arch though.

I use Gentoo because I can compile everything with debug information in (but without the debug behavior, like system-wide log vomiting), and splitdebug+installsources FEATURES, so I can at any time drop into gdb and observe the operation of any software compiled on my system. If for some reason I get the itch to make a change, I can create a portage overlay, copy that ebuild into the overlay, add a patch file into the overlay for the ebuild which makes the change(s) I propose on the fly (if the changes are minor, or exportable with diff), and then I swap the ::gentoo build for the ::$OVERLAY build. May be a bit slower, binaries may be a bit fatter (though on ZFS with compression on no big deal), I'm not a gaymer so piss on the performance hit for the inspect-ability/'open hood' operation.

If you are just adding a patch you can add it to /etc/portage/patches. Note that this will only work with ebuilds with EAPI version 6. If you want it to work with earlier EAPI versions, there's a script you can drop into /etc/portage.

...

That's a great idea, user

thanks gentoo, this message succeeded in it's purpose