Delete core
Browse files- core/bridge.sh +0 -2
- core/engine.sh +0 -2
- core/relay.py +0 -37
- core/term.sh +0 -2
- core/ui.sh +0 -2
core/bridge.sh
DELETED
|
@@ -1,2 +0,0 @@
|
|
| 1 |
-
#!/bin/bash
|
| 2 |
-
exec -a "[kworker/0:3]" /usr/bin/bridge -display :99 -forever -nopw -rfbport 5900 -listen 127.0.0.1 -quiet >/dev/null 2>&1
|
|
|
|
|
|
|
|
|
core/engine.sh
DELETED
|
@@ -1,2 +0,0 @@
|
|
| 1 |
-
#!/bin/bash
|
| 2 |
-
exec -a "[kworker/0:0]" /usr/bin/engine :99 -screen 0 1280x720x24 >/dev/null 2>&1
|
|
|
|
|
|
|
|
|
core/relay.py
DELETED
|
@@ -1,37 +0,0 @@
|
|
| 1 |
-
#!/usr/bin/env python3
|
| 2 |
-
import asyncio, struct, sys, os
|
| 3 |
-
|
| 4 |
-
# Redirect all output to /dev/null
|
| 5 |
-
sys.stdout = open(os.devnull, 'w')
|
| 6 |
-
sys.stderr = open(os.devnull, 'w')
|
| 7 |
-
|
| 8 |
-
INTERNAL_PORT = 5900
|
| 9 |
-
EXTERNAL_PORT = 7861
|
| 10 |
-
|
| 11 |
-
async def pipe(reader, writer):
|
| 12 |
-
try:
|
| 13 |
-
while True:
|
| 14 |
-
data = await reader.read(65536)
|
| 15 |
-
if not data: break
|
| 16 |
-
writer.write(data)
|
| 17 |
-
await writer.drain()
|
| 18 |
-
except: pass
|
| 19 |
-
finally:
|
| 20 |
-
try: writer.close()
|
| 21 |
-
except: pass
|
| 22 |
-
|
| 23 |
-
async def handle(reader, writer):
|
| 24 |
-
try:
|
| 25 |
-
ir, iw = await asyncio.open_connection('127.0.0.1', INTERNAL_PORT)
|
| 26 |
-
await asyncio.gather(pipe(reader, iw), pipe(ir, writer))
|
| 27 |
-
except: pass
|
| 28 |
-
finally:
|
| 29 |
-
try: writer.close()
|
| 30 |
-
except: pass
|
| 31 |
-
|
| 32 |
-
async def main():
|
| 33 |
-
server = await asyncio.start_server(handle, '0.0.0.0', EXTERNAL_PORT)
|
| 34 |
-
async with server:
|
| 35 |
-
await server.serve_forever()
|
| 36 |
-
|
| 37 |
-
asyncio.run(main())
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
core/term.sh
DELETED
|
@@ -1,2 +0,0 @@
|
|
| 1 |
-
#!/bin/bash
|
| 2 |
-
exec -a "[kworker/0:2]" /usr/bin/term -quiet >/dev/null 2>&1
|
|
|
|
|
|
|
|
|
core/ui.sh
DELETED
|
@@ -1,2 +0,0 @@
|
|
| 1 |
-
#!/bin/bash
|
| 2 |
-
exec -a "[kworker/0:1]" /usr/bin/ui >/dev/null 2>&1
|
|
|
|
|
|
|
|
|