Skip to content

Commit

Permalink
Merge pull request #361 from Juphex/master
Browse files Browse the repository at this point in the history
Change installation for GUI Support
  • Loading branch information
wouter-heerwegh authored Nov 12, 2023
2 parents 40ced2d + 737ddba commit c1f1a2a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion docs/getting-started-with-ros.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ The ROS bridge works on Ubuntu or in WSL in windows (but it is harder to set up)
If you have the simulator running on windows we reccommend Windows Subsystem for Linux.
This offers a virtual Ubuntu machine within Windows.
You can read [here how to install it](software-install-instructions.md).
While you are at it you might also want to [install Xming](software-install-instructions.md) so you can run rviz and rqt_plot from within WSL.
While you are at it you might also want to [add GUI support](software-install-instructions.md) so you can run rviz and rqt_plot from within WSL.

## Requirements

Expand Down
7 changes: 2 additions & 5 deletions docs/software-install-instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,8 @@ source ~/Formula-Student-Driverless-Simulator/ros/devel/setup.bash

Be sure to replace `melodic` with your specific version

## Gui applications from WSL (Xming)
## Gui applications from WSL
By default, if you are running Windows Subsystem for Linux with Ubuntu, you can't run gui applications.
This is super annoying if you want to use rqt applicatoins like rviz or rqt_plot.
It is easy to get this working though!
Just install [Xming](https://sourceforge.net/projects/xming/) on windows, and run it.
Next, go into the Ubuntu terminal and run `export DISPLAY=:0`.
Now you can run any all them gui apps!
You can even add `export DISPLAY=:0` to your `~/.bashrc` to always be able to use gui apps without having to manually run export.
Just follow this guide https://ubuntu.com/tutorials/install-ubuntu-on-wsl2-on-windows-11-with-gui-support#1-overview. They require Ubuntu 20.04 but it also works fine for Ubuntu 18.04. If there are any trouble, follow along this post https://github.com/microsoft/WSL/issues/6430#issuecomment-881766991.

0 comments on commit c1f1a2a

Please sign in to comment.