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?










share|improve this question
























  • 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 (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

















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?










share|improve this question
























  • 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 (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















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?










share|improve this question















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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 (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




















  • 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 (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


















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

















active

oldest

votes











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















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






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































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.




draft saved


draft discarded














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





















































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







Popular posts from this blog

Morgemoulin

Scott Moir

Souastre