"Linux/centos" Get started FAQ notes

Source: Internet
Author: User

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

Related Article

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.