LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   I always use Xfce (a desktop environment). How can I switch permanently to KDE? (http://www.linuxquestions.org/questions/slackware-14/i-always-use-xfce-a-desktop-environment-how-can-i-switch-permanently-to-kde-4175464376/)

stf92 06-01-2013 03:03 PM

I always use Xfce (a desktop environment). How can I switch permanently to KDE?
 
Hi: (slackware 14.0) Or to be able to run anyone I choose on the fly?

hitest 06-01-2013 03:07 PM

Quote:

Originally Posted by stf92 (Post 4963589)
Hi: What's asked (slackware 14.0).

At a command prompt issue this command:

xwmconfig

xwmconfig

Or if you're logging in from run level four with KDM select KDE from the desktop selection menu.

stf92 06-01-2013 05:05 PM

Xwmconfig... cute program. But I was once told here that I could start any DE or WM by simply running the corresponding program from the command line. Unfortunately I do not remember the details.

Stephen Morgan 06-01-2013 05:20 PM

`xinit /usr/bin/startkde` will start kde from the command line in run-level three. But that's not a permanent thing. the `startx` command will launch whatever DE you select in xwmconfig.

hitest 06-01-2013 05:32 PM

Quote:

Originally Posted by stf92 (Post 4963651)
Xwmconfig... cute program. But I was once told here that I could start any DE or WM by simply running the corresponding program from the command line. Unfortunately I do not remember the details.

You asked for the solution I gave it to you. Running xwmconfig will allow you to switch to another DE or WM. After you have selected the DE/WM of your choice you can launch it with startx.

stf92 06-01-2013 05:37 PM

I did ran xwmconfig several times to switch betwenn xfce and KDE, running startx each time. For which I thank you very much.

stf92 06-01-2013 06:20 PM

Quote:

Originally Posted by Stephen Morgan (Post 4963660)
`xinit /usr/bin/startkde` will start kde from the command line in run-level three. But that's not a permanent thing. the `startx` command will launch whatever DE you select in xwmconfig.

Run level 3, that is multiuser mood. I do not understand this: the xwmconfig screen says "You can choose from among the following window managers" (or something so). But among the items listed, there are KDE and the Cholesterol Free Desktop Environment which, as there names imply, are not window managers but desktop environments. So, what's really the difference between a WM and a DE? That is, in very general terms. Maybe some of these are DEs and at the same time WMs?

elesmod 06-02-2013 09:23 AM

Quote:

Originally Posted by stf92 (Post 4963683)
Maybe some of these are DEs and at the same time WMs?

That is correct.

A window manager is a program that draws windows on the screen. It's responsible for the layout, resizing, overlaping, window decoration etc.

A desktop environment is all that plus a set of additional software, e.g. start menu, graphical system configuration center, widgets, file manager etc.

edit:

About changing between XFCE and KDE "on the fly"; you have to logout to change a DE, I don't think you can do it while being loged in. As people mentioned before, you can do it in two ways:

1. runlevel 3: xwmconfig, change DE, startx
2. runlevel 4: in this runlevel you boot straight into X, you can change DE in the login manager by selecting it from a menu before you login.

2nd edit:
I'm just curious why a "senior member" with 2,5k posts on LQ doesn't know this stuff (and please, don't go raging at me, it wasn't meant to be an insult).

stf92 06-03-2013 04:11 AM

Quote:

Originally Posted by elesmod (Post 4964003)
That is correct.

A window manager is a program that draws windows on the screen. It's responsible for the layout, resizing, overlaping, window decoration etc.

A desktop environment is all that plus a set of additional software, e.g. start menu, graphical system configuration center, widgets, file manager etc.

edit:

About changing between XFCE and KDE "on the fly"; you have to logout to change a DE, I don't think you can do it while being loged in. As people mentioned before, you can do it in two ways:

1. runlevel 3: xwmconfig, change DE, startx
2. runlevel 4: in this runlevel you boot straight into X, you can change DE in the login manager by selecting it from a menu before you login.

2nd edit:
I'm just curious why a "senior member" with 2,5k posts on LQ doesn't know this stuff (and please, don't go raging at me, it wasn't meant to be an insult).

Being a slackware user, I am used to find myself in a text console after booting. This is very good for me, as I spend most of the time in the text console (graphical consoles I only a few times use them). Therefore, I always run startx to start the GUI. Booting, and being automatically taken to a GUI is like being in a Windows system.

Second: when you run xwmconfig, what this program does is to remove the execution permission bit from a file and set it in another file. There is one of these files for every DE in my O.S. They are all in the same directory but the name of the directory I have forgotten.

nick_th_fury 06-03-2013 07:03 AM

If you really want to switch between xfce & KDE 'on the fly' you can. Its really handy if your like me and go months without logging out.
Login as your user and startx into Kde.

Then hit (Ctrl + Alt + F2) to get to your second terminal. (Ctrl + Alt + F1 & F2) Will switch you between consoles.
Login as your user or another user entirely, change xwmconfig to xfce.
startx -- :1

Then on the fly you can flip from xfce to KDE by hitting (Ctrl + Alt + F7) for the first screen & (Ctrl + Alt + F8) for the second.

I used to do that a lot before I got a 2nd monitor setup.
If anything gets confused you can force via a terminal which display a program loads into.
example:
kwrite --display :1

croxen 06-03-2013 07:25 AM

Make KDE or whatever you want your primary environment with xwmconfig. Whatever else may be set as default by xwmconfig, XFCE is nevertheless always available from the console by using startxfce4 rather than the generic startx

rkelsen 06-03-2013 07:48 AM

Quote:

Originally Posted by stf92 (Post 4964450)
Therefore, I always run startx to start the GUI.

How about using 'telinit' to switch runlevels? eg:

Code:

# telinit 4
You can do this from the command line, and it brings up a graphical login screen from which you can choose which DE to run.
Quote:

Originally Posted by stf92 (Post 4964450)
Second: when you run xwmconfig, what this program does is to remove the execution permission bit from a file and set it in another file. There is one of these files for every DE in my O.S. They are all in the same directory but the name of the directory I have forgotten.

/etc/X11/xinit/

The xwmconfig script creates/changes a symlink. It doesn't change any permissions.

stf92 06-03-2013 08:58 AM

Quote:

Originally Posted by nick_th_fury (Post 4964514)
If you really want to switch between xfce & KDE 'on the fly' you can. Its really handy if your like me and go months without logging out.
Login as your user and startx into Kde.

Then hit (Ctrl + Alt + F2) to get to your second terminal. (Ctrl + Alt + F1 & F2) Will switch you between consoles.
Login as your user or another user entirely, change xwmconfig to xfce.
startx -- :1

Then on the fly you can flip from xfce to KDE by hitting (Ctrl + Alt + F7) for the first screen & (Ctrl + Alt + F8) for the second.

I used to do that a lot before I got a 2nd monitor setup.
If anything gets confused you can force via a terminal which display a program loads into.
example:
kwrite --display :1

If startx, log out and startx from another console, then X says 'No screens found'. In my system (slackware 14.0) I cant have to GUIs at the same time.

stf92 06-03-2013 09:05 AM

Quote:

Originally Posted by rkelsen (Post 4964525)
How about using 'telinit' to switch runlevels? eg:

Code:

# telinit 4
You can do this from the command line, and it brings up a graphical login screen from which you can choose which DE to run.

/etc/X11/xinit/

The xwmconfig script creates/changes a symlink. It doesn't change any permissions.

You are right: /etc/X11/xinit/!!! I think I am always in the same runlevel: runlevel 3. Except when booting and at system shutdown.

nick_th_fury 06-03-2013 09:57 AM

Quote:

Originally Posted by stf92 (Post 4964553)
If startx, log out and startx from another console, then X says 'No screens found'. In my system (slackware 14.0) I cant have to GUIs at the same time.

startx -- :1
startx -- :2
Should be able to create separate sessions.
Might want to double check you have a .xinitrc in your home directory.
This page does a pretty good job of explaining whats going on with the startx command.
https://wiki.archlinux.org/index.php/Xinitrc

I used that a lot under XFree86. Perhaps its different under Xorg?
The .xinitrc file may need to be adjusted?
When I get home I'll test with it on my Slack14 notebook and see if it's still there.


All times are GMT -5. The time now is 03:37 PM.