VNC Start up Script
Posted: July 4th, 2014, 1:56 pm
Hello, been using your page to help as a guide to set up my servers for a while now.
Decided to do a clean install, as I had some issues on my previous install, and decided to do 14.04. Had some issues getting the VNC desktop working, but found the other topic and using the alternate desktop vs gnome so that works for me.
I am trying to create my StartVNC.sh and I have created the script (actually same exact script that was previously on my server working fine, I backed up most of my files to notepad on my desktop to make rebuilding easier) and I am getting an error when trying to run the script.
the VNC service works fine when I run it.
My script is the following
Haven't gotten to getting to try to get it to work at start up, which I had previously used webmin (not yet installed want to get it to run at start up vs webmin, as using webmin for just cron jobs seems a bit excessive to me, but I may do that anyway)
Will be continuing to build the server, since this is a hiccup and does not stop me from doing anything, but I would really like to figure out what happening.
Decided to do a clean install, as I had some issues on my previous install, and decided to do 14.04. Had some issues getting the VNC desktop working, but found the other topic and using the alternate desktop vs gnome so that works for me.
I am trying to create my StartVNC.sh and I have created the script (actually same exact script that was previously on my server working fine, I backed up most of my files to notepad on my desktop to make rebuilding easier) and I am getting an error when trying to run the script.
Code: Select all
user@server:~/MyScripts$ ./StartVNC.sh
-bash: ./StartVNC.sh: /home/user/MyScripts/StartVNC.sh: bad interpreter: Too many levels of symbolic links
My script is the following
Code: Select all
#!/home/user/MyScripts/StartVNC.sh
#!/bin/sh
echo "JOB RUN AT $(date)"
echo "============================"
echo ""
/usr/bin/vncserver -geometry 1920x1080
Will be continuing to build the server, since this is a hiccup and does not stop me from doing anything, but I would really like to figure out what happening.