# c3gov
Fill out your hacker passport using a professional dot matrix printer.

## How to use the official® setup

### Start up
1. Plugin the Raspberry Pi.
2. Mind the following order:
  1. Insert the RS232 adapter for the client(s) and connect them.
  2. As the last device insert the RS232 adapter for the printer.
  3. Turn on the printer.

### If the interface freezes
1. Turn off the printer.
2. Unplug the RS232 adapter from the Raspberry Pi.
3. Replug all RS232 in the order like described above.

### Turning off
1. Turn off the computer.
2. Unplug the RS232 adapter from the Raspberry Pi.
3. Turn off the Raspberry Pi.

## General information

### Configuration

See the `./config` file to set the client number and the event name.

### Hardware Requirements
- Wincor Nixdorf HighPrint 4915
- Raspberry Pi
- 3x - 5x USB RS232 adapter (male -> USB)
  - 1x for printer
  - 4x for two clients (2x each client)
- 2x RS232 connector (female -> female)
- 2x old laptops with some debian without GUI, only tty.

### Software Requirements
For the clients:
- screen

For the Raspberry Pi
- dialog

### Supported Passports
The following passports are supported atm:
 - CmS Junghackerpass
 - Bound Diplomatic passport by Mitch Altman (TVBGone) Matthew Borgatti (har.ms)
 - Stapled Diplomatic passport Mitch/Matthew and Nils-Arne Pohlandt (devtal.de)

Do you want yours to be supported, too?
Talk to me and send me 3 example pieces. :)

### Installation

1. Be root.
2. `cd /root`
3. `git clone https://git.chaospott.de/Bandie/c3gov`
4. `cd c3gov`
5. `cp -r etc/systemd/system/* /etc/systemd/system`
6. `systemctl enable --now getty@ttyUSB0`
7. `systemctl enable --now getty@ttyUSB1` (if there's will be a second client)
8. Add a user in .pw: `echo "password" > .pw/username`

## Contribution

Thank you Korhast for proof-reading the English translation of the C3GovVerV! 
