From 55df372235ee1bbad24968c2b3fff5efd44a9ebd Mon Sep 17 00:00:00 2001
From: tobiglaser <76131623+tobiglaser@users.noreply.github.com>
Date: Sat, 13 Aug 2022 14:24:12 +0200
Subject: [PATCH] apt installs up front

---
 setup.sh | 16 +++++++---------
 1 file changed, 7 insertions(+), 9 deletions(-)

diff --git a/setup.sh b/setup.sh
index 9d28a1a..56d75c7 100755
--- a/setup.sh
+++ b/setup.sh
@@ -29,6 +29,13 @@
 # Desktop Environment
 	echo "Installing Desktop Environment"
 	sudo apt -qq install -qq -y lxde-core lxappearance
+	echo " Installing tightvnc."
+	sudo apt -qq install -qq -y tightvncserver
+	echo "Installing Arduino IDE."
+	sudo apt -qq install -qq -y arduino
+	echo "Installing letsgoING ArduinoControl"
+	sudo apt -qq install -qq -y python3-pip python3-tk
+	sudo -H python3 -m pip install -q letsgoing-rpi-arduinocontrol
 
 
 # create vnc users
@@ -59,8 +66,6 @@
 
 # setup vnc
 	echo "Setting up VNC Server."
-	echo " Installing tightvnc."
-	sudo apt -qq install -qq -y tightvncserver
 
 	echo " Checking for autostart service."
 	VNC=""
@@ -124,13 +129,6 @@
 		fi
 	done 
 
-# Install user software
-	echo "Installing letsgoING ArduinoControl"
-	sudo apt -qq install -qq -y python3-pip python3-tk
-	sudo -H python3 -m pip install -q letsgoing-rpi-arduinocontrol
-	
-	echo "Installing Arduino IDE."
-	sudo apt -qq install -y -qq arduino
 
 # Create Shortcuts
 	echo "Creating desktop and start menu shortcuts for ArduinoControl."
-- 
GitLab