<p dir="ltr">Ok not sure if the formatting will stay consistent, if not I can email this off list</p>
<p dir="ltr">---Code starts here:</p>
<p dir="ltr">#!/bin/sh<br>
# /etc/init.d/vncserver<br>
### BEGIN INIT INFO<br>
# Provides: tightvncserver<br>
# Required-Start: $all<br>
# Required-Stop: $all<br>
# Default-Start: 2 3 4 5<br>
# Default-Stop: 0 1 6<br>
# Short-Description: tightvncserver<br>
# Description: VNC using tightvncserver.<br>
### END INIT INFO<br>
# Set the VNCUSER variable to the name of the user to start tightvncserver under<br>
VNCUSER='pi'<br>
eval cd ~$VNCUSER<br>
case "$1" in<br>
 start)<br>
   su $VNCUSER -c '/usr/bin/tightvncserver :1'<br>
   echo "Starting TightVNC server for $VNCUSER "<br>
   ;;<br>
 stop)<br>
   pkill Xtightvnc<br>
   echo "Tightvncserver stopped"<br>
   ;;<br>
 *)<br>
   echo "Usage: /etc/init.d/tightvncserver {start|stop}"<br>
   exit 1<br>
   ;;<br>
esac<br>
exit 0</p>
<p dir="ltr">---Code ends here:</p>
<p dir="ltr">So copy the above and create a new file, call it whatever you want (I called it vncserver) then change the permissions to make it executable (chmod +x filename) then place the file into /etc/init.d then run sudo update-rc.d filename defaults and that will make tightvnc load at boot on either 5900 or 590x (whatever you choose in the file as the port) </p>
<p dir="ltr">You'll need to run tightvncserver before rebooting to setup the session password... <br></p>
<br><div class="gmail_quote"><div dir="ltr">On Sun, 3 Jul 2016, 12:48 Norm McMillan <<a href="mailto:vk3xci@gmail.com">vk3xci@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>Thank you Scott<br><br></div>norm<br></div>vk3xci<br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Jul 3, 2016 at 12:30 PM, Scott Evans <span dir="ltr"><<a href="mailto:vk7hse@gmail.com" target="_blank">vk7hse@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">You need to disable gui login that will free up the :0 however if you are using the gui on the pi in its remote location this suggestion will not work because obviously you will lose the gui and only have a cli to work with! </p>
<p dir="ltr">I'm not at home at the moment, but I've got a start up script for tightvnc that you can adjust to suit your needs...  I'll post it once I'm back home! </p>
<br><div class="gmail_quote"><div><div><div dir="ltr">On Sun, 3 Jul 2016, 09:45 Norm McMillan <<a href="mailto:vk3xci@gmail.com" target="_blank">vk3xci@gmail.com</a>> wrote:<br></div></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div dir="ltr"><div><div><div><div><div>OK,<br><br></div>the Rpi runs, VK3WRM is up and running and now to stick it at the bottom of the garden, so to speak.<br><br></div>Alas, when I try to TightVNC to it, I can only get the :1 and not the :0 active window. I can understand why, but is there a fix? <br><br></div>I want it to eventually be a headless system wombling along by itself away from my shack, probably Solar powered and out of sight out of mind.<br><br></div>norm<br></div>vk3xci<br></div></div></div>
_______________________________________________<br>
OZAPRS mailing list<br>
<a href="mailto:OZAPRS@aprs.net.au" target="_blank">OZAPRS@aprs.net.au</a><br>
<a href="http://lists.aprs.net.au/mailman/listinfo/ozaprs" rel="noreferrer" target="_blank">http://lists.aprs.net.au/mailman/listinfo/ozaprs</a><br>
</blockquote></div>
<br>_______________________________________________<br>
OZAPRS mailing list<br>
<a href="mailto:OZAPRS@aprs.net.au" target="_blank">OZAPRS@aprs.net.au</a><br>
<a href="http://lists.aprs.net.au/mailman/listinfo/ozaprs" rel="noreferrer" target="_blank">http://lists.aprs.net.au/mailman/listinfo/ozaprs</a><br>
<br></blockquote></div><br></div>
_______________________________________________<br>
OZAPRS mailing list<br>
<a href="mailto:OZAPRS@aprs.net.au" target="_blank">OZAPRS@aprs.net.au</a><br>
<a href="http://lists.aprs.net.au/mailman/listinfo/ozaprs" rel="noreferrer" target="_blank">http://lists.aprs.net.au/mailman/listinfo/ozaprs</a><br>
</blockquote></div>