Categories
20.04 Dedicated server Internet Linux Software Ubuntu Virtual machines

OVH/SoYouStart failover Ubuntu 20.04 netplan Proxmox

I know why you’re here. It’s a pain isn’t it?
Let’s get this sorted for you (and me sometime in the future!).

Assumptions:
* You have attached your failover IPs to the server
* You have generated a MAC address for the failover IP (02:xx:xx:xx:xx:xx)

You will need the failover IP (the one below is an example)
192.168.0.20

Here is my configuration:
/etc/netplan/00-installer-config.yaml

# This is the network config written by 'subiquity'
network:
  ethernets:
    ens18:
      addresses:
      - 192.168.0.20/24
      gateway4: 192.168.0.254
      nameservers:
        addresses:
        - 208.67.222.222
        - 208.67.220.220
        search:
        - virtual
  version: 2

As you can see, I just changed the /32 to /24 and changed the last octet of the gateway4 from 120 to 254.
The key is the /24 part. If you leave it as /32 it thinks the gateway is on a separate network.

This does work with real OVH failover addresses, I only used the internal network address 192.168 as an example.

Categories
No category

Chrome / Chromium edit js file directly

On one of the sites I am a member of I can set my nickname for a chat window. The nickname in the chat window has a decent character limit.
In the settings for the site itself I am restricted to a maximum of 15 characters, which is an annoyance and an inconsistency.

If I try and type more than 15 characters into the field an alert box immediately pops up and the extra text is deleted. Knowing that the alert dialogue box will be generated by JavaScript I needed to find the line that did the check and amend it.

Editing the webpage in Chrome (or Chromium) can be done by right-clicking on the element (in my case the text field) and clicking “Inspect” on the popup menu.

A new window will open on the right of the webpage. At the top will be a line reading
Elements Console Sources Network
Click on “Sources”.

As there was a dialogue alert box displayed, we can do a search for the text of the message.
Press Ctrl-F (Find) and type in the alert message, in my case:
“Chat Nick Name can take a maximum”

Somewhere right above that will be the code you need to amend (at least in my case).

Find the code you need to change, change it to what you need.

Press Ctrl-S (save) to save the javascript file.

You won’t save the javascript file to the web server itself, you are only editing your local copy. The web page will now respond as if your change is part of the original web site.

tl;dr: edit the javascript in the Sources menu, press Ctrl-S and it will work.

Categories
HackRF One Hardware PortaPack SharedBrain Technologies Slow scan television (SSTV) Software defined radio (SDR)

HackRF One and PortaPack development

In my endeavours to send and receive amateur radio around the world I have purchased a HackRF One, an open source hardware computer controlled SDR transmitter and receiver board designed by SharedBrain Technologies, along with the addon board PortaPack which makes the HackRF One standalone and gives it a touch panel LCD screen and jog wheel control.

Just as the hardware for the boards have been open sourced, so has the software and there is a thriving community focussing on adding extra features to the device constantly.

You can use the HackRF alone connected to the computer and for this purpose it shines. You can send and receive signals at any frequency between 1MHz to 8GHz and above.

The power output is low (in the mW range) but if combined with an RF signal amplifier could be as powerful as your licence or local laws allow.

I got involved with the development side of this board as I want to learn SDR programming and I specifically want to be able to send and receive SSTV (slow scan television) images. While the software has already been developed to send SSTV images directly from the HackRF one and PortaPack board it does not yet have the software to receive them.

While I am learning I have been changing the parts I do comprehend such as the graphical frontend. I have added a custom splash screen and written a simple guide to allow others to do the same, and added clearer, more understandable error messages in the software itself. I also added a full monospaced font to the system and had input on the icon layout, design and colour scheme.

Categories
Amateur radio Hobbies and interests News Packet radio RSGB Software defined radio (SDR)

What’s new with me?

I have passed all three UK amateur radio examinations:
Foundation callsign M6LWY
Intermediate callsign 2E0HIS
Full callsign M0ODZ.

Now that I am a Full licence holder I can also apply to Ofcom for notices of variation (NoV) to my licence to allow me to access other frequencies and experiment with amateur radio.

One of the first things I applied for as a notice of variation is permission to run a BBS (bulletin board system) over Packet Radio. I will write about this in another post (or more likely quite a few posts).

I also tutor learners in my local amateur radio club, and that led me to be nominated for, and subsequently voted into, the position of Vice Chairman of the club which is a great honour considering the amount of experience and vast knowledge the members of the club have under their collective belts.

This in turn led to me being “headhunted” by the RSGB (Radio Society of Great Britain) to become a member of the ESRG (Exams and Syllabus Review Group), a very small group with some very big names in the amateur radio community. We meet twice weekly using video conferencing to discuss and decide on a variety of issues that affect amateur radio.
One of our main tasks is to source and vet new questions for the amateur radio examinations, and consider the suitability of questions already in the bank.
Another task is to consider challenges that examinees have with questions they disagree with, which I find extremely interesting.
We also generate the three Syllabus documents which is the set of documents that all the examination questions are based upon.

I myself have generated a good number of questions for the amateur radio examinations, which is one of the main reasons that I was originally headhunted for the group. I never knew of the group, and I absolutely never considered that such an important team would want me to join them.

We are currently in the middle of a nationwide lockdown due to the Covid 19 pandemic so I have been spending a massive amount of time at home. Considering just how much I enjoy driving this is a great relief for me, although it does mean that I keep randomly doing DIY at home – much to the chagrin of my darling Wife.

I’ve been spending a lot of time getting to grips with software defined radio (SDR), and finding open source software to offer my assistance with in relation to that. I have no doubt that I will be posting a lot about this in the near future, including snippets of knowledge I glean and need somewhere useful to store it.

Categories
MariaDB Nginx Wordpress

Site recreation

Time moves on, as do opinions.

I have chosen to restart my sites from scratch. This means that any snippets I post will be more current, and therefore hopefully more helpful.