eggnogg on the pi zero 2w !
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

pirms 4 mēnešiem
pirms 1 gada
pirms 4 mēnešiem
pirms 4 mēnešiem
pirms 1 gada
pirms 4 mēnešiem
pirms 4 mēnešiem
pirms 4 mēnešiem
pirms 4 mēnešiem
pirms 4 mēnešiem
pirms 1 gada
pirms 1 gada
pirms 1 gada
pirms 4 mēnešiem
pirms 4 mēnešiem
pirms 4 mēnešiem
pirms 1 gada
pirms 1 gada
pirms 4 mēnešiem
pirms 1 gada
pirms 1 gada
pirms 4 mēnešiem
pirms 1 gada
pirms 4 mēnešiem
pirms 1 gada
pirms 4 mēnešiem
pirms 1 gada
pirms 4 mēnešiem
pirms 1 gada
pirms 1 gada
pirms 1 gada
pirms 4 mēnešiem
pirms 1 gada
pirms 1 gada
pirms 1 gada
pirms 1 gada
pirms 1 gada
pirms 1 gada
pirms 11 mēnešiem
pirms 4 mēnešiem
pirms 1 gada
pirms 4 mēnešiem
pirms 1 gada
pirms 4 mēnešiem
pirms 4 mēnešiem
pirms 1 gada
pirms 4 mēnešiem
pirms 1 gada
pirms 4 mēnešiem
pirms 1 gada
pirms 4 mēnešiem
pirms 4 mēnešiem
pirms 1 gada
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. # EggnoggPI
  2. Eggnogg on the Raspberry PI !
  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. ## Hardware needed
  7. * [Raspberry PI02W](https://www.kubii.com/en/nano-computers/3455-raspberry-pi-zero-2-w-5056561800004.html)
  8. * Micro-SD Card (4GB)
  9. * Mini-HDMI cable
  10. * 5V 2.5A power supply
  11. * [AuviPal Hub Micro USB OTG 3 Ports + Power](https://www.amazon.fr/gp/product/B083WML1XB)
  12. * [2 PCS Wired USB NES Conroller Game Joypad](https://fr.aliexpress.com/item/1005001611443967.html)
  13. * For the case, you can use the 3D source files
  14. Estimated total cost arround 50$
  15. ## Setup Raspbian Lite 64 bit
  16. 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
  17. You'll then only need a minimum of 4Gb µSD card, and install raspbian lite **64 bit** on it.
  18. https://www.raspberrypi.com/documentation/computers/getting-started.html
  19. Connect, setup Wi-Fi and run somes update.
  20. ## Disable Swap
  21. ```
  22. sudo dphys-swapfile swapoff && \
  23. sudo dphys-swapfile uninstall && \
  24. sudo systemctl disable dphys-swapfile
  25. ```
  26. ##
  27. ## Setup BOX64
  28. 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.
  29. 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.
  30. ```
  31. wget https://ryanfortner.github.io/box64-debs/box64.list -O /etc/apt/sources.list.d/box64.list
  32. wget -qO- https://ryanfortner.github.io/box64-debs/KEY.gpg | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/box64-debs-archive-keyring.gpg
  33. apt update
  34. apt install box64-arm64 -y
  35. ```
  36. ##
  37. ## Setup the screen
  38. 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.
  39. ```
  40. sudo apt install -y nodm libsdl2-2.0-0 mpv antimicrox
  41. ```
  42. ##
  43. ## Clone the repo of project
  44. ```
  45. cd
  46. git clone https://git.heuzef.com/Flutter/eggnoggpi.git
  47. ```
  48. ## Configure Nodm
  49. You can then configure nodm or just use the configuration file with this repo
  50. ```
  51. sudo cp /home/pi/eggnoggpi/files/etc/default/* /etc/default/
  52. ```
  53. ## Install Eggnoggplus
  54. ```
  55. sudo cp -r /home/pi/eggnoggpi/files/home/eggnoggplus-linux/ /home/pi/
  56. sudo chmod +x /home/pi/eggnoggplus-linux/eggnoggplus/
  57. sudo chown pi:pi -R /home/pi/eggnoggplus-linux/
  58. cp -R /home/pi/eggnoggpi/files/home/.madgarden/ /home/pi/
  59. ```
  60. ## Install services
  61. 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
  62. ```sh
  63. sudo cp /home/pi/eggnoggpi/files/etc/systemd/system/eggnoggpi.service /etc/systemd/system/eggnoggpi.service
  64. sudo cp /home/pi/eggnoggpi/files/etc/systemd/system/mpv.service /etc/systemd/system/mpv.service
  65. sudo cp /home/pi/eggnoggpi/files/etc/systemd/system/antimicrox.service /etc/systemd/system/antimicrox.service
  66. sudo systemctl daemon-reload
  67. sudo systemctl enable antimicrox
  68. sudo systemctl start antimicrox
  69. sudo systemctl enable eggnoggpi
  70. sudo systemctl enable mpv
  71. sudo systemctl start mpv
  72. sudo systemctl start eggnoggpi
  73. sudo echo "@reboot root /sbin/service eggnoggpi start" >> /etc/crontab
  74. cp -R /home/pi/eggnoggpi/files/home/.config/antimicrox .config/
  75. ```