View previous topic :: View next topic |
Author |
Message |
frevo n00b
Joined: 18 Dec 2024 Posts: 6
|
Posted: Wed Dec 18, 2024 9:33 pm Post subject: not able to boot into KDE Plasma |
|
|
First things first, I'm a newbie in Gentoo.
Just a normal Fedora KDE user trying to learn new stuff with an "old" notebook that I've just formatted.
I'm using a Dell 14 7000 Inspiron (P74G model).
Intel i7 7th gen, with no discrete video cards in it.
I followed the Gentoo handbook, more specific its amd64 type.
However the
1) system boots into a tty rather than Plasma.
2)when I try to execute "exec dbus-launch --exit-with-session startplasma-x11]" as root, the is an error saying "Couldn´t exec startplasma-x11: no such file or directory"
3)when I try to execute the same command above as a normal user, the is an error saying cannot open log file, because there isn't a log file.
I followed the gentoo handbook tutorial ipsis litteris, however I could not boot into the KDE desktop environmnet... Clearly I'm doing something wrong, but I really don't know what.
Again I'm a newbie in Gentoo, so there might be a step that I did not followed properly for my machine, kernel, .... I really don't know.
log images:
https://ibb.co/5kK6mYm
https://ibb.co/Ydmd1tJ
https://ibb.co/d5Z1nNR |
|
Back to top |
|
|
pietinger Moderator
Joined: 17 Oct 2006 Posts: 5240 Location: Bavaria
|
Posted: Wed Dec 18, 2024 10:30 pm Post subject: |
|
|
frevo,
Welcome to Gentoo Forums!
Do you have systemd or OpenRC as init system?
These are the steps to install KDE/Plasma for an OpenRC system:
Code: | # emerge -vD xorg-server
# Only if you dont have an english keyboard (in this example a german keyboard is used):
# cd /etc/X11
# mkdir xorg.conf.d
# cd xorg.conf.d
# cp /usr/share/X11/xorg.conf.d/40-libinput.conf .
# nano -w 40-libinput.conf
=> add to keyboard section: Option "xkb_layout" "de"
# emerge -vD plasma-meta kdecore-meta
# both commands are used for an OpenRC system and must be exchanged with systemd commands when using systemd:
# rc-update add elogind boot
# rc-update add display-manager default
# nano -w /etc/conf.d/display-manager
=> DISPLAYMANAGER="sddm" |
Do you had any errors when you did one of these commands?
Maybe provide also the output of "emerge --info". _________________ https://wiki.gentoo.org/wiki/User:Pietinger |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 22867
|
Posted: Wed Dec 18, 2024 11:34 pm Post subject: |
|
|
Some of those pictures look strange. It looks like the user's shell is being treated as a home directory, which does not make sense. What is the output of declare -p HOME USER SHELL; grep $USER /etc/passwd as run by the unprivileged user? |
|
Back to top |
|
|
frevo n00b
Joined: 18 Dec 2024 Posts: 6
|
Posted: Wed Dec 18, 2024 11:59 pm Post subject: |
|
|
pietinger wrote: | frevo,
Welcome to Gentoo Forums!
|
Thanks! I'm looking for improving my Linux knowledge via the Gentoo ecosystem Hope someday I can contribute as well.
pietinger wrote: |
Do you have systemd or OpenRC as init system?
|
Sytemd, I've installed systemd+desktop profile stage3.
About this, following the tutorial, via a LiveGUI USB Image of Gentoo, the some parts where there are divergences in OpenRC and Systemd I could not properly run, because there was some errors like: System has not been booted with systemd as init system (PID 1). Can't operate". Was it suppose to give this errors, and I was suppose to run the OpenRC counterparts despite my stage3 files being for systemd? Or it should not gave theses errors?
pietinger wrote: |
Do you had any errors when you did one of these commands?
|
I've preferred to not run those commands. If i run them on the LiveGUIUSB in chroot, will they work?
pietinger wrote: |
Maybe provide also the output of "emerge --info".
|
https://ibb.co/ts4sJSZ
https://ibb.co/njJ1VY1 |
|
Back to top |
|
|
frevo n00b
Joined: 18 Dec 2024 Posts: 6
|
Posted: Thu Dec 19, 2024 12:04 am Post subject: |
|
|
Hu wrote: | Some of those pictures look strange. It looks like the user's shell is being treated as a home directory, which does not make sense. What is the output of declare -p HOME USER SHELL; grep $USER /etc/passwd as run by the unprivileged user? |
https://ibb.co/g3mCWfQ |
|
Back to top |
|
|
bstaletic Guru
Joined: 05 Apr 2014 Posts: 407
|
Posted: Thu Dec 19, 2024 12:40 am Post subject: |
|
|
frevo wrote: | Hu wrote: | Some of those pictures look strange. It looks like the user's shell is being treated as a home directory, which does not make sense. What is the output of declare -p HOME USER SHELL; grep $USER /etc/passwd as run by the unprivileged user? |
https://ibb.co/g3mCWfQ |
Yeah, that's horribly wrong. While the SHELL and USER are fine, the HOME is invalid.
Use `vipw` to change /bin/bash/pizarro to /home/pizarro. |
|
Back to top |
|
|
frevo n00b
Joined: 18 Dec 2024 Posts: 6
|
Posted: Thu Dec 19, 2024 1:59 am Post subject: |
|
|
bstaletic wrote: |
Yeah, that's horribly wrong. While the SHELL and USER are fine, the HOME is invalid.
Use `vipw` to change /bin/bash/pizarro to /home/pizarro. |
Ok, just did it
now "declare -x HOME="/home/pizarro" for pizarro user.
Furthermore, I've tried to start X11 via startx and this appeared (I've changed the hostname to nbdell-gentoo):
https://ibb.co/gzkXdvg |
|
Back to top |
|
|
pietinger Moderator
Joined: 17 Oct 2006 Posts: 5240 Location: Bavaria
|
Posted: Thu Dec 19, 2024 5:34 am Post subject: |
|
|
Can you boot the Gentoo you have installed, and get to a terminal where you can log in as root?
If yes, then check which profile you have set with:
Code: | # eselect profile show
# eselect profile list |
If it is NOT profile 28, then change it with
Code: | # eselect profile set 28
# emerge -uNDv @world |
Now you have everything PREPARED to install KDE/plasma, but it is not yet installed. Do the steps I described in my previous post and replace the two rc-update commands (from OpenRC) with:
https://wiki.gentoo.org/wiki/SDDM#systemd
Attention: Make sure you have configured VIDEO_CARDS to your correct video card BEFORE you emerge xorg-server
Also get
and read this article: https://wiki.gentoo.org/wiki/Wgetpaste
You can now upload files and outputs with wgetpaste at any time (and just give us the link).
If you have problems give us now (with help of wgetpaste) your "emerge --info" and "dmesg" _________________ https://wiki.gentoo.org/wiki/User:Pietinger |
|
Back to top |
|
|
frevo n00b
Joined: 18 Dec 2024 Posts: 6
|
Posted: Sat Dec 21, 2024 5:19 pm Post subject: |
|
|
Sorry for the delay, the command Code: | emerge -vD xorg-server | lasted for a hole day .
Code: | eselect profile show |
Shows default/linux/amd64/23.0/desktop/plasma/systemd
And Code: | eselect profile list | shows as "*" on the 28th line.
After following your advices I am now able to boot into a GUI, however still unable to boot into the desktop environment.
Despite login into my user, the display turns black for a few seconds and them comes back to login GUI.
https://bpa.st/4SRQ -> emerge --info
https://bpa.st/2IQA -> dmesg |
|
Back to top |
|
|
frevo n00b
Joined: 18 Dec 2024 Posts: 6
|
Posted: Sat Dec 21, 2024 5:48 pm Post subject: |
|
|
guys, executing the following command as root I was able to boot into KDE :
Code: | dbus-launch --exit-with-session startplasma-wayland |
However, I really don't know what was the root cause of why I was not able to boot before.
Specially because you guys helped me installing "X" related software and I boot into plasma via wayland (?). |
|
Back to top |
|
|
|