In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article introduces you how to switch between command mode and graphics mode in Linux, the content is very detailed, interested friends can refer to, hope to be helpful to you.
By default, Linux provides six Terminal to allow users to log in, switching by using the combined buttons of [Ctrl] + [Alt] + [F1] ~ [F6].
How do you name these six terminal interfaces? the system will name [F1] ~ [F6] as the operating interface environment of tty1 ~ tty6. In other words, when you press the three combined buttons [crtl] + [Alt] + [F1], you will enter the terminal interface of tty1.
Go back to the graphical interface just now
CentOS5
[Ctrl] + [Alt] + [F1] ~ [F6]: log in to tty1 ~ tty6 terminal in command line mode
[Ctrl] + [Alt] + [F7]: graphical interface desktop.
CentOS7
[Ctrl] + [Alt] + [F2] ~ [F6]: log in to the tty1 ~ tty6 terminal in command line mode
[Ctrl] + [Alt] + [F1]: graphical interface desktop.
CentOS5
In the default login mode of Linux, there are two main types, one is the login environment with only command line mode (the so-called execution level run level 3), in which you can have the terminal interface of tty1~tty6, but there is no environment without graphical interface.
The other is a graphical login environment (the so-called execution level run level 5), in which you have tty1~tty7! The tty7 is the default graphics environment waiting to log in after the boot is completed!
If you start Linux in command-line mode, the default tty7 is nothing! You can log in using your account at any terminal interface of tty1~tty6, and then issue the startx command.
For startx to work, at least the following things are needed:
There is no other window software running on your tty7 (tty7 must be empty)
You must have X Window system installed, and X server can be started smoothly.
You'd better have a window manager, such as GNOME/KDE or TWM in Yangchun.
The necessary services for Qimai X, such as font servers (X Font Server, xfs), must be activated first.
CentOS7
Because the system preset login interface is different, so want to enter the graphics terminal name may also be different, if the installation preset is a graphical interface, the image interface will appear in the tt1 interface. If your linux preset uses a text interface, then tt1 and tt6 will be occupied by command line mode
Start the graphical interface in the command line environment, then the graphical interface will appear on the tty at that time, for example, if you log in to the system in tt3, and then type startx to start the graphical interface, then the graphical interface will be generated on tt3.
For startx to work, at least the following things are needed:
Does not launch the graphical interface under other tt
You must have X Window system installed, and X server can be started smoothly.
You'd better have a window manager, such as GNOME/KDE or TWM in Yangchun.
Since the beginning of CentOS7, the service management mode of SystemV, which has been used for many years, has been abolished. That is to say, from this edition, there is no so-called concept of "execution level (run level)]. The new management method uses the systemd model, which manages a lot of services according to their needs.
If you want the system to start in some way by default
Use systemd to create symbolic links to the default run level.
The modification method is:
1. First delete the existing symbolic links
Rm / etc/systemd/system/default.target
two。 The default level is converted to 3 (text mode)
Ln-sf / lib/systemd/system/multi-user.target / etc/systemd/system/default.target
Or the default level is converted to 5 (graphic mode)
Ln-sf / lib/systemd/system/graphical.target / etc/systemd/system/default.target
3. Restart
Reboot on how to switch command mode and graphics mode in Linux to share here, I hope that the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.