Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/githubuser0xffff/ursim-wsl
Project for running ursim in WSL2
https://github.com/githubuser0xffff/ursim-wsl
Last synced: 25 days ago
JSON representation
Project for running ursim in WSL2
- Host: GitHub
- URL: https://github.com/githubuser0xffff/ursim-wsl
- Owner: githubuser0xFFFF
- Created: 2024-11-28T12:29:37.000Z (25 days ago)
- Default Branch: master
- Last Pushed: 2024-11-28T12:37:39.000Z (25 days ago)
- Last Synced: 2024-11-28T13:32:29.839Z (25 days ago)
- Size: 55.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Running ursim docker container in WSL2
The following instructions show how to use the `docker-compose.yml` file to
setup a docker container with ursim.To run docker container in WSL2, you need to have WSL2 and docker engine installed.
If you do not have them installed then follow the steps in[Install WSL2](#install-wsl2)
[Install Docker Desktop](#install-docker-desktop)
## Clone this ursim repositiory
Open your WSL2 terminal and clone this repository via `git clone` into
`docker/ursim` folder in your home folder.## Create and start docker container
`cd` into `docker/ursim` and execute the following command:
```bash
docker compose up -d
````This should start and run the docker container `ur5e_container`. You can check
in the docker desktop UI if the container is running.## Connect to VNC server
You have now two options to connect to ursim:
1. You can use a VNC client like [UltraVNC](https://uvnc.com/downloads/ultravnc.html) viewer
to connect to ursim using `localhost:5090`
2. You can connect via a browser using the Url [http://localhost:6080/vnc_auto.html](http://localhost:6080/vnc_auto.html).## Install WSL2
1. Open **PowerShell** as Administrator and install WSL if it isn't already installed:
```powershell
wsl --install
```This will install the default Linux distribution and set WSL2 as the default version.
1. Set WSL2 as Standard-Version
Run the following command
```powershell
wsl --set-default-version 2
```## Install Docker Desktop
1. Download and install Docker Desktop from the [official Docker website](https://www.docker.com/products/docker-desktop/).
2. During installation:
- Ensure the option **Use the WSL 2 based engine** is selected.
- Choose the Linux distributions to integrate with Docker.3. After installation, open Docker Desktop and go to **Settings** > **Resources** > **WSL Integration**:
- Enable integration with your WSL2 Linux distribution.![Docker Desktop](doc/docker_dektop.png)
4. Start Docker Desktop and verify that it's running.