35 lines
2.3 KiB
Markdown
35 lines
2.3 KiB
Markdown
|
---
|
|||
|
title: Installing Raspian on a Pi
|
|||
|
date: 2018-09-01 22:26:46
|
|||
|
thumbnail: /images/raspian.jpg
|
|||
|
comments: false
|
|||
|
tags:
|
|||
|
- Setup
|
|||
|
categories:
|
|||
|
- Install
|
|||
|
- Raspian
|
|||
|
---
|
|||
|
## Intro
|
|||
|
Installing Raspbian on a Pi is super easy. First get hold of [Raspbian](https://www.raspberrypi.org/downloads/raspbian). I use the “Stretch-Lite” version, as it is smaller and I don't need a GUI.
|
|||
|
|
|||
|
You’ll need to use a tool to write the image to an SD card. If you have Linux - you can use Linux's dd command. If you use Windows or a Mac, (or you want a GUI for Linux), you can use [etcher](https://etcher.io/).
|
|||
|
|
|||
|
### You have two options:
|
|||
|
|
|||
|
1. Basic
|
|||
|
|
|||
|
A basic install means that you install Raspbian and it consumes the complete capacity of your SD card. This is by far the easiest and less complex setup.
|
|||
|
|
|||
|
The image itself as about 1.5G, and when you install it on a (larger) SD card, when Raspbian first boots, it will automatically re-partition the SD card so that the root partition consumes the remaining capacity of the SD card and reboot. On the subsequent reboot it will automatically resize that file system so that it now consumes that remaining capacity.
|
|||
|
|
|||
|
|
|||
|
2. Advanced
|
|||
|
|
|||
|
An advanced install means that you want to control your file system layout and potentially use more mount points and/or some block devices. I went through this process because I wanted to install [glusterFS](https://www.gluster.org/) on my Pi(s) so that I can share a replicated file system with more than 1 Pi. I needed this because I wanted to use [Docker Swarm](https://docs.docker.com/engine/swarm/) (where your docker containers can float between Pis) and glusterFS provides the consistent persistent storage for those containers. And since glusterFS provides redundancy options, it means I can take a Pi offline (or in case it dies) and my BBS will start on another Pi.
|
|||
|
|
|||
|
To do this install, I modified the Raspbian image, so that it wouldn't resize the root file system after a reboot.
|
|||
|
|
|||
|
You can achieve this by removing `init=/usr/lib/raspi-config/init_resize.sh` in cmdline.txt (on the boot partition) - it should be at the end of the line.
|
|||
|
|
|||
|
Now you can setup [Mystic BBS](http://www.mysticbbs.com/), [MBSE BBS](http://sourceforge.net/projects/mbsebbs) or your favourite BBS software, or follow [my Docker installation](/2018/09/02/docker) if you want to run your BBS’s in docker.
|