-
-
Notifications
You must be signed in to change notification settings - Fork 788
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extend installer to Debian-based distros #537
Conversation
… into armbian-buster
Performed the following on each system / distro:
Except where noted, on current (buster) releases of Raspbian, Armbian, Debian and Ubuntu Server 18.04 LTS + 19.10:
Note: as mentioned before, bridged AP mode doesn't work on Ubuntu, but hostapd continues to function in routed AP mode. * Only Debian 9 Server (stretch) is available for this model. All form submits throw 'Invalid CSRF token'. Probably related to php7.0-cgi being the default package. php7.3-cgi is available after adding the PPA repository, but won't support this in the installer. |
While searching for bridged networking for Ubuntu, I came across https://github.com/CanonicalLtd/netplan It looks interesting but I haven't tried it yet. And if it works across Raspbian, Debian, Armbian, and Ubuntu, it could very well simplify all the network config switcheroos that RaspAP has to do. netplan seems to work by using yaml config files and then applying them to your system's settings and making them persistent. Or if we prefer not to use yet another 3rd-party manager, perhaps we can take inspiration from them, especially in regards to how they handle config files |
Ah yes, netplan. I eat/sleep/breathe Ubuntu server for my dayjob, so I should have known this.
It certainly could. According to the netplan docs:
so this would be a dependency. In any case, I don't think we need to go full netplan for this PR, but rather release extended OS support with a note re: Ubuntu + bridged AP mode. |
Found an issue w/ servicestart.sh. During a normal routed ie., non-bridged or managed AP restart On reboot, the daemon fails to exit and one CPU core is pegged at 100%. On the Orange Pi3 the temp registered 80℃ 😬before the process was killed. Given that interface management in servicestart.sh is controlled by To fix this suggest we remove modification of the systemd service, unless necessary for |
Fixed w/ latest commits |
Sorry for the absence. Good catch with the daemon not being killed. I'm racking my brain asking myself why I added that |
No worries. I realized the I still think it can be improved as it's kludgy to have the daemon start with |
This aligns the installer with Debian's modern SysV style. In the process, support is added for several other Debian-based distros. Tested successfully on buster releases of Armbian, Debian and Ubuntu Server 18.04.4 LTS. A few notes:
/etc/sudoers.d/090_raspap
/etc/dnsmasq.conf
now go to/etc/dnsmasq.d/090_raspap.conf
/etc/rc.local
is deprecated in favor of systemd. IP forwarding now goes to/etc/sysctl.d/90_raspap.conf/
/etc/rc.local
See #269. Thanks to @michalfita who first raised this issue.
Testing & input greatly appreciated.