LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Problems with starting a shell in KDE (https://www.linuxquestions.org/questions/linux-software-2/problems-with-starting-a-shell-in-kde-481976/)

kmcgavran 09-09-2006 05:15 PM

Problems with starting a shell in KDE
 
I am fairly new to Linux, and I have a question about when I start a shell in KDE. I installed the distribution of Slackware 10.2, and am running Kernel version 2.4.31 with KDE 3.4. I have almost no .tcshrc file. When I start a shell with the "Konsole" button under the menu, it brings up the window, and then I get the following:
Fatal server error:
Server is already active for display 0
If this server is no longer running, remove /tmp/.X0-lock
and start again.


Please consult the The X.Org Foundation support
at http://wiki.X.Org
for help.

It then waits for about a minute, and gives me the shell. I went to the website it suggested, but didn't find much useful there. Do I have an environment variable I need to set or something? Thank you for your time.

doc.nice 09-10-2006 10:09 AM

sounds as if you would start your X session using your .tcshrc file.

If that's correct read next lines, if not, ignore me *g*

In this case, your konsole will try to start another session and that will fail.
You can remove your startx command from .tcshrc or check for the lockfile before calling it:
Code:

[ -r /tmp/.X0-lock ] || startx
this will check if the file /tmp/.X0-lock exists and is readable, if not, it will call startx.

kmcgavran 09-11-2006 10:19 PM

Worked great. Thank you very much for the info and your time. =)


All times are GMT -5. The time now is 06:46 AM.