• notice
  • Congratulations on the launch of the Sought Tech site

How to enter the command line interface by default in ubuntu run level and ubuntu12-ubuntu15

    There is a concept of run level in linux, which performs different loading according to different run levels , But although both the redhat version and the ubuntu version have the concept of run level, the meaning is different, and the operation is also different: as shown below,

ubuntu Run level and how ubuntu12-ubuntu15 enters the command line interface by default

To modify the run level in redhat, modify the /etc/inittab configuration, Change the ID inside to the corresponding value and execute reboot, while other files need to be modified in ubuntu on the left.I tried various methods on my ubuntu15.04 version many times and ended in failure.

For example, modify the /etc/default/grub configuration:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash text"
Update GRUB after modification: sudo update-grub and then reboot still fail.In checking the /etc/default/grub file, I saw the following line of configuration:

# Uncomment to disable graphical terminal (grub-pc only)
Excitedly thought that this is the setting in version 15.04, but after removing the # in front, and restarting I found that it still didn't play any role.I think maybe the 15.04 and 12 versions have been completely changed.

-------------------------- --------------------------------------------

Finally found a feasible method is:

root@ubuntu15:~# vim /etc/X11/default-display-manager  Modify the file /etc/X11/default-display-manager
Comment out the contents of the file /usr/sbin/ lightdm, and return false
# /usr/sbin/lightdm
Note: LightDM, namely: Light Display Manager, is a brand new, lightweight desktop display manager for Linux desktops, while traditional Ubuntu uses the GNOME desktop standard GDM..LightDM is a cross-desktop display manager, its purpose is to become the standard display manager of X org X server.The reason why we wrote a new display manager is because there have been many new display managers since XDM (usually based on the XDM source code).The main difference between these projects is in the GUI (for example, different development kits) and performance-these can be better implemented with a common display manager and allow these differences.

------------------------ But it is not over yet, because at this time I suddenly realized that I am already in my Sysv-rc-conf is installed on UBUNTU, but after executing this command, I gave up this method because GDM was not found.From the above content, we can see that UBUNTU does not use GDM as a graphical interface, and naturally cannot find GDM to start.After the execution result of the SYSv-RC-CONF command, you can see that there is a lightDM in it, that is, this is the place to close the graphical interface of UBUNTU version 15.04, see the following figure:

ubuntu run level and how ubuntu12-ubuntu15 enters the command line interface by defaultTags

Technical otaku

Sought technology together

Related Topic


Leave a Reply