Skip to content

Instantly share code, notes, and snippets.

@ReneHamburger1993
Forked from tonigi/install_vmd_plugin.md
Created September 10, 2020 14:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ReneHamburger1993/c751b43dc77ba661cbb62142d3283663 to your computer and use it in GitHub Desktop.
Save ReneHamburger1993/c751b43dc77ba661cbb62142d3283663 to your computer and use it in GitHub Desktop.
Install a VMD plugin

Installation of VMD plugins

These are common instructions for my VMD plugins.

Before you begin. Download the latest release and extract it in a directory of your choice.

Method 1: use VMD's preference manager (VMD 1.9.2 and higher)

If you are using VMD 1.9.2's new preference manager, .vmdrc can not be edited by hand. Please refer to the following figure, adjusting the plugin name, location and script.

    lappend auto_path /WHERE/YOU/EXTRACTED/THE/TOOL

Note: this method is not suitable to replace plugins distributed with VMD by newer versions. Also, some plugins may require a second line like package require plugin_name_gui to register them in VMD's menus.

fig

Method 2: set the TCLLIBPATH environment variable

This is suitable e.g. if you use modulefiles. Note that, unlike other Unix paths, multiple path components should be space-separated.

    export TCLLIBPATH="/PATH/TO/EXTRACTED/VMD_PLUMED $TCLLIBPATH"

Method 3: edit VMD's startup file (VMD before 1.9.2)

You may download and extract the plugin in any directory. Then add the following lines to your .vmdrc startup file. Note that name and location differ under Windows !

    lappend auto_path /PATH/TO/EXTRACTED/PLUGIN
    menu main on
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment