Running Linux PureBasic on windows 10 using WSL

Linux specific forum
User avatar
aszid
Enthusiast
Enthusiast
Posts: 162
Joined: Thu May 01, 2003 8:38 pm
Location: California, USA
Contact:

Running Linux PureBasic on windows 10 using WSL

Post 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
--Aszid--

Making crazy people sane, starting tomorrow.
nsstudios
Enthusiast
Enthusiast
Posts: 274
Joined: Wed Aug 28, 2019 1:01 pm
Location: Serbia
Contact:

Re: Running Linux PureBasic on windows 10 using WSL

Post 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.
User avatar
mk-soft
Always Here
Always Here
Posts: 5313
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: Running Linux PureBasic on windows 10 using WSL

Post 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.
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
nsstudios
Enthusiast
Enthusiast
Posts: 274
Joined: Wed Aug 28, 2019 1:01 pm
Location: Serbia
Contact:

Re: Running Linux PureBasic on windows 10 using WSL

Post 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?)
Post Reply