Update Installation authored by Felix Kopp's avatar Felix Kopp
This page is a copy of the installation section in the README file for completeness.
## TL;DR
There is a full install script specifically designed for Raspbian that worries
about all the needed stuff for you. Just copy the command below and paste it
into you running bash shell:
```bash
bash <(curl -s https://mygit.th-deg.de/fk16790/SevenSegController/raw/master/install.sh)
```
## Manual installation
The only two reasons you would want to follow these steps are either if the
install script didn't work for some reason, or you want to learn what's going
on in such an installation.
If you want to build this module, you willl need to have the `build-essentials`
package installed on your Raspbian system. Furthermore, you should have hooked
up your seven segment display to the Raspberry's GPIO pins as described in
[Wiring](./WIRING.md "How to wire your system up"). If everything is set up,
you can proceed with these steps.
1. **Get your current Linux headers.** Depending on what system you are using,
you should be able to install these headers with your package manager.
Example for Raspbian:
```bash
root@raspberry:~# apt-get -y install raspberrypi-kernel-headers build-essentials
```
If you are running something other than Raspbian, you most probably know
what you're doing and are able to install these headers manually on your
own.
2. **Download the package.** The recommended way of doing this is to clone this
repository into your local directory. You will need to have `git` installed,
but this is already the case on a default Raspbian installation.
```bash
root@raspberrypi:~# git clone https://mygit.th-deg.de/fk16790/SevenSegController.git
```
3. **Build the module.** If you successfully extracted the package, you can
change into the project's root directory and compile it with make:
```bash
root@raspberry:~# cd SevenSegController
root@raspberry:~/SevenSegController# make
root@raspberry:~/SevenSegController# make clean # This step is optional
```
4. **Load the module into the kernel.** Now, you just have to type
```bash
insmod sevenseg.ko
```
to load the module.
Easy, isn't it?
\ No newline at end of file