The xinit program is used to start the ["X Window System"] server and a first client program on systems that cannot start X directly from /["etc/init"] or in environments that use multiple window systems. When this first client exits, xinit will kill the X server and then terminate.

If no specific client program is given on the command line, xinit will look for a hidden file in the user's ["home directory"] called .["xinitrc"] to run as a shell script to start up client programs

A .xinitrc sample is:

# WINDOWMANAGERS #

xsetbg -fullscreen /morphix/background.png & exec ["gnome-session"]

That uses the command to start GNOME : gnome-session.

You can also use instead:

and so on.

Change

If you want to choose i.e. between gnome and xfce when you want to change from one to the other, then you can do (as normal user) :

["nano"] .xinitrc

and make it look like this (and then exit nano saving changes: Ctrl-x, y, Enter):

# WINDOWMANAGERS #

This will tell "["startx"]" to start gnome. When you want to start xfce, do "nano .xinitrc" again and make it look like this:

# WINDOWMANAGERS #

GDM

In some cases, you have to install ["gdm"]. If you want to reinstall it type in a terminal: