Getting peaclock to build on Ubuntu 18.04

Peaclock uses C++17, this requires us to go through some hoops.

sudo apt install clang-7 llvm-7-dev
git clone https://github.com/octobanana/peaclock.git
cd peaclock
export CC=/usr/bin/clang-7
export CXX=/usr/bin/clang++-7
find . -type f -exec sed -i -e \ 
's#std::filesystem#std::experimental::filesystem#g' {} \;
find . -type f -exec sed -i -e  \
's#<filesystem>#<experimental/filesystem>#g' {} \;
find . -type f -exec sed -i -e \
's/lexically_normal().//g' {} \; # HACK!
./build.sh
./install.sh

Orange Pi 3

I recently ordered an Orange Pi 3.

Why an OPi3 rather than a Raspberry Pi? Because:

  • Onboard storage (eMMC is faster & more reliable than an SD card)
  • Faster GBit networking
  • USB3

However it is obviously less mainstream. I bought it from AliExpress with a case (& fan / heatsinks) & a PSU (although it can be powered up with a decent USB cable / supply). You’ll also need a micro SD card to install different OSes.

I wanted to run console / server Linux & the images supplied by OrangePi aren’t up to much so I’m using an early Armbian image. Follow this thread for more details and builds are available here.

So far I’m very impressed, it boots very quickly and seems stable. Only used wired networking so far.

Using pfsense / OpenVPN client access and can’t reach your internal LAN?

Remember to create a route from your internal LAN machines to your pfsense / OpenVPN network.

ie if internal lan is 192.168.10.0/24, pfsense is on 192.168.10.3 & your OpenVPN client lan is 192.168.20.0/24, you’d want something like

route add -net 192.168.20.0/24 gw 192.168.10.3