Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
01-25-2005, 09:44 PM
|
#1
|
Member
Registered: Nov 2004
Distribution: CentOS-4
Posts: 142
Rep:
|
Restarting Xserver
Can I do this without logging out? say from root. I am using the GUI and a terminal, I wanna restart the X server and then go back to the GUI.
-RHEL3
|
|
|
01-25-2005, 09:45 PM
|
#2
|
Member
Registered: Oct 2004
Location: Small Town USA
Distribution: slamd64 2.6.12 Slackware 2.4.32 Windows XP x64 pro
Posts: 383
Rep:
|
ctrl+alt+backspace
|
|
|
01-25-2005, 09:49 PM
|
#3
|
Member
Registered: Nov 2004
Distribution: CentOS-4
Posts: 142
Original Poster
Rep:
|
well, that restarted other things i had running in other terminals. Is there a way to restart only the xserver?
|
|
|
01-25-2005, 09:57 PM
|
#4
|
LQ Addict
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661
Rep:
|
what do you mean by a terminal? Ctrl-alt-backspace should not restart anything other than the xserver and with it all the stuff needing the x window system (so terminal windows will go). The text consoles should remain.
you can also go to a text terminal, and then do
init 3
as root. This will get you to text mode and then you can get back with
init 5
|
|
|
01-25-2005, 10:07 PM
|
#5
|
Member
Registered: Nov 2004
Distribution: CentOS-4
Posts: 142
Original Poster
Rep:
|
humm - well, I would have thought that a text console was the same as a terminal instance.
Its like BASH shell type thing - so whats the difference between the three? it looks like its a gnome-terminal command being run by this GUI icon.
I was running processes from the three different terminals - I was just hoping not to interrupt them (100% text based) while I reset xserver. Doesn't seem like it should have been impossible. I mean, even without xserver you can run completely independant terminals right - i mean if its a multi-user OS, then this would be a basic function.
|
|
|
01-25-2005, 10:15 PM
|
#6
|
LQ Addict
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661
Rep:
|
terminal windows are just that - they are windows inside an X session that give you the command line. There is no way you can keep them running when restarting X because the windows will have to be closed and that closes the processes depending on them. Besides, restarting the X server will log everyone out who is logged in using X and that will terminate the processes too.
If I really need to have the things running even when X crashes, I use ctrl-alt-F1 to get to a real text terminal and run things there. They are completely independent of X.
Last edited by quatsch; 01-25-2005 at 10:16 PM.
|
|
|
01-25-2005, 10:19 PM
|
#7
|
Member
Registered: Nov 2004
Distribution: CentOS-4
Posts: 142
Original Poster
Rep:
|
ah ok - thnx. So you are saying the fundamental functionality of a level 3 terminal is handled completely different than a level 5 terminal.
But then - you are saying that anytime you reset the xserver you will be logged out - so in essence the answer to my original question is no - unless i am logged in under level 3 already.
|
|
|
01-25-2005, 11:05 PM
|
#8
|
LQ Addict
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661
Rep:
|
Oh no. You can log in separately under runlevel 5 too. When you press ctrl-alt-f1 thru f6 you'll get several login screens. Those really do behave like completely separate sessions. With X, basically you have a user logged in who then runs X. Any process started from within that X session is terminated when that user logs out.
|
|
|
01-25-2005, 11:35 PM
|
#9
|
Member
Registered: Oct 2004
Location: Small Town USA
Distribution: slamd64 2.6.12 Slackware 2.4.32 Windows XP x64 pro
Posts: 383
Rep:
|
ctrl+alt+f(1-6) Is essencially init 3.(They are separate sessions, I believe.) Init 5 just startsx on boot so you don't have to type: startx . I believe this is used(by many distros) for windows users intimidated by command line, to help the move from windows to Linux.
|
|
|
All times are GMT -5. The time now is 07:54 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|