The Gentoo Novice

You gave me that advice too, but I ignored it and did the hard install, because I did not feel comfortable with Vbox. @daniel.m.tripp would probably not be scared of Vbox.

Now that I happy with qemu/kvm/virt-manager I will probably try a Gentoo install again in that VM environment. The big advantage is you can save the VM , and turn the machine off , in the middle of an install. I had to run my machine for a week learning to do the hard disk install.

@nevj
That is what I have been working on with Virt-Manager/QEMU in Ubuntu. Booted my first Gentoo CLI last night, took me awhile too figure out how to do a bridged connection!!!

2 Likes

Believe it or not - despite my contempt for Windows and some Microsoft stuff, in a ā€œformer lifeā€ - I was a UNIX System Administator - AND - a Microsoft SQL Server DBA :smiley: - I really wanted to branch into Oracle DBA territority, 'cause that’s where the money was at (and still is today!) but never got my foot in the door…

:smiley: : yeah - nah… I have zero use, or interest in, Windows… I can get what I need to do done on MacOS and Linux (and FreeBSD even, on my TrueNAS) perfectly fine…

Does that laptop still have a spinner drive?

I actually really enjoy messing with SQL. I’d be real nervous about proper backups as a DBA though. Seen too many disasters…

I was involved in a SQL Server DR just prior to Y2K… Some genius had set NetBackup’s SQL agent to ONLY backup flat tables - NOT referential integrity (e.g. schema / indexes etc)… Took a few days of trial and error… Had to restore flat tables to a new DB, then use SQL script to output ā€œschemaā€ to another SQL script, then use that to rebuild the indexes and relationships… WHAT IDIOT decided backing up flat tables was valid???

I’d never seen that sorta backup strategy before, or since… Before that - I’d just backup transaction logs daily, and dump weekly… and I’m pretty sure that’s how DBAs do it even today!

1 Like

SSD (512 GB), can’t remember if it’s M2 SATA or NVMe… But it’s a circa 2017 device, with DDR4 RAM, so I’d

Note : last night’s ā€œbuildā€ (before I repartitioned / reformatted) seemed to take longer than on VirtualBox, I remembered, that I didn’t have ā€œMAKEOPTS=ā€-j4"" so it was probably only using one core…

Along with that, and remembering to copy /bin/vi from livecd ā€œ/binā€ to chroot ā€œ/binā€ (/mnt/gentoo/bin) - will have to go in my personal wiki (probably a shonky text file with zero markup / markdown :smiley: ) …

Anyway - got up to this point, and hit something I didn’t get the last 3 times :

(chroot) livecd / # emerge --ask app-portage/cpuid2cpuflags

These are the packages that would be merged, in order:

Calculating dependencies... done!
Dependency resolution took 1.92 s.

[ebuild  N     ] app-portage/cpuid2cpuflags-12 

Would you like to merge these packages? [Yes/No] yes

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) app-portage/cpuid2cpuflags-12::gentoo
/usr/bin/env: ā€˜bash’: No such file or directory
 * The ebuild phase 'die_hooks' has been aborted since PORTAGE_BUILDDIR
 * does not exist: '/var/tmp/portage/app-portage/cpuid2cpuflags-12'

>>> Failed to emerge app-portage/cpuid2cpuflags-12

 * Messages for package app-portage/cpuid2cpuflags-12:

Which could be misleading, as ā€œ/usr/bin/env bashā€ works, so it’s probably something else, maybe? Is that a red herring, or is that the issue?

(chroot) livecd / # which env
/usr/bin/env
(chroot) livecd / # which bash
/bin/bash

I’ve re-run the emerge…@world thing again since, and still hitting this…

I tried the gnome/systemd/merged-user library originally, but went back and chose the non-merged-usr profile and same error…

Kinda stuck here now…

I went back again most of the way to the start - i.e. just after mounting and running the chroot - and still getting the same error, that looks like an issue in a bash script :

   44  emerge-webrsync
   45  emerge --sync --quiet
   46  emerge --sync --quiet
   47  eselect profile set 8
   48  emerge --ask --verbose --update --deep --newuse @world
   49  emerge --info | grep ^USE
   50  emerge --ask app-portage/cpuid2cpuflags

I accidentally ran ā€œemerge --sync --quietā€ twice, but I’d assume no harm done (note : same result when not set to ā€œquietā€)…

Note - I’ve just run ALL of that again :

   53  rm /var/db/repos/gentoo/metadata/timestamp.x
   54  emerge-webrsync
   55  emerge --sync
   56  eselect profile  list
   57  eselect profile set 8
   58  emerge --ask --verbose --update --deep --newuse @world
   59  emerge --ask app-portage/cpuid2cpuflags

And still getting that same error, that on first glance, looks like bash issue :

(chroot) livecd / # emerge --ask app-portage/cpuid2cpuflags

These are the packages that would be merged, in order:

Calculating dependencies... done!
Dependency resolution took 1.82 s.

[ebuild  N     ] app-portage/cpuid2cpuflags-12 

Would you like to merge these packages? [Yes/No] yes

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) app-portage/cpuid2cpuflags-12::gentoo
/usr/bin/env: ā€˜bash’: No such file or directory
 * The ebuild phase 'die_hooks' has been aborted since PORTAGE_BUILDDIR
 * does not exist: '/var/tmp/portage/app-portage/cpuid2cpuflags-12'

>>> Failed to emerge app-portage/cpuid2cpuflags-12

 * Messages for package app-portage/cpuid2cpuflags-12:

Did you do,this
emerge --sync
emerge --ask --oneshot portage
emerge -avuND world

It looks like portage is not setup correctly.

That’s not listed in the Gentoo Handbook Install Guide, so : I didn’t run it…

I will try that… But I’m thinking I’ll probably trash my /mnt/gentoo and reformat and start again…

I’m actually getting emerge issues with ā€œeverythingā€ - so - once again - back to square one…

I don’t mind… I’m slowly getting my head around this…

If I couldn’t do this remotely, I’ve probably have given up by now… i.e. over SSH - from any other computer on my network…

Just boot the Gentoo environment connected to ethernet, set root password and start sshd from init (/etc/init.d/sshd start)…


I guess one of the pitfalls, as I’ve only just realised (MAJOR facepalm moment) - the perilous risk, of thinking you’re in the chroot, when you’re NOT! I think that’s what I was doing wrong - but - too late, I’d already started deleting the contents of my gentoo root disk… No great harm done…

I had TWO terminal sessions, one was in, and where, I started the chroot, the other one (I was getting errors) was the livecd!


Note also - I don’t think I’ll bother setting MAKEOPTS=ā€œ-j4ā€ - because I’ve got 4 cores, and ā€œnprocā€ should find that and use them - so my mention of it being slower, was probably anecdotal, but could also be 'cause VirtualBox was actually using 4 of my Ryzen cores…

Right, that comes from @4dandl4
Basically it means you need to ensure portage is uptodate before you emerge world
and the sync is just like apt-get update… get your local repo copy uptodate.

Despite its size, the handbook is not perfect.

Went back to square one…

Same error / issue - that I never got when doing this on a VirtualBox VM, and didn’t get yesterday when doing this on the Dell laptop…

Would you like to merge these packages? [Yes/No] yes

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) app-portage/cpuid2cpuflags-12::gentoo
/usr/bin/env: ā€˜bash’: No such file or directory
 * The ebuild phase 'die_hooks' has been aborted since PORTAGE_BUILDDIR
 * does not exist: '/var/tmp/portage/app-portage/cpuid2cpuflags-12'

>>> Failed to emerge app-portage/cpuid2cpuflags-12

 * Messages for package app-portage/cpuid2cpuflags-12:

I just noticed the image and stage3 I’m using are from 11/06/2023, but Gentoo website has ones for 18/06/2023 - so I’m going to try both of those… and head back to the drawing board from square one, again… :smiley:

Ok, it works. Ran it in Boxes for 10 minutes. Clean, rather snappy, lots of included programs that I would use. I can say the same about most of the other mainstream distros. MX, Peppermint, and Mint are installed right now, but I might try it if I can find an XFCE DE. Nice, but not remarkable–deletable, as Dan Tripp would say.

1 Like

I think I’ve broken it completely and gotten banned for doing too many syncs…

So - I’ve probably done that sync about at least half a dozen times today :

Please note: common gentoo-netiquette says you should not sync more
than once a day.  Users who abuse the rsync.gentoo.org rotation
may be added to a temporary ban list.

MOTD autogenerated by update-rsync-motd on Tue Oct 11 08:08:51 PM UTC 2022

@ERROR: access denied to gentoo-portage from UNKNOWN (161.8.250.136)
rsync error: error starting client-server protocol (code 5) at main.c(1859) [Receiver=3.2.7]

when I first saw it - I thought it might be a DNS, or ipv6 issue (my ISP STILL DOESN’T support IPV6!)… But I think I’m on a temporary ban maybe? I’ll shelve it and try again tomorrow…

Despite setting it to use aarnet mirror in make.conf, looks like not everything is coming from there…

You will recover tomorrow. I got that once.

@daniel.m.tripp
My best advice!!!
You cannot emerge until portage is setup, and you are definitely missing something. Follow the Gentoo Handbook, not all steps are needed, so read it very carefully. Are you using the minimal CD or the GUI ISO?

What works? What did you install?

Gentoo. See above.

@berninghausen
Post a screenshot!!!


Gentoo with Mate DE and a Ubuntu 22.04 host.