add framebuffer-vncserver

main
Links 2022-04-14 14:01:49 +02:00
rodzic 7a47d09fdd
commit b41a033c17
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 68FB9F01C0C482FC
3 zmienionych plików z 50 dodań i 0 usunięć

Wyświetl plik

@ -84,6 +84,15 @@ Main() {
# xrdp
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
stretch)
# your code here

Wyświetl plik

@ -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

Wyświetl plik

@ -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