Artix Linux Forum

Init systems => runit => Topic started by: AntonyZ0 on 10 July 2025, 14:15:56

Title: Remotepc
Post by: AntonyZ0 on 10 July 2025, 14:15:56
Hello, I have installed the remotepc app, but I'm unsure how to start the daemon since I'm not using systemd!
Could you give me any ideas?
Title: Re: Remotepc
Post by: calvinh on 10 July 2025, 14:31:41
Try to learn how to write a service file for the service, then read the runit wiki page (https://wiki.artixlinux.org/Main/Runit)
Title: Re: Remotepc
Post by: AntonyZ0 on 23 July 2025, 15:30:13
Can you give me the basic instructions?
I have created /etc/runit/service/remotepc/run and given it executable rights.
The file contains the following text:
Code: [Select]
#!/bin/sh
export ELECTRON_RUN_AS_NODE=1
export APP=remotepc
export NODE_ENV=PROD

exec /opt/remotepc/remotepc /opt/remotepc/resources/app.asar/node_modules/daemon/
 

After I executed 

Code: [Select]
sudo ln -s /etc/runit/service/remotepc /run/runit/service/      


Unfortunately, it doesn't work.

Code: [Select]
sv restart remotepc
timeout: down: remotepc: 0s, normally up, want up
❯ sudo sv status remotepc
down: remotepc: 0s, normally up, want up
Title: Re: Remotepc
Post by: AntonyZ0 on 23 July 2025, 15:52:53
I noticed this:

Code: [Select]
sudo /usr/bin/env ELECTRON_RUN_AS_NODE=1 APP=remotepc NODE_ENV=PROD /opt/remotepc/remotepc /opt/remotepc/resources/app.asar/node_modules/daemon/
2025-07-23 16.52.32:804 |  error  | uncaughtException: libsystemd.so.0: cannot open shared object file: No such file or directory
Error: libsystemd.so.0: cannot open shared object file: No such file or directory
    at process.func [as dlopen] (node:electron/js2c/node_init:2:2214)
    at Module._extensions..node (node:internal/modules/cjs/loader:1343:18)
    at Object.func [as .node] (node:electron/js2c/node_init:2:2441)
    at Module.load (node:internal/modules/cjs/loader:1098:32)
    at Module._load (node:internal/modules/cjs/loader:945:12)
    at c._load (node:electron/js2c/node_init:2:13672)
    at Module.require (node:internal/modules/cjs/loader:1122:19)
    at require (node:internal/modules/helpers:130:18)
    at bindings (/opt/remotepc/resources/app.asar/node_modules/bindings/bindings.js:112:48)
    at Object.<anonymous> (/opt/remotepc/resources/app.asar/node_modules/daemon-native-utility/release/index.js:10:40)
    at Module._compile (node:internal/modules/cjs/loader:1256:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1311:10)
    at Module.load (node:internal/modules/cjs/loader:1098:32)
    at Module._load (node:internal/modules/cjs/loader:945:12)
    at c._load (node:electron/js2c/node_init:2:13672)
    at Module.require (node:internal/modules/cjs/loader:1122:19)
    at require (/opt/remotepc/resources/app.asar/node_modules/bytenode/index.js:207:19)
    at Object.<anonymous> (evalmachine.<anonymous>:1:342)
    at Module._extensions.<computed> [as .jsc] (/opt/remotepc/resources/app.asar/node_modules/bytenode/index.js:228:26)
    at Module.load (node:internal/modules/cjs/loader:1098:32)
    at Module._load (node:internal/modules/cjs/loader:945:12)
    at c._load (node:electron/js2c/node_init:2:13672)
    at Module.require (node:internal/modules/cjs/loader:1122:19)
    at require (/opt/remotepc/resources/app.asar/node_modules/bytenode/index.js:207:19)
    at Object.<anonymous> (evalmachine.<anonymous>:1:921)
    at Module._extensions.<computed> [as .jsc] (/opt/remotepc/resources/app.asar/node_modules/bytenode/index.js:228:26)
    at Module.load (node:internal/modules/cjs/loader:1098:32)
    at Module._load (node:internal/modules/cjs/loader:945:12)
    at c._load (node:electron/js2c/node_init:2:13672)
    at Module.require (node:internal/modules/cjs/loader:1122:19)
    at require (/opt/remotepc/resources/app.asar/node_modules/bytenode/index.js:207:19)
    at Object.<anonymous> (evalmachine.<anonymous>:1:432)
    at Module._extensions.<computed> [as .jsc] (/opt/remotepc/resources/app.asar/node_modules/bytenode/index.js:228:26)
    at Module.load (node:internal/modules/cjs/loader:1098:32)
    at Module._load (node:internal/modules/cjs/loader:945:12)
    at c._load (node:electron/js2c/node_init:2:13672)
    at Module.require (node:internal/modules/cjs/loader:1122:19)
    at require (/opt/remotepc/resources/app.asar/node_modules/bytenode/index.js:207:19)
    at Object.<anonymous> (evalmachine.<anonymous>:1:1292)
    at Module._extensions.<computed> [as .jsc] (/opt/remotepc/resources/app.asar/node_modules/bytenode/index.js:228:26)
    at Module.load (node:internal/modules/cjs/loader:1098:32)
    at Module._load (node:internal/modules/cjs/loader:945:12)
    at c._load (node:electron/js2c/node_init:2:13672)
    at Module.require (node:internal/modules/cjs/loader:1122:19)
    at require (node:internal/modules/helpers:130:18)
    at Object.<anonymous> (/opt/remotepc/resources/app.asar/node_modules/daemon/starter/daemon.js:2:1)
    at Module._compile (node:internal/modules/cjs/loader:1256:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1311:10)
    at Module.load (node:internal/modules/cjs/loader:1098:32)
    at Module._load (node:internal/modules/cjs/loader:945:12)
(node:26976) [DEP0111] DeprecationWarning: Access to process.binding('http_parser') is deprecated.
(Use `remotepc --trace-deprecation ...` to show where the warning was created)
(node:26976) NOTE: The AWS SDK for JavaScript (v2) is in maintenance mode.
 SDK releases are limited to address critical bug fixes and security issues only.

Please migrate your code to use AWS SDK for JavaScript (v3).
For more information, check the blog post at https://a.co/cUPnyil
Title: Re: Remotepc
Post by: nous on 23 July 2025, 17:41:26
Is this from  the AUR? They've compiled it against systemd, you can't (easily) run it in Artix.
Title: Re: Remotepc
Post by: AntonyZ0 on 30 July 2025, 10:19:48
Yes it is from AUR! Any ideas?
Title: Re: Remotepc
Post by: nous on 30 July 2025, 21:06:50
Yes, it's closed-source precompiled against systemd and you'd be better off using some other solution. Unless you can successfully request a clean binary.