¿ªÔÆÌåÓý

Re: Raspberry Pi Automatic Startup fails


 

In the latest Raspbian release:

sudo raspi-config
Select "Interfacing Options"
Enable "VNC"

On Wed, Feb 22, 2017 at 4:03 PM, kq6di@... [direwolf_packet] <direwolf_packet@...> wrote:
?

I found another way to get VNC running, and this one works. ?(The one in the AdaFruit Tutorial didn't.)


At least it works for me so far...

Arnold
KQ6DI


From: "David Ranch dranch@... [direwolf_packet]" <direwolf_packet@yahoogroups.com>
To: "direwolf packet" <direwolf_packet@yahoogroups.com>
Sent: Wednesday, February 22, 2017 1:16:47 PM
Subject: Re: [direwolf_packet] Raspberry Pi Automatic Startup fails

?

Hello Arnold,

?
I have a Raspberry Pi running DireWolf as a remote digipeater.? After a power failure, I would like DireWolf to automatically start.? I have put in the Automatic Startup commands from section 6.1 of the Raspberry-Pi-APRS.pdf document, and it will not automatically start.


This has been discussed multiple times on the list before..


What I found by looking at the Log file that is created is the script (from DireWolf) REQUIRES a display of some sort.? The log file has:

Wed Feb 22 11:53:41 PST 2017

DISPLAY=:0?? <-----------------------------------


The dw-start.sh script *requires* that the shell running the script has a Xwindows system running (be it on the Rasberry Pi's HDMI port, VNC, etc) first.? If you don't start one of those two options first, the script will fail 100% of the time.? If you want to start Direwolf in a headless fashion (no Xwindows, VNC, etc) yet have things restart when required, I'd recommend to review N7NIX's systemd "unit" files for Direwolf:

?? #The systemd unit for Direwolf
??

?? #See the bottom of this install script on how to install it
??


There are other ways to solve this though the Systemd way is the most "correct" way.? If you rather use the dw-start.sh script, I can provide you an edited one that is similar to my version that uses screen vs an Xterm window to show the ongoing logging of Direwolf.? You can see how I start Direwolf this way in the below script but this script does a lot more than just start Direwolf and thus much of it is probably a distraction:

??

--David
KI6ZHD





--


John D. Hays
K7VE

PO Box 1223, Edmonds, WA 98020-1223
???

Join [email protected] to automatically receive all group messages.