Vmware Installing Ubuntu VMS Common configurations include installing Vmare Tools, configuring environment variables, and modifying software sources…

The default server of Ubuntu is abroad, and the speed of installing software in China is very slow. However, changing the source may not solve this problem. For example, our common method is to edit sources.list. It’s actually better to change the server address of Ubuntu.

1. Modify sources.list

Edit sources. The list

sudo vim /etc/apt/sources.list
Copy the code

Add the source

Add at the end of the sources.list file

#Ali YunYuandeb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted  universe multiverse deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverseCopy the code

After the changes are complete, execute the following command

sudo apt-get update
sudo apt upgrade
Copy the code

2. Change the server address

1. Go to Software and Updates (Applications -> Software & Updates);

2. Ubuntu Software -> Download from (Download from), click Download from list box to select other sites… (Others)… ;

3. Click on the right to Select the Best Server (S).

4. Go to the Testing Download Servers page.

5. After the Server download test is complete, click S (Choose Server) in the lower right corner.

6. You need to enter the password to replace the server.

7. Click on the lower right corner (Close);

8. If the list of possible software is out of date, click Reload.

Three methods of setting environment variables

1.1 Temporary Settings

export PATH=/home/snake/Android/android-ndk-r14b:$PATH
Copy the code

1.2 Global Settings of the current user

Open ~/.bashrc and add a line:

export PATH=/home/snake/Android/android-ndk-r14b:$PATH
Copy the code

To put into effect:

source ~/.bashrc
Copy the code

1.3 Global Settings for all users

$ vim /etc/profile
Copy the code

Add:

export PATH=/home/snake/Android/android-ndk-r14b:$PATH
Copy the code

After an environment variable is added to /etc/profile and compiled using source /etc/profile, it takes effect only on the current terminal. After restarting a terminal, the environment variable becomes invalid. Restart the system.

source /etc/profile
Copy the code

4. Reinstall Vmware Tools

The Reinstall Vmware Tools file on the VM is unavailable and the VM cannot be reinstalled. You need to use linux.iso in the Vmware installation directory.

  1. To mount the image file to the VM, choose Settings > Hardware >CD/DVD, select Use ISO image file under Connect, and browse to linux.iso in the Vmware installation directory.
  2. After the ISO file is successfully mounted, click on the CD/DVD icon in the lower right corner of the VM and choose Connect to mount the ISO file.
  3. Open the image file to see the vmwareTools.tar. gz package. Decompress it.
  4. Sudo./vmware-install.pl can be installed.