Virtual machine installation Ubuntu20.04

premise

  • Ubuntu20.04 system image ubuntu20.04.2.0LTS

  • VMware workstation virtual machine VMware Workstation 16 Pro

    Knowing the key to whoring for nothing:

    ZF3R0-FHED2-M80TY-8QYGC-NPKYF

    YF390-0HF8P-M81RQ-2DXQE-M2UT6

    ZF71R-DMX85-08DQY-8YMNC-PPHV8

Install

Create a new virtual machine

Open VMware Workstation and choose to create a new virtual machine

vm

choose custom

vm2

direct next step

vm3

Select the downloaded Ubuntu20.04 image

[External link picture transfer failed, the source site may have an anti-theft link mechanism, it is recommended to save the picture and upload it directly (img-Buy4LqXP-1661935983807)(https://mypic-1305118058.cos.ap-hongkong.myqcloud.com/img /20210226125904.jpg)]

Add username and password

vm5

Set the virtual machine name and installation location

vm6

Set processor and memory size

vm7

vm8

Use network address translation

vm9

The next few steps can be set by default

vm10

vm12

Set disk size without allocating all space

vm13

Set virtual disk location

vm14

You can continue to modify the virtual machine configuration, and start the virtual machine after creation

Wait for automatic installation

configuration system

Replace the software source

Open Software & Updates, select ustc or tsinghua mirror source

ub1

set time zone

Open Settings-Date & Time, set Time Zone to Shanghai

ub2

Set root user password

sudo passwd

ub3

Install necessary tools

# net-tools
sudo apt-get install net-tools
# curl
sudo apt-get install curl
# snap
sudo apt-get install snap
# vim
sudo apt-get install vim

Install other development software

Ubuntu Software
  • console
  • vscode
  • chromium
apt / snap
# g++
sudo apt-get install g++
# jdk
sudo apt-get install openjdk-14-jdk-headless
# git
sudo apt-get install git
# mysql
sudo apt-get install mysql-server mysql-client
su
mysql -u root -p
vim /etc/mysql/mysql.conf.d/mysqld.cnf
# bind-address 127.0.0.1 -> 0.0.0.0

terminal beautification

cat /etc/shells
sudo apt-get install zsh
git clone https://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh
cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc
chsh -s /bin/zsh
reboot

As for the Chinese input method, it is not necessary, you can install it when you need it.

The overall language setting can be adjusted to Chinese, but it is not necessary. It is more appropriate to program in an English environment.

You can uninstall the pre-installed Libre Office and several games in Ubuntu Software.

The new virtual machine under VMware automatically installs vmware-tools by default. It is very convenient to share the clipboard and drag and drop files between the host and the virtual machine.

At this point, the Linux system is installed, and some development tools are installed by the way.

Guess you like

Origin blog.csdn.net/wji15/article/details/126627387
Recommended