Skip to content

Instantly share code, notes, and snippets.

View chrisloweau's full-sized avatar

Chris Lowe chrisloweau

View GitHub Profile
@chrisloweau
chrisloweau / ubuntu-unifi.sh
Last active June 12, 2018 15:44
UniFi 5 Installation Script for Ubuntu
#!/bin/bash
################################################################################
#
# This script automates the installation of the UniFi controller software on
# Ubuntu.
#
# http://www.technologist.site/ubnt
#
################################################################################
@chrisloweau
chrisloweau / myvncserver.service
Created September 21, 2017 05:07
VNC Service wrapper for systemd on Raspbian x86
[Unit]
Description=VNC Server
[Service]
Type=forking
ExecStart=/usr/local/bin/myvncserver start
ExecStop=/usr/local/bin/myvncserver stop
ExecReload=/usr/local/bin/myvncserver restart
User=pi
@chrisloweau
chrisloweau / myvncserver
Last active September 21, 2017 04:57
VNC Server service script
#!/bin/bash
PATH="$PATH:/usr/bin/"
DISPLAY="1"
DEPTH="16"
GEOMETRY="1920x1080"
OPTIONS="-depth ${DEPTH} -geometry ${GEOMETRY} :${DISPLAY}"
case "$1" in
start)
@chrisloweau
chrisloweau / raspbian_x86_persistence.sh
Last active September 21, 2017 02:52
This script is used to create the 'Persistence' partition for Raspbian x86
#!/bin/bash
DEV=sda
parted /dev/$DEV --script mklabel gpt
parted /dev/$DEV --script mkpart persistence 0% 100%
mkfs.ext4 /dev/${DEV}1
mkdir -p /media/pi/persistence
mount /dev/${DEV}1 /media/pi/persistence
chown pi /media/pi/persistence
echo / union > /media/pi/persistence/persistence.conf
<#
.SYNOPSIS
Creates a Hyper-V Virtual Machine suitable for running Raspbian x86.
.DESCRIPTION
This PowerShell script creates a new Hyper-V Generation 2 Virtual Machine
that is suitable for installing and running Raspbian x86. The default
hardware configuration set by this script is as follows:
- 4 Processor Cores
- 896MB Static Memory
- 128MB RemoteFX 3D Video Adapter
@chrisloweau
chrisloweau / Ubuntu_Server_Hyper-V.ps1
Last active June 27, 2017 06:28
Create a Hyper-V Virtual Machine suitable for running Ubuntu Server
<#
.SYNOPSIS
Creates a Hyper-V Virtual Machine suitable for running Ubuntu Server.
.DESCRIPTION
This PowerShell script creates a new Hyper-V Generation 2 Virtual Machine
that is suitable for installing and running Ubuntu Server. The default
hardware configuration set by this script is as follows:
- 4 Processor Cores
- 1GB Dynamic Memory (512MB to 1TB)
- 127GB Dynamic Hard Disk
@chrisloweau
chrisloweau / wordpress-install.ps1
Last active January 18, 2018 19:37
WordPress Installation Script for Windows Server 2016 and Windows 10 (PowerShell)
<#
================================================================================
===== WordPress Installation Script for Windows Server 2016 and Windows 10 =====
================================================================================
#>
"`r`nWordPress Installation Script for Windows Server 2016 and Windows 10"
"===================================================================="
cd ~\Downloads
@chrisloweau
chrisloweau / quake3.sh
Last active May 12, 2022 22:13
This script automates downloading, compiling, patching and running Quake 3 on the Raspberry Pi.
#!/bin/bash
################################################################################
#
# This script automates downloading, compiling, patching and running Quake 3 on
# the Raspberry Pi.
#
# This script is written and maintained by Chris Lowe.
#
# http://www.lowefamily.com.au