LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 02-12-2013, 04:53 AM   #1
echipbk
LQ Newbie
 
Registered: Feb 2012
Posts: 13

Rep: Reputation: Disabled
Smile Fedora 18-How to change desktop environment using terminal (manually)


- For Fedora 18, we can change the display manager by changing the soft link to display-manager.service:

ln -s /usr/lib/systemd/system/kdm.service /etc/systemd/system/display-manager.service

- We can also customize ~/.Xclients (or ~/.Xclients-default) to choose a specific "desktop environment" for a particular user when we run the command startx

- And globally, we can change the desktop environment by choosing our session at the login display manager


- Previous Fedora releases used /etc/sysconfig/desktop to change both display manager and desktop environment. What about Fedora 18? What configuration file do I need to edit to change the desktop environment manually? (without choosing a session at the login display manager).

Thanks for any help. I have searched a lot without any results so far.
 
Old 02-13-2013, 03:37 PM   #2
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,153

Rep: Reputation: 331Reputation: 331Reputation: 331Reputation: 331
The /etc/sysconfig/desktop file is still used by the scripts in /etc/X11/xinit/. vis:
Code:
$ grep -r sysconfig /etc/X11/*
/etc/X11/xinit/xinitrc.d/50-xinput.sh:      elif [ -f "/etc/sysconfig/desktop" ]; then
/etc/X11/xinit/xinitrc.d/50-xinput.sh:          GUESS_DESKTOP=" /etc/sysconfig/desktop"
/etc/X11/xinit/xinitrc.d/50-xinput.sh:          . /etc/sysconfig/desktop
/etc/X11/xinit/Xclients:if [ -f /etc/sysconfig/desktop ]; then
/etc/X11/xinit/Xclients:    . /etc/sysconfig/desktop
 
Old 02-13-2013, 05:13 PM   #3
echipbk
LQ Newbie
 
Registered: Feb 2012
Posts: 13

Original Poster
Rep: Reputation: Disabled
Yes, but those scripts in /etc/X11/xinit/* run only when you run the command startx. For normal login procedure where you are presented with a login display by a login display manager, it doesn't leverage those scripts. I have tested out already
 
Old 02-15-2013, 08:16 PM   #4
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,153

Rep: Reputation: 331Reputation: 331Reputation: 331Reputation: 331
Really? Those are the scripts that are started when the X-server is run, which AFAIK occurs when the initial RAM file system is loaded. Anyhow, that's what I've done to switch my display manager from gdm to kdm, and it seems to have worked without a hitch.
Code:
$ cat /etc/sysconfig/desktop 
DISPLAYMANAGER=KDM
DESKTOP=KDE

$ pgrep -lP1 dm$
746 mdadm
770 kdm

$ pstree -a 770
kdm vt1
  ├─X :0 vt1 -background none -nolisten tcp -auth /var/run/kdm/A:0-qWXhHa
  └─kdm             
      └─startkde /usr/bin/startkde
          ├─kwrapper4 ksmserver
          └─ssh-agent /bin/sh -c exec -l /bin/bash -c "/usr/bin/startkde"
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need advice finding a desktop environment that looks like Terminal. jumpmansbro Linux - Desktop 1 03-13-2009 12:35 AM
Change Desktop Environment jedinorte Linux - Desktop 1 11-25-2008 06:57 AM
How to Change Desktop Environment in Fedora 9 shreks Fedora 5 06-23-2008 06:59 AM
How do you change desktop environment on Fedora 9? scottseeker Linux - Newbie 1 05-23-2008 05:59 PM
How do I change Desktop environment? Takezo Suse/Novell 3 08-14-2006 10:56 AM


All times are GMT -5. The time now is 05:14 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration