You are not logged in.

#1 2018-03-04 01:24:27

renordw
Member
From: New Mexico
Registered: 2018-03-04
Posts: 56

[Solved] Switching from Gnome to KDE

First time poster here, just got Arch installed yesterday, and it's a very satisfying distro so far. I followed the advice of the wiki, and got it up and running with no problem.

Only problem is I don't like gnome that much because it reminds me of Ubuntu.

I have installed KDE/Plasma, but I haven't been successful in starting it up. I have tried "startkde", and I get the splash screen but then it launched into a black screen. I figured it was probably because gnome was already running.

So I tried, the advice of the wiki - https://wiki.archlinux.org/index.php/KD … ing_Plasma, "start Plasma with xinit/startx, append exec startkde to your .xinitrc file." I didn't have a ~/.xinitrc so I created one with only that line in it "exec startkde" but it still loads gnome.

Last edited by renordw (2018-03-04 05:13:37)

Offline

#2 2018-03-04 02:22:16

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [Solved] Switching from Gnome to KDE

How dod you start Gnome? With GDM? Did you disable that service?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2018-03-04 03:43:00

renordw
Member
From: New Mexico
Registered: 2018-03-04
Posts: 56

Re: [Solved] Switching from Gnome to KDE

Hi thank you for the hint. It does start with gdm.service, I believe. When I disable gdm.service, then I am unable to startkde as well, it says the $DISPLAY is not set or cannot connect to the server.

Last edited by renordw (2018-03-04 03:43:24)

Offline

#4 2018-03-04 03:44:55

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [Solved] Switching from Gnome to KDE

That's because your xinitrc is broken. Read the wiki article and source the necessary files.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2018-03-04 03:47:57

circleface
Member
Registered: 2012-05-26
Posts: 639

Re: [Solved] Switching from Gnome to KDE

Please post your ~/.xinitrc in [ code ] [ /code ] tags.  Did you copy the sample file and then append "exec startkde" or is that the only thing the file has in it?  Make sure you have all the stuff from the sample file as well, because having only that one line will lead to problems.

Edit: like Jasonwryan said, he has quicker fingers than me wink

Last edited by circleface (2018-03-04 03:49:31)

Offline

#6 2018-03-04 04:18:49

renordw
Member
From: New Mexico
Registered: 2018-03-04
Posts: 56

Re: [Solved] Switching from Gnome to KDE

Here goes,

#!/bin/sh

userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap

# merge in defaults and keymaps

if [ -f $sysresources ]; then







    xrdb -merge $sysresources

fi

if [ -f $sysmodmap ]; then
    xmodmap $sysmodmap
fi

if [ -f "$userresources" ]; then







    xrdb -merge "$userresources"

fi

if [ -f "$usermodmap" ]; then
    xmodmap "$usermodmap"
fi

# start some nice programs

if [ -d /etc/X11/xinit/xinitrc.d ] ; then
 for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
  [ -x "$f" ] && . "$f"
 done
 unset f
fi

twm &
xclock -geometry 50x50-1+1 &
xterm -geometry 80x50+494+51 &
xterm -geometry 80x20+494-0 &
exec xterm -geometry 80x66+0+0 -name login
exec startkde

Offline

#7 2018-03-04 04:37:51

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [Solved] Switching from Gnome to KDE

Reread the xinitrc page: only one exec line is read; everything after that is irrelevant.

And you are backgrounding a WM (twm). That won't work.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#8 2018-03-04 04:57:48

renordw
Member
From: New Mexico
Registered: 2018-03-04
Posts: 56

Re: [Solved] Switching from Gnome to KDE

Yeah I'm not getting anywhere. I took out all the execs except that one, and it still launches gnome.

When I do

systemctl disable gdm.service

then I go into teletype mode, and if I try to do a startkde there, I get an error saying $DISPLAY is not set or cannot connect to X server

Last edited by renordw (2018-03-04 05:02:16)

Offline

#9 2018-03-04 05:02:08

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: [Solved] Switching from Gnome to KDE

*what* launches gnome?

Offline

#10 2018-03-04 05:03:04

renordw
Member
From: New Mexico
Registered: 2018-03-04
Posts: 56

Re: [Solved] Switching from Gnome to KDE

Scimmia wrote:

*what* launches gnome?

gdm.service is launching it, but when it's gone, it only gives me teletype

Offline

#11 2018-03-04 05:06:20

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: [Solved] Switching from Gnome to KDE

You said back in post #3 that GDM was disabled. Now it's enabled again? The rest of this thread has been about your .xinitrc, which is about startx, not about GDM.

Either pick the plasma session in GDM or get rid of it and use .xinitrc/startx. Not both.

Offline

#12 2018-03-04 05:07:07

renordw
Member
From: New Mexico
Registered: 2018-03-04
Posts: 56

Re: [Solved] Switching from Gnome to KDE

Sorry I didn't realize I had to type "startx"

It's fixed now!

Last edited by renordw (2018-03-04 05:10:01)

Offline

#13 2018-03-04 05:10:21

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [Solved] Switching from Gnome to KDE

Spend some time actually reading the wiki, and not being in such a rush to get to a full-blown DE.


Please remember to mark your thread as [Solved] by editing your first post and prepending it to the title.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#14 2018-03-04 05:12:09

renordw
Member
From: New Mexico
Registered: 2018-03-04
Posts: 56

Re: [Solved] Switching from Gnome to KDE

Thanks for the hints. I did read the wiki. The biggest problem is that for xinit, it gives a ton of examples of pieces of what should be in there, but no full-length sample.

Offline

#15 2018-03-04 08:05:38

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [Solved] Switching from Gnome to KDE

The sample is the example file you copy from /etc/X11/xinit


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#16 2018-03-04 12:16:37

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,543
Website

Re: [Solved] Switching from Gnome to KDE

FWIW, it's not directly relevant to this thread, but JWR, there is nothing strictly wrong with backgrounding most WMs as long as something after them in xinitrc stays alive.  Backgrounding TWM is the "recommended" way of running it, and the exec'ed xterm keeps the session alive until that xterm is closed.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

Board footer

Powered by FluxBB