-
-
Notifications
You must be signed in to change notification settings - Fork 233
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.