How to prevent switching to a different tty when Xserver starts?
up vote
2
down vote
favorite
I am working with tty2 because Linux terminates all processes every 30 seconds and Xserver refuses to start.
How can I keep tty2 in the foreground while the Xserver can go crazy in background?
tty x-server
add a comment |
up vote
2
down vote
favorite
I am working with tty2 because Linux terminates all processes every 30 seconds and Xserver refuses to start.
How can I keep tty2 in the foreground while the Xserver can go crazy in background?
tty x-server
Have you tried screen or does that get terminated too.
– Michael Prokopec
Nov 25 at 18:01
It's your question, but IMHO I'd address the X Server issue as opposed to trying to "keep tty2 in the foreground".
– Jeff Schaller
Nov 25 at 22:10
a) if you want to stop the broken Xserver from trying to start:service gdm stop
(replacegdm
withlightdm
,xdm
or whatever you're using). b) if you want to debug the broken Xserver -- login from another machine via ssh or serial. c) if you want to start the Xserver on another virtual terminal without switching to it, then your question is a duplicate of this (and I don't have a good answer to it, either).
– mosvy
Nov 25 at 23:26
@dirkt it appears to me that n.st only rephrased the title; the "30 seconds" information was posted by nevermind9.
– Jeff Schaller
Nov 26 at 14:21
add a comment |
up vote
2
down vote
favorite
up vote
2
down vote
favorite
I am working with tty2 because Linux terminates all processes every 30 seconds and Xserver refuses to start.
How can I keep tty2 in the foreground while the Xserver can go crazy in background?
tty x-server
I am working with tty2 because Linux terminates all processes every 30 seconds and Xserver refuses to start.
How can I keep tty2 in the foreground while the Xserver can go crazy in background?
tty x-server
tty x-server
edited Nov 25 at 21:21
n.st
5,14311742
5,14311742
asked Nov 25 at 11:01
neverMind9
497113
497113
Have you tried screen or does that get terminated too.
– Michael Prokopec
Nov 25 at 18:01
It's your question, but IMHO I'd address the X Server issue as opposed to trying to "keep tty2 in the foreground".
– Jeff Schaller
Nov 25 at 22:10
a) if you want to stop the broken Xserver from trying to start:service gdm stop
(replacegdm
withlightdm
,xdm
or whatever you're using). b) if you want to debug the broken Xserver -- login from another machine via ssh or serial. c) if you want to start the Xserver on another virtual terminal without switching to it, then your question is a duplicate of this (and I don't have a good answer to it, either).
– mosvy
Nov 25 at 23:26
@dirkt it appears to me that n.st only rephrased the title; the "30 seconds" information was posted by nevermind9.
– Jeff Schaller
Nov 26 at 14:21
add a comment |
Have you tried screen or does that get terminated too.
– Michael Prokopec
Nov 25 at 18:01
It's your question, but IMHO I'd address the X Server issue as opposed to trying to "keep tty2 in the foreground".
– Jeff Schaller
Nov 25 at 22:10
a) if you want to stop the broken Xserver from trying to start:service gdm stop
(replacegdm
withlightdm
,xdm
or whatever you're using). b) if you want to debug the broken Xserver -- login from another machine via ssh or serial. c) if you want to start the Xserver on another virtual terminal without switching to it, then your question is a duplicate of this (and I don't have a good answer to it, either).
– mosvy
Nov 25 at 23:26
@dirkt it appears to me that n.st only rephrased the title; the "30 seconds" information was posted by nevermind9.
– Jeff Schaller
Nov 26 at 14:21
Have you tried screen or does that get terminated too.
– Michael Prokopec
Nov 25 at 18:01
Have you tried screen or does that get terminated too.
– Michael Prokopec
Nov 25 at 18:01
It's your question, but IMHO I'd address the X Server issue as opposed to trying to "keep tty2 in the foreground".
– Jeff Schaller
Nov 25 at 22:10
It's your question, but IMHO I'd address the X Server issue as opposed to trying to "keep tty2 in the foreground".
– Jeff Schaller
Nov 25 at 22:10
a) if you want to stop the broken Xserver from trying to start:
service gdm stop
(replace gdm
with lightdm
, xdm
or whatever you're using). b) if you want to debug the broken Xserver -- login from another machine via ssh or serial. c) if you want to start the Xserver on another virtual terminal without switching to it, then your question is a duplicate of this (and I don't have a good answer to it, either).– mosvy
Nov 25 at 23:26
a) if you want to stop the broken Xserver from trying to start:
service gdm stop
(replace gdm
with lightdm
, xdm
or whatever you're using). b) if you want to debug the broken Xserver -- login from another machine via ssh or serial. c) if you want to start the Xserver on another virtual terminal without switching to it, then your question is a duplicate of this (and I don't have a good answer to it, either).– mosvy
Nov 25 at 23:26
@dirkt it appears to me that n.st only rephrased the title; the "30 seconds" information was posted by nevermind9.
– Jeff Schaller
Nov 26 at 14:21
@dirkt it appears to me that n.st only rephrased the title; the "30 seconds" information was posted by nevermind9.
– Jeff Schaller
Nov 26 at 14:21
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f484013%2fhow-to-prevent-switching-to-a-different-tty-when-xserver-starts%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Have you tried screen or does that get terminated too.
– Michael Prokopec
Nov 25 at 18:01
It's your question, but IMHO I'd address the X Server issue as opposed to trying to "keep tty2 in the foreground".
– Jeff Schaller
Nov 25 at 22:10
a) if you want to stop the broken Xserver from trying to start:
service gdm stop
(replacegdm
withlightdm
,xdm
or whatever you're using). b) if you want to debug the broken Xserver -- login from another machine via ssh or serial. c) if you want to start the Xserver on another virtual terminal without switching to it, then your question is a duplicate of this (and I don't have a good answer to it, either).– mosvy
Nov 25 at 23:26
@dirkt it appears to me that n.st only rephrased the title; the "30 seconds" information was posted by nevermind9.
– Jeff Schaller
Nov 26 at 14:21