Reference Linux fedora code n graphics and character Switching

Source: Internet
Author: User
Reference Linux fedora code n graphics and character Switching

By default, FC enables logon to a graphical interface.

1, from the graphical interface to the character interface method: CTRL + ALT + F1-F6

F1 single user

F2 multi-user (NFS not supported)

F3 full user

F4 undefined special circumstances

F5x11: Enter the X-window system.

F6tty character user

 

2. switch from the character interface to the graphical interface: Alt + F7

 

3. You can directly enter the character interface at startup. Modify the/etc/inittab file and change the startup level from 5 to 3.

 

Root Login

[Root @ localhost/] # CD etc // enter the etc directory

[Root @ localhost ETC/] # vi inittab // use the VI editor to open the inittab File

After entering the interface, find ID: 3: initdefault: // press the key to edit and change 3 to 5.

Press ESC and enter WQ // Add the Enter key to exit

[Root @ localhost ETC/] # reboot // restart

The principles are as follows:

0: Shutdown (remember not to set initdefault to 0, because this will make Linux unable to start)

1: single-user mode, just like the security mode in Win9x.

2: multiple users, but not NFS.

3: full multi-user mode, standard operation level.

4: It is generally not used. In some special cases, you can use it to do something.

5: X11, which means entering the X-window system.

6: restart (remember not to set initdefault to 6, because this will make Linux continuously restart ).

 

NOTE: If it is set to 3, the character interface is displayed. However, you cannot use CTRL + ALT + F7 to switch.

 

4. If the system cannot break into the graphic interface and the/etc/inittab file cannot be modified, use

 

1) when you start the Linux operating system, you will usually see the grub boot prompt. When you select the Linux operating system. The lower part of the screen will show some very simple

 

Click "E" as prompted to enter the editing mode.

2) will face a pilot project list: it shows the kernel/boot/vmlinuz-2.4.18-14ro root = label =/, see this section, I

 

You must add a single sign (indicating that a single user runs) to the backend. Be sure to leave a grid blank. Otherwise, an error will occur when the system restarts.

3) kernel/boot/vmlinuz-2.4.18-14single Ro root = label =/, then start in single user mode, press enter, save. 4) enter the editing mode screen, press "B", and press "restart". Grub will guide the Linux mode of a single user. After the boot ends, a shell prompt symbol will be displayed.

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.