AWS + Azure Swap Space

Allocating swap space to a vanilla ubuntu server on Azure or AWS. By default, you will have zero swap. Possibly resulting is unknown app/memory related crashes. Add a bit of swap for a buffer! fallocate -l 1G /swapfile;chmod 600 /swapfile;mkswap /swapfile;swapon /swapfile;echo “/swapfile swap swap defaults 0 0” >> /etc/fstab;swapon –show;free -h;  

Create a Pi Compute Module Image

Windows Setup Download the Windows Raspberry Pi Compute Module Boot Loader: https://github.com/raspberrypi/usbboot/raw/master/win32/rpiboot_setup.exe Install the RPI Boot Setup file With the board powered off, ensure the USB Boot jumper link is enabled.  Attach the Desktops USB to the ‘Micro USB Slave’ port Attach the micro USB power supply to ‘Power In’ to power up the board  The[…]

Raspbian Pi Compute Module – Delete Current Image

Windows Setup Download the Windows Raspberry Pi Compute Module Boot Loader: https://github.com/raspberrypi/usbboot/raw/master/win32/rpiboot_setup.exe Install the RPI Boot Setup file With the board powered off, ensure the USB Boot jumper link is enabled.  Attach the Desktops USB to the ‘Micro USB Slave’ port Attach the micro USB power supply to ‘Power In’ to power up the board  The[…]

Flash a Pi Compute Module with Raspbian Server

Windows Setup Download the Windows Raspberry Pi Compute Module Boot Loader: https://github.com/raspberrypi/usbboot/raw/master/win32/rpiboot_setup.exe Install the RPI Boot Setup file With the board powered off, ensure the USB Boot jumper link is enabled.  Attach the Desktops USB to the ‘Micro USB Slave’ port Attach the micro USB power supply to ‘Power In’ to power up the board  The[…]

Lost Application Window!

If you are having pain and have lost your application window to a monitor that doesnt exist, try this!  From the task bar: 1. Press and hold the Shift key, right click or press and hold on the taskbar app icon and release the Shift key. 2. Click/tap on Move. (as per screen grab)   3. Using your up-down-left-right keys on your keyboard, hold[…]

Certbot WWW and Non-WWW

For Apache To use certbot for both a http://domain and http://www.domain use the following command:  

  Without specifying both domains, you will get a certificate error for the domain not specified during creation.

Reverse Proxy into Linux via SSH

Instructions to establish a reverse SSH proxy on server startup. Useful for setting up a server behind gateways/firewalls.   Install SSH keys on the remote and local server. Note the command should work independently before setting up as a service.

On the remote server you can login via the tunnel

  Create a service[…]