kopia lustrzana https://github.com/Links2004/x6100-armbian
add framebuffer-vncserver
rodzic
7a47d09fdd
commit
b41a033c17
|
@ -84,6 +84,15 @@ Main() {
|
||||||
# xrdp
|
# xrdp
|
||||||
adduser xrdp ssl-cert
|
adduser xrdp ssl-cert
|
||||||
|
|
||||||
|
# framebuffer-vncserver
|
||||||
|
/root/framebuffer-vncserver-build.sh
|
||||||
|
|
||||||
|
# cleanup image
|
||||||
|
rm -rf /root/build/
|
||||||
|
apt-get clean
|
||||||
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
|
||||||
case $RELEASE in
|
case $RELEASE in
|
||||||
stretch)
|
stretch)
|
||||||
# your code here
|
# your code here
|
||||||
|
|
|
@ -0,0 +1,10 @@
|
||||||
|
[Unit]
|
||||||
|
Description=Framebuffer VNC Server for TFT Display
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=simple
|
||||||
|
PIDFile=/var/run/fbvnc.pid
|
||||||
|
ExecStart=/usr/local/bin/framebuffer-vncserver -f /dev/fb0 -p 5902
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
|
@ -0,0 +1,31 @@
|
||||||
|
#!/bin/bash
|
||||||
|
set -e
|
||||||
|
|
||||||
|
BASE_DIR=/root/build/framebuffer-vncserver
|
||||||
|
|
||||||
|
mkdir -p /root/build
|
||||||
|
cd /root/build
|
||||||
|
|
||||||
|
if [ ! -e "${BASE_DIR}" ] ; then
|
||||||
|
git clone --depth=1 https://github.com/ponty/framebuffer-vncserver.git
|
||||||
|
fi
|
||||||
|
|
||||||
|
cd "${BASE_DIR}"
|
||||||
|
git pull
|
||||||
|
|
||||||
|
if [ -e "${BASE_DIR}/build" ] ; then
|
||||||
|
rm -rf "${BASE_DIR}/build"
|
||||||
|
fi
|
||||||
|
|
||||||
|
mkdir -p "${BASE_DIR}/build"
|
||||||
|
cd "${BASE_DIR}/build"
|
||||||
|
|
||||||
|
cmake ..
|
||||||
|
make
|
||||||
|
|
||||||
|
make install
|
||||||
|
|
||||||
|
# cleanup
|
||||||
|
if [ -e "${BASE_DIR}/build" ] ; then
|
||||||
|
rm -rf "${BASE_DIR}/build"
|
||||||
|
fi
|
Ładowanie…
Reference in New Issue