Disable X at boot time so that the system boots in text mode

New to Debian (Or Linux in general)? Ask your questions here!

Disable X at boot time so that the system boots in text mode

Postby stf92 » 2018-06-01 19:24

Hi: When the booting sequence ends I find myself in the GUI, where a login prompt is presented me (Debian version 9). I would like to change this and be able to start X by myself if I like to do it. Any way to accomplish this?


I presume it is in one of the scripts started by inittab that X is called. But which one. There are plenty of them.
Last edited by stf92 on 2018-06-01 22:05, edited 2 times in total.
stf92
 
Posts: 41
Joined: 2018-05-27 20:16

Re: Starting X ad libitum.

Postby bw123 » 2018-06-01 19:55

User avatar
bw123
 
Posts: 3404
Joined: 2011-05-09 06:02
Location: TN_USA

Re: Starting X ad libitum.

Postby stf92 » 2018-06-01 20:35

I know the startx command starts the GUI. My question was how to disable the automatic running of X. I do not want X to be run on my system.
stf92
 
Posts: 41
Joined: 2018-05-27 20:16

Re: Starting X ad libitum.

Postby bw123 » 2018-06-01 21:19

stf92 wrote:I know the startx command starts the GUI. My question was how to disable the automatic running of X. I do not want X to be run on my system.


There may be many ways to do it. Personally, when I don't want a display manager, I don't install one. I'm not sure that is supported on all desktop environments. Some people probably disable the dm, or default other than graphical.target or pass a parameter at boot time to run multi-user.target instead.

Your questions so far are very general, and include bare minimum of information about your objective, or your system setup. Try to do better?

If you don't want X to run on your system, uninstall it? and then you could install it 'ad libitum' when you want it.
User avatar
bw123
 
Posts: 3404
Joined: 2011-05-09 06:02
Location: TN_USA

Re: Starting X ad libitum.

Postby stf92 » 2018-06-01 22:02

It's simple. When the boot sequence ends I want to be in a text console. I do not want the boot sequence to start X. Later on, if I need it, I want to start the GUI (Xfce 4) with a single command (startx?). Simple enough, isn't it?
stf92
 
Posts: 41
Joined: 2018-05-27 20:16

Re: Disable X at boot time so that the system boots in text

Postby Lysander » 2018-06-01 22:19

You need to enable multi-user login.

Code: Select all
sudo systemctl set-default multi-user.target


To revert:

Code: Select all
sudo systemctl set-default graphical.target


Be aware that if you're using GNOME as a DE, this will disable the lock screen option from the aggragatar, since that option is enabled through GDM.
Last edited by Lysander on 2018-06-01 22:23, edited 1 time in total.
User avatar
Lysander
 
Posts: 558
Joined: 2017-02-23 10:07
Location: London

Re: Disable X at boot time so that the system boots in text

Postby bw123 » 2018-06-01 22:23

I asked you to try to do better. If you refuse, and continue to disrupt and troll the forum, I'll have to ask a moderator to step in. They don't show up often. We all get along pretty well here. We are a good forum, and like helping users, because we all enjoy linux.

Once again, please try to do better?
User avatar
bw123
 
Posts: 3404
Joined: 2011-05-09 06:02
Location: TN_USA

Re: Disable X at boot time so that the system boots in text

Postby tynman » 2018-06-01 22:28

The idea of "booting to text mode" is indeed simple.

Achieving it is also straightforward: re-install Debian without installing any of the "desktop environments" which are offered during the install.

But then you need to install X.
Code: Select all
sudo apt install xorg

Still simple and straightforward. (As you mentioned, you would need to start X from the console with the startx command.)

But typically you will also need to install window manager software. And perhaps a bunch of other software (depending on your needs). Compared to just installing one of the aforementioned "desktop environments", you're now looking at some work, deciding exactly what gui-related software you want, installing it from the Debian repositories and configuring to taste. Depending on your needs, previous experience, skill set and temperament, this might be the path for you and it might not.

Achieving "boot to text mode" should also be achievable without re-installing Debian, but to get advice on how to proceed, you would need to provide more information. The main thing would be to let the forum know which "desktop environment" you have installed (Gnome, KDE, etc), and if you are booting through grub.
tynman
 
Posts: 78
Joined: 2016-05-03 19:48
Location: British Columbia, Canada

Re: Disable X at boot time so that the system boots in text

Postby stf92 » 2018-06-01 22:36

Lysander wrote:You need to enable multi-user login.

Code: Select all
sudo systemctl set-default multi-user.target


To revert:

Code: Select all
sudo systemctl set-default graphical.target


Be aware that if you're using GNOME as a DE, this will disable the lock screen option from the aggragatar, since that option is enabled through GDM.

Thanks a lot. It worked fine.
stf92
 
Posts: 41
Joined: 2018-05-27 20:16

Re: Disable X at boot time so that the system boots in text

Postby tynman » 2018-06-01 22:37

+1 for lysander's response
You need to enable multi-user login
which s/he snuck in while I was typing my reply.
tynman
 
Posts: 78
Joined: 2016-05-03 19:48
Location: British Columbia, Canada

Re: Disable X at boot time so that the system boots in text

Postby sgage » 2018-06-01 22:58

bw123 wrote:I asked you to try to do better. If you refuse, and continue to disrupt and troll the forum, I'll have to ask a moderator to step in. They don't show up often. We all get along pretty well here. We are a good forum, and like helping users, because we all enjoy linux.

Once again, please try to do better?


He wants to boot to a console, not a DM. A very simple question, actually. How is that disrupting and trolling the forum? What does he 'have to do better'? Why threats of 'I'll have to ask a moderator to step in'? Maybe I'm missing something (aways possible), but I think you're way overreacting.
sgage
 
Posts: 41
Joined: 2013-03-10 21:00

Re: Disable X at boot time so that the system boots in text

Postby bw123 » 2018-06-02 00:00

sgage wrote:He wants to boot to a console, not a DM. A very simple question, actually. How is that disrupting and trolling the forum? What does he 'have to do better'? Why threats of 'I'll have to ask a moderator to step in'? Maybe I'm missing something (aways possible), but I think you're way overreacting.


Very possible that you are correct. My understanding of the forum is that posters are expected to follow certain conventions before posting.
viewtopic.php?f=30&t=47078
viewtopic.php?f=30&t=10653

The forum does have guidelines, even though there are very few strictly enforced rules. I didn't mean to be threatening, and if that is so I apologize. I only asked the OP to follow suggested guidelines to keep the content relevant and useful for all visitors to the forum.
User avatar
bw123
 
Posts: 3404
Joined: 2011-05-09 06:02
Location: TN_USA

Re: Disable X at boot time so that the system boots in text

Postby sgage » 2018-06-02 00:11

bw123 wrote:
sgage wrote:He wants to boot to a console, not a DM. A very simple question, actually. How is that disrupting and trolling the forum? What does he 'have to do better'? Why threats of 'I'll have to ask a moderator to step in'? Maybe I'm missing something (aways possible), but I think you're way overreacting.


Very possible that you are correct. My understanding of the forum is that posters are expected to follow certain conventions before posting.
viewtopic.php?f=30&t=47078
viewtopic.php?f=30&t=10653

The forum does have guidelines, even though there are very few strictly enforced rules. I didn't mean to be threatening, and if that is so I apologize. I only asked the OP to follow suggested guidelines to keep the content relevant and useful for all visitors to the forum.


It's the beginner's section - surely we can cut people a little slack, you know, ease them in. Sure, remind them of certain expectations, but your language was rather condescending and heavy-handed right out of the gate. "I asked you", "you refused". Threatening to call in the mods, accusations of trolling and disrupting - way over the top IMO.

This is what drives people away from Debian, and LInux in general. Perhaps that's what you want.
sgage
 
Posts: 41
Joined: 2013-03-10 21:00

Re: Disable X at boot time so that the system boots in text

Postby Lysander » 2018-06-02 00:21

The OP has posted five threads in one day. He wants quick-fix answers rather than to learn anything. This will not benefit him or the forum.

Debian is not a beginner's distro. It is an intermediate distro and some learning and research is required to use it. If that learning is not undertaken users will hit wall after wall. If they learn properly, they can sort out their own issues, and help others. We will not be helping them by spoon-feeding [I didn't see how many threads the OP had posted when I gave my answer above]. It's the old "teach a man to fish" adage, digital form.
Last edited by Lysander on 2018-06-02 00:23, edited 1 time in total.
User avatar
Lysander
 
Posts: 558
Joined: 2017-02-23 10:07
Location: London

Re: Starting X ad libitum.

Postby debiman » 2018-06-02 11:59

bw123 wrote:Your questions so far are very general, and include bare minimum of information about your objective, or your system setup. Try to do better?

fat chance.
stfu92 has been doing this on linuxquestions.org for 11 years!!!
never a valid problem description, always curt and unfriendly, but never actually abusive, which is no doubt the only reason they haven't been banned yet.
even so, their hit/miss rate is extremely low (meaning, for 10 threads opened, they get maybe 2 helpful replies), and i just don't understand how that can be effective in any way. asking others to use a search engine for them, never learning anything, listening to the same criticism over and over...
but i guess it's not really about wanting to effectively find solutions, rather about craving any sort of social interaction at any cost.
a textbook online troll.
User avatar
debiman
 
Posts: 2917
Joined: 2013-03-12 07:18

Next

Return to Beginners Questions

Who is online

Users browsing this forum: No registered users and 8 guests

fashionable