Browse Source

added config files

master
Flutter 1 year ago
parent
commit
e99b63b67c
4 changed files with 56 additions and 2 deletions
  1. +4
    -2
      README.md
  2. +2
    -0
      files/etc/default/eggnogg
  3. +32
    -0
      files/etc/default/nodm
  4. +18
    -0
      files/etc/systemd/system/eggnoggpi.service

+ 4
- 2
README.md View File

@@ -34,7 +34,7 @@ Since we installed raspbian lite on the pi, we'll need to install xorg and set i

You can then configure nodm or just use the configuration file with this repo

cp nodm /etc/default/nodm
cp files/etc/default/nodm /etc/default/nodm

## Download eggnoggplus

@@ -44,8 +44,10 @@ To be continued

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

cp eggnoggpi.service /etc/systemd/system/eggnoggpi.service
cp files/etc/systemd/system/eggnoggpi.service /etc/systemd/system/eggnoggpi.service
systemctl daemon-reload
systemctl enable eggnoggpi
systemctl start eggnoggpi

If eggnoggpi doesn't start with the pi, add this little hack too
echo "@reboot root /sbin/service eggnoggpi start" >> /etc/crontab

+ 2
- 0
files/etc/default/eggnogg View File

@@ -0,0 +1,2 @@
# X-Windows screen identifier
DISPLAY=:0

+ 32
- 0
files/etc/default/nodm View File

@@ -0,0 +1,32 @@
# nodm configuration

# Set NODM_ENABLED to something different than 'false' to enable nodm
NODM_ENABLED=true

# User to autologin for
NODM_USER=pi

# First vt to try when looking for free VTs
NODM_FIRST_VT='7'

# X session
NODM_XSESSION=/etc/X11/Xsession

# Options for nodm itself
NODM_OPTIONS=

# Options for the X server.
#
# Format: [/usr/bin/<Xserver>] [:<disp>] <Xserver-options>
#
# The Xserver executable and the display name can be omitted, but should
# be placed in front, if nodm's defaults shall be overridden.
NODM_X_OPTIONS='-nolisten tcp'

# If an X session will run for less than this time in seconds, nodm will wait an
# increasing bit of time before restarting the session.
NODM_MIN_SESSION_TIME=60

# Timeout (in seconds) to wait for X to be ready to accept connections. If X is
# not ready before this timeout, it is killed and restarted.
NODM_X_TIMEOUT=300

+ 18
- 0
files/etc/systemd/system/eggnoggpi.service View File

@@ -0,0 +1,18 @@
[Unit]
Description=Eggnogg Plus on a Raspberry Pi
Requires=nodm.service
After=nodm.service

[Service]
Restart=always
User=pi
Group=pi
EnvironmentFile=/etc/default/eggnogg

WorkingDirectory=/home/pi/eggnoggplus-linux
ExecStartPre=sleep 5
ExecStart=/home/pi/eggnoggplus-linux/eggnoggplus

[Install]
WantedBy=graphical.target


Loading…
Cancel
Save