1、 Reference resources :http://garyu.blog.51cto.com/2838408/513772

modify /etc/X11/default-display-manager file

The content of the file is usually a path , Let's say mine is :/usr/sbin/mdm. Add... To the front of this line “#” Note out , Let's start with :false, Then save to exit , restart . Your system will enter the text interface by default .

use startx It can start the graphical interface , After logging off, it will return to the text interface , Very convenient .

2、 Reference resources :http://blog.sina.com.cn/s/blog_6b1885760100wmz6.html

  • edit /etc/default/grub file
  • modify
    GRUB_CMDLINE_LINUX_DEFAULT=”quiet splash”
    by :
    GRUB_CMDLINE_LINUX_DEFAULT=” text”

  • Save the file after the change , Then execute the order :sudo update-grub2( I've tried this step ), Restart the computer to enter the command line interface by default .

3、 modify /etc/inittab The content in , The modification is “id:X:initdefault:”  red “X” Represents a number , That number is the level you start ( You can try 1). This method is suitable for redhat Series of linux System , such as redhad、centOS etc. .ubuntu You can also add... Manually /etc/inittab File to modify the default boot level , But only the boot level is 1 when , The graphical interface will not be activated , So this method is not very thorough . Reference resources :https://help.ubuntu.com/community/UpstartHowto#How_do_I_change_the_default_runlevel.3F

4、 modify /etc/event.d Related files in the folder , But there is no such path in my system , I verified that in the latest (12.04 edition )ubuntu There is no such path in the version , I just ignored ( I heard that Lujin is in the lower version ubuntu There's only ).

linuxmint The default does not start the GUI

  1. Set up ubuntu The graphical interface is not started by default

    Set up ubuntu The graphical interface is not started by default One . Edit the file /etc/X11/default-display-manager If the value is /usr/sbin/gdm, If the value is false, Go to the console ...

  2. Linux mint Start text mode ( Don't start the GUI )

    Linux Mint The system has been in use for a long time , Very comfortable , Praise one ! One day I want to run multiple virtual machines at the same time linux The system does experiments , Think that just starting text mode can save memory resources , As a result, I tried many methods and failed , On the Internet, there are some problems Ubuntu Original and Cen ...

  3. ubuntu Launch graphical interface sudo init 5

    Linux In the early days of the system, there was only a command line interface , All work needs to be done with Linux Order to complete . With the development of the system , And the emergence of graphical interface systems ,Linux There's also a graphical interface , bring Linux The system is no longer only available to computer professionals ...

  4. Systemd Start the GUI process

    1 Start command systemctl isolate graphical.target 2 The boot process : file :/etc/systemd/system/graphical.target come from :systemd ...

  5. CentOS Set the default startup command line ( Don't start the GUI )

    Linux  When starting, you can choose plain text or window environment , This involves the issue of operation level .Linux By default 7 individual Run level For us to use , One of the most commonly used is run level3 and run l ...

  6. Linux Boot up, boot up the GUI ,shell Interface

    View the current boot mode # systemctl get-default Change mode command : systemctl set-default graphical.target Change from command line mode to graphical interface mode syste ...

  7. oracle Unable to start gui ,no protocol specified

    linux An error occurred when the terminal started the graphical program interface :No protocol specified This is because Xserver By default, graphics of other users' graphics programs are not allowed to be displayed on the current screen . If you need another user's graphics to be displayed on the current screen ...

  8. Linux The server init 5 Launch graphical interface , Report errors Retrigger failed udev events Solutions for

    1. Turn on linux The desktop environment of the system , Use startx unsuccessful , Report the following error : Tips :Retrigger failed udev events [root@ /]# startx xauth: creatin ...

  9. linux The server init 5 Launch graphical interface , Report errors Retrigger failed udev events

    Today, due to work needs to open linux The desktop environment of the system , Use startx unsuccessful , Report the following error : [root@ /]# startx xauth: creating new authority xinit: No s ...

Random recommendation

  1. php Use recursion to create multi-level directories

    <?php header('Content-type:text/html;charset=utf8'); echo "Loading time:".date('Y-m-d H ...

  2. JSOI2016R3 blind BB Answer key

    Look at the meaning of the title absi Sir blog http://absi2011.is-programmer.com/posts/200920.html http://absi2011.is-programmer.co ...

  3. Let's talk about it in detail Unity5 Of AssetBundle

    I wrote a blog introduction before Unity5 Of AssetBundle, The results seem to get a lot of attention . But it seems that many people don't understand after reading it , Mainly because I don't understand AssetBundle What is it? , What are its dependencies and structures , Just want to get the code ...

  4. By reading the configuration file App.config To get the database connection string

    There are two ways :// Get the connection string by reading the configuration file The first way : App.config File format : <?xml version="1.0" encoding="ut ...

  5. CentOS7.0 Download the version descriptions newly added Everything edition

    source :http://www.centoscn.com/CentOS/2014/0708/3268.html download CentOS-7.0-1406 When , There are many alternative versions , For beginners , I don't know which one to choose ...

  6. android JSON data format analysis

    One .   JSON (JavaScript Object Notation) A simple data format , Than xml Lighter .  Json Constructed in two structures :   Finally, add a format, which is very rare to show at the end of the article   ...

  7. Java Packaging Integer Value comparison of

    For the type of packaging Integer The value of is compared with int The value of is different :   public class Java_Val_Compare { public static void main(String[] ar ...

  8. .net core ef adopt dbfirst Way to connect mysql database

    1. Create based on .net core Project ( The process is brief ) 2. utilize nuget Add the following reference MySql.Data.EntityFrameworkCore         Pomelo.EntityFramew ...

  9. Systemd Add custom service ( Boot up )

    Systemd  brief introduction :https://fedoraproject.org/wiki/Systemd/zh-cn One .service unit  Common commands , With mysql Service as an example # Boot up syst ...

  10. php One of the interview questions ——HTML+CSS( Base part )

    One .HTML + CSS part 1. Please explain HTML In the document DTD Meaning and function of ( qsenn ) DTD, Document type definition , It's a guarantee html An effective way to format documents correctly , When parsing a web page , The browser will use DTD To check ...