Adds special powers to your PEMFC fuel cell models.
This guide will help you run your PEMFC fuel cell models in docker containers with WSL2 on Windows 10 using Ubuntu 20.04 LTS as a Linux distribution and VcXsrv windows X server to run PEMFC fuel cell models in a graphical display.
Note: This project was developed for private research. DISPLAY variable was set in the container.
- Windows 10 with WSL2 installed
- Docker Desktop for Windows
- VcXsrv windows X server
- Make sure Docker Desktop and VcXsrv window X server is not running.
- Open WSL2 and edit: /etc/ssh/sshd_config and make sure "X11Forwarding yes" and "X11UseLocalhost yes" is uncommented.
sudo apt-key del 7fa2af80
wget https://developer.download.nvidia.com/compute/cuda/repos/wsl-ubuntu/x86_64/cuda-wsl-ubuntu.pin
sudo mv cuda-wsl-ubuntu.pin /etc/apt/preferences.d/cuda-repository-pin-600
wget https://developer.download.nvidia.com/compute/cuda/11.8.0/local_installers/cuda-repo-wsl-ubuntu-11-8-local_11.8.0-1_amd64.deb
sudo dpkg -i cuda-repo-wsl-ubuntu-11-8-local_11.8.0-1_amd64.deb
sudo cp /var/cuda-repo-wsl-ubuntu-11-8-local/cuda-*-keyring.gpg /usr/share/keyrings/
sudo apt-get update
sudo apt-get -y install cuda
-
Open Windows Defender Firewall with Advanced Security and create a new inbound firewall rule.
-
Click New Rule and Select Program
-
Select Browse and open the folder to C:\Program Files\VcXsrv and select vcxsrv.exe
-
Select Allow the connection and make sure Domain/Private/Public is checked
-
Name the new rule "VcXsrv X Server"
-
Follow same the procedure for xlaunch.exe and name the new rule "VcXsrv X Launch"
-
Start VcXsrv
-
Select multiple windows and display number -1
-
Select start with no client
-
Select clipboard, Primary selection , disable access control and unselect Native opengl
-
Select Finish
docker pull emcca029/fcalpha:latest
docker run -it --gpus all fc-alpha /bin/bash
su - developer
pcmanfm


