Fedora18 is started in text mode instead of GUI

Source: Internet
Author: User
Fedora18 is started from the text mode instead of the graphic interface in the previous linux version. if you want to start the operating system and directly enter the text mode, you need to modify the etcinittab file, change 5 to 3. However, after the linux26 (seemingly) kernel, the file fedora18 is started from the text mode instead of the graphical interface in the previous linux version. if you want to start the operating system and directly enter the text mode, modify the/etc/inittab file and change 5 to 3. However, after the linux2.6 (seemingly) kernel, this file is changed and it no longer controls the default Startup mode of the system. If you are running fedora18, run the following command to view the text in the/etc/inittab File: sudo vim/etc/inittab: # inittab is no longer used when using systemd. # adding configuration here will have no effect on your system. # Ctrl-Alt-Delete is handled by/etc/systemd/system/ctrl-alt-del.target # define EMD uses 'targets' instead of runlevels. by default, there are two main targets: # multi-user.target: analogous to runlevel 3 # graphical.tar get: analogous to runlevel 5 # To set a default target, run: # ln-s/lib/systemd/system/ . Target/etc/systemd/system/default.tar get # The File inittab is no longer used to control the system startup mode. If you add or modify any flowers here, it will not affect your system startup. Now the system startup mode uses "targets" to replace the previous runlevels, by default, the system has two major targets: multi-user.target: analogous to runlevel 3 # This is the target of the multi-user mode, similar to the previous runlevel 3, that is, the text mode (black and white) graphical.tar get: analogous to runlevel 5 # This is the target of the graphic mode, similar to the previous runlevel 5, that is, the graphic mode. The following command is used to modify the default Startup mode of the system: ln-s/lib/systemd/system/ . Target/etc/systemd/system/default.tar get. Finally, we will summarize as follows: 1. if you want the system to start in text mode by default, enter the following two commands in sequence: sudo rm/etc/systemd/system/default.tar get // This command is used to delete the original default Startup mode sudo ln-s/lib/systemd/system/multi-user.target/etc/systemd/system /default.tar get // This command is used to add a new startup mode, set text mode to default start mode 2. if you want the system to start from the GUI by default, you should enter the following two commands in sequence: sudo rm/etc/systemd/system/default.tar get // This command deletes the original default Startup mode sudo ln-s/lib/systemd/system/graphical.tar get/etc/systemd/ system/default. ta Rget // This command adds a new start mode. set the text mode to the default start mode. note: after you change the default start mode of the system to the text mode, after the operating system is restarted, linux enters the text mode of tty1 (Terminal 1) by default. If you want to enter the graphic interface, you can enter this command: startx // This is a common user logon graphic interface. if you want to enter the graphic interface as a super user (root, enter sudo startx. In general, it is very convenient to modify the startup mode of fedora18. remember that it took a little time to modify the default Startup mode of ubuntu.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.