Before starting the installation process, first, we’ll have to update and upgrade our ubuntu apt packages and system. You can do that by typing the following commands in the terminal –
sudo apt-get update
sudo apt-get upgrade
It will take a little bit of time for it to finish depending upon your internet speed. After the update and upgrade finishes, you can now start the installation process of AutoDock Vina.
Download MGLTools and AutoDock -
The first step will be to download MGLTools and AutoDock in our ubuntu. To download these packages you can either download them directly from their websites or you can use the terminal to download the packages.
First lets see how we can download MGLTools and AutoDock Vina using the terminal. Before typing the download command make sure you have wget installed on your ubuntu. If wget is not installed on your system then you can install it by using this command –
Download using Terminal -
sudo apt-get install wget
After installing wget, download MGLTools. First, create a new directory on your desktop with the name “newdirectory” by using this command –
mkdir -p newdirectory
We’ll download the packages in this new directory. After creating the new directory we’ll change our working directory from the current one to the new one that we created
After that, by using the wget command we’ll download the latest version of MGLTools.
Alternative download link for MGLTools – https://ccsb.scripps.edu/mgltools/downloads/
(OPTIONAL) If your system is not 64bit and is 32bit then use this command instead of the above one –
After downloading MGLTools, download AutoDock Vina using the command
After this, we’ll need to download the AutoDocksuite so that we can run AutoDock4 analysis.
Here’s the command to download AutoDocksuite.
sudo wget http://autodock.scripps.edu/downloads/autodock-registration/tars/dist426/autodocksuite-4.2.6-x86_64Linux2.tar
Okay, so all the required packages are now downloaded to our directory. Now before we start the installation we’ll need to download a library.
Sometimes you might get an imaging C module error which you can fix by downloading and installing a library.
sudo apt-get install libjpeg62:i386
Download using Web Browser -
Here select the version you want, 64-bit version or the 32-bit version. The 64-bit version name will be “mgltools_x86_64Linux2_1.5.6.tar.gz”.
Now to download AutoDock Vina and AutoDock suite using Web Browser we will go to these links here –
After downloading these file, create a new directory called “newdirectory” and move these files inside that directory.
After that follow the steps below to complete the installation.
Install MGLTools and AutoDock Vina -
Okay, so now that we have downloaded all the files required for the installation let’s continue to the next step.
First, we’ll install MGLTools. To install MGLTools first we’ll unzip the tar file. Use this command to do that –
tar xvzf mgltools_x86_64Linux2_1.5.6.tar.gz
After the tar file unzips, there will be a new folder named “mgltools_x86_64Linux2_1.5.6 ‘‘ inside the “newdirectory” folder.
Now change your working directory from “newdirectory” to “mgltools_x86_64Linux2_1.5.6” using this command –
Once you are inside this directory run the install.sh file to install MGLTools.
After typing this command the installation of MGLTools will start. If there’s a “Commercial Usage” popup appearing on your screen then click on the OK button.
Once the installation has finished we can continue to the next step which is to install AutoDock Vina.
Change your working directory back to “newdirectory” using the command –
Now you’ll need to unzip the AutoDock tar file. Use this command to unzip the tar file –
tar xvzf autodock_vina_1_1_2_linux_x86.tgz
That’s it, the Installation of MGLTools and AutoDock Vina has been completed. Now we’ll need to create an alias in our bash file.
Edit the Bashrc File -
We’ll have to create an alias now for AutoDock vina and pymol viewer. To do that we’ll have to edit the Bashrc file.
First, you will have to change your working directory from newdirectory to the root directory.
After that, type the command given below in the terminal. This will open the Bashrc file in the default text editor of ubuntu.
sudo gedit ~/.bashrc
Here, inside the Bashrc file go to the bottom of the file. Now below the last line enter these lines.
alias adt='sudo /home/username/newdirectory/mgltools_x86_64Linux2_1.5.6/bin/adt' alias pmv='sudo /home/username/newdirectory/mgltools_x86_64Linux2_1.5.6/bin/pmv'
Now the file path here after sudo will be different for everyone. It depends upon where you installed MGLTools.
In place of username type your own username. Other things will be same if you followed my steps.
After that, on the top left, click on the Save button and then click on the red x button to close the editor.
Now we’ll type the final command that will finish the installation process of AutoDock Vina.
And, that’s it, AutoDock Vina is now installed successfully on your ubuntu system. You can open AutoDock Vina by typing “adt” in the terminal. And to open the pymol viewer we’ll type pmv in the terminal.
If you are facing any problem while installing AutoDock Vina, then you can contact me on Instagram or you can comment below. Thank you.
Frequently Asked Questions -
Can I install AutoDock Vina without Root permissions?
Yes, you can install AutoDock vina without having root permissions. Download the packages using your web browser and then install it.
Update: To edit the bashrc file, you can do that without using sudo at the back like “gedit ~/.bashrc”.