The Gentoo Novice

@daniel.m.tripp
So, you have a Gentoo Root CLI?


run nano /etc/security/passwdqc.conf and change the enforce=everyone to users save and then run passwd root
I just use rt

Ttying to emerge vim?
run cd /etc/portage ls
and cd package.use ls
and post you results

1 Like
gentoo-mungrel00 ~ # cd /etc/portage 
gentoo-mungrel00 /etc/portage # ls
make.conf     package.accept_keywords  package.mask  profile     savedconfig
make.profile  package.license          package.use   repos.conf
gentoo-mungrel00 /etc/portage # cd package.use/
gentoo-mungrel00 /etc/portage/package.use # ls    
00cpu-flags

OK now run cd package.use ls

run touch package.use and this should put a file in the package.use directory
verify with ls again

gentoo-mungrel00 /etc/portage/package.use # touch package.use
gentoo-mungrel00 /etc/portage/package.use # ls -al
total 12
drwxr-xr-x 2 root root 4096 Jun 18 11:42 .
drwxr-xr-x 9 root root 4096 Jun 17 06:45 ..
-rw-r--r-- 1 root root  104 Jun 17 05:37 00cpu-flags
-rw-r--r-- 1 root root    0 Jun 18 11:42 package.use

all I need is the package.use ls I do not need the ls -al

1 Like
gentoo-mungrel00 /etc/portage/package.use # ls
00cpu-flags  package.use

Ok!!! Now run emerge --ask --pretend app-editors/vim and the dependencies should show again

gentoo-mungrel00 ~ # emerge --ask --pretend app-editors/vim 

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

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

[nomerge       ] app-editors/vim-9.0.1503::gentoo  USE="X acl crypt gpm nls sound -cscope -debug -lua -minimal -perl -python -racket -ruby (-selinux) -tcl -terminal -vim-pager" LUA_SINGLE_TARGET="lua5-1 -lua5-3 -lua5-4 -luajit" PYTHON_SINGLE_TARGET="python3_11 -python3_10" 
[ebuild  N     ]  app-vim/gentoo-syntax-10::gentoo  USE="-ignore-glep31" 21 KiB
[ebuild  N     ]   app-editors/vim-9.0.1503::gentoo  USE="X acl crypt gpm nls sound -cscope -debug -lua -minimal -perl -python -racket -ruby (-selinux) -tcl -terminal -vim-pager" LUA_SINGLE_TARGET="lua5-1 -lua5-3 -lua5-4 -luajit" PYTHON_SINGLE_TARGET="python3_11 -python3_10" 16,615 KiB
[nomerge       ] app-editors/vim-9.0.1503::gentoo  USE="X acl crypt gpm nls sound -cscope -debug -lua -minimal -perl -python -racket -ruby (-selinux) -tcl -terminal -vim-pager" LUA_SINGLE_TARGET="lua5-1 -lua5-3 -lua5-4 -luajit" PYTHON_SINGLE_TARGET="python3_11 -python3_10" 
[nomerge       ]  media-libs/libcanberra-0.30-r7::gentoo  USE="alsa gnome gstreamer gtk3 pulseaudio sound udev -gtk2 -oss -tdb" ABI_X86="(64) -32 (-x32)" 
[nomerge       ]   media-libs/libpulse-16.1-r2::gentoo  USE="X asyncns dbus glib gtk systemd -doc (-selinux) -test -valgrind" ABI_X86="(64) -32 (-x32)" 
[ebuild  N     ]    media-sound/pulseaudio-daemon-16.1-r7::gentoo  USE="X alsa alsa-plugin asyncns bluetooth dbus gdbm glib gstreamer orc ssl systemd udev webrtc-aec -aptx (-elogind) -equalizer -fftw -jack -ldac -lirc -ofono-headset (-oss) (-selinux) -sox (-system-wide) -tcpd -test -valgrind -zeroconf" 1,510 KiB
[ebuild  N     ]     media-plugins/alsa-plugins-1.2.7.1-r1::gentoo  USE="mix pulseaudio usb_stream -arcam_av -debug -ffmpeg -jack -libsamplerate -oss -speex" ABI_X86="(64) -32 (-x32)" 400 KiB
[ebuild  N     ]     media-libs/libsndfile-1.2.0::gentoo  USE="alsa -minimal -sqlite -test" ABI_X86="(64) -32 (-x32)" 714 KiB
[ebuild  N     ]      media-sound/mpg123-1.31.3::gentoo  USE="alsa ipv6 pulseaudio sdl (-coreaudio) -int-quality -jack -nas -oss -portaudio" ABI_X86="(64) -32 (-x32)" CPU_FLAGS_X86="sse (-3dnow) (-3dnowext) (-mmx)" 1,069 KiB
[ebuild  N     ]       media-libs/libsdl2-2.26.2::gentoo  USE="X alsa dbus gles2 joystick opengl pulseaudio sound threads udev video vulkan wayland (-aqua) (-custom-cflags) -doc -fcitx4 -gles1 -haptic -ibus -jack -kms -libsamplerate -nas -oss -pipewire -sndio -static-libs -xscreensaver" ABI_X86="(64) -32 (-x32)" CPU_FLAGS_X86="mmx sse sse2 -3dnow" VIDEO_CARDS="(-vc4)" 7,895 KiB
[ebuild  N     ]  media-libs/libcanberra-0.30-r7::gentoo  USE="alsa gnome gstreamer gtk3 pulseaudio sound udev -gtk2 -oss -tdb" ABI_X86="(64) -32 (-x32)" 312 KiB
[nomerge       ] media-sound/mpg123-1.31.3::gentoo  USE="alsa ipv6 pulseaudio sdl (-coreaudio) -int-quality -jack -nas -oss -portaudio" ABI_X86="(64) -32 (-x32)" CPU_FLAGS_X86="sse (-3dnow) (-3dnowext) (-mmx)" 
[ebuild  N     ]  media-sound/pulseaudio-16.1::gentoo  USE="bluetooth glib -daemon -jack -ofono-headset" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild  N     ]   media-libs/libpulse-16.1-r2::gentoo  USE="X asyncns dbus glib gtk systemd -doc (-selinux) -test -valgrind" ABI_X86="(64) -32 (-x32)" 0 KiB

Total: 10 packages (10 new), Size of downloads: 28,532 KiB

 * Error: circular dependencies:

(media-libs/libsndfile-1.2.0:0/0::gentoo, ebuild scheduled for merge) depends on
 (media-sound/mpg123-1.31.3:0/0::gentoo, ebuild scheduled for merge) (buildtime_slot_op)
  (media-sound/pulseaudio-16.1:0/0::gentoo, ebuild scheduled for merge) (buildtime)
   (media-libs/libpulse-16.1-r2:0/0::gentoo, ebuild scheduled for merge) (buildtime)
    (media-libs/libsndfile-1.2.0:0/0::gentoo, ebuild scheduled for merge) (buildtime)

It might be possible to break this cycle
by applying any of the following changes:
- media-libs/libsndfile-1.2.0 (Change USE: +minimal)
- media-sound/mpg123-1.31.3 (Change USE: -pulseaudio)

Note that this change can be reverted, once the package has been installed.

Note that the dependency graph contains a lot of cycles.
Several changes might be required to resolve all cycles.
Temporarily changing some use flag for all packages might be the better option.

Output doesnā€™t look vastly different from what Iā€™d seen beforeā€¦

OK, You are logged into your root account? At this point with Gentoo I will do a emerge -avuND world and this will update your packages. You are going to need a user account, before you start installing a lot of packages, including vim.
We will get to vim!!!
Update your packages with emerge -avuND world
Seup user account with useradd -m -G users,wheel,video,audio,portage,cdrom,usb -s /bin/bash your user name
passwd your user name
emerge --ask app-admin/sudo
visudo /etc/sudoers to edit the sudoers file
If all goes well reboot and login to you user account
We can then move on to the important stuff

1 Like

Cheers mate - I might leave that till tomorrow or the day afterā€¦

do all that without vi, will be tiring :smiley:

Iā€™m 100% comfortable with useradd, visudo (except I wonā€™t be able to ā€œexport EDITOR=viā€) et ceteraā€¦

Cheers for all your help so farā€¦

This isnā€™t very ā€œUNIXā€ - needing a user subsystem to have a basic text editor viā€¦ I assume that emacs would be even harder? I guess I canā€™t complain, imagine if gentoo made everyone use ā€œexā€ā€¦ :smiley:

trust me you will not need vi you can even use nano to edit /etc/sudoers

1 Like

No, no. That is not vim being masked, it is something else.

 * Error: circular dependencies:

(media-libs/libsndfile-1.2.0:0/0::gentoo, ebuild scheduled for merge) depends on
 (media-sound/mpg123-1.31.3:0/0::gentoo, ebuild scheduled for merge) (buildtime_slot_op)
  (media-sound/pulseaudio-16.1:0/0::gentoo, ebuild scheduled for merge) (buildtime)
   (media-libs/libpulse-16.1-r2:0/0::gentoo, ebuild scheduled for merge) (buildtime)
    (media-libs/libsndfile-1.2.0:0/0::gentoo, ebuild scheduled for merge) (buildtime)

@4dandl4 answered that for me
OK take redistributable pulseaudio out of make.conf and rerun emerge -avuND world.
So remove those use flags.

Yes it is, daniel needs to setup his user account before moving on!!!

1 Like
!!! The following installed packages are masked:
- app-admin/eselect-1.4.22::gentoo (masked by: package.mask)

It says it is masking eselect ?

I agree he needs a user before doing emerge

1 Like

@nevj
I got hit with the sys-devel/llvm and sys-devel/clang update with my Gentoo, it is taking a little time too emerge -avuND world.

How did you come to use llvm compiler? Mine uses gcc.

I think I understand that masking. It has turned off eselect to stop all installs because there is no user. What do you think? That is a rather backhanded approach.

I have no idea but one of my use flags must need as a dependence.

Their are Gentoo restrictions when using the root account. I add the Gentoo user account as soon as I have the Gentoo CLI compiled, along with sudo.

1 Like

Wow. Iā€™m glad I have my golf game for my unsolvable problem. Itā€™s easier than Gentoo. My computers are quite content with any .deb distro.

3 Likes

@berninghausen and @easyt50
Oh come on try Gentoo in VirtualBox, we can then have a round house Gentoo discussion group. Never be content with the distro you are running.

2 Likes