-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathWSL.txt
More file actions
24 lines (22 loc) · 1.55 KB
/
Copy pathWSL.txt
File metadata and controls
24 lines (22 loc) · 1.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
1) WSL has no persistency. It may stop VM if no wsl command from host is running.
To fix this I use trick in WSL/Ubuntu.bat
2) The most convenient way to work with WSL is to launch ubuntu application
3) Geant4 for clean WSL ubuntu 22:
sudo apt update && sudo apt upgrade
# Some are for geant4, some are generally useful
sudo apt-get install build-essential xwayland xauth gedit openssl libssl-dev libssl1.0 libgl1-mesa-dev qtbase5-dev qtdeclarative5-dev qt5-qmake libqt5x11extras5 mesa-common-dev libglu1-mesa-dev gifsicle smartmontools gifsicle gnome-terminal git cmake python3-pip freeglut3-dev mesa-utils nautilus -y
# For gnome terminal set locales and then reboot
sudo localectl set-locale LANG="en_US.UTF-8"
# Fixing graphics bugs: https://www.reddit.com/r/bashonubuntuonwindows/comments/18fkhn8/weird_graphical_glitchproblem_in_ubuntu_wslg/
sudo add-apt-repository ppa:oibaf/graphics-drivers
sudo apt update && sudo apt upgrade
# Updating mesa drivers to lastest version:
sudo add-apt-repository ppa:kisak/kisak-mesa
sudo apt update && sudo apt upgrade
# Installing VScode via apt-get is too long a procedure.
sudo snap install --classic code
# Geant4 dependencies
sudo apt-get install libxmu-dev libcurl4-openssl-dev -y
# Launching WSL with gnome terminal by default: https://www.reddit.com/r/bashonubuntuonwindows/comments/51f7ni/how_to_run_gnome_terminal_on_wsl/?rdt=65467
wsl ~ -e sh -c "DISPLAY=:0 gnome-terminal" && exit
# Xerces for Geant4 must be built from source, see Geant4 isntallation guide. Use -Dnetwork-accessor=curl