浏览代码

Update README.md

master
Heuzef 1年前
父节点
当前提交
3138582592
共有 1 个文件被更改,包括 13 次插入13 次删除
  1. +13
    -13
      README.md

+ 13
- 13
README.md 查看文件

@@ -45,34 +45,34 @@ sudo apt install nodm
git clone https://git.heuzef.com/Flutter/eggnoggpi.git
```

## Clone the repo of project

## Configure nodm

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

```
cp /home/pi/eggnoggpi/files/etc/default/* /etc/default/
sudo cp /home/pi/eggnoggpi/files/etc/default/* /etc/default/
```

## Download eggnoggplus

To be continued
## Install eggnoggplus

Then copy the setting file
```
cp -R files/home/pi/.madgarden /home/pi/
sudo cp -r /home/pi/eggnoggpi/files/home/eggnoggplus-linux/ /home/pi/
sudo chown pi:pi -R /home/pi/eggnoggplus-linux/
cp -R /home/pi/eggnoggpi/files/home/.madgarden/ /home/pi/
```

## Install the service

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 files/etc/systemd/system/eggnoggpi.service /etc/systemd/system/eggnoggpi.service
systemctl daemon-reload
systemctl enable eggnoggpi
systemctl start eggnoggpi
sudo cp /home/pi/eggnoggpi/files/etc/systemd/system/eggnoggpi.service /etc/systemd/system/eggnoggpi.service
sudo systemctl daemon-reload
sudo systemctl enable eggnoggpi
sudo 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
sudo echo "@reboot root /sbin/service eggnoggpi start" >> /etc/crontab
```

正在加载...
取消
保存