eggnogg on the pi zero 2w !
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

README.md 3.3 KiB

1 ano atrás
1 ano atrás
1 ano atrás
4 meses atrás
1 ano atrás
4 meses atrás
1 ano atrás
1 ano atrás
1 ano atrás
1 ano atrás
1 ano atrás
1 ano atrás
1 ano atrás
4 meses atrás
1 ano atrás
1 ano atrás
1 ano atrás
1 ano atrás
1 ano atrás
1 ano atrás
1 ano atrás
1 ano atrás
1 ano atrás
1 ano atrás
1 ano atrás
1 ano atrás
11 meses atrás
1 ano atrás
4 meses atrás
1 ano atrás
4 meses atrás
4 meses atrás
1 ano atrás
4 meses atrás
1 ano atrás
4 meses atrás
1 ano atrás
4 meses atrás
4 meses atrás
1 ano atrás
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. # Eggnoggpi
  2. Eggnogg on the Raspberry PI02W !
  3. ## Description
  4. For all of you who need to run eggnoggplus on a raspberry pi to get frenzied parties, eggnoggpi is the right project.
  5. In this readme, you will see how to setup a PI02W to autostart with eggnoggpi, so you only need to connect 2 controller, and a screen, power on the pi, and play !
  6. ## Setup raspbian lite 64 bit
  7. First thing first, you'll need to install raspbian lite on your pi, you can do this just by downloading rpi-image from the official raspberry pi website https://www.raspberrypi.com/software
  8. You'll then only need a minimum of 4Gb µSD card, and install raspbian lite **64 bit** on it.
  9. https://www.raspberrypi.com/documentation/computers/getting-started.html
  10. Connect, setup Wi-Fi and run somes update
  11. ## setup swap to no
  12. ```
  13. sudo dphys-swapfile swapoff && \
  14. sudo dphys-swapfile uninstall && \
  15. sudo systemctl disable dphys-swapfile
  16. ```
  17. ## Setup box64
  18. Sadly, Eggnoggplus is a x86_64 program only on linux, and we do not have access to the sources, so well need a little help from an emulator to get it working.
  19. Box64 is a simple x86_64 emulator for other architecture like arm64, it can detect wether you want to start a x86_64 linux elf, and start translating the binary for you, if you need external libraries that exists on arm64, it'll use them so it won't have to translate it, you'll get more performance, very usefull on low power arm cpu like the one on the pi.
  20. ```
  21. wget https://ryanfortner.github.io/box64-debs/box64.list -O /etc/apt/sources.list.d/box64.list
  22. wget -qO- https://ryanfortner.github.io/box64-debs/KEY.gpg | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/box64-debs-archive-keyring.gpg
  23. apt update
  24. apt install box64-arm64 -y
  25. ```
  26. ## Setup the screen
  27. Since we installed raspbian lite on the pi, we'll need to install xorg and set it to auto login on boot, to achieve that, we'll install nodm.
  28. ```
  29. sudo apt install -y nodm libsdl2-2.0-0 mpv antimicrox
  30. ```
  31. ## Clone the repo of project
  32. ```
  33. git clone https://git.heuzef.com/Flutter/eggnoggpi.git
  34. ```
  35. ## Configure nodm
  36. You can then configure nodm or just use the configuration file with this repo
  37. ```
  38. sudo cp /home/pi/eggnoggpi/files/etc/default/* /etc/default/
  39. ```
  40. ## Install eggnoggplus
  41. ```
  42. sudo cp -r /home/pi/eggnoggpi/files/home/eggnoggplus-linux/ /home/pi/
  43. sudo chmod +x /home/pi/eggnoggplus-linux/eggnoggplus/
  44. sudo chown pi:pi -R /home/pi/eggnoggplus-linux/
  45. cp -R /home/pi/eggnoggpi/files/home/.madgarden/ /home/pi/
  46. ```
  47. ## Configure controller
  48. ...
  49. ## Install the service
  50. To allow eggnogg to start on boot, we install it as a systemd service, you can write your own or just use the one with this repos
  51. ```sh
  52. sudo cp /home/pi/eggnoggpi/files/etc/systemd/system/eggnoggpi.service /etc/systemd/system/eggnoggpi.service
  53. sudo cp /home/pi/eggnoggpi/files/etc/systemd/system/mpv.service /etc/systemd/system/mpv.service
  54. sudo cp /home/pi/eggnoggpi/files/etc/systemd/system/antimicrox.service /etc/systemd/system/antimicrox.service
  55. sudo systemctl daemon-reload
  56. sudo systemctl enable antimicrox
  57. sudo systemctl start antimicrox
  58. sudo systemctl enable eggnoggpi
  59. sudo systemctl enable mpv
  60. sudo systemctl start mpv
  61. sudo systemctl start eggnoggpi
  62. sudo echo "@reboot root /sbin/service eggnoggpi start" >> /etc/crontab
  63. cp -R /home/pi/eggnoggpi/files/home/.config/antimicrox .config/
  64. ```