|
| 1 | +# Run PPUC |
| 2 | + |
| 3 | +Open a Terminal and enter the following command for a list of options: |
| 4 | +```shell |
| 5 | +ppuc-pinmame -h |
| 6 | +``` |
| 7 | + |
| 8 | +- To get started you can do a dry run as described [here](build_from_source.md#test). |
| 9 | +- Clearly you need the appropiate pinmame rom for your pinball machine. |
| 10 | +- Also a .yml file is required which defines the IO for your hardware as explaned [here](config_tool.md). |
| 11 | + |
| 12 | +## USB connections |
| 13 | + |
| 14 | +PPUC uses USB to access your hardware: |
| 15 | + |
| 16 | +1. USB - RS485: This is required to communicate with the PPUC IO boards. |
| 17 | +Note that the comandline for the dry run uses the -n option to disable this. |
| 18 | +2. Optionally connect a ZeDMD display. This is also possible without the IO boards. |
| 19 | + |
| 20 | +## Linux |
| 21 | + |
| 22 | +You can use any Linux distribution you like. We tested with both Debian and Ubuntu. |
| 23 | +For Raspberry Pi use: Raspberry Pi OS Lite (no need for a desktop or other software). |
| 24 | + |
| 25 | +### USB access |
| 26 | + |
| 27 | +USB access is only possible when your username is in the 'dialout' group. |
| 28 | + |
| 29 | +To see in which groups you are: |
| 30 | +```shell |
| 31 | +groups |
| 32 | +``` |
| 33 | + |
| 34 | +To get USB access: |
| 35 | +```shell |
| 36 | +sudo usermod -a -G tty $USER |
| 37 | +sudo usermod -a -G dialout $USER |
| 38 | +``` |
| 39 | +When using Raspberry Pi OS you also need to be in the plugdev group: |
| 40 | +``` |
| 41 | +sudo usermod -a -G plugdev $USER |
| 42 | +``` |
| 43 | + |
| 44 | +### USB ports |
| 45 | + |
| 46 | +To check if your USB device is recognized by Linux, use: |
| 47 | +```shell |
| 48 | +lsusb |
| 49 | +``` |
| 50 | +The following command lists the USB to serial interfaces (USB-RS485 for PPUC IO). |
| 51 | +```shell |
| 52 | +ls -l /dev/ttyUSB* |
| 53 | +``` |
| 54 | + |
| 55 | +### Run |
| 56 | + |
| 57 | +Run from the ppcu directory: |
| 58 | +``` |
| 59 | +ppuc/ppuc-pinmame -c <your>.yml |
| 60 | +``` |
| 61 | +This should run PPUC with RS484 communication to control the IO boards. It will also use a ZeDMD when available. Exit with CTRL-C. |
| 62 | + |
| 63 | +### VirtualBox |
| 64 | + |
| 65 | +Oracle [VirtualBox](https://www.virtualbox.org/) is a very nice tool to experiment with the software. Especially when you are not familiar with the Linux OS: |
| 66 | + |
| 67 | +- Run any Linux distro in a separate virtual machine (a fresh start is easy). Easy to remove / delete when done. |
| 68 | +- Use snapshots to save a specific machine state. That allows you to go back to a known good situation. |
| 69 | +- Have a secure environment which is isolated from your OS, disks and network. You control what is shared / connected. |
| 70 | + |
| 71 | +After creating a virtual computer it is best to install the VirtualBox Guest Additions: |
| 72 | + |
| 73 | +- Allows you to copy-paste from your computer (host) to the virtual machine. |
| 74 | +- Provides functionallity to share folders. |
| 75 | + |
| 76 | +When you want to use ppuc on the the virtual Linux machine with hardware (IO boards / ZeDMD) install the VirtualBox Extension Pack. |
| 77 | +Then you can use the Virtual Machine Status Bar to connect with the appropiate USB port(s). |
| 78 | + |
0 commit comments