Ubuntu development environment installation (I) system installation
[Copy link]
Ubuntu development environment installation
The development environment installation tutorial and related documents provided by Mir Technology are not particularly detailed, so we hereby record the development environment construction process.
1. Virtual Machine
1 VMware15.1.0 virtual machine installation
A virtual system is a completely independent virtual computer system that is simulated on an existing physical computer through virtual machine software. Through virtual machine software, two or more virtual computers can be simulated on a physical computer. Users can install multiple Linux or Windows distributions on the same computer to improve work efficiency.
The virtual machine software VMware version installed in this chapter is 15.1.0. Applicable installation environment: Windows 7 64bit,
Windows 10 64bit.
Double-click the VMware installation package in the product information "4-Software Information\Tools\Windows\VMware-workstation-full-15.1.0-13591040.exe", and the following VMware installation interface will pop up.
Click "Next (N)" and the following interface will pop up.
Check "I accept the terms in the license agreement (A)", then click "Next (N)", and the following interface will pop up.
Select the installation location, then click "Next (N)", and the following interface will pop up.
Click "Next (N)" and the following interface will pop up.
Click "Next (N)" and the following interface will pop up.
Click "Install (I)" to enter the VMware installation interface.
After about 5 to 10 minutes, the following installation completion interface pops up.
Click "License (L)" to enter the "Enter License Key" interface.
Enter the license key as prompted. You can contact VMware to purchase the key. Click "Enter (E)" and the following interface will pop up.
Click "Finish (F)" to complete the installation. You can find the shortcut of VMware Workstation Pro on the desktop. The default installation is the Chinese version, and the English version is recommended. Enter the VMware installation directory and rename the folder named "zh_CN" under the messages folder to "zh" to use the English version normally, as shown in the figure below.
- Ubuntu environment installation
1. According to the development documentation, Mir recommends using the Ubuntu 18.04 64bit desktop version system.
- Download the system file https://releases.ubuntu.com/18.04.6/
- Install Ubuntu 18.04.6 operating system based on virtual machine
This section mainly provides methods for installing the Linux distribution Ubuntu14.04.3 on a virtual machine. Please make sure that the virtual machine has been properly installed under Windows before proceeding with the operations in this section.
Applicable installation environment: VMware15.1.0
3.1. Install Ubuntu 18.04.6 operating system
(1) Open VMware Workstation and click "File -> New Virtual Machine...". The following interface will pop up.
Note: If you cannot install a 64-bit operating system in a virtual machine, please enter the BIOS when Windows is booting and change the Virtualization item status of "CPU Configuration" to Enabled. Generally, PCs support 32-bit virtual machine operating systems by default, so it needs to be enabled to support 64-bit virtual machine operating systems.
- In the pop-up interface, select "Custom (advanced)" for customized installation, and then click Next, as shown in the figure below.
- In the pop-up interface, select "Workstation 15.x" in "Hardware compatibility:" and click Next, as shown in the figure below.
- In the pop-up interface, select "I will install the operating system later." and click Next, as shown in the figure below.
- In the pop-up interface, select the operating system as Linux, select the operating system version as Ubuntu 64-bit, and then click Next, as shown in the figure below.
- In the pop-up interface, fill in the virtual machine name and select the virtual machine installation path. Then click Next, as shown in the figure below.
- In the pop-up interface, select the number of CPU cores to use when the installed operating system is running and the number of cores to use for each core, and then click Next, as shown in the following figure.
- In the pop-up interface, set the memory allocated for runtime use to 2048MByte, and then click Next, as shown in the figure below.
(9) In the pop-up interface, select the first option to use bridged network, and then click Next, as shown in the figure below.
(10) In the pop-up interface, select the second option LSI Logic by default, and then click Next, as shown in the figure below.
(11) In the pop-up interface, select the virtual disk type. Select the second option SCSI, and then click Next, as shown in the figure below.
(12) In the pop-up interface, select the first item to create a new virtual disk, and then click Next, as shown in the figure below.
- In the pop-up interface, set the disk space to 100GByte and click Next, as shown in the figure below.
- In the pop-up interface, click "Browse..." to select the virtual disk storage path, and then click Next, as shown in the figure below.
- In the pop-up interface, click Finish to complete the system installation settings, as shown in the figure below.
(16) In the pop-up interface, click "VM -> Settings...", as shown in the figure below.
(17) In the pop-up interface, click "CD/DVD(SATA) -> Use ISO image file -> Browse..." and select
The ISO image installation file ubuntu-14.04.3-desktop-amd64.iso is located in the product information "4-Software Information\Tools\Windows\" directory, and then click OK, as shown in the figure below.
- Click on the virtual machine menu bar to start installing the Ubuntu operating system, as shown in the figure below.
- In the pop-up interface, select "English -> Install Ubuntu". The English version is selected by default, as shown in the figure below.
(20) In the pop-up interface, select the default configuration and click Continue, as shown in the figure below.
(21) In the pop-up interface, select the first option by default, Erase Disk, and then click "Install Now", as shown in the figure below.
(22) In the pop-up interface, click Continue to start the installation, as shown in the figure below.
- After about 2 minutes, in the pop-up interface, select your time zone and click Continue, as shown in the figure below.
- In the pop-up interface, fill in the user information according to the template. It is recommended that the user name, PC name, password, etc. are all set to NXP (case sensitive) to match the development documentation. Select "Require my password to log in", and then click Continue, as shown in the figure below.
(25) Start the installation. . .
(26) Restart immediately after the installation is complete.
- Development environment preparation
4.1. Replace Tsinghua Source
The common command for Ubuntu installation tools is apt-get, but after the system is installed, the default source is a foreign server, and the download will be very slow, so you need to change it to the Tsinghua source. Open Tsinghua University Open Source Software Mirror: https://mirrors. tuna.tsinghua.edu.cn/help/ubuntu/, select your Ubuntu version, such as 18.04, Ubuntu software source MYIR-MYD-J1028X-SW-DG-ZH-L5.4.47
The configuration file is /etc/apt/sources.list. Make a backup of the file that comes with the system, and replace it with the following content to use the TUNA software source mirror.
# By default, the source mirror is commented out to increase the speed of apt update. You can uncomment it if necessary.
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic main restricted universe multiverse deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse deb https:/ /mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-security main restricted universe multiverse deb https:/ /mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic main restricted universe se multiverse deb-src https: //mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-updates main restrict ed universe multiverse deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-backports main restri cted universe multiverse deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic -security main restricted universe multiverse deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse
4.2. Use the sudo gedit /etc/apt/sources.list command to open the file and replace the content.
4.3. Install SSH
After installing the ssh service, you can use the sercureCRT tool ssh2 to connect to Ubuntu in the window environment for subsequent development.
sudo apt-get install openssh-server
Generate a key for the user
su user ssh-keygen -t rsa
|