Page 1 of 1

Running Linux PureBasic on windows 10 using WSL

Posted: Mon Apr 08, 2019 8:03 pm
by aszid
I've managed to fire up PureBasic on my windows machine, using the windows 10 WSL layer :)

If anyone else is interested in trying this out... Here's how:

- Install the WSL layer in windows ( https://docs.microsoft.com/en-us/window ... tall-win10 )
- Install Ubuntu from the windows store ( https://www.microsoft.com/en-us/p/ubunt ... verviewtab )
- Install XFCE and XRDP using these commands:

Code: Select all

sudo apt-get install xfce4 xrdp
sudo sed -i 's/port=3389/port=3390/g' /etc/xrdp/xrdp.ini
sudo service xrdp start
- Connect to the local XRDP session. Using Remote desktop, connect to localhost:3390
- Install PureBasic as you would on regular Ubuntu, and enyjoy!


Optionally..... If you wanted it to look more integrated, and run inside of windows... you can follow this guide to take your installation outside of xfce, to run Linux PureBasic in windows, as it's own window:

https://dev.to/david_j_eddy/run-linux-g ... ws-10-3130

Re: Running Linux PureBasic on windows 10 using WSL

Posted: Fri Feb 19, 2021 9:35 pm
by nsstudios
Thanks for the tip. I just set up wsl, and I'm trying to get pb set up, but I have problem with dependencies.
Check install says to do
sudo apt install gcc g++ libc6-dev libsdl1.2-dev libgtk-3-dev unixodbc-dev libgnome2-dev libxine2-dev libwebkitgtk-3.0-dev libxxf86vm-dev libwebkitgtk-dev libwebkitgtk-3.0-dev
but it returns:
E: Unable to locate package libgnome2-dev
E: Unable to locate package libwebkitgtk-3.0-dev
E: Couldn't find any package by glob 'libwebkitgtk-3.0-dev'
E: Couldn't find any package by regex 'libwebkitgtk-3.0-dev'
E: Unable to locate package libwebkitgtk-dev
E: Unable to locate package libwebkitgtk-3.0-dev
E: Couldn't find any package by glob 'libwebkitgtk-3.0-dev'
E: Couldn't find any package by regex 'libwebkitgtk-3.0-dev'
I'd be very greatful if you could tell me how you got around this.

Re: Running Linux PureBasic on windows 10 using WSL

Posted: Sat Feb 20, 2021 11:46 am
by mk-soft
The libgnome2 library is no longer needed.

The WegbGadget only works up to Ubuntu 18.xx,
Since the libwebkit is no longer available in that version.
There should be an update from PB for this soon.

Re: Running Linux PureBasic on windows 10 using WSL

Posted: Sat Feb 20, 2021 2:01 pm
by nsstudios
Thanks for the clarification. Hopefully the install file gets updated with the new dependencies.
I got it working by following all kinds of different lists from the forum, and at the end swapping the fasm for the x64 one, because the one provided fails to work under WSL (I wonder if that can be addressed in the next version as well?)