Using SDL with Windows Subsystem for Linux - sdl-2

Using XMing I was able to run simple graphical applications on WSL such as gvim. Trying to run SDL2 applications doesn't work however. (SDL is unable to create the window). Is there a way to use SDL2 on WSL?

I use vcxsrv with WSL2 to run my SDL2 application. XMing worked for my on WSL1, but not WSL2. I have to uncheck native opengl and check disable access controls to get it to work. In WSL1 I had to export DISPLAY=:0 but in WSL2 I use export DISPLAY=$(cat /etc/resolv.conf | grep nameserver | awk '{print $2}'):0 for the DISPLAY environment variable.

Related

My PyCharm start with /usr/bin/sh instead of /bin/bash in Linux Mint and not changing manually

I have installed PyCharm CE 2019.3 on Linux Mint Tricia and when I start PyCharm, the inbuilt terminal starts with /usr/bin/sh when I type command which bash in it.
The default system interpreter in the PyCharm setting is also showing /usr/bin/python3.7 but I want to use /bin/python3.7. The terminal shell path in PyCharm setting is showing /bin/sh by default which looks correct and for cross check I changed it to /bin/bash but the terminal shell is not changing.
I don't want to use /usr/bin/bash and /usr/bin/python3 because I need to use pyinstaller which works well only with global Python3 interpreter. Thanks!
I tried different ways including different versions of PyCharm and Linux distros. The issue is occurring when I am installing PyCharm CE from software center in latest Ubuntu (19.04) and Linux Mint. The issue is not coming when I am installing the same in Ubuntu 18.04 but the best solution I have achieved is by installing the PyCharm CE using Jetbrains toolbox and the issue is not coming even in Linux Mint 19.3. Hope, it may help someone. Thanks!

How do I open a wsl workspace in VS Code for a different distro?

I have both Ubuntu and Debian installed for WSL. When I open a WSL workspace using VS Code remote development, it always opens Ubuntu. How can I open a workspace under the Debian install using WSL in VS Code?
The VS Code Remote - WSL extension always uses the default WSL distro. You can change the default distro using the wsl command (wslconfig on earlier windows versions):
# List the available distributions
wsl --list
# Set the default version to debian
wsl --setdefault debian
After changing the default for WSL, make sure to restart VS Code
Click the "remote button" in the bottom left
Choose New Window using Distro...
Pick your distro!

CLion not detecting cmake in WSL

I am trying to run the WSL toolchain on my Windows PC and have configured my WSL to run an SSH server, installed cmake etc. I am able to connect to the WSL SSH but for some reason CLion is not detecting the WSL cmake.
Any idea how I can go about fixing this ?
The problem could be the zsh shell! Try the standard bash. Perhaps it helps.

Use docker client without HyperV

My laptop came with Windows 10 Home, which does not have the HyperV feature. I would like to use docker-machine with the virtualbox driver, which should technically be possible without HyperV. But I can't install Docker in the first place because of missing HyperV. Is there a way around that?
Update I found Docker Toolbox! The documentation states that it is a legacy solution though.
you could install the linux subsystem on your windows machine:
https://learn.microsoft.com/en-us/windows/wsl/install-win10
i think this will allow you to install docker, and as long as you have a bash window open, the docker engine will remain active
EDIT: Docker for Windows is now available (without HyperV), this will run in the background and would probably be better

How to configure my sql in phabricator

How to run this cmd in windows OS
phabricator/ $ ./bin/storage upgrade
I am configuring the phabricator in windows machine using following post.
https://secure.phabricator.com/book/phabricator/article/configuration_guide/
other than configuring mysql everything is done.
https://secure.phabricator.com/book/phabricator/article/installation_guide/
To install the Phabricator server software, you will need an operating system on your normal computer which is not Windows. Note that the command line interface does work on Windows, and you can use Phabricator from any operating system with a web browser. However, the server software does not run on Windows. It does run on most other operating systems, so choose one of these instead:

Resources