LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   Default desktop environment in fedora 15 (https://www.linuxquestions.org/questions/fedora-35/default-desktop-environment-in-fedora-15-a-885967/)

asifbasha 06-12-2011 11:24 PM

Default desktop environment in fedora 15
 
Hai to all

Recently I have installed fedora 15 in my machine , every thing gone well. then i changed graphical login to command line login , after reboot i logged in via command mode , every thing is ok .....

my request is that If i give 'startx 'command . the gnome desktop is displaying by default. and i want to use lxde instead of gnome . because my machine is little bit outdated ..

what configuration files do i have to change if i want to use lxde instead of gnome by default..


thanks in advance

saivnoba 06-13-2011 01:51 AM

Have you installed lxde? You use 'startx' to launch GUI? Then try,
Code:

echo "exec startlxde" > .xinitrc
startx


asifbasha 06-13-2011 05:11 AM

thanks for your quick response

yes !!! . I have already installed lxde desktop during f15 installation . but my question is that where i have to execute the above code ? in which file ? ..

RockDoctor 06-13-2011 05:41 AM

The above code would be executed your console session. On my system, it appears that /etc/sysconfig/desktop holds the required configuration info:
Code:

/etc/sysconfig$ cat desktop
PREFERRED=/usr/bin/startlxde
DISPLAYMANAGER=/usr/sbin/lxdm


saivnoba 06-13-2011 07:42 AM

Quote:

Originally Posted by asifbasha (Post 4383999)
..but my question is that where i have to execute the above code ? in which file ?

When you bootup, since you use command line login, on console type the above commands. The file name is .xinitrc in your home directory. Its a hidden file. What the above command does is, it puts entry 'exec startlxde' in that file. When you execute 'startx', it will read from .xinitrc file to know that lxde should be started.

asifbasha 06-15-2011 02:43 AM

I am using fedora 15 . There is no such hidden file named .xinitrc . I found this by executing
the following commands,

[asif@asif.com]$ pwd

/home/asif

[asif@asif.com]$ ls -a

Do I have to create a new one ?

saivnoba 06-15-2011 03:43 AM

The .xinitrc file will not be there. We need to create it. The command I gave before not only puts the line 'exec startlxde' into .xinitrc file, it will also _create_ a file by that name, if it does not already exits.

asifbasha 06-15-2011 03:57 AM

Thanks for your quick response

I works !!!!!!!!!!!!!!!!!

thanks to LQ community


All times are GMT -5. The time now is 02:19 AM.