LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 01-25-2005, 10:44 PM   #1
riluve
Member
 
Registered: Nov 2004
Distribution: CentOS-4
Posts: 142

Rep: Reputation: 15
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
 
Old 01-25-2005, 10:45 PM   #2
tormented_one
Member
 
Registered: Oct 2004
Location: Small Town USA
Distribution: slamd64 2.6.12 Slackware 2.4.32 Windows XP x64 pro
Posts: 383

Rep: Reputation: 30
ctrl+alt+backspace
 
Old 01-25-2005, 10:49 PM   #3
riluve
Member
 
Registered: Nov 2004
Distribution: CentOS-4
Posts: 142

Original Poster
Rep: Reputation: 15
well, that restarted other things i had running in other terminals. Is there a way to restart only the xserver?
 
Old 01-25-2005, 10:57 PM   #4
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 48
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
 
Old 01-25-2005, 11:07 PM   #5
riluve
Member
 
Registered: Nov 2004
Distribution: CentOS-4
Posts: 142

Original Poster
Rep: Reputation: 15
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.
 
Old 01-25-2005, 11:15 PM   #6
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 48
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 11:16 PM.
 
Old 01-25-2005, 11:19 PM   #7
riluve
Member
 
Registered: Nov 2004
Distribution: CentOS-4
Posts: 142

Original Poster
Rep: Reputation: 15
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.
 
Old 01-26-2005, 12:05 AM   #8
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 48
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.
 
Old 01-26-2005, 12:35 AM   #9
tormented_one
Member
 
Registered: Oct 2004
Location: Small Town USA
Distribution: slamd64 2.6.12 Slackware 2.4.32 Windows XP x64 pro
Posts: 383

Rep: Reputation: 30
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.
 
  


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
xserver-xorg config warning: migrating xserver-xfree86 templates doctorwebbox Debian 9 07-27-2005 08:24 PM
restarting x jcombs_31 Slackware 3 12-27-2004 02:07 PM
restarting hosts? Smokey Slackware 1 09-20-2004 09:34 AM
Keeps Restarting NotSoSure123 Linux - Software 14 06-16-2004 03:17 AM
Restarting an Install? comtex Mandriva 3 09-04-2003 12:32 PM


All times are GMT -5. The time now is 11:37 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration