Skip to main content
Topic solved
This topic has been marked as solved and requires no further attention.
Topic: Startx broke after installing plasma (Read 2666 times) previous topic - next topic
0 Members and 11 Guests are viewing this topic.

Startx broke after installing plasma

Hi everyone, I'm quite new to Artix and Linux in general.

So today I decided to install KDE plasma in my xfce runit Artix, and after installing it through pacman, my system crashes and I rebooted it. When it finally turned on, instead of showing the GUI version of login dialog, it's showing the virtual console. And after logging in and trying to start xorg. It shows:
Code: [Select]
/etc/X11/xinit/xserverrc: line 2: /usr/bin/X: Success
xinit: giving up
xinit: unable to connect to X server: Connection refused
xinit: server error
Is there anyway to boot into my xfce again?

I've tried to research it myself and none of the fix in the internet seems to work. Also I'm posting this through my phone, so idk how to send a more detailed log.

Re: Startx broke after installing plasma

Reply #1
If you can login through a TTY, which you already did, you have everything you need to post a log. You can access the web through a textual web browser. Some of those are (in alphabetical order):
    • elinks
    • links
    • lynx
    • w3m
The logs are text files located in /var/log. Of interest would especially be Xorg.*.log.

Re: Startx broke after installing plasma

Reply #2
if you are new in Linux, just reinstall your system with plasma iso.it's the simplest way.
after new install run immediately pacman -Syyu command

Re: Startx broke after installing plasma

Reply #3
if you are new in Linux, just reinstall your system with plasma iso.it's the simplest way.
after new install run immediately pacman -Syyu command
I think this is better and faster, thanks for the help. Though before I reinstall, is the command -Syyu or -Syu?

Edit: Nvm, i just read through the man page and the double y is not a typo.

Re: Startx broke after installing plasma

Reply #4
Quote
after new install run immediately pacman -Syyu command,

that's really no typo  :D this will update your installed system... but before will again sync your mirror

Re: Startx broke after installing plasma

Reply #5

that's really no typo  :D this will update your installed system... but before will again sync your mirror

So I'm in the middle of reinstalling, I'm going to install it on a 256GB SSD, the partition scheme I set up before Artix broke is sda1 (300 MiB)= FAT32 and sda2 (223.3 GiB) = LUKS. Is there a way to not install it on sda2 since it'll obviously wipe all the data in it?

Re: Startx broke after installing plasma

Reply #6
you can try resize partition,  but you should do backup your data.
i recommend you create sda1 for boot, sda2 for root /(20-30GB should be enough) and the rest in sda 3 for /home.
why? because of you will do reinstall, you can just format root / and install new system, but all data in home  willstay untouched, if you set it during install 😉

Re: Startx broke after installing plasma

Reply #7
Well it seems like the only option is to backup the disk and resize the partition.  :'(

If that's the case then I think I'll try to learn to use lynx and post the Xorg log instead.

Re: Startx broke after installing plasma

Reply #8
you can install sddm + sddm-service (openrc/rc6/runit) and try run sddm (sddm is much more better for plasma)

If you have a USB flash disk, first find out which device it is on when you connect it:

Code: [Select]
$ lsblk -f

Usually it will be /dev/sdb1, but check just in case.
not neccesary
Then (assuming it is /dev/sdb1):
Code: [Select]
$ su
# mount /dev/sdb1 /mnt
# cp /var/log/Xorg.0.log /var/log/messages.log /mnt
# dmesg > /mnt/dmesg.txt
# lspci -v > /mnt/lspci.txt
# sync; umount /mnt

and post it in paste.artixlinux.org
thanks @strajder for instruction how to copy

Re: Startx broke after installing plasma

Reply #9
@strajder @alium Thanks a lot to you both for the instruction. Pass: artixlinux
Since the log is long I decided to use pastebin instead.

Re: Startx broke after installing plasma

Reply #10
I think this .xsessions-error log might help too, so I'll post this here.

 

Re: Startx broke after installing plasma

Reply #11
@strajder @alium Thanks a lot to you both for the instruction. Pass: artixlinux
Since the log is long I decided to use pastebin instead.

hmm, no palpable error.

perhaps just a badly set graphics driver. copy the following files to /etc/X11/xorg.conf.d/ and modify as needed (20-monitor.conf you need set your resolution, 00-keyboard.conf you need yet your keyboard layout)

Code: [Select]
su
cd /etc/X11/xorg.conf.d/
ls (check prevoius files - if you used some files, rename they to XX-xxxxx.conf.backup)
wget https://github.com/alium/share/blob/master/00-keyboard.conf
wget https://github.com/alium/share/blob/master/20-monitor.conf
wget https://github.com/alium/share/blob/master/20-amdgpu.conf
wget https://github.com/alium/share/blob/master/60-extensions.conf
install sddm and sddm-runit, aneble it (add to runlevel https://wiki.artixlinux.org/Main/Runit#Basic_usage) and activate it.  disable and remove  another display manager, which was installed with xfce (i suppose it was lightdm) - sddm is much more suitable for plasma and is not as problematic as lightdm .

restart your computer.
what is the current situation? will the display manager start, enter the password and he will start the plasma, or will the display manager not even laugh at all?

Re: Startx broke after installing plasma

Reply #12
Code: [Select]
su
cd /etc/X11/xorg.conf.d/
ls (check prevoius files - if you used some files, rename they to XX-xxxxx.conf.backup)
wget https://github.com/alium/share/blob/master/00-keyboard.conf
wget https://github.com/alium/share/blob/master/20-monitor.conf
wget https://github.com/alium/share/blob/master/20-amdgpu.conf
wget https://github.com/alium/share/blob/master/60-extensions.conf
install sddm and sddm-runit, aneble it (add to runlevel https://wiki.artixlinux.org/Main/Runit#Basic_usage) and activate it.  disable and remove  another display manager, which was installed with xfce (i suppose it was lightdm) - sddm is much more suitable for plasma and is not as problematic as lightdm .

restart your computer.
what is the current situation? will the display manager start, enter the password and he will start the plasma, or will the display manager not even laugh at all?

I've tried copying your code and adjusting some of the code as needed to /etc/X11/xorg.conf.d/ but nothing happened after reboot. I still get the same error as before when starting x.
Code: [Select]
/etc/X11/xinit/xserverrc: line 2: /usr/bin/X: Success
xinit: giving up
xinit: unable to connect to X server: Connection refused
xinit: server error

Note: Also instead of using wget i type it manually using vim since wget downloaded the whole html instead of just the code.  I've also uninstalled sddm and sddm-runit since I prefer getting back to my xfce first before trying out plasma.

Re: Startx broke after installing plasma

Reply #13
So since the accident yesterday the caused my to broke I noticed something. Every time I reinstall xorg using pacman it shows error which says a lot of file is empty. I decided to delete all those files with
Code: [Select]
find /usr/ -empty -type fd -delete
and reboot the machine and starting x again.

And now it shows a different error message:
Code: [Select]
startx
/usr/lib/Xorg: error while loading shared libraries: libXfont2.so.2: cannot open shared object file: No such file or directory
xinit: giving up
xinit: unable to connect to X server: Connection refuse
xinit: server error

Re: Startx broke after installing plasma

Reply #14
Note: Also instead of using wget i type it manually using vim since wget downloaded the whole html instead of just the code.
The correct URLs have raw instead of blob, so:
Code: [Select]
wget https://github.com/alium/share/raw/master/00-keyboard.conf
wget https://github.com/alium/share/raw/master/20-monitor.conf
wget https://github.com/alium/share/raw/master/20-amdgpu.conf
wget https://github.com/alium/share/raw/master/60-extensions.conf

So since the accident yesterday the caused my to broke I noticed something. Every time I reinstall xorg using pacman it shows error which says a lot of file is empty.
I'm not sure I understand. What is the exact error?

Quote
I decided to delete all those files with
Code: [Select]
find /usr/ -empty -type fd -delete
and reboot the machine and starting x again.
Probably not a good idea. I wasn't able to see your Xorg.0.log even with the password "artixlinux", so what video card do you have?