Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
KDE Plasma problems
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
peertoo
n00b
n00b


Joined: 12 Dec 2023
Posts: 27

PostPosted: Tue Dec 12, 2023 3:20 pm    Post subject: KDE Plasma problems Reply with quote

I have re-installed Gentoo and have a problem with KDE Plasma.
After the startx command i get a minimal graphic screen with only a few terminal boxes.

My install:
- openrc (https://distfiles.gentoo.org/releases/amd64/autobuilds/20231203T170204Z/stage3-amd64-desktop-openrc-20231203T170204Z.tar.xz)
- genkernel
- eselect profile: default/linux/amd64/17.1/desktop/plasma (stable)
- output emerge info:
Code:
[ebuild  N     ] app-vim/info-1.7-r3::gentoo  4 KiB
[nomerge       ]  app-editors/vim-9.0.1777::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-12::gentoo  USE="-ignore-glep31" 21 KiB
[ebuild  N     ]    app-editors/vim-9.0.1777::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" 16779 KiB
[nomerge       ] app-editors/vim-9.0.1777::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 gtk3 pulseaudio sound udev -gstreamer -gtk2 -oss -tdb" ABI_X86="(64) -32 (-x32)"
[nomerge       ]   media-libs/libpulse-16.1-r2::gentoo  USE="X asyncns dbus glib gtk -doc (-selinux) -systemd -test -valgrind" ABI_X86="(64) -32 (-x32)"
[nomerge       ]    media-libs/libsndfile-1.2.2::gentoo  USE="alsa -minimal -sqlite -test" ABI_X86="(64) -32 (-x32)"
[nomerge       ]     media-sound/mpg123-1.32.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)"
[nomerge       ]      media-libs/libsdl2-2.28.3::gentoo  USE="X alsa dbus gles2 joystick opengl pipewire pulseaudio sound threads udev video vulkan wayland (-aqua) (-custom-cflags) -doc -fcitx4 -gles1 -haptic -ibus -jack -kms -libsamplerate -nas -oss -sndio -static-libs -xscreensaver" ABI_X86="(64) -32 (-x32)" CPU_FLAGS_X86="mmx sse sse2 -3dnow" VIDEO_CARDS="(-vc4)"
[nomerge       ]       media-video/pipewire-0.3.80:0/0.4::gentoo  USE="X bluetooth dbus readline sound-server ssl -doc -echo-cancel -extra -ffmpeg -flatpak -gsettings -gstreamer -ieee1394 -jack-client -jack-sdk -liblc3 -lv2 -modemmanager -pipewire-alsa -roc (-system-service) -systemd -test -v4l -zeroconf" ABI_X86="(64) -32 (-x32)"
[ebuild  N     ]        media-video/wireplumber-0.4.14:0/0.4::gentoo  USE="elogind (-system-service) -systemd -test" LUA_SINGLE_TARGET="lua5-4 -lua5-3" 317 KiB
[ebuild  N     ]    media-libs/libsndfile-1.2.2::gentoo  USE="alsa -minimal -sqlite -test" ABI_X86="(64) -32 (-x32)" 714 KiB
[ebuild  N     ]     media-sound/mpg123-1.32.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)" 1086 KiB
[ebuild  N     ]      media-libs/libsdl2-2.28.3::gentoo  USE="X alsa dbus gles2 joystick opengl pipewire pulseaudio sound threads udev video vulkan wayland (-aqua) (-custom-cflags) -doc -fcitx4 -gles1 -haptic -ibus -jack -kms -libsamplerate -nas -oss -sndio -static-libs -xscreensaver" ABI_X86="(64) -32 (-x32)" CPU_FLAGS_X86="mmx sse sse2 -3dnow" VIDEO_CARDS="(-vc4)" 7169 KiB
[ebuild  N     ]       media-video/pipewire-0.3.80:0/0.4::gentoo  USE="X bluetooth dbus readline sound-server ssl -doc -echo-cancel -extra -ffmpeg -flatpak -gsettings -gstreamer -ieee1394 -jack-client -jack-sdk -liblc3 -lv2 -modemmanager -pipewire-alsa -roc (-system-service) -systemd -test -v4l -zeroconf" ABI_X86="(64) -32 (-x32)" 1617 KiB
[ebuild  N     ]        media-libs/libcanberra-0.30-r7::gentoo  USE="alsa gnome gtk3 pulseaudio sound udev -gstreamer -gtk2 -oss -tdb" ABI_X86="(64) -32 (-x32)" 312 KiB
[ebuild  N     ]         media-libs/libpulse-16.1-r2::gentoo  USE="X asyncns dbus glib gtk -doc (-selinux) -systemd -test -valgrind" ABI_X86="(64) -32 (-x32)" 1510 KiB

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

 * Error: circular dependencies:

(media-libs/libsndfile-1.2.2:0/0::gentoo, ebuild scheduled for merge) depends on
 (media-sound/mpg123-1.32.3:0/0::gentoo, ebuild scheduled for merge) (buildtime_slot_op)
  (media-libs/libpulse-16.1-r2:0/0::gentoo, ebuild scheduled for merge) (buildtime)
   (media-libs/libsndfile-1.2.2: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.2 (Change USE: +minimal)
- media-sound/mpg123-1.32.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.

Some wrong useflags???

- output cat /usr/portage/profiles/targets/desktop/plasma/make.defaults
cat: /usr/portage/profiles/targets/desktop/plasma/make.defaults: No such file or directory
Something mising?

help is appreciated :D
Back to top
View user's profile Send private message
grknight
Retired Dev
Retired Dev


Joined: 20 Feb 2015
Posts: 1685

PostPosted: Tue Dec 12, 2023 3:30 pm    Post subject: Reply with quote

Temporarily add the following to (a new file) /etc/portage/package.use/fix-circular-deps
Code:
media-sound/mpg123 -pulseaudio

Then try the emerge again.
Once it goes through, delete the /etc/portage/package.use/fix-circular-deps file

Edit: if more issues appear, change that line to this instead:
Code:
media-libs/libsndfile minimal


Last edited by grknight on Tue Dec 12, 2023 3:36 pm; edited 1 time in total
Back to top
View user's profile Send private message
peertoo
n00b
n00b


Joined: 12 Dec 2023
Posts: 27

PostPosted: Tue Dec 12, 2023 3:31 pm    Post subject: Reply with quote

For clarity:

I saw the error message, but i need soms help to resolve it.
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30959
Location: here

PostPosted: Tue Dec 12, 2023 3:34 pm    Post subject: Reply with quote

Temporarily rebuild media-sound/mpg123 without using pulseaudio flag, USE="-pulseaudio" emerge -1 media-sound/mpg123 and then re-run your emerge command.
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
peertoo
n00b
n00b


Joined: 12 Dec 2023
Posts: 27

PostPosted: Tue Dec 12, 2023 3:35 pm    Post subject: Reply with quote

grknight wrote:

Then try the emerge again.

Soms specific emerge command or the full command (emerge --upgrade --deep --ask @world) ?
Back to top
View user's profile Send private message
grknight
Retired Dev
Retired Dev


Joined: 20 Feb 2015
Posts: 1685

PostPosted: Tue Dec 12, 2023 3:37 pm    Post subject: Reply with quote

peertoo wrote:
grknight wrote:

Then try the emerge again.

Soms specific emerge command or the full command (emerge --upgrade --deep --changed-use --ask @world) ?

Your suggested command should work. Also see my edit above.
Back to top
View user's profile Send private message
peertoo
n00b
n00b


Joined: 12 Dec 2023
Posts: 27

PostPosted: Tue Dec 12, 2023 6:10 pm    Post subject: Reply with quote

I understood the message at first (English is not my native language) but now I get it.
The error message has now disappeared.
Now I have an eselect message. Let's see if I can figure that out myself.

In case I don't succeed, I will share the output here:
Quote:
(chroot) perry-System-Product-Name / # eselect news read
2022-07-29-pipewire-sound-server
Title PipeWire sound server migration
Author Sam James <sam@gentoo.org>
Posted 2022-07-29
Revision 1

PipeWire has gained a new USE flag "sound-server" for enabling/disabling its
sound server capabilities.

This change is needed to avoid PipeWire and PulseAudio conflicting over control
of audio devices. Before this change, OpenRC users were in some cases
accidentally migrated to PipeWire which was difficult to override without
manually editing launcher files.

For non-audio purposes, PipeWire is installed in many configurations as more
and more software depends on it for e.g. screensharing, sandboxing,
and window previews, so users will need to act based on their preferred
setup rather than simply avoiding installing PipeWire, as it is
increasingly required as a dependency.

Packages needing PulseAudio's APIs will be migrated from the now-meta package
media-sound/pulseaudio to depending on media-libs/libpulse. The runtime
PulseAudio server can be provided by either PipeWire (media-video/pipewire)
or the original PulseAudio (media-sound/pulseaudio-daemon).

The new sound-server USE flag for PipeWire allows easily controlling
this behavior.

There are several options available:

1. To use PipeWire for sound, users should enable USE=sound-server for PipeWire:

Place the following entries in /etc/portage/package.use:
```
media-video/pipewire sound-server
media-sound/pulseaudio -daemon
```

First, sync:
# emerge --sync

Deselect media-sound/pulseaudio-daemon:
# emerge --deselect media-sound/pulseaudio-daemon

Then perform a world upgrade with PipeWire on the command line to add
it to the world file:
# emerge --ask --update --changed-use --deep @world media-video/pipewire

Then depclean:
# emerge --ask --depclean

OpenRC users on an XDG-compliant desktop which respects autostart files
will not need to take any further action.

OpenRC users using a minimal desktop which does not respect autostart
files will need to run `gentoo-pipewire-launcher &` in e.g.
`~/.xprofile`.

Users who want to switch to PipeWire providing a PulseAudio daemon
may need to `emerge --deselect` packages in their world file which
hard-require media-sound/pulseaudio-daemon. There are only a handful
of these. A non-exhaustive list:
* media-sound/paprefs
* media-sound/pasystray
* media-sound/pulseaudio-modules-bt (shouldn't be needed anyway)
* net-misc/pulseaudio-dlna

If not using any of those packages anymore, please emerge --deselect
them. If still using these, PipeWire as a PulseAudio is not an
option at this time.

(Note that media-libs/libpulse (which PipeWire will be using, don't emerge
libpulse manually) provides 'pactl' which can be used as a replacement for
e.g. media-sound/pulseaudio-ctl, so personal scripts can be adapted to this
if desired.)

systemd users will also need to run the following commands:
$ systemctl --user --now disable pulseaudio.service pulseaudio.socket
$ systemctl --user --now enable pipewire.socket pipewire-pulse.socket
$ systemctl --user --now disable pipewire-media-session.service
$ systemctl --user --force enable wireplumber.service

Root user may replace --user with --global to change system default
configuration for all of the above commands.

2. To use PulseAudio's daemon for sound, users should disable USE=sound-server
for PipeWire, enable USE=daemon on media-sound/pulseaudio, and add
media-sound/pulseaudio-daemon to their world file:

Place the following entries in /etc/portage/package.use:
```
media-video/pipewire -sound-server
media-sound/pulseaudio daemon
```

Add media-sound/pulseaudio-daemon to @world:
# emerge --noreplace media-sound/pulseaudio-daemon

Then perform a world upgrade:
# emerge --ask --update --changed-use --deep @world

Then depclean:
# emerge --ask --depclean

OpenRC users on an XDG-compliant desktop which respects autostart files
will not need to take any further action.

OpenRC users using a minimal desktop which does not respect autostart
files should consider adding `gentoo-pipewire-launcher &` in e.g.
`~/.xprofile` but it's not strictly required in terms of audio
handling. It may be required in future for the non-audio usecases
described above.

systemd users will also need to run the following commands:
$ systemctl --user --now enable pulseaudio.service pulseaudio.socket
$ systemctl --user --now disable pipewire.socket pipewire-pulse.socket

Alternatively, systemd users can run the following commands as root to change
the default for all users:
# systemctl --global enable pulseaudio.service pulseaudio.socket
# systemctl --global --force disable pipewire.socket pipewire-pulse.socket

(If taking this option, the services must be started manually as a one-off as
a user.)

3. For users without sound on their system, those using JACK without
PipeWire, or those using pure ALSA without PipeWire, the following steps
are recommended:

Place the following entries in /etc/portage/package.use:
```
media-video/pipewire -sound-server
media-sound/pulseaudio -daemon
```

Then perform a world upgrade:
# emerge --ask --update --changed-use --deep @world

Then depclean:
# emerge --ask --depclean

OpenRC users on an XDG-compliant desktop which respects autostart files
will not need to take any further action.

OpenRC users using a minimal desktop which does not respect autostart
files will need to run `gentoo-pipewire-launcher &` in e.g.
`~/.xprofile`.

systemd users will also likely want to run the following commands as a user, again
for the purposes of non-audio PipeWire use:
$ systemctl --user --now enable pipewire.socket
$ systemctl --user --now --force enable wireplumber.service

Alternatively, systemd users can run the following commands as root to change
the default for all users, again for the purposes of non-audio PipeWire use:
# systemctl --global enable pipewire.socket
# systemctl --global --force enable wireplumber.service

(If taking this option, the services must be started manually as a one-off as
a user.)

Further resources:
* https://wiki.gentoo.org/wiki/PipeWire
Back to top
View user's profile Send private message
peertoo
n00b
n00b


Joined: 12 Dec 2023
Posts: 27

PostPosted: Tue Dec 12, 2023 6:20 pm    Post subject: Reply with quote

Code:
1. To use PipeWire for sound, users should enable USE=sound-server for PipeWire:

Place the following entries in /etc/portage/package.use:
```
media-video/pipewire sound-server
media-sound/pulseaudio -daemon


# nano /etc/portage/package.use

[ "/etc/portage/package.use" is a directory ]

Do I need to create a new file in that folder?
Back to top
View user's profile Send private message
peertoo
n00b
n00b


Joined: 12 Dec 2023
Posts: 27

PostPosted: Tue Dec 12, 2023 6:24 pm    Post subject: Reply with quote

In folder /etc/portage/package.use i see 1 file: 00cpu-flags
Back to top
View user's profile Send private message
peertoo
n00b
n00b


Joined: 12 Dec 2023
Posts: 27

PostPosted: Tue Dec 12, 2023 8:01 pm    Post subject: Reply with quote

A lot of errors after reboot 8O

Now startx do nothing.

The last 4 lines:
Code:

xinit: give up
xinit: unable to connect te X server: Network is unreachable
xinit:  server error
xauth: error in locking authority file /root/.Xauthorithy


maybe this information is relevant:
I installed Gentoo in /dev/sdc from Ubuntu (on /dev/sdb). I can entering Gentoo from Ubuntu (chroot). After the previous steps I started Gentoo and see a lot of errors.
Back to top
View user's profile Send private message
peertoo
n00b
n00b


Joined: 12 Dec 2023
Posts: 27

PostPosted: Tue Dec 12, 2023 8:06 pm    Post subject: Reply with quote

/root/.Xautorithy is empty.
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 21709

PostPosted: Tue Dec 12, 2023 8:32 pm    Post subject: Reply with quote

Why is it trying to use /root/.Xauthority? The Xauthority file is normally placed in $HOME, and your HOME should not be root's HOME.

How did you start this user shell?
Back to top
View user's profile Send private message
peertoo
n00b
n00b


Joined: 12 Dec 2023
Posts: 27

PostPosted: Tue Dec 12, 2023 9:25 pm    Post subject: Reply with quote

Hu wrote:


How did you start this user shell?


I've started with add
Code:
media-sound/mpg123 -pulseaudio
and
Code:
media-libs/libsndfile minimal
in /etc/portage/package.use/fix-circular-deps followed byt #emerge info.
then I started following the information from eselect news:

Code:
(chroot) perry-System-Product-Name / # eselect news read
2022-07-29-pipewire-sound-server
Title PipeWire sound server migration
Author Sam James <sam@gentoo.org>
Posted 2022-07-29
Revision 1

PipeWire has gained a new USE flag "sound-server" for enabling/disabling its
sound server capabilities.

This change is needed to avoid PipeWire and PulseAudio conflicting over control
of audio devices. Before this change, OpenRC users were in some cases
accidentally migrated to PipeWire which was difficult to override without
manually editing launcher files.

For non-audio purposes, PipeWire is installed in many configurations as more
and more software depends on it for e.g. screensharing, sandboxing,
and window previews, so users will need to act based on their preferred
setup rather than simply avoiding installing PipeWire, as it is
increasingly required as a dependency.

Packages needing PulseAudio's APIs will be migrated from the now-meta package
media-sound/pulseaudio to depending on media-libs/libpulse. The runtime
PulseAudio server can be provided by either PipeWire (media-video/pipewire)
or the original PulseAudio (media-sound/pulseaudio-daemon).

The new sound-server USE flag for PipeWire allows easily controlling
this behavior.

There are several options available:

1. To use PipeWire for sound, users should enable USE=sound-server for PipeWire:

Place the following entries in /etc/portage/package.use:
```
media-video/pipewire sound-server
media-sound/pulseaudio -daemon
```

First, sync:
# emerge --sync

Deselect media-sound/pulseaudio-daemon:
# emerge --deselect media-sound/pulseaudio-daemon

Then perform a world upgrade with PipeWire on the command line to add
it to the world file:
# emerge --ask --update --changed-use --deep @world media-video/pipewire

Then depclean:
# emerge --ask --depclean

OpenRC users on an XDG-compliant desktop which respects autostart files
will not need to take any further action.

OpenRC users using a minimal desktop which does not respect autostart
files will need to run `gentoo-pipewire-launcher &` in e.g.
`~/.xprofile`.

Users who want to switch to PipeWire providing a PulseAudio daemon
may need to `emerge --deselect` packages in their world file which
hard-require media-sound/pulseaudio-daemon. There are only a handful
of these. A non-exhaustive list:
* media-sound/paprefs
* media-sound/pasystray
* media-sound/pulseaudio-modules-bt (shouldn't be needed anyway)
* net-misc/pulseaudio-dlna

If not using any of those packages anymore, please emerge --deselect
them. If still using these, PipeWire as a PulseAudio is not an
option at this time.

(Note that media-libs/libpulse (which PipeWire will be using, don't emerge
libpulse manually) provides 'pactl' which can be used as a replacement for
e.g. media-sound/pulseaudio-ctl, so personal scripts can be adapted to this
if desired.)

systemd users will also need to run the following commands:
$ systemctl --user --now disable pulseaudio.service pulseaudio.socket
$ systemctl --user --now enable pipewire.socket pipewire-pulse.socket
$ systemctl --user --now disable pipewire-media-session.service
$ systemctl --user --force enable wireplumber.service

Root user may replace --user with --global to change system default
configuration for all of the above commands.

2. To use PulseAudio's daemon for sound, users should disable USE=sound-server
for PipeWire, enable USE=daemon on media-sound/pulseaudio, and add
media-sound/pulseaudio-daemon to their world file:

Place the following entries in /etc/portage/package.use:
```
media-video/pipewire -sound-server
media-sound/pulseaudio daemon
```

Add media-sound/pulseaudio-daemon to @world:
# emerge --noreplace media-sound/pulseaudio-daemon

Then perform a world upgrade:
# emerge --ask --update --changed-use --deep @world

Then depclean:
# emerge --ask --depclean

OpenRC users on an XDG-compliant desktop which respects autostart files
will not need to take any further action.

OpenRC users using a minimal desktop which does not respect autostart
files should consider adding `gentoo-pipewire-launcher &` in e.g.
`~/.xprofile` but it's not strictly required in terms of audio
handling. It may be required in future for the non-audio usecases
described above.

systemd users will also need to run the following commands:
$ systemctl --user --now enable pulseaudio.service pulseaudio.socket
$ systemctl --user --now disable pipewire.socket pipewire-pulse.socket

Alternatively, systemd users can run the following commands as root to change
the default for all users:
# systemctl --global enable pulseaudio.service pulseaudio.socket
# systemctl --global --force disable pipewire.socket pipewire-pulse.socket

(If taking this option, the services must be started manually as a one-off as
a user.)

3. For users without sound on their system, those using JACK without
PipeWire, or those using pure ALSA without PipeWire, the following steps
are recommended:

Place the following entries in /etc/portage/package.use:
```
media-video/pipewire -sound-server
media-sound/pulseaudio -daemon
```

Then perform a world upgrade:
# emerge --ask --update --changed-use --deep @world

Then depclean:
# emerge --ask --depclean

OpenRC users on an XDG-compliant desktop which respects autostart files
will not need to take any further action.

OpenRC users using a minimal desktop which does not respect autostart
files will need to run `gentoo-pipewire-launcher &` in e.g.
`~/.xprofile`.

systemd users will also likely want to run the following commands as a user, again
for the purposes of non-audio PipeWire use:
$ systemctl --user --now enable pipewire.socket
$ systemctl --user --now --force enable wireplumber.service

Alternatively, systemd users can run the following commands as root to change
the default for all users, again for the purposes of non-audio PipeWire use:
# systemctl --global enable pipewire.socket
# systemctl --global --force enable wireplumber.service

(If taking this option, the services must be started manually as a one-off as
a user.)

Further resources:
* https://wiki.gentoo.org/wiki/PipeWire

And after reboot i see a lot of errors.
Back to top
View user's profile Send private message
peertoo
n00b
n00b


Joined: 12 Dec 2023
Posts: 27

PostPosted: Tue Dec 12, 2023 9:28 pm    Post subject: Reply with quote

Do you see something strange in this?
Code:
(chroot) perry-System-Product-Name / # emerge --info wine
Portage 3.0.56 (python 3.11.6-final-0, default/linux/amd64/17.1/desktop/plasma, gcc-13, glibc-2.37-r7, 6.2.0-37-generic x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-6.2.0-37-generic-x86_64-Intel-R-_Core-TM-_i5-9400F_CPU_@_2.90GHz-with-glibc2.37
KiB Mem:    16301412 total,   9451472 free
KiB Swap:    2097148 total,   2097148 free
Timestamp of repository gentoo: Tue, 12 Dec 2023 19:00:01 +0000
Head commit of repository gentoo: 02d88c6e61ff9fab0fdf897ccddf4bdaa6f094e9
sh bash 5.1_p16-r6
ld GNU ld (Gentoo 2.40 p7) 2.40.0
app-misc/pax-utils:        1.3.5::gentoo
app-shells/bash:           5.1_p16-r6::gentoo
dev-lang/perl:             5.38.0-r1::gentoo
dev-lang/python:           3.11.6::gentoo, 3.12.1::gentoo
dev-lang/rust-bin:         1.71.1::gentoo
dev-util/cmake:            3.27.7::gentoo
dev-util/meson:            1.2.3::gentoo
sys-apps/baselayout:       2.14::gentoo
sys-apps/openrc:           0.48::gentoo
sys-apps/sandbox:          2.38::gentoo
sys-devel/autoconf:        2.71-r6::gentoo
sys-devel/automake:        1.16.5-r1::gentoo
sys-devel/binutils:        2.40-r9::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/gcc:             13.2.1_p20230826::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/libtool:         2.4.7-r1::gentoo
sys-devel/llvm:            16.0.6::gentoo
sys-devel/make:            4.4.1-r1::gentoo
sys-kernel/linux-headers:  6.1::gentoo (virtual/os-headers)
sys-libs/glibc:            2.37-r7::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    volatile: False
    sync-rsync-verify-max-age: 3
    sync-rsync-verify-jobs: 1
    sync-rsync-extra-opts:
    sync-rsync-verify-metamanifest: yes

Binary Repositories:

gentoobinhost
    priority: 1
    sync-uri: https://gentoo.osuosl.org/releases/amd64/binpackages/17.1/x86-64

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="C.UTF8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
MAKEOPTS="-j6 -l6"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
SHELL="/bin/bash"
USE="X a52 aac acl acpi activities alsa amd64 bluetooth branding bzip2 cairo cdda cdr cli crypt cups dbus declarative dri dts dvd dvdr elogind encode exif flac fortran gdbm gif gnome gpm gtk gui iconv icu ipv6 jpeg kde kwallet lcms libnotify libtirpc mad mng mp3 mp4 mpeg multilib ncurses networkmanager nls nptl ogg opengl openmp pam pango pcre pdf pipewire plasma png policykit ppds pulseaudio qml qt5 readline screencast sdl seccomp semantic-desktop sound spell split-usr ssl startup-notification svg test-rust tiff truetype udev udisks unicode upower usb vorbis vulkan wayland widgets wxwidgets x264 xattr xcb xft xml xv xvid zlib" ABI_X86="64" ADA_TARGET="gnat_2021" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 aes avx avx2 f16c fma3 pclmul popcnt rdrand sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-1" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" RUBY_TARGETS="ruby31" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Back to top
View user's profile Send private message
peertoo
n00b
n00b


Joined: 12 Dec 2023
Posts: 27

PostPosted: Wed Dec 13, 2023 7:12 am    Post subject: Reply with quote

I think openvpn is missing 8O
My Gentoo after reboot.

Now I try this:
Code:
(chroot) perry-System-Product-Name / # emerge -pv openvpn

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

Calculating dependencies... done!
Dependency resolution took 2.03 s (backtrack: 0/20).

[ebuild  N     ] acct-group/openvpn-0-r2::gentoo  0 KiB
[ebuild  N     ] app-arch/lz4-1.9.4:0/r132::gentoo  USE="-static-libs" ABI_X86="(64) -32 (-x32)" 346 KiB
[ebuild  N     ] sys-libs/libcap-ng-0.8.3::gentoo  USE="-python -static-libs" PYTHON_TARGETS="python3_11 -python3_10" 446 KiB
[ebuild  N     ] acct-user/openvpn-0-r2::gentoo  0 KiB
[ebuild  N     ] net-vpn/openvpn-2.6.4::gentoo  USE="lz4 lzo openssl pam plugins -dco -down-root -examples -inotify -iproute2 -mbedtls -pkcs11 (-selinux) -systemd -test" 1818 KiB

Total: 5 packages (5 new), Size of downloads: 2609 KiB
Back to top
View user's profile Send private message
grknight
Retired Dev
Retired Dev


Joined: 20 Feb 2015
Posts: 1685

PostPosted: Wed Dec 13, 2023 1:19 pm    Post subject: Reply with quote

peertoo wrote:
I think openvpn is missing 8O
My Gentoo after reboot.


Where did you define this openvpn reference for OpenRC? Whatever did should be removed.
It looks a lot like an addition to /etc/rc.conf that is causing these issues.
Back to top
View user's profile Send private message
peertoo
n00b
n00b


Joined: 12 Dec 2023
Posts: 27

PostPosted: Wed Dec 13, 2023 4:19 pm    Post subject: Reply with quote

grknight wrote:
peertoo wrote:
I think openvpn is missing 8O
My Gentoo after reboot.


Where did you define this openvpn reference for OpenRC? Whatever did should be removed.
It looks a lot like an addition to /etc/rc.conf that is causing these issues.


I installed Gentoo according to the manual. Because KDE worked well, I started asking for advice here. In between I also tried to get everything working. And I probably did something completely wrong then.
Is there a default option to restore /etc/rc.conf?
I am now logged in to Gentoo via my Ubuntu environment (chroot). This way I can do more in the Gentoo environment than when I log in directly to Gentoo.

The way I log into Gentoo via Ubuntu:
Code:
perry@perry-System-Product-Name:~$ sudo su -
[sudo] wachtwoord voor perry:
root@perry-System-Product-Name:~# mount --types proc /proc /mnt/gentoo/proc
root@perry-System-Product-Name:~# mount --rbind /sys /mnt/gentoo/sys
root@perry-System-Product-Name:~# mount --make-rslave /mnt/gentoo/sys
root@perry-System-Product-Name:~# mount --rbind /dev /mnt/gentoo/dev
root@perry-System-Product-Name:~# mount --make-rslave /mnt/gentoo/dev
root@perry-System-Product-Name:~# mount --bind /run /mnt/gentoo/run
root@perry-System-Product-Name:~# mount --make-slave /mnt/gentoo/run
root@perry-System-Product-Name:~# chroot /mnt/gentoo /bin/bash
perry-System-Product-Name / # source /etc/profile
perry-System-Product-Name / # export PS1="(chroot) ${PS1}"
(chroot) perry-System-Product-Name / #
Back to top
View user's profile Send private message
grknight
Retired Dev
Retired Dev


Joined: 20 Feb 2015
Posts: 1685

PostPosted: Wed Dec 13, 2023 4:27 pm    Post subject: Reply with quote

What does this command show:
Code:
grep '^[^#]' /etc/rc.conf
Back to top
View user's profile Send private message
peertoo
n00b
n00b


Joined: 12 Dec 2023
Posts: 27

PostPosted: Wed Dec 13, 2023 4:34 pm    Post subject: Reply with quote

grknight wrote:
What does this command show:
Code:
grep '^[^#]' /etc/rc.conf

Code:
rc_parallel="YES"
unicode="YES"
rc_tty_number=12
Back to top
View user's profile Send private message
grknight
Retired Dev
Retired Dev


Joined: 20 Feb 2015
Posts: 1685

PostPosted: Wed Dec 13, 2023 4:58 pm    Post subject: Reply with quote

peertoo wrote:
grknight wrote:
What does this command show:
Code:
grep '^[^#]' /etc/rc.conf

Code:
rc_parallel="YES"
unicode="YES"
rc_tty_number=12

That's rather normal. So find the openvpn reference:
Code:
grep -ri openvpn /etc
Back to top
View user's profile Send private message
peertoo
n00b
n00b


Joined: 12 Dec 2023
Posts: 27

PostPosted: Wed Dec 13, 2023 5:05 pm    Post subject: Reply with quote

grknight wrote:
peertoo wrote:
grknight wrote:
What does this command show:
Code:
grep '^[^#]' /etc/rc.conf

Code:
rc_parallel="YES"
unicode="YES"
rc_tty_number=12

That's rather normal. So find the openvpn reference:
Code:
grep -ri openvpn /etc


Code:
(chroot) perry-System-Product-Name / # grep -ri openvpn /etc
/etc/conf.d/openvpn:# OpenVPN automatically creates an /etc/resolv.conf (or sends it to
/etc/conf.d/openvpn:# resolvconf) if given DNS information by the OpenVPN server.
/etc/conf.d/openvpn:# OpenVPN can run in many modes. Most people will want the init script
/etc/conf.d/openvpn:# OpenVPN configuration looks like a client, but it's really a peer or
/etc/conf.d/openvpn:# If DETECT_CLIENT is no and you have your own scripts to re-enter the openvpn
/etc/gshadow:openvpn:!::
/etc/openvpn/up.sh:      DNS="# Generated by openvpn for interface ${dev}\n"
/etc/openvpn/up.sh:# as we could have >1 openvpn service
/etc/openvpn/up.sh:   if [ -x /etc/openvpn/"${SVCNAME}"-up.sh ] ; then
/etc/openvpn/up.sh:      /etc/openvpn/"${SVCNAME}"-up.sh "$@"
/etc/openvpn/down.sh:if [ -x /etc/openvpn/"${SVCNAME}"-down.sh ] ; then
/etc/openvpn/down.sh:   /etc/openvpn/"${SVCNAME}"-down.sh "$@"
/etc/services:openvpn      1194/tcp         # OpenVPN
/etc/services:openvpn      1194/udp
/etc/shadow:openvpn:!:19704::::::
/etc/rc.conf:#rc_need="openvpn"
/etc/rc.conf:#rc_foo_need="openvpn"
/etc/rc.conf:#rc_foo_bar_need="openvpn"
/etc/init.d/openvpn:VPNDIR=${VPNDIR:-/etc/openvpn}
/etc/init.d/openvpn:if [ -n "${VPN}" ] && [ ${SVCNAME} != "openvpn" ]; then
/etc/init.d/openvpn:   VPNPID="/run/openvpn.${VPN}.pid"
/etc/init.d/openvpn:   VPNPID="/run/openvpn.pid"
/etc/init.d/openvpn:      eerror "You need to specify the interface that this openvpn" \
/etc/init.d/openvpn:   # If we are re-called by the openvpn gentoo-up.sh script
/etc/init.d/openvpn:   # then we don't actually want to start openvpn
/etc/init.d/openvpn:      args="${args} --up /etc/openvpn/up.sh"
/etc/init.d/openvpn:      args="${args} --down-pre --down /etc/openvpn/down.sh"
/etc/init.d/openvpn:         ewarn "These scripts will call /etc/openvpn/${SVCNAME}-{up,down}.sh"
/etc/init.d/openvpn:         ewarn "As such openvpn may not be able to change ip, routing"
/etc/init.d/openvpn:      # So we're a server. Run as openvpn unless otherwise specified
/etc/init.d/openvpn:      grep -q "^[    ]*user[    ].*" "${VPNCONF}" || args="${args} --user openvpn"
/etc/init.d/openvpn:      grep -q "^[    ]*group[    ].*" "${VPNCONF}" || args="${args} --group openvpn"
/etc/init.d/openvpn:   start-stop-daemon --start --exec /usr/sbin/openvpn --pidfile "${VPNPID}" \
/etc/init.d/openvpn:   # If we are re-called by the openvpn gentoo-down.sh script
/etc/init.d/openvpn:   # then we don't actually want to stop openvpn
/etc/init.d/openvpn:      --exec /usr/sbin/openvpn --pidfile "${VPNPID}" \
/etc/init.d/netmount:   use afc-client amd openvpn
/etc/passwd:openvpn:x:394:394:User for net-vpn/openvpn:/dev/null:/sbin/nologin
/etc/group:openvpn:x:394:


I'm going to restart my system in a moment and go straight to the Gentoo installation. Then I execute those commands again.
Back to top
View user's profile Send private message
peertoo
n00b
n00b


Joined: 12 Dec 2023
Posts: 27

PostPosted: Wed Dec 13, 2023 5:18 pm    Post subject: Reply with quote

Now I am logged in to my Gentoo environment.

grknight wrote:
What does this command show:
Code:
grep '^[^#]' /etc/rc.conf


-->Click<--
Back to top
View user's profile Send private message
peertoo
n00b
n00b


Joined: 12 Dec 2023
Posts: 27

PostPosted: Wed Dec 13, 2023 5:32 pm    Post subject: Reply with quote

grknight wrote:

That's rather normal. So find the openvpn reference:
Code:
grep -ri openvpn /etc


Code:
(none) ~# grep -ri openvpn /etc
/etc/init.d/netmount:    use afc-client amd openvpn
/etc/init.d/display-manager:     after readahead-list ypbind autofs openvpn pgm lircmd
/etc/rc.conf:rc_need="openvpn"
/etc/rc.conf:rc_foo_need="openvpn"
/etc/rc.conf:rc_foo_bar_need="openvpn"
/etc/services:openvpn                1194/tcp                                 # Openvpn
/etc/services:openvpn                1194/udp
/etc/._cfg0000_rc.conf:#rc_need="openvpn"
/etc/._cfg0000_rc.conf:#rc_foo_need="openvpn"
/etc/._cfg0000_rc.conf:#rc_foo_bar_need="openvpn"


Hopefully I didn't make any typos.
Back to top
View user's profile Send private message
peertoo
n00b
n00b


Joined: 12 Dec 2023
Posts: 27

PostPosted: Wed Dec 13, 2023 5:36 pm    Post subject: Reply with quote

Is it wise to stay in my Gentoo installation or is it better to work in my Ubuntu environment in Gentoo (chroot)?
Back to top
View user's profile Send private message
grknight
Retired Dev
Retired Dev


Joined: 20 Feb 2015
Posts: 1685

PostPosted: Wed Dec 13, 2023 5:46 pm    Post subject: Reply with quote

peertoo wrote:
grknight wrote:

That's rather normal. So find the openvpn reference:
Code:
grep -ri openvpn /etc


Code:
(none) ~# grep -ri openvpn /etc
/etc/rc.conf:rc_need="openvpn"
/etc/rc.conf:rc_foo_need="openvpn"
/etc/rc.conf:rc_foo_bar_need="openvpn"


Please return the # before those 3 lines to make them comments. Setting rc_need in that file will break everything.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum