From 1dd637719ae05153134ae763afd05a69b7e8998c Mon Sep 17 00:00:00 2001 From: tobiglaser <76131623+tobiglaser@users.noreply.github.com> Date: Sat, 13 Aug 2022 00:29:34 +0200 Subject: [PATCH] fixes --- config/lxpanel/LXDE/panels/panel | 2 +- setup.sh | 11 ++++++++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/config/lxpanel/LXDE/panels/panel b/config/lxpanel/LXDE/panels/panel index 1f9b407..f77b5cd 100644 --- a/config/lxpanel/LXDE/panels/panel +++ b/config/lxpanel/LXDE/panels/panel @@ -41,7 +41,7 @@ Plugin { id=pcmanfm.desktop } Button { - id=lxde-x-www-browser.desktop + id=lxterminal.desktop } Button { id=arduinocontrol.desktop diff --git a/setup.sh b/setup.sh index d32a04b..e38bad6 100755 --- a/setup.sh +++ b/setup.sh @@ -52,7 +52,8 @@ echo " VNC Password: $mypasswd" echo " copying configuration files" sudo cp vnc/xstartup /home/$myuser/.vnc/xstartup - sudo cp -r config/ /home/$myuser/.config + sudo chmod +x /home/$myuser/.vnc/xstartup + sudo cp -r config/* /home/$myuser/.config/ done @@ -62,7 +63,11 @@ sudo apt -qq install -qq -y tightvncserver echo " Checking for autostart service." - VNC=$(systemctl status vncserver$vncCount) + VNC="" + for i in $(seq 1 $vncCount) + do + VNC=$VNC$(systemctl status vncserver$i) + done if [ -z "$VNC" \ -o -n "$(echo $VNC | grep "not found")" \ @@ -72,7 +77,7 @@ for i in $(seq 1 $vncCount) do - cat vnc-config/vncserver.service | \ + cat vnc/vncserver.service | \ sed -e "s/USER/$vncBaseName$i/" | \ sed -e "s/NUM/$i/" > vncserver$i.service -- GitLab