Skip to content
Snippets Groups Projects
Commit b211c4ec authored by tobiglaser's avatar tobiglaser
Browse files

fix ownership of example folder + add 2. example

parent 86547178
No related branches found
No related tags found
No related merge requests found
unsigned int i = 0;
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
}
void loop() {
// put your main code here, to run repeatedly:
Serial.print("Hello World! ");
Serial.println(i++);
delay(400);
}
...@@ -163,11 +163,12 @@ ...@@ -163,11 +163,12 @@
sudo cp /usr/share/applications/arduino.desktop /home/$vncBaseName$i/Desktop/ sudo cp /usr/share/applications/arduino.desktop /home/$vncBaseName$i/Desktop/
done done
echo "Adding example Sketch." echo "Adding example Sketches."
for i in $(seq 1 $vncCount) for i in $(seq 1 $vncCount)
do do
sudo mkdir -p /home/$vncBaseName$i/Arduino sudo mkdir -p /home/$vncBaseName$i/Arduino
sudo cp -r Arduino/* /home/$vncBaseName$i/Arduino/ sudo cp -r Arduino/* /home/$vncBaseName$i/Arduino/
sudo chown -R $vncBaseName$i:$vncBaseName$i /home/$vncBaseName$i/Arduino/
done done
#display useful info #display useful info
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment