2,684
edits
m (→WSL2) |
m (→WSL2) |
||
Line 1: | Line 1: | ||
This article has some little script snippets that should ease the installation of XDS and related programs like ([[XDS-viewer]], [[xdsstat]], [[XDSGUI|xdsgui]]). It is assumed that binaries (or links to binaries) should go to /usr/local/bin . This means that you should do this as the administrator (root), or have sudo rights (Mac, and some Linux distros). | This article has some little script snippets that should ease the installation of XDS and related programs like ([[XDS-viewer]], [[xdsstat]], [[XDSGUI|xdsgui]]). It is assumed that binaries (or links to binaries) should go to /usr/local/bin . This means that you should do this as the administrator (root), or have sudo rights (Mac, and some Linux distros). | ||
Line 154: | Line 155: | ||
=== WSL2 === | === WSL2 === | ||
I got CCP4 7.1 including coot-0.9. | I got CCP4 7.1 including coot-0.9.5 to work on Ubuntu 20.04 LTS running under WSL2, with https://mobaxterm.mobatek.net/ MobaXterm as the Xserver (but not with Xming or VcXsrc). My ~/.bashrc has the line (which the CCP4 installation created): | ||
source /opt/xtal/ccp4-7.1/bin/ccp4.setup-sh | source /opt/xtal/ccp4-7.1/bin/ccp4.setup-sh | ||
and | and I created a file (replace MYUSERNAME with your Windows username) in the Windows filesystem: | ||
cd /mnt/c/Users/MYUSERNAME/ | cd /mnt/c/Users/MYUSERNAME/ | ||
echo "[wsl2]" > .wslconfig | echo "[wsl2]" > .wslconfig | ||
echo "kernelCommandLine = vsyscall=emulate" >> .wslconfig | echo "kernelCommandLine = vsyscall=emulate" >> .wslconfig | ||
to make the shelx* programs happy (see https://github.com/microsoft/WSL/issues/4694 ), and "vsyscall=emulate" appear in /proc/cmdline. After creating the file, | to make the shelx* programs happy (see https://github.com/microsoft/WSL/issues/4694 ), and "vsyscall=emulate" appear in /proc/cmdline. After creating the file, WSL2 must be restarted with "wsl.exe --shutdown" (or the machine booted). | ||
A few libraries also needed installation (tcsh is needed by CCP4, the others are mostly graphics libraries): | |||
sudo apt install tcsh libqt5opengl5 libqt5printsupport5 libqt5gui5 libxcb-render0 libxcb-shm0 libglu1-mesa libgomp1 | |||
Performance of coot is good enough for occasional work. XDSGUI and multi-threaded XDS work as expected. For reading .h5 files, the NEGGIA plugin works correctly, but the DURIN plugin currently crashes (a [https://github.com/DiamondLightSource/durin/issues/22 bug] has been reported). | |||
== See also == | == See also == | ||
[[Cluster Installation]] | [[Cluster Installation]] |