[OZAPRS] New Raspbian thread

Scott Evans vk7hse at gmail.com
Sun Jul 3 15:47:10 AEST 2016


Ok not sure if the formatting will stay consistent, if not I can email this
off list

---Code starts here:

#!/bin/sh
# /etc/init.d/vncserver
### BEGIN INIT INFO
# Provides: tightvncserver
# Required-Start: $all
# Required-Stop: $all
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: tightvncserver
# Description: VNC using tightvncserver.
### END INIT INFO
# Set the VNCUSER variable to the name of the user to start tightvncserver
under
VNCUSER='pi'
eval cd ~$VNCUSER
case "$1" in
start)
   su $VNCUSER -c '/usr/bin/tightvncserver :1'
   echo "Starting TightVNC server for $VNCUSER "
   ;;
stop)
   pkill Xtightvnc
   echo "Tightvncserver stopped"
   ;;
*)
   echo "Usage: /etc/init.d/tightvncserver {start|stop}"
   exit 1
   ;;
esac
exit 0

---Code ends here:

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)

You'll need to run tightvncserver before rebooting to setup the session
password...

On Sun, 3 Jul 2016, 12:48 Norm McMillan <vk3xci at gmail.com> wrote:

> Thank you Scott
>
> norm
> vk3xci
>
>
> On Sun, Jul 3, 2016 at 12:30 PM, Scott Evans <vk7hse at gmail.com> wrote:
>
>> 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!
>>
>> 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!
>>
>> On Sun, 3 Jul 2016, 09:45 Norm McMillan <vk3xci at gmail.com> wrote:
>>
>>> OK,
>>>
>>> the Rpi runs, VK3WRM is up and running and now to stick it at the bottom
>>> of the garden, so to speak.
>>>
>>> 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?
>>>
>>> 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.
>>>
>>> norm
>>> vk3xci
>>> _______________________________________________
>>> OZAPRS mailing list
>>> OZAPRS at aprs.net.au
>>> http://lists.aprs.net.au/mailman/listinfo/ozaprs
>>>
>>
>> _______________________________________________
>> OZAPRS mailing list
>> OZAPRS at aprs.net.au
>> http://lists.aprs.net.au/mailman/listinfo/ozaprs
>>
>>
> _______________________________________________
> OZAPRS mailing list
> OZAPRS at aprs.net.au
> http://lists.aprs.net.au/mailman/listinfo/ozaprs
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.aprs.net.au/pipermail/ozaprs/attachments/20160703/0e955ef3/attachment.html>


More information about the OZAPRS mailing list