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

fixes

parent 58037f56
No related branches found
No related tags found
No related merge requests found
...@@ -41,7 +41,7 @@ Plugin { ...@@ -41,7 +41,7 @@ Plugin {
id=pcmanfm.desktop id=pcmanfm.desktop
} }
Button { Button {
id=lxde-x-www-browser.desktop id=lxterminal.desktop
} }
Button { Button {
id=arduinocontrol.desktop id=arduinocontrol.desktop
......
...@@ -52,7 +52,8 @@ ...@@ -52,7 +52,8 @@
echo " VNC Password: $mypasswd" echo " VNC Password: $mypasswd"
echo " copying configuration files" echo " copying configuration files"
sudo cp vnc/xstartup /home/$myuser/.vnc/xstartup 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 done
...@@ -62,7 +63,11 @@ ...@@ -62,7 +63,11 @@
sudo apt -qq install -qq -y tightvncserver sudo apt -qq install -qq -y tightvncserver
echo " Checking for autostart service." 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" \ if [ -z "$VNC" \
-o -n "$(echo $VNC | grep "not found")" \ -o -n "$(echo $VNC | grep "not found")" \
...@@ -72,7 +77,7 @@ ...@@ -72,7 +77,7 @@
for i in $(seq 1 $vncCount) for i in $(seq 1 $vncCount)
do do
cat vnc-config/vncserver.service | \ cat vnc/vncserver.service | \
sed -e "s/USER/$vncBaseName$i/" | \ sed -e "s/USER/$vncBaseName$i/" | \
sed -e "s/NUM/$i/" > vncserver$i.service sed -e "s/NUM/$i/" > vncserver$i.service
......
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