Skip to content

Commit

Permalink
Initial commit, add bin, lib, icon
Browse files Browse the repository at this point in the history
  • Loading branch information
XK9274 committed Oct 18, 2023
1 parent 81e8205 commit fccf3e8
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 0 deletions.
Binary file added static/build/.tmp_update/bin/vncserver
Binary file not shown.
6 changes: 6 additions & 0 deletions static/packages/App/VNC Server/App/VNCServer/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"label": "VNC Server",
"icon": "icon/icon.png",
"launch": "launch.sh",
"description": "Launches a VNC server"
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
28 changes: 28 additions & 0 deletions static/packages/App/VNC Server/App/VNCServer/launch.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#!/bin/sh
vnc_dir=`dirname $0`
export sysdir=/mnt/SDCARD/.tmp_update
export miyoodir=/mnt/SDCARD/miyoo
export LD_LIBRARY_PATH="$vnc_dir/lib:/lib:/config/lib:$miyoodir/lib:$sysdir/lib:$sysdir/lib/parasyte"
export PATH="$sysdir/bin:$PATH"

IP=$(ip route get 1 | awk '{print $NF;exit}')

if pgrep vncserver > /dev/null; then
killall -9 vncserver
# infoPanel -t "VNC Server Shutdown" -m "VNC Server Shutdown" --auto &
else
vncserver -k /dev/input/event0 -F 30 -r 180 &
# infoPanel -t "Launching VNC Server" -m "VNC Server has been launched: \n $IP:5900" --auto &
fi

# ./vncserver [-f device] [-p port] [-t touchscreen] [-k keyboard] [-r rotation] [-R touchscreen rotation] [-F FPS] [-v] [-h]
# -p port: VNC port, default is 5900
# -f device: framebuffer device node, default is /dev/fb0
# -k device: keyboard device node (example: /dev/input/event0)
# -t device: touchscreen device node (example:/dev/input/event2)
# -r degrees: framebuffer rotation, default is 0
# -R degrees: touchscreen rotation, default is same as framebuffer rotation
# -F FPS: Maximum target FPS, default is 10
# -v: verbose
# -h: print this help

Binary file not shown.

0 comments on commit fccf3e8

Please sign in to comment.