Miscellaneous

ptitle-particle1

UK Postcode Regex

([Gg][Ii][Rr] 0[Aa]{2})|((([A-Za-z][0-9]{1,2})|(([A-Za-z][A-Ha-hJ-Yj-y][0-9]{1,2})|(([A-Za-z][0-9][A-Za-z])|([A-Za-z][A-Ha-hJ-Yj-y][0-9][A-Za-z]?))))\s?[0-9][A-Za-z]{2})   For XSD postcode validation.
Read more

Remove UI from Raspian Buster

apt install openjdk-11-jre-headless apt-get remove -y libice6 apt-get autoremove -y --purge touch /boot/ssh raspi-config Boot Options - B1 Desktop / CLI - B1 Text console, requiring user to login - Press Enter - Tab over to Finish - Yes to Reboot
Read more

Upgrade Windows 2016 Eval License

Open a command prompt as an administrator and depending on the version, run either of these: Dism /online /Set-Edition:ServerDatacenter /AcceptEula /ProductKey:12345-67890-12345-67890-12345 OR Dism /online /Set-Edition:ServerStandard /AcceptEula /ProductKey:12345-67890-12345-67890-12345 This is useful if you are seeing a ‘cannot upgrade from this edition’ error message.
Read more

VMWare Workstation – Different Snapshot Directory

VMWare Workstation : Instructions to ensure snapshots can be saved in a different drive that the VM. Stop the VM Edit the VMX file add the following lines to the bottom of the vmx file workingDir = “SNAPSHOT_PATH”sched.swap.dir = “VMX_PATH” Save the file and start the VM by clicking through the vmx file (to ensure…
Read more

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;  
Read more

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 […]
Read more

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 […]
Read more

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 […]
Read more
Cart

No products in the basket.