Procházet zdrojové kódy

added config files

master
Flutter před 1 rokem
rodič
revize
e99b63b67c
4 změnil soubory, kde provedl 56 přidání a 2 odebrání
  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 Zobrazit soubor

@@ -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 Zobrazit soubor

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

+ 32
- 0
files/etc/default/nodm Zobrazit soubor

@@ -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 Zobrazit soubor

@@ -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


Načítá se…
Zrušit
Uložit