当前位置:首页 > 虚拟机 > 正文

centos7虚拟机怎么进入图形界面(虚拟机启动centos7默认为命令界面)

How to enter the graphical interface in centos? How to open the command line after entering the graphical interface?

Use the command start If you are in the graphical interface, press Ctrl+Alt+F2 to enter the command line mode;

2. If you are in the command line mode, press Ctrl+Alt+F1 to enter the command line mode. Entering graphics mode

Linux switches graphical interface linux switches graphics

How to switch linux from text interface back to graphical interface?

First, open the Linux system graphical interface shortcut key CTRL+Alt+f1 in the virtual machine to switch to the text interface. After the system graphical interface is started, you can use Ctrl+Alt+F1~6 to switch to the character interface. Then use Ctrl+Alt+F7 to switch to the two editing modes of the graphical interface Linux. In addition to the command line, the operation of shortcut keys is also essential. However, the installation methods are different, so friends should also pay attention.

For Linux installed on the hard disk, after the system graphical interface is started, you can use Ctrl+Alt+F1~6 to switch to the character interface, and then use Ctrl+Alt+F7 to switch to the graphical interface.

For Linux installed using a virtual machine, since the virtual machine blocks the Ctrl+Alt key, other hotkeys must be used: Ctrl+Alt+shift+F1~6 to switch to the character interface; use Alt+F7 to return to the graphical interface.

How to switch between Linux graphical interface and text interface?

1. Open the UBUNTU operating system, and then open the command line window.

2. Enter vi/etc/default/grub, we need to modify the file.

3. Add # in front of GRUB_CMDLINE_LINUX_DEFAULT="quietsplash";

GRUB_CMDLINE_LINUX="" and change it to GRUB_CMDLINE_LINUX="text";

Remove #GRUB_TERMINAL=console #.

4. If it cannot be modified, then we need to use this command to operate the file. sudovi/etc/default/grub

5. Then we enter these two commands.

sudoupdate-grub

6. Restart at this time.

7. Then we come to the text interface. We need to log in.

8. Enter sudovi/etc/default/grub to operate the file.

9. Remove GRUB_CMDLINE_LINUX_DEFAULT="quietsplash"#;

GRUB_CMDLINE_LINUX="text" and change it to GRUB_CMDLINE_LINUX="";

GRUB_TERMINAL=console plus #.

Save and exit.

10. Then execute these two instructions.

update-grub

Restart the computer and it will return to the graphical interface.

How to switch redhat's command interface to a graphical interface?

To switch from the Linux command interface to the graphical interface, press Alt+F7 (you can also enter the command startx to enter the graphical interface). If you want to enter the command interface by default when booting, you can modify the configuration file. The specific commands are as follows (in the command interface, of course, you must be root or a user with root permissions before you can modify it):

(1)vi/etc/inittab--edit with vi editor/ etc/inittab file (2) Press i-- to switch to INSERT mode, which is the modification mode (3) Find the line init:5:initdefault in the file, and change 5 to 3--Let’s talk about what 5 and 3 represent respectively. (4) Press the Esc key - exit INSERT mode (5) Press: (colon) - the cursor is locked to the last line (6) wq (save and exit) if you do not want to modify it, q! (exit without saving) and restart Enter the command interface by default.

What shortcut key is used to switch to the graphical desktop in the character interface of Ubuntu?

1. Press ALT+CTRL+F1, F2, F3, F4, F5, F6, F7 to switch back and forth between 7 interfaces (Linux physical machine). ALT+CTRL+F7 can switch to the graphical interface ( Linux physical machine). If it is a Linux system installed on a VMware virtual machine, the following operations are required when switching to the graphical interface. Press ALT+CTRL+SPACE (space), do not release ALT+CTRL, and then press F7. This will allow you to switch to the graphical interface.

2. If you want Ubuntu to boot to commandprompt (default character interface) every time, you can enter the following command: echo "false" | sudotee/etc/X11/default-display-manager (note: the above command The function is to change the content in the default-display-manager file to "false". It is best to back up before executing this command.) When the computer is turned on next time, it will start in command line mode (character interface login). If you want to change back to the graphical interface startup (Xwindows startup), you can enter: echo "/usr/sbin/gdm"|sudotee/etc/X11/default-display-manager (note: "/usr/sbin/gdm" is the original The content in the default-display-manager file is not "/usr/sbin/gdm" for all Linux versions. Ubuntu12.04 is "/usr/sbin/lightdm". Therefore, when modifying the default-display-manager file Before downloading the content, it is best to back it up to avoid forgetting the content.)

3. If you start Ubuntu in command line mode, if you want to return to the graphical interface in the character terminal, you only need the following command.

How to switch to the graphical interface in centos?

In Linux systems, the X-Window graphical operation interface and the Console character operation interface can be switched between each other.

1. If you are in the graphical interface, press: Ctrl+Alt+F2 to enter the command line mode;

2. If you are in the command line mode, press Ctrl+Alt+F1 , you can enter the graphical interface;