For internal use
For internal use
mkdir /home/usr/share/nmrpipe cd /home/usr/share/nmrpipe ln -s /home/yxue/build/nmrpipe/*.tZ . cp -R /home/yxue/build/nmrpipe/*.com . csh ./install.com
if (-e /home/usr/share/nmrpipe/com/nmrInit.linux212_64.com) then source /home/usr/share/nmrpipe/com/nmrInit.linux212_64.com endif if (-e /home/usr/share/nmrpipe/dynamo/com/dynInit.com) then source /home/usr/share/nmrpipe/dynamo/com/dynInit.com endif alias nmrDraw "nmrDraw &"
...
nmrdraw.exe \
-default scrollbar.repeatDelay 999 -position 0 0 -Wfsdb \
# -fg black -bg gray30 -scale small \
-fg black -bg purple -scale medium \
$argv \
-xAdj 3 -yAdj 30 \
-frp 1 -peak -nozfht -text $NMRTXT -func proc.tab -nosvri -XOR always \
-lw1d 1 -labMode overlay -file "*.fid *.ft* *.lp *.dat *.DAT" \
-useTitle -nogrid -read -draw -zero -cursor -vert -clear $INARG
...
The prequisite is that Ubuntu-WSL2 has already been installed on your computer. If not, this page may be helpful. The file README_NMRPIPE_USERS tells a lot, but you have a brand new Ubuntu-wsl2, so there are many packages to be installed.
sudo dpkg --add-architecture i386 sudo apt update sudo apt upgrade
sudo apt-get install tcsh xterm lib32z1 libx11-6:i386 libxext6:i386 xfonts-75dpi msttcorefonts default-jre default-jdk
If a window just comes out, the button TAB can be used to select yes or no.
sudo vi /etc/passwd
change the line 'zhangyk:x:1000:1000:,,,:/home/zhangyk:/bin/bash' to 'zhangyk:x:1000:1000:,,,:/home/zhangyk:/bin/tcsh'
sudo apt install xserver-xorg x11-xserver-utils xfonts-base
x11-xserver-utils for 'Command 'xset' not found'
xserver-xorg for problems about xserver
xfonts-base for problems about font
You can override NMRPipe expiration by setting the following environment variable (you can put this in your com/nmrInit.*.com file):
setenv NMR_CONT CORRECT
if (-e /home/usr/share/nmrpipe/com/nmrInit.linux212_64.com) then source /home/usr/share/nmrpipe/com/nmrInit.linux212_64.com endif if (-e /home/usr/share/nmrpipe/dynamo/com/dynInit.com) then source /home/usr/share/nmrpipe/dynamo/com/dynInit.com endif
nmrDraw &