Linux mint Start a text mode (without starting the graphical interface)

Linux Mint system is used for a long time, very smoothly, like this one!

One day want to run multiple virtual machines linux system to experiment, to start thinking about only the text mode can save some memory resources, the results of various test methods are not successful, the existing methods for online original Ubuntu and CentOS do not apply; Finally, find their own way a set of three steps the most simple and effective way, in essence, the text interface allows the system to boot the graphical interface will not start, write for your reference detours, but also to be a record lest he forgot.

Pro-test Linux Mint 19 / 19.1 / 19.2 effective, not tried other versions of Ubuntu, have tried to add useful small partners please, thank you!

1, modify and save the / etc / X11 / default-display -manager files (the purpose of the program can not find the graphical interface), the contents of the file insert a line before the first line (the contents of the file itself is only one line) in, fill in false, modify after the document reads as follows (the original content without having to comment):

false

/usr/sbin/lightdm

2, modify and save the / etc / default / grub file (the default is the purpose of starting the text mode), commented GRUB_CMDLINE_LINUX_DEFAULT = "quiet splash" This line, modify GRUB_CMDLINE_LINUX = "" is GRUB_CMDLINE_LINUX = "text", the bank is strongly recommended to copy content paste comment line after modifying another row (the graphical interface easy to change it back later), I modified it in part as follows:

#GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

#GRUB_CMDLINE_LINUX=""

GRUB_CMDLINE_LINUX="text"

3, must execute the command: sudo update-grub2 boot mode for the changes to take effect after, and then reboot the system; you can see the startup process is already text interface, and see the output content from the start the graphical interface fails, the boot is completed stay in text mode interface .

 

Text interface After logging in you can manually start another graphical interface with startx command, will return after such a text interface to start the graphical interface written off; accordingly, have the system back to normal startup mode using a graphical interface is also very convenient:

a) modify and save the / etc / X11 / default-display-manager file, delete the first line, the contents of the file back to (have to) only one line content.

b) modify and save the / etc / default / grub file, remove or comment GRUB_CMDLINE_LINUX = "text" this line, remove the # GRUB_CMDLINE_LINUX_DEFAULT = "quiet splash" and # GRUB_CMDLINE_LINUX = "" two lines of comment.

c) must execute the command: sudo update-grub2, then reboot the system, it is normal to start the graphical interface.

 

This method inspired mainly from (tested on Linux Mint 19.2 invalid): https://www.cnblogs.com/mysic/p/5955891.html

My first original technology blog.

Happy 70th anniversary my motherland birthday!

 

Guess you like

Origin www.cnblogs.com/chengxi00199/p/11616278.html