Raspberry Pi home server: Difference between revisions

From munkjensen.net/wiki
mNo edit summary
No edit summary
Line 14: Line 14:


== Basic installation ==
== Basic installation ==
[https://www.raspberrypi.org/downloads/raspbian/ Download] and [https://www.raspberrypi.org/documentation/installation/installing-images/README.md write Raspian Lite to the MicroSD card]
[https://www.raspberrypi.org/downloads/raspbian/ Download] and [https://www.raspberrypi.org/documentation/installation/installing-images/README.md write Raspian Lite to the MicroSD card]


== Raspi-config ==
== Raspi-config ==
Go thrugh all the menu points of the Rapsberry Pi SOftware Configuration Tool, and change the basic configuration to fit the needs of this [https://en.wikipedia.org/wiki/Home_server Home Server].
Go thrugh all the menu points of the Rapsberry Pi SOftware Configuration Tool, and change the basic configuration to fit the needs of this [https://en.wikipedia.org/wiki/Home_server Home Server].


== Hardening + SSH ==
== Hardening + SSH ==
Follow the guide: [[Hardened SSH daemon]] using the 'sudo' command when root powah is required.
Follow the guide: [[Hardened SSH daemon]] using the 'sudo' command when root powah is required.


== Add USB HD ==
== Add USB HD ==
I configured /dev/sdb1 to be mounted on /data, not the strange UUID..
I configured /dev/sdb1 to be mounted on /data, not the strange UUID..


== Nginx, PHP7, MySQL ==
== Nginx, PHP7, MySQL ==
Line 33: Line 33:


== PiHole DNS ==
== PiHole DNS ==
This must be installed using the option to NOT install the normally included webinterface, because that will require lighttpd, wich is not compatible with OwnCloud ;-)
This must be installed using the option to NOT install the normally included webinterface, because that will require lighttpd, wich is not compatible with OwnCloud ;-)
All PiHole administration must consequentially be done using terminal commands.
All PiHole administration must consequentially be done using terminal commands.


== PiVPN server ==
== PiVPN server ==

Revision as of 19:57, 15 April 2017

About this page.

This page contains explanation of the things i did to make different projects live together on a single Raspberri Pi.

https://www.pestmeester.nl/ is the base inspiration for my Home Server.
https://github.com/pi-hole/ provides super easy installation of an AdBlocking Domain Name Server functionality.
https://github.com/pivpn/ provides super easy installation and administration of OpenVPN Server funnctionality.

Hardware

Raspberry Pi 3 Model B, 1GB Ram
4 Gb MicroSD card.
USB Harddrive, 500 Gb SSHD
Raspberry Pi Camera Board v2.

Basic installation

Download and write Raspian Lite to the MicroSD card

Raspi-config

Go thrugh all the menu points of the Rapsberry Pi SOftware Configuration Tool, and change the basic configuration to fit the needs of this Home Server.

Hardening + SSH

Follow the guide: Hardened SSH daemon using the 'sudo' command when root powah is required.

Add USB HD

I configured /dev/sdb1 to be mounted on /data, not the strange UUID..

Nginx, PHP7, MySQL

sudo apt-get install nginx php7.0-fpm php7.0-curl php7.0-gd php7.0-cli php7.0-mcrypt php7.0-mysql php-apc mysql-server

LetsEncrypt

OwnCloud

PiHole DNS

This must be installed using the option to NOT install the normally included webinterface, because that will require lighttpd, wich is not compatible with OwnCloud ;-)
All PiHole administration must consequentially be done using terminal commands.

PiVPN server

WebCam, Htaccess password protected

Public accesible webpage.