Raspberry Pi Home Server

ZRam

sudo apt-get install zram-config
sudo gedit /usr/bin/init-zram-swapping

# Reduce SWAP space to half
mem=$(((totalmem / 2 / ${NRDEVICES}) * 1024))
v
mem=$(((totalmem / 2 / ${NRDEVICES}) * 512))

MiniDLNA

sudo apt-get install minidlna

The minidlna.conf is as followed

# Specify the user name or uid to run as.
user=pi
....
#media_dir=/var/lib/minidlna
media_dir=/home/pi/DLNA
....
#db_dir=/var/cache/minidlna
db_dir=/home/pi/.dlnacache
....
#log_dir=/var/log
log_dir=/home/pi/.dlnalog

MariaDB

sudo apt-get install mariadb-server

CREATE USER 'xxxxxx'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON *.* TO 'xxxxxx'@'localhost';
FLUSH PRIVILEGES;

sudo apt-get install phpmyadmin

PostgreSQL

sudo apt install postgresql libpq-dev postgresql-client postgresql-client-common

Redis


OpenVPN

curl -L https://install.pivpn.io | bash

Java

https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

Linux ARM 32 Hard Float ABI	

NodeJS

sudo apt-get install nodejs

InfluxDB