LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-31-2005, 01:53 PM   #1
punt
Member
 
Registered: Jun 2001
Distribution: Fedora 22
Posts: 371

Rep: Reputation: 30
kde and gnome: how to run both in general without errors (but not simultaneously)


this seems to get me every time.

i'm trying to be able to have gnome and kde coexist in my FC4 environment. in other words, i want them to be able to run at different times without editing configuration files (see below for explanation).

all is usually well, until i go into startkde. i get the standard

Code:
xsetroot: Unable to open display ''
xrdb: Can't open display ''
xset: unable to open display ""
ksplash: cannot connect to X server
kdeinit: Aborting. $DISPLAY is not set
Warning: connect() failed: : No such file or directory
ksmserver: cannot connect to X server
Error: Can't open display:
Warning: connect() failed: : No such file or directory
Error: Can't contact kdeinit!
that's until i change /etc/sysconfig/desktop to KDE instead of GNOME.

my question is: how do i get kde to run normally without having to go change this all the time? i want to be able to run gnome-session without getting

Code:
Gtk-WARNING: *: cannot open display
(this is when /etc/sysconfig/desktop shows GNOME instead of KDE!)

so how do i get these two X sessions to coexist without any problems and without having to continually have to configure some text file in order to run X? note that i don't have any specific preference for X... and i start up into text mode, not straight into the GUI. however, i want to be able to freely get from KDE to gnome without having these text errors that seem to cause me hours of work to no end

lastly, it seems my xorg.conf was created by pxyf86config. how do i recreate it using this file (for future reference)? i can't seem to find a binary -- only docs that are not very descriptive. maybe it has another name?

i hope my question is clear. thanks!

Last edited by punt; 07-31-2005 at 09:41 PM.
 
Old 07-31-2005, 02:31 PM   #2
Bryanlee
Member
 
Registered: May 2005
Location: Honolulu, HI
Distribution: Ubuntu 10.04
Posts: 56

Rep: Reputation: 15
To start a new X session get to a terminal session (F1 - F6) and type "startx -- :1". A new X session starts up. Now to go back to the older X session, use Ctrl-Alt-F7. For the new X session use Ctrl-Alt-F8.

Note: You may have to switch into another virtual desktop that isn't being used and then open a terminal and run the command. (I did)

Last edited by Bryanlee; 07-31-2005 at 02:39 PM.
 
Old 07-31-2005, 03:54 PM   #3
punt
Member
 
Registered: Jun 2001
Distribution: Fedora 22
Posts: 371

Original Poster
Rep: Reputation: 30
let me clarify. it's not that i want them to run together simultaneously. but in general, if i want to get into KDE or GNOME, i have to edit a config file first. i want to avoid this step altogether, so that i can go into KDE, do my own thing, then log out, and go into Gnome, do my own thing there, and then log out -- without error messages.
 
Old 07-31-2005, 09:42 PM   #4
punt
Member
 
Registered: Jun 2001
Distribution: Fedora 22
Posts: 371

Original Poster
Rep: Reputation: 30
post edited... bump for help.
 
Old 07-31-2005, 09:56 PM   #5
pafinator11
Member
 
Registered: Jul 2005
Location: Massachusetts
Distribution: Debian Lenny, FreeBSD
Posts: 89

Rep: Reputation: 15
I'm not sure if this is what your looking for but when logged into any desktop go to a termial and type switchdesk kde or switchdesk gnome and then log out and back in and it should wiork fine.
 
Old 07-31-2005, 10:11 PM   #6
punt
Member
 
Registered: Jun 2001
Distribution: Fedora 22
Posts: 371

Original Poster
Rep: Reputation: 30
i guess that's a feasible solution; thanks.

i'm actually trying just to get the standard startup scripts to work... startkde and gnome-session. that's where those errors occur. i wish i knew why...
 
Old 07-31-2005, 10:12 PM   #7
Bryanlee
Member
 
Registered: May 2005
Location: Honolulu, HI
Distribution: Ubuntu 10.04
Posts: 56

Rep: Reputation: 15
Logging out of KDE or Gnome is simple. All you have to do is go to the command line and type "init 3" without the quotes. I don't know what the commands to start KDE or Gnome are. I know that typing startx will start your default window manager (that's the case for me anyway).
 
Old 07-31-2005, 10:22 PM   #8
punt
Member
 
Registered: Jun 2001
Distribution: Fedora 22
Posts: 371

Original Poster
Rep: Reputation: 30
bryan: thanks, but that's not what i'm looking for. i'm looking for the startkde and gnome-session aliases to work without giving me the standard errors that seem to plague all users (e.g. if i google the errors in the code brackets i provided above, i'll be sifting through 28483843 nonpertinent issues). i don't have a default window manager -- that is to say sometimes i'd like to use kde, but other times, i prefer gnome. (i mostly SSH into my box anyway and never use X though.)

so far, the only viable solution presented is just using switchdesk kde/gnome and then running startx. this is workable, but in my opinion, it's basically the equivalent of not editing the /etc/sysconfig/desktop file. my goal here is just to figure out how to get both commands (startkde and gnome-session) to coexist in any linux environment, and i have yet to find any solution that works for me.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
KDE start-up errors Dralnu Linux - Software 7 10-09-2005 06:42 AM
Can't start KDE or GNOME any more Per Linux - Software 2 08-25-2005 04:09 AM
Can not start Gnome or KDE Croaker Slackware 2 07-10-2005 12:27 AM
KDE 3.3 fails to start (libstdc++.so.6 errors) JimDog Linux - Software 6 10-15-2004 05:44 PM
Install of Metacity theme causes GNOME 2.2 to hang at start-up and errors with Gaim SDSkyle Linux - Software 2 08-23-2003 10:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:57 PM.

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