SSH on Netgear switches

Go to the switch log in, go to security, access then SSH. You can see here no keys are present. Use SSH2 as it’s more secure, so go over to the host keys management page, generate the DSA and RSA keys, then apply – wait for a little, now you can enable SSH admin, (disable version1) 

info on v1 vs v2 and in general

From a terminal you can now log in – but you may get an error in which case use a specific key exchange as pictured. 

ssh -oKexAlgorithms=+diffie-hellman-group14-sha1 admin@

Once in, use the ? to see the commands available, and enable then ? for the administration commands. 

if you need to remove the ssh key with ‘ssh-keygen -R “hostname”‘

you can add the key algorthym perminantly to your ssh hosts file

add Host KexAlgorithms +diffie-hellman-group14-sha1
to ~/.ssh/config.

Hard drive upgrade with encryption in Ubuntu

sudo fdisk -l | grep Disk
sudo dd if=/dev/sda of=/dev/sdb status=progress bs=4m
sudo parted /dev/sda print 
sudo parted /dev/sda resizepart 4 100%
sudo cryptsetup luksOpen /dev/sda4 vgubuntu
sudo cryptsetup resize vgubuntu
sudo pvresize /dev/mapper/vgubuntu
sudo pvs
sudo vgs
sudo lvs
lvresize -l +100%FREE /dev/vgubuntu
e2fsck -f /dev/mapper/vgubuntu-root
resize2fs /dev/mapper/vgubuntu-root

x11VNC on raspberry Pi OS – possible! VNC server for remote access or screen sharing.

sudo apt update  
sudo apt install x11vnc
sudo nano /lib/systemd/system/x11vnc.service
Description=x11vnc service

ExecStart=/usr/bin/x11vnc -forever -display :0 -auth guess -passwd password
ExecStop=/usr/bin/killall x11vnc

sudo systemctl daemon-reload 
sudo systemctl enable x11vnc.service 
sudo systemctl start x11vnc.service 
systemctl status x11vnc.service

Storage on the cheap

So as a bit of a cheapskate and with a like of recycling. It is possible to get good storage 2nd hand and cheap and fast…. oh yeah – Good, Cheap, Fast.

The Iron Triangle is Rusted. “Good, Fast, or Cheap. Pick two” is one… | by  Michael Pastore | Medium

They normally say it can’t be done… but I think it can, and it can be done in software rather than hardware.

Here’s my thinking…

Loads of cheap desktops, rammed with largish spinning rust with 1 SSD for write cache and OS. Then clustered together to make one massive fault tolerant file system. No special controllers, just the mobo ones.

Here’s my goals…. I want to be able to saturate a 10Gb NIC with consistent read and writes. I want to use cheap commodity hardware, or used server kit that’s reached the 2nd life market.

How hard can it be?

A new year: 2021

So it’s a new year and I have a new workshop. Time to get things sorted. Things I want to get done this year:

  • Aquaponics – get it set up and self managing again
  • The laser cutter – get it working
  • 3d printer – print some actually usefull things
  • Blade server – sort out which blades I’m keeping and put it to good use.

We’ll see how far I get with this list this time next year


I needed this for something so here it is – open source goodness.

It’s a script you can run on one server, which passes info to another to send an email. Pretty simple and no validation ect included.

How to set and verify a Static IP on Raspberry Pi OS

You may want to set a static IP and there are two easy ways to do so. 

The first way, you can use the GUI. go to the arrows in the top right, and right click or secondary click on this and then select ‘Wireless and Wired Network settings’. From there choose the interface, which is usually eth0 and fill in the IP address, router and DNS server you wish to use.

The second way is to edit a config file. Open a terminal from the bar and type in “nano /etc/dhcpcd.conf” then return. this will open the file in the nano editor within the terminal. Using the down arrow navigate to a commented out section with the example static IP. you’ll need to uncomment the interface line, static IP line, static routers line, and static domain name servers line. Then edit the address to what you need for your setup. If you’re only using IPv4 then remove the IPv6 DNS server. do a sudo reboot to apply. 

Once back up you can verify in two ways. 

The first way is to look in the GUI as before to see the details are now present. 

The second way is to again open a terminal and type “ip address show” to list the IP details for each interface.