Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help
Special pages
SBGrid Resources
SBGrid Consortium
SBGrid Data Bank
Software Webinars
PyMOL Webinar
PyMOL Wiki
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
User:Tlinnet/Linux Install
(section)
User page
Discussion
English
Read
Edit
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
View history
General
What links here
Related changes
User contributions
Logs
View user groups
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Install script == Make a text file "installpymol.sh" and make it executable <source lang="bash"> chmod u+x installpymol.sh </source> Put this in the file, modify the first line <source lang="bash"> #!/bin/bash -e prefix=$PWD/pymol modules=$prefix/modules svnpymol=svnpymol svnfreemol=svnfreemol pymolscriptrepo=Pymol-script-repo update=$prefix/updatepymol.sh ################################################### mkdir -p $prefix mkdir -p $HOME/bin ###### Checkout pymol svn svn co svn://svn.code.sf.net/p/pymol/code/trunk/pymol $prefix/$svnpymol ###### Build and install pymol cd $prefix/$svnpymol python setup.py build install --home=$prefix --install-lib=$modules --install-scripts=$prefix ########## Setup freemol - for MPEG support ############ svn co svn://bioinformatics.org/svnroot/freemol/trunk $prefix/$svnfreemol cd $prefix/$svnfreemol/src/mpeg_encode export FREEMOL=$prefix/$svnfreemol/freemol ./configure make make install ########## Install Pymol-script-repo ############ git clone git://github.com/Pymol-Scripts/Pymol-script-repo.git $prefix/$pymolscriptrepo ## Make a shortcut to an extended pymol execution echo "#!/bin/bash" > $prefix/pymolMPEG.sh echo "export FREEMOL=$prefix/$svnfreemol/freemol" >> $prefix/pymolMPEG.sh echo "export PYMOL_GIT_MOD=$prefix/$pymolscriptrepo/modules" >> $prefix/pymolMPEG.sh echo "export PYTHONPATH=$prefix/$pymolscriptrepo/modules"':$PYTHONPATH' >> $prefix/pymolMPEG.sh echo "export PYTHONPATH=$prefix/$pymolscriptrepo"':$PYTHONPATH' >> $prefix/pymolMPEG.sh echo '#export PYTHONPATH=$PYTHONPATH:/sbinlab2/software/x64/lib64/python2.6/site-packages/PIL' >> $prefix/pymolMPEG.sh echo '#export PYTHONPATH=$PYTHONPATH:/sbinlab2/software/x64/lib64/python2.6/site-packages/lib-dynload' >> $prefix/pymolMPEG.sh echo '#export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/sbinlab2/software/x64/lib/pymollib' >> $prefix/pymolMPEG.sh echo '#export LIBGL_ALWAYS_INDIRECT=no' >> $prefix/pymolMPEG.sh tail -n +2 $prefix/pymol >> $prefix/pymolMPEG.sh chmod ugo+x $prefix/pymolMPEG.sh ## Make a startup files, which is always executed on startup. t="'" echo "import sys,os" > $modules/pymol/pymol_path/run_on_startup.py echo "import pymol.plugins" >> $modules/pymol/pymol_path/run_on_startup.py echo "pymol.plugins.preferences = {'instantsave': False, 'verbose': False}" >> $modules/pymol/pymol_path/run_on_startup.py echo "pymol.plugins.autoload = {'apbs_tools': False}" >> $modules/pymol/pymol_path/run_on_startup.py echo "pymol.plugins.set_startup_path( [$t$prefix/$pymolscriptrepo/plugins$t,$t$modules/pmg_tk/startup$t] )" >> $modules/pymol/pymol_path/run_on_startup.py echo "pymol.plugins.preferences = {'instantsave': True, 'verbose': False}" >> $modules/pymol/pymol_path/run_on_startup.py ## Make a update script cat > "$update" <<EOF #!/bin/bash -e prefix=$prefix modules=$modules svnpymol=svnpymol svnfreemol=svnfreemol pymolscriptrepo=Pymol-script-repo ###### Checkout pymol svn svn co svn://svn.code.sf.net/p/pymol/code/trunk/pymol \$prefix/\$svnpymol ###### Build and install pymol cd \$prefix/\$svnpymol python setup.py build install --home=\$prefix --install-lib=\$modules --install-scripts=\$prefix ########## Setup freemol - for MPEG support ############ svn co svn://bioinformatics.org/svnroot/freemol/trunk \$prefix/\$svnfreemol cd \$prefix/$svnfreemol/src/mpeg_encode export FREEMOL=\$prefix/\$svnfreemol/freemol ./configure make make install ########## Update Pymol-script-repo ############ cd \$prefix/\$pymolscriptrepo git pull origin master cd \$prefix EOF chmod +x $update </source> === Change MPEG settings === Change settings in <source lang="bash"> $HOME/Software/pymol/svnfreemol/freemol/libpy/freemol/mpeg_encode.py </source> For example, change in line 205:<br> FRAME_RATE 24<br> (Note, only legal values is allowed: 23.976, 24, 25, 29.97, 30, 50 ,59.94, 60) Then restart PyMOL. [[Category:Installation|Linux Installation]]
Summary:
Please note that all contributions to PyMOL Wiki are considered to be released under the GNU Free Documentation License 1.2 (see
PyMOL Wiki:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Search
Search
Editing
User:Tlinnet/Linux Install
(section)
Add topic