LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 06-12-2011, 11:24 PM   #1
asifbasha
Member
 
Registered: Feb 2009
Posts: 98

Rep: Reputation: 15
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
 
Old 06-13-2011, 01:51 AM   #2
saivnoba
Member
 
Registered: Aug 2010
Distribution: Debian Sid, openSUSE, Gentoo, Slackware64
Posts: 68

Rep: Reputation: 2
Have you installed lxde? You use 'startx' to launch GUI? Then try,
Code:
echo "exec startlxde" > .xinitrc
startx

Last edited by saivnoba; 06-13-2011 at 01:52 AM.
 
Old 06-13-2011, 05:11 AM   #3
asifbasha
Member
 
Registered: Feb 2009
Posts: 98

Original Poster
Rep: Reputation: 15
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 ? ..
 
Old 06-13-2011, 05:41 AM   #4
RockDoctor
Senior Member
 
Registered: Nov 2003
Location: Minnesota, US
Distribution: Fedora, Ubuntu, Manjaro
Posts: 1,791

Rep: Reputation: 427Reputation: 427Reputation: 427Reputation: 427Reputation: 427
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
 
Old 06-13-2011, 07:42 AM   #5
saivnoba
Member
 
Registered: Aug 2010
Distribution: Debian Sid, openSUSE, Gentoo, Slackware64
Posts: 68

Rep: Reputation: 2
Quote:
Originally Posted by asifbasha View Post
..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.

Last edited by saivnoba; 06-13-2011 at 07:45 AM.
 
Old 06-15-2011, 02:43 AM   #6
asifbasha
Member
 
Registered: Feb 2009
Posts: 98

Original Poster
Rep: Reputation: 15
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 ?
 
Old 06-15-2011, 03:43 AM   #7
saivnoba
Member
 
Registered: Aug 2010
Distribution: Debian Sid, openSUSE, Gentoo, Slackware64
Posts: 68

Rep: Reputation: 2
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.
 
Old 06-15-2011, 03:57 AM   #8
asifbasha
Member
 
Registered: Feb 2009
Posts: 98

Original Poster
Rep: Reputation: 15
Thanks for your quick response

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

thanks to LQ community
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to change default desktop environment on Ubuntu? QueenZ Linux - Newbie 7 07-17-2010 11:54 AM
Default Desktop Environment of OpenSolaris... Alexvader Solaris / OpenSolaris 1 01-10-2010 05:09 AM
Desktop environment as default phantom_cyph Linux - Desktop 6 03-31-2007 01:28 PM
What does Default desktop environment actually mean? mr.flywheel Linux - Newbie 5 10-31-2004 08:50 AM
How to change default desktop environment???? thegreenearth Linux - Newbie 7 11-15-2001 02:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 10:48 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration