Foreword
mac released the m1 chip, its powerful performance has been sought after by many developers, but also because of the replacement of its architecture, the installation of many software or environments has become a problem, this time we will see how to use it in the mac m1 environment install centos8
CentOS8 installation
-
- Install vmware virtual machine
- Centos8 image supports M1 chip
- Install CentOS8 system
-
- 1. Open the virtual machine software, click Create a custom virtual machine, and then click Continue
- 2. Select Linux, other Linux5.x kernel 64-bit Arm
- 3. Select the new virtual disk and click Continue
- 4. Select custom settings
- 5. Select a custom virtual machine storage location for storage.
- 6. This interface pops up to modify the cpu, memory, hard disk, etc. Click the hard disk icon, modify the hard disk size to 60G, and click Apply.
- 7. Click Settings, then click the CD/DVD icon, select the CD/DVD drive in the pop-up interface, and select the centos8 image downloaded above.
- 8. Click the start icon.
- 9. Press the up arrow key to select `install centos8 linux 8`, and click Enter to start installing the system
- 10. Select the language you want to use and click Continue
- 11. Configure network host name, network card, add disk mount point
- 12. Terminal command operation
Install vmware virtual machine
We install the virtual machine through VM. First, we need to download the arm version of VM. The official download path is provided
here .
Centos8 image supports M1 chip
Link: https://pan.baidu.com/s/1GAOoZXEEeUQl3WkrdqPYYg?pwd=6ffe
Extraction code: 6ffe
Install CentOS8 system
1. Open the virtual machine software, click Create a custom virtual machine, and then click Continue
2. Select Linux, other Linux5.x kernel 64-bit Arm
3. Select the new virtual disk and click Continue
4. Select custom settings
5. Select a custom virtual machine storage location for storage.
6. This interface pops up to modify the cpu, memory, hard disk, etc. Click the hard disk icon, modify the hard disk size to 60G, and click Apply.
7. Click Settings, then click the CD/DVD icon, select the CD/DVD drive in the pop-up interface, and select the centos8 image downloaded above.
8. Click the start icon.
9. Press the up arrow key to select install centos8 linux 8
, and click Enter to start installing the system
10. Select the language you want to use and click Continue
11. Configure network host name, network card, add disk mount point
Click on the network and host name, configure the network
, turn on the network card switch, change the host name and apply, and complete. Click the time and date to open the network time, and the time will be calibrated automatically. Select Shanghai, Asia, and click Finish.
Software selection, click to minimize the installation.
Select the installation destination (disk partitioning is available) , select Custom and
click Finish to pop up the following interface, click the ➕ sign, select the /boot partition, and add a mount point
in the same way to allocate space for other partitions, click Finish to pop up the following interface, click Accept Change
Click Root Password, after setting the password, start the installation.
Just restart the system
12. Terminal command operation
Edit the network card configuration file cd /etc/sysconfig/network-scripts/
Add in the configuration file:
1|IPADDR=192.168.244.12 #静态IP,你要修改的ip
2|GATEWAY=192.168.244.1 #默认网关
3|NETMASK=255.255.255.0 #子网掩码
restart network card
1|nmcli c reload
Ping through the external network www.baidu.com
to set the yum source
Reference: https://blog.csdn.net/xiaocao_debug/article/details/123041407