... | @@ -26,10 +26,10 @@ for detailed instructions how to enable WSL or WSL 2. |
... | @@ -26,10 +26,10 @@ for detailed instructions how to enable WSL or WSL 2. |
|
|
|
|
|
* You will then need to create a user account and password for your new Linux distribution
|
|
* You will then need to create a user account and password for your new Linux distribution
|
|
|
|
|
|
### X11 server for Windows or building WSlg server
|
|
### X11 server for Windows or building WSLg server
|
|
|
|
|
|
The latest evrsion of Windows 10 and Windows 11 has WSLg code
|
|
The latest version of Windows 10 and Windows 11 has WSLg code
|
|
fully integrated to WSL2 , no separate X11 server was nessessaraly.
|
|
fully integrated to WSL2 , no separate X11 server was necessary.
|
|
|
|
|
|
See: _https://github.com/microsoft/wslg_ for more info
|
|
See: _https://github.com/microsoft/wslg_ for more info
|
|
|
|
|
... | @@ -62,10 +62,10 @@ or you will be not able to use Geant4 graphics.* |
... | @@ -62,10 +62,10 @@ or you will be not able to use Geant4 graphics.* |
|
The only way is to use the X11 server for Windows : Disable access control in X11 server and use the default router (local IP address of Windows machine) for display settings.
|
|
The only way is to use the X11 server for Windows : Disable access control in X11 server and use the default router (local IP address of Windows machine) for display settings.
|
|
|
|
|
|
If you use *Xcxsrv* you will see the option Disable access control
|
|
If you use *Xcxsrv* you will see the option Disable access control
|
|
when you launch the server using *Xlaunch*, then start *AlamLinux 9* application
|
|
when you launch the server using *Xlaunch*, then start *AlmaLinux 9* application
|
|
|
|
|
|
In *MobaXterm* go to Setting->X11->X11 remote access and choose "full",
|
|
In *MobaXterm* go to Setting->X11->X11 remote access and choose "full",
|
|
then in Section choose WSL and coose "AlamLinux 9" distribution.
|
|
then in Section choose WSL and choose "AlmaLinux 9" distribution.
|
|
|
|
|
|
On WSL2 use the command:
|
|
On WSL2 use the command:
|
|
`export DISPLAY=`ip route | awk '/default/ {print $3; exit}'`:0.0`
|
|
`export DISPLAY=`ip route | awk '/default/ {print $3; exit}'`:0.0`
|
... | @@ -77,7 +77,7 @@ or you will be not able to use Geant4 graphics.* |
... | @@ -77,7 +77,7 @@ or you will be not able to use Geant4 graphics.* |
|
### Installing Geant4 and Root on WSL
|
|
### Installing Geant4 and Root on WSL
|
|
|
|
|
|
The big advantage of WSL installation, the WSL applications are binary compatible with application which you can run on the same Linux installed on physical computer. You can copy the applications/libraries between physical machines and
|
|
The big advantage of WSL installation, the WSL applications are binary compatible with application which you can run on the same Linux installed on physical computer. You can copy the applications/libraries between physical machines and
|
|
wls machines running the same Linux distribution.
|
|
WSL machines running the same Linux distribution.
|
|
|
|
|
|
Make sure you has "Server with GUI" installed in you VM.
|
|
Make sure you has "Server with GUI" installed in you VM.
|
|
|
|
|
... | @@ -100,10 +100,10 @@ To test you installation you can follow the procedure described in [Install Gean |
... | @@ -100,10 +100,10 @@ To test you installation you can follow the procedure described in [Install Gean |
|
export DISPLAY=`ip route | awk '/default/ {print $3; exit}'`:0.0
|
|
export DISPLAY=`ip route | awk '/default/ {print $3; exit}'`:0.0
|
|
to setup display. If you use **MobaXTerm** or other external X11 server
|
|
to setup display. If you use **MobaXTerm** or other external X11 server
|
|
|
|
|
|
- All environment variables related to laguage
|
|
- All environment variables related to language
|
|
(LANGUAGE, LANG, LC_* ) are set to C.UTF-8 in ubuntu wls.
|
|
(LANGUAGE, LANG, LC_* ) are set to C.UTF-8 in ubuntu wls.
|
|
If you see the warnings when connect to another machine via ssh,
|
|
If you see the warnings when connect to another machine via ssh,
|
|
use f.e. : export LC_ALL=un_US.UTF-8 TODO
|
|
use f.e. : export LC_ALL=en_US.UTF-8 TODO
|
|
|
|
|
|
- Geant4
|
|
- Geant4
|
|
- You check the Geant4 datasets installation using the command:
|
|
- You check the Geant4 datasets installation using the command:
|
... | | ... | |