Configure Ubuntu system in VirtualBox virtual machine environment, install Anaconda

Configure Ubuntu system in VirtualBox virtual machine environment, install Anaconda

What is this article

After reading this article, you will download and install the VirtualBox virtual machine on the Windows platform, configure the Ubuntu Linux system with a graphical interface GUI in the virtual machine, and install Anaconda in the virtual machine. Most of the download process uses domestic sources to improve the download and installation speed.

Through this tutorial, you can quickly install all the materials required by Anaconda on a new device in the form of CheckList, laying the foundation for scientific calculations such as CADD and Molecular Dynamics.

What this article is not

This article is not a women's dress tutorial.

Open source philosophy

In recent years, the various embargo threats to teak are obvious to all. The masons next door (HIT students call themselves "workers", then I would call them "Masons") are not able to use MATLAB to participate in the competition. Therefore, this article will try to avoid the use of commercial software that poses an embargo risk to the readers present here . Most of the software in this article is open source .

Oracle VM VirtualBox download

virtualbox | Help for using mirror station | Tsinghua University Open Source Mirror Station | Tsinghua Open Source Mirror

Choose the open source and free VirtualBox installation package according to the system (Win or Mac), and download the VirtualBox installation package for Windows directly.

Download the Ubuntu image

Index of /ubuntu-releases/ | Tsinghua Open Source Mirror | Tsinghua Open Source Mirror

Download the iso image of Ubuntu here and download the latest version. It is recommended to download the "desktop" version, but not the "live-server" version. The former has a graphical interface and is more friendly to non-CS professional users.

[External link image transfer failed. The source site may have an anti-leech link mechanism. It is recommended to save the image and upload it directly (img-pfV8jqu1-1612519466767)(https://raw.githubusercontent.com/RuikangSun/ImageStorage/main/2021/02 /05-15-32-00-firefox_Sf7d392zFy.png)]

After getting the iso file, use VirtualBox to load the image and create a virtual machine based on the performance of your computer. It is recommended that after the installation is completed, set up a two-way shared pasteboard for physical and virtual machines:

[External link image transfer failed. The origin site may have an anti-leech link mechanism. It is recommended to save the image and upload it directly (img-VLGmJhId-1612519466769)(https://raw.githubusercontent.com/RuikangSun/ImageStorage/main/2021/02 /05-15-31-48-VirtualBox_FVLHUZeBVP.png)]

After enabling the shared pasteboard, enable "Install Enhancements" in the VirtualBox "Device" menu, so that the shared pasteboard can be started.

ubuntu | Mirror Station Use Help | Tsinghua University Open Source Software Mirror Station | Tsinghua Open Source Mirror

sudo gedit /etc/apt/sources.list

Refer to the tutorial of Tsinghua Open Source Mirror Station, copy the code and modify the Ubuntu software source configuration file to improve the speed of apt-get.

Install Anaconda Scientific Computing Python Distribution

anaconda | Mirror Station Use Help | Tsinghua University Open Source Software Mirror Station | Tsinghua Open Source Mirror

Download the sh package of Anaconda according to the instructions of the Tsinghua open source mirror site. Open Terminal in the download folder,

sh Anaconda3-XXX-XXX(sh包的文件名).shInstall Anaconda. The installation process is basically just press ENTER without letting go, and occasionally need to enter yes. After the installation is complete, refer to the above instructions to change the source to the domestic Tsinghua mirror to speed up the download speed of the installed Python package.

Configure Anaconda environment variables

Terminal run:

sudo gedit /etc/profile
Add in the last line of the file:

export PATH=/home/Linux系统账户名/anaconda3/bin:$PATH

Here, the Linux system account name is the name of the folder that comes with the desktop, and it is also the account name displayed when you start to log in.

Enable Anaconda Navigator in Linux

source ~/anaconda3/bin/activate root
anaconda-navigator

There is also a tutorial on creating an Anaconda Navigator desktop shortcut in the Ubuntu environment, so I won’t repeat it again.

Guess you like

Origin blog.csdn.net/qq_37126941/article/details/113701426