Menu

Ubuntu on Windows10

Its been a while now, since MS decided to add a (somwhat more) GnuLinux compatible Subsystem to Windows 10.
Found the following Videoseries to be quite informative when it comes to the above Topic. Didnt knew that one can just
-> a) apt install build-essential & libgtk...dev to setup a working build-environment for SciTE.
-> b) And from that Step on, simply bashout from a windows commandshell with eg bash -c (make)
to see SciTE compile within the linuxshell.
Of course, this only works (easyly) for compiling a 64bit linux built, but at least, its a nice to have.
Oh, the other way around, on linux, they're utilizing binutils to look at the magicNumber to call within the win subsystem. (try cmd.exe)

As far as i can tell, the mechanism they use is quite similar to the way wine is working. (havin a server which accepts and translates (marshalls) syscalls.)

So, as far as i can tell. its still in beta state but worked out perfectly for the task above.

Add: Stumbled upon another Steampunky "DOS Trick".
The following one uses FOR to "detect" an already compiled Executables Platform:
https://gist.github.com/arjunae/2c6aa40fb08eb3760ee7d81ac7f23a00
::--------------------------------------------------
:: Btw: This funny steampunky findstr 'hack' looks for a platform PE Signature below offset 250
:: Tested and seems to work fine.

set PLAT=""
set off32=""
set off64=""

REM VC/GCC 120 Borland 130.
for /f "delims=:" %%A in ('findstr /o "^.*PE..L" ..\bin\SciTE.exe') do ( set off32=%%A )
if %off32% LEQ 250 set PLAT=WIN32

for /f "delims=:" %%A in ('findstr /o "^.*PE..d" ..\bin\SciTE.exe') do ( set off64=%%A )
if %off64% LEQ 250 set PLAT=WIN64

echo .... Targets platform [%PLAT%] ......
If [%PLAT%]==[WIN32] ( ....

Posted by Thorsten Kani 2017-06-13 Labels: ubuntuLayer wine steampunk

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.