Scenario: The Web Project Server wants to run on a Linux system and write some shell scripts that automate the release of code, which requires learning to use a Linux system.
Environment: Run CENTOS7 system with virtual machine VMware Workstation Pro under Windows system.
Issue One: Install the GNOME desktop
The minimal installation of the CentOS system does not have a desktop, and only one console black box is visible when you enter the system. To get started, start by installing the desktop, and learn about the download and install software flow for Linux systems.
Reference: https://www.cnblogs.com/lovezhaolei/p/5593571.html
1. Enter the following command to download and install GNOME.
$sudo " GNOME Desktop " " Graphical administration Tools "
2. Change the default operating level when Linux system starts.
$sudo ln-sf/lib/systemd/system/runlevel5.target/etc/systemd/system/default. Target
3, restart the system with the reboot command, you can enter the desktop.
Reboot
Issue two: The virtual machine CentOS cannot be networked
If the "could not retrieve mirrorlist ..." error is executed after the Yum command in the above question, it is because the CentOS default network card for the virtual machine is not turned on and the configuration file needs to be modified.
Workaround reference:
- Http://www.centoscn.com/CentosBug/osbug/2014/0831/3621.html
- Https://www.cnblogs.com/yangbingqi/p/3328610.html
- Https://www.cnblogs.com/xixihuang/p/5404517.html
Enter the command "NMCLI D" to see the name of the network card used by the current CentOS virtual machine.
For example, the visible NIC (ENS33) default state is not connected. Everyone's network card name is likely different.
With VI, the command opens and edits the configuration file, such as.
Edit Property Onboot = yes
Save the document and exit. Enter the following command to restart the network service.
After that, you can surf the internet normally.
"Linux/centos" Get started FAQ notes