DebianThis forum is for the discussion of Debian Linux.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I have installed KDE 4.x on my Lenny installation of Debian. It was my desire to have the computer boot up to the command line and then allow me to initialize the GUI at my discretion. I succeeded with this setup quite will, but for one thing. See Below
Once I have booted up, logged in, and done whatever else I need/want to do from the command line, I execute the following command:
This starts the X Windows system upon which KDE is layered. Once this finishes, I am presented with ax X Window terminal window where I enter the following command:
KDE now starts and everything runs just fine. The only thing is that the X Window that I had to use to start KDE is still up. When I exit KDE, the original X Window is still there, and it is into this window that I type:
to return to the command prompt where the whole process began.
Question: Is there a way of manually launching KDE from the command line, well after the boot up process has completed, that does not leave this residual window open?
Thank you for your suggestion. Issuing the "startx" command didn't work the first time I tired it, but it gave me the clue I needed to make the setup work the way I wanted. Here's what I did.
In stead of issue in the xinit command, I went directly to the startx command. This had to be setup in the following manner:
First: I had to create two files, a file called "config" in the /etc/X11 directory which must be done as root, and a file called ".xsession" in my home directory which is done as the regular user. Second: Edit the "config" file in the /etc/X11 directory to contain the line "allow-user-xsession". The permits the X windows server to use the ".xsession" file for configuration and preamble at start up. Third: edit the file ".xsession", and change it's premissions so that it becomes executable. Like this: chmod u+x .xsession Fourth: I put the line "exec kdm" into this file and saved everything.
Just remember that when this script file's process terminates, X will also terminate.
I saved the files, and rebooted just to make certain there was nothing still running.
Once I had logged in, I issued the "startx" command, as you recommended, and everything worked just the way I wanted it!
My setup is form a default install so I never did anything about setting it up to work.
One thing I see from time to time on one of my servers is that the onwership of .Xauthority get changed from time to time. Not sure why this happens. But I think it relates to the fact that I log into the machine through ssh and run root apps and commands. Most of the time the gui is not started. When the onwership gets changed xsession errors show up on my lappy when I run x apps. So I have to go in and change the onwership of the file back.