Ubuntu16.04 mirror complete installation and configuration tutorial under VMware

Click on the blue word** Follow us**

table of Contents

software download

Download ubantu16.04 mirror source

Tsinghua Mirror->Get the download link->Select the desktop version

Insert picture description here

VMware Workstation 15 Pro download and install

Download the official website: https://www.vmware.com/cn/products/workstation-pro/workstation-pro-evaluation.html

Usually install the software, all the way next friction sparks and lightning~

Ubuntu16.04 mirror installation under VMware

Waiting for installation

PS: This time is relatively long, more than 1 hour

After the installation is complete, enter the previously set password to enter, officially opening the road to Linux learning

Linux environment configuration

The new version seems to come with VMware Tools

Install VMware Tools

` After the installation is complete, ubantu is not in full screen, and files under Windows cannot be dragged to Linux. It is very troublesome. VMware Tools is used to solve this problem.

Click Virtual Machine-->VMware Tools Installation If VMware Tools installation is not optional, close the virtual machine

The VMware Tools CD will appear on the desktop, click into it to copy 「VMwareTools-10.1.6-5214329.tar.gz」 to the main directory

cp VMwareTools-10.1.6-5214329.tar.gz ~
tar -zxvf VMwareTools-10.1.6-5214329.tar.gzls
cd vmware-tools-distrib
ls
sudo ./vmware-install.pl
reboot	#Reboot

PS: Try to drag and drop files into the virtual machine.

Install common software

Open terminal

Before that, check if the network is connected.

ping baidu,com

If ping fails

Install vim

sudo apt-get install vim

Configure vim

sudo vim /etc/vim/vimrc
# Automatic indentation, the new line and the previous line remain-consistent automatic space
set ai
# Set display line number, turn off line number display command: set nonumber
set number
# Take C/C++Pattern indentation
set cindent
# Set the tab character length to 4 spaces
set tabstop=4
# Set the automatic indentation length of line break to 4 spaces
set shiftwidth=4

The above is my basic vim configuration, more configurations are as follows

set ai                          "Automatic indentation, the new line and the previous line remain-consistent automatic space
set aw                          "Automatically write, transfer to shell or use: n When editing other files, the current buffer is written
set flash                       "Flashes at the error place but does not whine(default)set ic                          "Ignore case when querying and pattern matching
set nu
set number                      "Line number displayed on the left side of the screen
" set showmatch                   "Show parentheses paired when typing "]”“)", highlight matching brackets
set showmode                    "When in text input mode, highlight the mode indicator in the button bar
set showcmd                     "The currently executed commands are displayed in the status bar, and the unfinished command fragments are also displayed
set warn/nowarn                 "After making new changes to the text, the system will display when leaving the shell(default)set ws/nows                     "When searching, if the end of the file is reached, it will wrap around to the beginning of the file to continue searching
set wrap/nowrap                 "Long line display automatic line break
" colorscheme evening            "Set the background to night mode
filetype plugin on              "Automatically identify the file type, automatically match the corresponding,"File Type Plugin.vim" file, use indentation definition file
set autoindent                  "Set automatic indentation: the indentation value of each line is equal to the previous line; use noautoindent to cancel the setting
set cindent                     "Take C/C++Pattern indentation
set noignorecase                "Case sensitive by default
set ruler                       "Open the status bar ruler
set scrolloff=5                 "Set the window to automatically scroll when the cursor is 5 lines away from the upper and lower borders of the window
set shiftwidth=4                "set up<<with>>The width when the command moves is 4set softtabstop=4               "Make it possible to delete 4 spaces at a time when pressing the backspace key,Delete all remaining spaces when it is less than 4)
set tabstop=4                   "Set the tab length to 4 set wrap"Automatically wrap
syntax enable
syntax on                       "Automatic syntax highlighting

PS: Note that only one value can be selected for rows 10, 11, and 12, otherwise an error will be reported. If you don’t need some functions, you can use the symbol &quot;to comment the line before the line. If you can’t save with !wq, use the command w! sudo tee% to save.

Update software source

  1. Backup
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
  1. modify
sudo gedit /etc/apt/sources.list

All versions of Tsinghua Mirror Source are available: https://mirror.tuna.tsinghua.edu.cn/help/ubuntu/

Replace the contents of the source.list file with the following

deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-security main restricted universe multiverse
  1. Update
sudo apt-get update
E: Could not get lock /var/lib/apt/lists/lock -open(11: Resource temporarily unavailable)
Unable to lock directory /var/lib/apt/lists

Solution:

sudo rm /var/lib/apt/lists/lock

Dependent configuration

sudo apt-get-f install

possible problems:

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
 libdbusmenu-gtk4 libpango1.0-0 libpangox-1.0-0 ubuntu-core-launcher
Use 'sudo apt autoremove' to remove them.0 upgraded,0 newly installed,0 to remove and 48 not upgraded.

solve:

sudo apt autoremove

**Install git: **

sudo apt-get install git

openssh-server installation

Download ssh:

sudo apt-get install openssh-server

After downloading, ssh has been turned on, and the status can be checked through commands

sudo service ssh status View service status
Active:active(running)

If it is not turned on, use the following command to turn it on

Open ssh

sudo /etc/init.d/ssh start
sudo service ssh start

ssh other commands

sudo service ssh status View service status
sudo service ssh stop
sudo service ssh restart

Check whether the server is turned on:

sudo ps -e | grep ssh

Open ftp service

sudo apt-get install vsftpd
service vsftpd status
Active:active(running)
service vsftpd start
service vsftpd restart
netstat -an | grep 21//The default port is 21
tcp        000.0.0.0:210.0.0.0:*       LISTEN

If you see the above information, it proves that the ftp service has been started.

Use Filezilla and other software on windows to connect to Linux using FTP

Recommended Posts

Ubuntu16.04 mirror complete installation and configuration tutorial under VMware
Ubuntu16.04 mirror complete installation tutorial under VMware
Ubuntu 16.04 installation graphic tutorial under VMware 12
DLNA/UPnP Server installation and configuration under Ubuntu 12.04
CentOS 7 installation and configuration graphic tutorials under VMware10
Kaldi installation and configuration graphic tutorials under Ubuntu
Ubuntu16.04 installation and simple configuration
Ubuntu PostgreSQL installation and configuration
Redis installation under ubuntu and windows
Java-JDK installation and configuration under CentOS
Ubuntu 19.1 installation and configuration Chinese environment
Configuration and beautification after Ubuntu installation (1)
Nginx installation and configuration load (ubuntu12.04)
Ubuntu configuration source and installation software
Detailed explanation of Spark installation and configuration tutorial under centOS7
CentOS 7 system installation and configuration graphic tutorial
Detailed explanation of quick installation and configuration of Subversion (SVN) under Ubuntu
Tomcat installation and configuration under CentOS 7 (Tomcat startup)
MySQL 8.0 installation, deployment and configuration under CentOS 6/7
Installation and configuration of redis under centos7
Installation and uninstallation of CUDA under Ubuntu 16.04
Jenkins installation and deployment tutorial under CentOS 7
Debian and Ubuntu installation source configuration file description
CentOS 6.5 system installation and configuration graphic tutorial (detailed graphic)
Installation of pulseaudio and API usage under Ubuntu 12.04
Virtual machine installation and configuration ubuntu shared folder_
Installation and configuration of rsync server under CentOS 6.5
Basic configuration and common software installation after ubuntu 18.04 installation
Installation and configuration of CentOS 7 in VMware Workstation
Installation, configuration and uninstallation of GitLab in Ubuntu19.1
MySQL 8.0 installation, deployment and configuration tutorial on CentOS 8
OpenMPI-Ubuntu installation and configuration
Ubuntu introduction and installation
[python] python2 and python3 under ubuntu
LNMP installation under Ubuntu
Network configuration under Ubuntu
Ubuntu and RHEL dual Linux operating system installation tutorial
Installation and use of GDAL in Python under Ubuntu
Ubuntu12 step-by-step installation and configuration (system, FTP, TELNET.. settings)
Common exceptions and solutions for Ubuntu system installation and configuration
Installation and usage instructions of rz/sz command under ubuntu
Centos mysql installation and configuration
Centos7 installation and configuration prometheus
CentOS 7 installation and configuration PPTP
CentOS installation and configuration cmake
Centos7.5 installation and configuration MongoDB4.0.4
CentOS 7 installation and configuration PPTP
ubuntu19.04 installation tutorial (graphic steps)
Ubuntu16.04 install SVN and configuration
Centos7 installation and configuration of Jenkins
Virtual machine Linux Ubuntu installation tutorial
VMware Ubuntu installation detailed process (pro-test)
Ubuntu environment variables and ADB configuration
Installation of deb package under Ubuntu
Centos7 hadoop cluster installation and configuration
Ubuntu16.04 configuration OpenCV3.4.2 and basic use
Install and deploy Gerrit under Ubuntu
Install MySQL under Ubuntu 18.04 (graphic tutorial)
Install nodejs and npm under Ubuntu 16.04
Ubuntu 20.04 CUDA&amp;cuDNN installation method (graphic tutorial)
CentOS 7 Tomcat service installation and configuration