1
- # Installation of McStas 2.X on Windows 64 bit systems - using WSL
1
+ # Installation of McStas 2.7.2 on Windows 64 bit systems - using WSL
2
2
* (WSL is the Windows Subsystem for Linux, aka. bash on Ubuntu on Windows)*
3
3
4
4
12
12
* Let the machine reboot if necessary
13
13
* Open the Windows store
14
14
* Search for Ubuntu
15
- * Install Ubuntu 16.04 LTS or 18 .04 LTS (other Linuxes are also
15
+ * Install e.g. Ubuntu 22 .04 LTS (other Linuxes are also
16
16
available, but we recommend Ubuntu)
17
17
* Click Launch to run the app and follow on-screen instructions
18
18
* To open it again later, simply issue bash in a terminal or through
19
19
the start menu
20
20
21
- ## Install the McStas 2.X Debian packages
21
+ ## Install the McStas 2.7.2 Debian packages
22
22
* Follow the
23
23
[ normal Debian installation instructions] ( ../../Linux/debian/README.md )
24
- - essentially a matter of sudo apt-get install mcstas-suite-python mcstas-suite-perl
24
+ - essentially a matter of sudo apt-get install mcstas-suite-python mcstas-suite-python
25
25
26
26
## Install Xming or another X11 server application
27
27
* Download and install Xming via https://sourceforge.net/projects/xming/
28
28
* Windows store also provides a $-ware called X410 from "Choung Networks"
29
- * If you are using wsl 2 ensure that the correct ip for you wsl session
30
29
31
30
## Optionally add a few commands at the end of your .bashrc:
32
31
``` bash
@@ -38,10 +37,7 @@ user name
38
37
``` bash
39
38
# cd to the home dir of your windows user
40
39
cd /mnt/c/Users/pwill
41
- ```
42
- If you installed wsl version 1
43
- ```
44
- # Add the DISPLAY variable to talk to Xming for wsl version 1
40
+ # Add the DISPLAY variable to talk to Xming
45
41
export DISPLAY=:0.0
46
42
```
47
43
if you installed wsl version 2 your ubuntu session has a unique ip
@@ -59,7 +55,7 @@ DISPLAY=:0.0)
59
55
60
56
## Configuring McStas to use the Windows browser
61
57
* Ensure the package ubuntu-wsl (or equivalent) is installed
62
- * Set the BROWSER="wslview" in your /usr/share/mcstas/3.0 /tools/Python/mccodelib/mccode_config.py
58
+ * Set the BROWSER="wslview" in your /usr/share/mcstas/2.7.2 /tools/Python/mccodelib/mccode_config.py
63
59
64
60
## In case of issues
65
61
Please report any trouble with the repository to
[ mcstas-users
] ( mailto:[email protected] )
0 commit comments