PDA

View Full Version : Howto start the Xfce?


aleunix
06-03-2008, 09:51 AM
Howto start the Xfce?
I have installed several packages for xfce but how i can start it?

For the moment i have only fvwm.

cubo
06-03-2008, 10:21 AM
if you use "startx" edit in your home directory the file .xinitrc, if you use xdm edit file .xsession
and put there "startxfce4" (if I remember well)

aleunix
06-03-2008, 11:37 AM
I don't see file .xinitrc or .xsession on my directory. :(

I have utilized the command:
ls -al

tuck
06-03-2008, 11:45 AM
You have to create the files on your own.
#echo "/usr/local/bin/startxfce4" > ~/.xinitrc
or
#echo "exec startxfce4" > ~/.xinitrc

aleunix
06-03-2008, 11:54 AM
Thanks. :)

ocicat
06-03-2008, 11:58 AM
I don't see file .xinitrc or .xsession on my directory. :(
~/.xinitrc and/or ~/.xsession are not present on default installations. Either is simply a text file you create yourself.

Studying /usr/X11R6/bin/startx should answer a number of questions about how X starts. startx determines whether ~/.xinitrc exists & if it does execute it. If not, execute /etc/X11/xinit/xinitrc. If you look at the latter, this has a number of initializations followed by starting a number of X client applications followed by the fvwm window manager.

You can simply edit /etc/X11/xinit/xinitrc & be done with it, but this is a crude solution. The point of looking at the code for startx is to point out that the intention is to allow users to have customized X environments while leaving a default configuration available.

So one could copy /etc/X11/xinit/xinitrc into one's home directory as ~/.xinitrc & customize it locally. Some people simply place whatever applications they want to run into ~/.xinitrc without all the cruft specified in /etc/X11/xinit/xinitrc. It's your choice, but heed how applications are started in the background before the window manager. Failure to understand this can result in a mess.