Google is my Tech Support

Had one of those weird things that occurs where one of my Pi’s had a corrupted password. Ugh! So, a quick Google Search for “Forgot Password on a Pi” popped the answer right to the top!

http://mapledyne.com/ideas/2015/8/4/reset-lost-admin-password-for-raspberry-pi

I’m back in and ready to code!

LCDClock – My First Github Project

I’ve used Github quite a bit to source either partial or complete code for many of my Raspberry Pi projects. Github is a code sharing platform that makes it easy to get and keep software updated on devices like Raspberry Pi’s.

When I first created my Pi-clocks I made one with an LCD display that showed local and UTC time. You can see it in this leap second video from 2015.

Five years later that clock has been long out of commission as I do upgrades and other clock projects, but I missed having the LCD clock. So as I worked on the Chrony project I decided to rebuild one as an LCD clock. This has taken me deep into the world of Python and I am sure when someone looks at it there will be comments like “it’s clunky” or “why didn’t you do it this way.” All valid I am sure, but I made it work and even built in some error handling so I feel pretty good for a start.

Starting with the basic Chrony build, the LCD screen gets added from Adafruit. In the last 5 years they have evolved to a version of python called “Circuit Python” to drive many of their devices, so I went with this as the base code to drive the display.

sudo pip3 install adafruit-circuitpython-charlcd

As part of the new design, instead of using this to be a UTC clock (i have plenty of those), I wanted the clock to display variables. The first one I chose was to display the Stratum of the clock. This assures me if I see “Stratum: 1” that I am getting the time from the satellite data. I get that by running a CRON job to output that data to a text file, then I read that from the text file with the Python program. The CRON line that runs every 2 minutes is:

/2 * * * * chronyc tracking > /home/pi/lcdclock/tracking.txt

The second variable is the current IP address of the clock. Always helpful if you want to do some quick editing. That’s a standard python variable, so no additional libraries were needed.

The third variable is the current GPS position. To grab that data I use the gps3 python client to pick up the location of the clock. While this generally won’t change, I might take this on the road in the future to a ham fest or Field Day. There are a bunch of variables I could have pulled, but Lat/Long is just what I needed.

sudo pip3 install gps3

The last variable is a vanity card. I created a file called “msg4.txt” that can be used to display any message in the last 14 second window. Maybe in the future I might make it a YouTube follower counter.

You can grab the code from GitHub here:

https://github.com/n4bfr/lcdclock.git

Here’s how it all comes together:

I’m eager for feedback! Here’s where you can give me notes:
– The N4BFR Vision YouTube Channel
– My Facebook Page: https://www.facebook.com/N4BFRVision
– My Twitter: https://twitter.com/N4BFR_Vision

Follow Friday – YouTube Edition – April 24

Time to share what I am watching, hope it inspires you to watch something new.

Simone Giertz
The queen of shitty robots is awesome. In her most recent video she makes a “proud parent” machine and uses a bunch of dirty words. Which is awesome in so many ways.



Fran Lab
Fran has a very similar taste in projects to me. I found a Heathkit GC1005 clock to refurbish at the Orlando Hamcation, back before we had to social distance. Come to find out Fran had recently refurbished one which really helped me. Mine is still in progress but check out Fran’s here.



Mythbusters Jr.
I didn’t really jump into this because I was put off by the non-Adam version that they tried to reboot through a reality show. Lots of fun builds here. I was really hyped to find a Breaking Bad episode.


Whose Line Is It Anyway Cocktail Hour
Every Monday the cast from Whose Line gets together to preview the show and basically talk s#!t. It’s fun to watch with your feet up. Here’s the video from Monday 4/20.


I have a YouTube Channel too
I talk about clocks, ham radio and other nerdy stuff. I just added a video of the Chronometer Raspberry Pi clock I built this week. As they say, please Like, Comment and Subscribe!

Chronometer – Quick Pi Project

I came across a Reddit post by u/rothman857 that made a Raspberry Pi Clock he calls Chronometer with a really unique view of time. They bring in a bunch of different formats like Solar Time and Metric Time. Since I like time and I’m interested in those views, I thought this would be a fun build.

As a net time to make this, it only took me a few hours to get going. I recommend using the screen he specified which is a quick Amazon order. I tried this with another screen I had and it just didn’t work out. Most of that time was learning two functions I haven’t explored before, changing the video settings and console fonts. A few notes on those items if you are building.

Setting Pi Screen Resolution
The display uses a unique setting of 480×320 which I couldn’t seem to drive with a default setup. So using the Raspberry Pi Documentation, I made a custom configuration.

sudo nano /boot/config.txt

I commented out all the existing video settings and added these to the end, which worked for me:

#custom for Chronometer
hdmi_force_mode=1
hdmi_group=2
hdmi_mode=87
hdmi_cvt=480 320 60 1 0 0 0
hdmi_drive=2

Setting a fixed console font
My first try was to use this article at stevencombs.com which in hindsight may have worked if I had specified the Latin and VGA font I wanted, but when I went with the instructions as written it didn’t take the way I wanted. As a follow-up I experimented with several of the suggestions in this StackExchange thread. The “.profile” change didn’t work for me, so I tried Eric Woodward’s suggestion of changing in console-setup.

sudo nano /etc/default/console-setup

#custom for Chronometer
CODESET="Lat15"
FONTFACE="VGA"
FONTSIZE="8x14"

That’s it. Install and run the chronometer.py program and run it. You’re good to go.

Final thoughts. I like this kind of project because I learn more about the inner workings of Pi and I feel like it’s something I can go in and tweak later. For instance, I would like to make one of the time displays be similar to the Union Square Metronome. I will share progress if I get there on my project list. Obligatory video below.

Raspberry Pi with Chrony

I’ve been a fan of having a Stratum 1 time server on my LAN ever since I first read GM8ARV’s page. One of my first ones can be seen in the background on my YouTube video about Leap Second tracking.

I found an article last week where Facebook has been doing analysis on time server software and has come to the recommendation that the Chrony software is better than NTP for performance. I’ve actually been using NTPSEC for a couple of years now, but I am open to change so I’m setting up a Chrony server.

Follow Friday

I have been heavily into the YouTube thing over the last few months, and I have some old and new favorites. Enjoy this week’s nerd-heavy list of things to watch.

SpaceX

Want to watch cool rocket stuff regularly? SpaceX is about to become the first American company to send american Astronauts to the ISS in over 10 years. Plus their launching an internet satellite constellation and working on this little “trip to Mars” thing.

The Modern Rogue

This has a “Mythbusters meets Magic and other Scams” vibe as two “Professional Idiots” do things like making homemade thermite to cook steaks, play with RFID, discuss everyday carry items and even a little ham radio.

The Lockpicking Lawyer

The Lockpicking Lawyer has an artists touch. His videos are super basic, pretty much a camera and a lock, but he gives you a lot of different insights on build quality and how some things are safer than others (avoid TSA locks). Great way to get under the mechanics of how these things work in our daily lives.

Techmoan

I think he’s most well known for his camera reviews, but I really get into all the retro-tech items that he covers. This particular video shows a German 8-track style record player, but he’s covered old computers, hi-fi and phones as well.

TWIT

I feel like Leo Laporte is my older “brother from another mother.” He’s successfully put together a podcast network, TWIT, that covers tech news, photography, internet security, Apple, Android and more every week. I greatly enjoy his Tech Guy radio show podcasts every Saturday and Sunday.

And a plug for me

Part photography, part ham radio and Raspberry Pi tech, part cat videos, Space stuff, just what interests me that day. I’m having fun sharing and making new stuff, so please subscribe just to see what the hell I am going to do next.

More next week!

Polishing on the FrankenPi

FrankenPi Version 1.1

Two weeks ago I published a blog post detailing the creation of a Raspberry Pi based APRS tracker and Pi-Star hot spot. I’ve made a couple of enhancements since then and I thought I would share an update.

Going with a dedicated 4G connection

I had planned on using my mobile phone as my WiFi connection for getting packets into and out of the unit. During my testing, getting in and out of the car and having the Pi reconnect to the Wifi hotspot was not as seamless as I would like. So I added a 4G connection with a Netgear LB2120 4G Modem.

“Jim, why didn’t you get a Wifi modem?”

– Me to myself.

Why didn’t I? Well, I did want something I could directly connect to, and I though the device I purchased had wifi. But it didn’t so I made the most of it. I knew I wanted something with Ethernet so in the future this could go on my LAN so all is not lost.

Pi as a Wifi Hotspot

Another part of having a 4G connection was to have diversity of networks as I travel. I had a breakdown on the Blue Ridge Parkway last year and my Verizon phone had marginal coverage when I really needed it. I put this on the TMobile network, so I could make a quick Wifi call if I had to in a pinch.

Since the Netgear does not have Wifi, I added Wifi Hotspot functionality to the Raspberry Pi. It’s not what I would use every day for a Wireless Router, but it will work to do some configuration or make a quick call. I bounced around to different instructions as I customized this, so I don’t have one clear place to point to for a “how to” but you can start at RaspberryPi.org.

Which Digital? Why not D-Star and DMR?

I did a lot of programming of my radios to get the ready with the latest D-Star reflectors, and believe me http://www.dstarinfo.com/ is my go-to site. While that is ready to rock, I thought I might want some DMR along as well. Instead of turning them both on at the same time, I configured 2 SD cards. One will boot up with D-Star configured on the Pi-Star, the other with DMR.

I am hopeful that this will make it easy to switch on the fly at the next stop I make without too many hassles.

And a Big Battery

While I was wandering around the half-empty shelves of my local Fry’s Electronics I found a nice deal on a 20K mAh battery. I also dug in to Amazon to find a 5V to 12V upconverter for the Netgear device.

Big battery!

The two devices combined draw less than 1 amp, so I’ve had this running for >12 hours with battery to spare. I intentionally did not mount the battery on the board to make it hot -ish- swap-able if needed.

I don’t expect to polish much more on this before I depart in 10 days but always open to suggestions on changes. Connect with me at the links via the site.

Making a Franken-PiStar & APRS Tracker

In the next few weeks I have planned a 5,000 mile road trip across the American South and West and I decided that I wanted a tool that would allow me to hop on DStar from wherever I am, since my car has an ICOM ID-5100 already in it. In general, that is easy because there are several DV Dongle and the like out there. In addition, since I will be driving long stretches by myself I thought it would be great for my friends to be able to click a link and check my location. That’s where the APRS Tracker comes in. This blog post documents the custom, single Pi solution I’ve built by merging Pi-Star and Direwolf onto one Raspberry Pi 3B.

Base Hardware and Software

Pi-Star Zum Radio Hotspot
I have owned a Zum-Spot for about a year and I am familiar with the configuration so I picked this as the base of my build. It will allow me to do D-STAR and if I wanted to take a DMR radio, it would give me that option too (and a couple of others). So I picked up a new one with a cute little OLED screen and had it running pretty quickly on it’s own. It comes with the Pi-Zero and SD card, making it fairly plug and play. In the US you can get these at Ham Radio Outlet for about $130.

Direwolf Rasperry Pi APRS Tracker with USB GPS Receiver.
I’ve been glad to have an IGate at my home running Direwolf for years, so I am very familiar on the general setup and excellent documentation that WB2OSZ puts together. The tracker was new to me though, and it was pretty straight forward to set up with the specific instructions provided.

Running Both on Separate Pi’s

As I mentioned, the ZumSpot / Pi-Star / Pi Zero unit was easy to get online and easy to pair with my phone to make it mobile. Connected to DMR and made several QSO’s in addition to pretty consistent testing on Parrot.

Similarly, I had a Pi Zero W on hand and picked up a $19 GPS puck on Amazon. Ran this in the car for a few days, with the puck just sitting on the passenger seat of the car and it seemed to track me very well. When paired to my phone’s hotspot it simply sent tracking points into the APRS network as I drove around doing errands. The Smart Beaconing feature worked well too. Sample Below.

Level of complexity = clunky.

For hardware, the decisions were easy. I chose a Pi3B+ because I had one on hand, I wanted extra power and additional USB ports that the Zero didn’t offer. The ZumSpot moved over from the Zero and on to the GPIO slot and the USB dongle was easy to connect up. The case required 2 little mods for the antenna and the ZumSpot, I cover that in the video at the end.

Raspberry Pi 3 with integrated ZumSpot and case.
The Franken-Pi Hardware.

The software side of the build is where the real complexity comes in and frankly, it felt clunky overall. I needed to start with one of the two options, Pi-Star or Direwolf as the base, and add the other. I chose the Pi-Star build as the base, not because I thought it was the best option, but I didn’t see an easy way to add that to the Direwolf software. The level of difficulty is high here, because the builds of Pi-Star software for Raspberry Pi (I used Pi-Star Dev Build 4.1.0 as my base) are very very scaled down and a lot of the “basic” pi functionality is removed. I get it, bandwidth costs money and why include something you don’t need, but it made the build more challenging. So while I was able to quickly set up Direwolf on a basic Buster build, the activity of restoring and de-customizing the Pi-Star build to add modules like GPSD required most of the additional work, which I will noted below.

Starting the install process – Hardware and Base Build

  • Move the ZumSpot from a Pi Zero to a Pi-3B+. I had the spare and I wanted the extra USB ports for the project.
  • Download the latest beta version from the Pi-Star website: https://www.pistar.uk/downloads/ I used the January 20, 2020 Beta which is based on the Buster version of Raspberry Pi software.
  • Do the voodoo you need to do to put the .img file on a MicroSD card. Plenty of tutorials online for that so I won’t go into it.
  • Boot the card to the Pi and discover the IP address. I am a command line guy, so I SSH’d into the Pi and did the following:
    • Change from the default password of “raspberry” by using the passwd command
    • Insured the MicroSD card has all the space available by using the Pi-Star proprietary command sudo pistar-expand and thanks to KE0FHS for his extensive list of Pi-Star notes.
    • Add IPv6 to the Pi-Star: open /etc/modules for editing: sudo nano /etc/modules and add ipv6 to the end. But I don’t use IPv6 you say. It’s a dependency for using the GPSD module that get’s installed in the next few steps.
  • Reboot

Next – Install the Direwolf tracker software

I used the Direwolf Git Hub Docs, specifically the Raspberry Pi APRS Tracker document to guide me.

Step 1: Get the system code for GPS installed.

  • sudo apt-get install gpsd If you get any errors, go back and make sure you did the IPv6 step above.
  • sudo apt-get install gpsd-clients python-gps
  • sudo apt-get install libgps-dev

Step 2: Setting up the GPS software
I love the little GPS dongles from Adafruit and others and I regularly used them on Stratum 1 Clocks that I build, but I chose a USB version for two reasons. 1) Hard to get at the GPIO pins with the Zum Spot Hat using it, and 2) I wanted something a little more hardened for the car. So, assuming you go my way:

  • cat /dev/ttyACM0 will show you if the GPS is sending data into the system
  • Reboot
  • cgps -s should show you the position data from your GPS. Don’t worry if this takes 15-20 minutes the first time. It needs to download some software from the satellites first.
  • The Direwolf documentation says to do some testing with the GPSD daemon here. I didn’t find the need to do that. Your mileage may vary.
  • Here’s another one of those changes you need to make because of the way Pi-Star is setup. Part of the disk is mounted as read only, so if you try to make changes to the GPSD config file without this step, you get errors.
    sudo mount -o remount,rw /
  • Now, edit the GPSD config file so it has at least this info (some may already exist)
    sudo nano /etc/default/gpsd

    START_DAEMON="true"
    USBAUTO="true"
    DEVICES="/dev/TTYACM0"
    GPSD_OPTIONS="-n"


    Exit and then type sudo systemctl restart gpsd to update the system with the changed config.
  • While we have the system set to Read/Write, we need to re-enable the on-board sound card which is disabled in the Pi-Star Beta build. Enter sudo nano /boot/config.txt. Scroll down to the section # Enable audio and un-comment the line dtparam=audio=on by removing the #. It should look like this when you are done. Exit and save the file and reboot.

Step 3: (Optional!) Getting GPS time
I like having the onboard NTP process being fed from the GPS since the satellites have super accurate time. This configuration is similar to the lines from from the Direwolf Documentation, but I have found that the SatSignal.eu recommendations for ntp.conf have served me well. My GPS device does not feed PPS signals, but I left it in should someone need it.

  • Edit ntp.conf with sudo nano /etc/ntp.conf
    Add the following lines near the list of servers

    server 127.127.28.0 minpoll 4 maxpoll 4
    fudge 127.127.28.0 time1 +0.350 refid GPS


    server 127.127.22.0 minpoll 4 maxpoll 4
    fudge 127.127.22.0 refid PPS
  • Let’s tell the NTP server to restart and pick up the new config file:
    sudo /etc/init.d/ntp restart
  • Now, give it a minute or so and check ntpq -p and you will see something like this:

I stopped and made a backup of my MicroSD card here. Not a required step, but if I break something in the next few steps, I don’t want to go all the way back to start.

Step 4: Now we actually get to install Direwolf!
So the Raspberry PI APRS Tracker instructions we have been following for Direwolf assume you already have the core software installed. We don’t. So let’s hop over to the Direwolf Doc files again and chose the Raspberry Pi APRS instructions. Or just enter the code below if you trust me and don’t need the docs.

  • We’re picking up in that document at Step 2 in the docs because we’ve completed some of the pre-work. (August 2017 version, page 11) Let’s get some more dependencies!
    sudo apt-get install libasound2-dev libudev-dev
  • Finally we get to download the actual program!
    cd ~ (this puts you back in your home directory)
    git clone https://www.github.com/wb2osz/direwolf
    cd direwolf

OK, we’re done with those instructions and back to step 5 of the Tracker document. Let’s build the software:

  • make clean
  • make This will take a few minutes.
    Make sure it ends clean. If you see an error for GPSD go back!
  • sudo make install
    You don’t need to run make install-conf when this is done as the prompt says, we’ll take care of that next. If you did, don’t worry, it doesn’t hurt anything.
  • All of the customization for Direwolf comes in the config file, so we’ll make one. Major credit to WB2OSZ for his extremely well documented configs. They have always made things super easy for me. However, there are many many items we don’t need for this, so I reduced it to the basics.
    cd ..
    nano direwolf.conf (you don’t need sudo in your home directory) and enter the code below.
# N4BFR Modified - Minimal Config File
ADEVICE UDP:7355 default
ACHANNELS 1

MYCALL UR1CALL-##
GPSD
TBEACON EVERY=4 symbol="car" comment="My Tracker" SENDTO=IG
SMARTBEACONING 60 2:00  5 4:00  0:15 30 255
MODEM 1200

IGSERVER noam.aprs2.net
IGLOGIN YOURIGLOGIN #####

IGTXLIMIT 6 10

So let’s breakdown what all that means because you will need to make some changes for your situation

  • #N4BFR Modified - Minimal Config File This is a comment since it starts with #
  • ADEVICE and ACHANNELS This is a placebo command that points to a fake audio device, it goes back to the fact that Direwolf has its roots as a digipeater. If you were going to also send packets to RF this would be important, but not in this application. So don’t change this.
  • MYCALL UR1CALL-## This is where you tell the APRS system the call sign or name of your tracker and SSID. Replace UR1CALL with the ham radio call sign you will use and -## with your SSID. Info on choosing an SSID number is here.
  • GPSD this tells Direwolf to get position data from GPSD
  • TBEACON EVERY=4 symbol="car" comment="My Tracker" SENDTO=IG This is a key line. TBEACON tells Direwolf to use it’s tracker functionality to send a beacon containing the GPS Location. EVERY=4 sets the interval to beacon in minutes. The symbol=”car” sets your icon on the APRS maps. The comment field can say what you want. Then SENDTO=IG tells it to send the packet to the Internet Gateway (IG). There are other options for this packet, but these are the ones I chose. Check the Direwolf documentation around TBEACON and PBEACON for more info.
  • SMARTBEACONING ... this is how you can adjust the frequency of how often a beacon is sent to the gateway.
  • MODEM 1200 is another legacy code.
  • IGSERVER... The server set is the one for North America. Set yours locally.
  • IGLOGIN... you need one. Find out more on the Internet.
  • IGTXLIMIT... sets the top end of 6 beacons in 10 minutes so you don’t hog the gateway.

When you get it the way you want it, close and save.

Step 5 – Testing Direwolf
You should still be in the Direwolf directory but if not type cd~/direwolf to get there. We’re ready to test with this command direwolf -d t This will start the tracker with position debugging information. If successful, it will look something like this on your pi screen (location obscured).

It will look like this on a site like aprsdirect.com.

Pat yourself on the back. Then, shut down the Pi and make a backup. Call your elmer and tell him the good news while you wait for the backup to finish.

Now, what about that Pi-Star thing?

The good news is that with all the functionality I needed to add back in to the Pi so Direwolf could run didn’t seem to clobber anything important for the Pi-Star side. Let’s go through the default set-up method for Pi-Star just to be sure.

  • Open a web browser and go to the Pi-Star home page. (For me it was http://10.0.1.xx, your network may vary). Because I am using a Pi3 with Ethernet, I just use the same address I was using to SSH into the device. The Base Pi-Star build also sets up it’s own Wifi hotspot. Check the Pi-Star site for more info if needed.
  • When I opened up the page for the first time it kicked-off a configuration script and then sent me to the configuration page. When prompted for a password it wanted the default password (raspberry), not the one we changed to earlier. You can reset it at the bottom of the Configuration page.
  • I won’t detail all the Pi-Star configuration steps because there are so many. I will throw in a couple of recommendations:
    • What frequency to use? I have picked from the list of Simplex Cross-band frequencies on the Southeastern Repeater Association (list). The big thing here is to avoid interference with repeaters or satellite activity.
    • Change your host name from the default. Tech people I trust have told me there’s a risk here, so why not change it.
    • DMR: Most of my friends in the Atlanta area find DMR Master 3002 to function well if you are choosing one in the Southeast US
  • You will go through a couple of rounds of configuration as you progress through the web tool and it pulls in things like an updated list of ZumSpot style modems.
  • I used the tool to reset the password for the admin page to the same one I was using for SSH for consistency.

The setup seemed to go normally. Here’s a view of part of my configuration page.

And here’ a view of the dashboard:

One last set-up item, Start the Tracker on Boot

In section 6 of the current Direwolf Documentation for the Raspberry Pi, (Currently Raspberry-Pi-APRS.pdf) there are instructions on how to enable automatic startup. WB2OSZ includes a nice script, dw-start.sh that can be modified to handle this. Here’s how I do it.

  • While in the direwolf directory, we’ll copy the stock start-up script to the mail home directory (/home/pi-star) with the command cp dw-start.sh ~/ This will keep a copy of the original file in case you want it in the future.
  • Change back into your home directory with cd ~ and then open the file for editing with nano dw-start.sh. Here’s are the changes I made:
    • RUNMODE=CLI This was auto, but since I know I will only be using this as a client, I set this to be the default.
    • DIREWOLF="direwolf" I didn’t need to change this.
    • Start up command: I chose #1 because we are not running with an SDR attached, so DWCMD="$DIREWOLF" Because we’re not really running an audio channel, I didn’t see the need to print audio stats so I removed that option.
    • You shouldn’t need to change anything below this. Save the file and close the editor.
  • Test it out with the command ./dw-start.sh. You should see this after about 30 seconds:
  • Your Direwolf APRS Tracker is now running in the background. To see the program in action use the command: screen -D -r "direwolf"
    • You can watch this as long as you like, but if you would like to return it to running in the background type Ctrl-a and then the letter “d” to put it back in the background. I found more on the Screen command on the RasPi.TV site.
  • Last step before the finish line. We have a script, it works and not only will it start the Tracker, it will monitor it and restart it as needed. All we need to do is tell the Pi to run the script. I am using the the crontab program that handles scheduling for things like this on the Pi. In your home directory type crontab -e. If this is the first time you have run crontab on this machine you will be prompted to choose an editor. I use nano, but use what you like.
    • Scroll down to a blank line and type this:
      * * * * * /home/pi-star/dw-start.sh >/dev/null 2>&1
      This will run once per minute to check that your Tracker is running. If it isn’t the script will restart it. If you’re following along with the instructions on the Direwolf site note the path you want to use in this case is /home/pi-star/ vs /home/pi/ because of the way pi-star is setup. When successful it should say crontab: installing new crontab with no other messages.

Congratulations!

You are finished! Before you go set this up in the truck or wherever else you might want to put it, shutdown your Pi and make a backup of the SD card. Now if you want to experiment more, you can always roll back to a good working version.

I’m not going to get into how to connect it in your mobile unit since there are too many variables. I am currently powering it with an Anker power bank and using my phone’s Wifi hotspot. If you want a look at the finished product, watch my YouTube video below.

From my N4BFR Vision YouTube Channel

Expected Questions

I’m avoiding calling this “Frequently Asked Questions” but it could become that later. Some things I thought of that you may be wondering about.

  • Q: Are you going to publish an IMG file?
    A: I don’t plan to. I am making this for a specific use, and I don’t expect to have time to track updates against multiple authors in the future.
  • Q: You said you were going to use this for D-Star but it’s configured for DMR in your sample, is that right?
    A: Yes, this was just a quicker way to check configuration because I have a known-good Pi-Star with DMR already set up.
  • Q: Should I run “Update” on this?
    A: I made sure I started with the most recent beta of PiStar and the latest version of Direwolf. I did run sudo apt-get update prior to any installation, and I ran the update function in the Pi-Star dashboard without issue. Backup first and see what happens, but I generally recommend keeping things updated regularly.
  • Q: Would this work on a different Pi? (Zero, 4, etc)
    A: Probably. Give it a try!
  • Q: Can I modify this by doing….?
    A: Go crazy! This is just one idea. I hope it inspires someone. The CPU load is very low, less than 2% even when on DMR, so there are resources available.
  • Q: How big of a SD card did you use?
    A: 16 GB. I prefer 8 GB but they are harder to come by and right now 16 seems to be the sweet spot of price and availability.
  • Q: Can you integrate administration into the Pi-Star Expert Configuration section?
    A: I was able to use the SSH tool to make basic changes to the config file and kick off the program during my testing. I’m not planning on any other integration at this time.
  • Q: How do I contact you because I have a problem with…
    A: I can’t give any support for this, but there are great tools like Google and Bing that you can put the error into and probably figure out an answer.
  • Q: How can I email you and share a success story or a fun anecdote?
    A: Best way to reach me is use my call sign @arrl.net or one of the links at the bottom of the page.

For a look at the mods made after this post read “Polishing on the FrankenPi” written March 9.

Tips on a Raspberry Pi Base Working Image

I thought it might be helpful to some to document how I go about taking the latest version of Raspbian (available at https://www.raspberrypi.org/downloads/raspbian/) and customize it for myself. This makes it easier for me to start a project and make sure all the Pi’s I work on have the same basic setup.

I tend to work from headless systems, so the first thing I do to the raw image file on my SD card is add a blank file named “ssh” to enable that functionality.  Next, add a file named “wpa_supplicant.conf” to your boot directory as well.   Include your WiFi information so you don’t have to connect to Ethernet if you choose not to.

Take that disk image you have on your SD card and connect it to the Pi.  Connect however you choose (I use PuTTY) and login if needed.

Enter “sudo raspi-config” and make the following changes:

  • Change your password (seriously!)
  • Change your host name (I use a convention like PiBWIJune18) so I can find it in my DHCP list if I need to discover the IP and so I know which version I am using.
  • Expand yout file system to use the whole disk
  • set your keyboard type
  • set your time zone
  • optionally decide if you want to boot to desktop or command line
  • optionally enable VNC  (though if you are just doing command line, there is no need to do this.)

After you exit and save all that, now is a good time to reboot. 

Starting up again, I remove Wolfram Alpha.  It takes up about 700 MB and it’s not something I use regularly.  I can always add it back if I need it for a project, but I haven’t yet.  That command is “sudo apt-get purge wolfram-engine”

Another reason to remove Wolfram is that it seems to have a ton of updates and takes forever.  Once it is gone, run your system updates with “sudo apt-get update”.

I run a home NTP server and quite a few of my projects are time related, so I always add NTP.  A great tutorial to do that is at: http://raspberrypi.tomasgreno.cz/ntp-client-and-server.html

Finally, I want an easy way to move files between Pi and my desktop as needed.  So I set up SAMBA sharing.  The tutorial I use it at: http://raspberrywebserver.com/serveradmin/share-your-raspberry-pis-files-and-folders-across-a-network.html

When that’s done, I shut down the pi and make a backup.  That’s the file I use to start my next project with, my “Base Working Image.”

Hope this helps.  If not, at least I can find my notes next time there is a new Raspian release!