flat assembler
Message board for the users of flat assembler.

Index > Linux > rwasa with Angular

Author
Thread Post new topic Reply to topic
donn



Joined: 05 Mar 2010
Posts: 321
donn 03 Aug 2020, 19:12
Hi, researching webserver alternatives to some tiny apps with Angular FE, Python BE.

In dev, Angular uses ng serve with webpack-dev-server. The backend uses Flask.

In prod, webpack-dev-server is not enough, so one common alternative is nginx. This got me thinking about rwasa.

On a Windows box, I have Windows Subsystem for Linux. Is rwasa supported here? I'm getting the following:

Code:
donn@DESKTOP-14N7ABI:/mnt/c/Users/donn/downloads/HeavyThing-1.24$ ./rwasa/rwasa -bind 2090 -sandbox ../var/www/html
setgid() failed.    
Post 03 Aug 2020, 19:12
View user's profile Send private message Reply with quote
redsock



Joined: 09 Oct 2009
Posts: 435
Location: Australia
redsock 03 Aug 2020, 22:02
rwasa's master.inc file, among the first lines of it actually are the calls to setgid and setuid along with detaching from the controlling terminal.

You can comment out the relevant lines and recompile it and see how you go Smile I didn't really consider WSL when I wrote it.

Cheers

_________________
2 Ton Digital - https://2ton.com.au/
Post 03 Aug 2020, 22:02
View user's profile Send private message Reply with quote
donn



Joined: 05 Mar 2010
Posts: 321
donn 04 Aug 2020, 18:15
Interesting, I commented out the following:

Code:
        mov     eax, syscall_setgid
        mov     rdi, [runasgid]
        ;syscall
        ;test   eax, eax
        ;jnz    .setgidfail
        mov     eax, syscall_setuid
        mov     rdi, [runasuid]
        ;syscall
        ;test   eax, eax
        ;jnz    .setuidfail

        ; deal with detaching
        cmp     dword [background], 0
        je      .skip_detach
    


for starters. Once my Linux env is more set up, I'll try and report back. Currently getting:

Code:
donn@DESKTOP-14N7AAI:/mnt/c/users/donn/downloads/HeavyThing-1.24/rwasa$ fasm master.inc
-bash: /usr/bin/fasm: cannot execute binary file: Exec format error
donn@DESKTOP-14N7AAI:/mnt/c/users/donn/downloads/HeavyThing-1.24/rwasa$ fasm
-bash: /usr/bin/fasm: cannot execute binary file: Exec format error
    


which can occur when running on the wrong platform. May need to get a real system instead of this WSL at some point.
Post 04 Aug 2020, 18:15
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.