MichaIng / DietPi

Lightweight justice for your single-board computer!
https://dietpi.com/
GNU General Public License v2.0
4.91k stars 501 forks source link

DietPi-Software | RaspAP: WiFi access point web interface #2813

Open symbios24 opened 5 years ago

symbios24 commented 5 years ago

Creating a software request

Formal software information

Can you provide the installation steps that you would suggest DietPi-Software to do?

Quick installer Install RaspAP from your RaspberryPi's shell prompt:

wget -q https://git.io/voEUQ -O /tmp/raspap && bash /tmp/raspap The installer will complete the steps in the manual installation (below) for you.

After the reboot at the end of the installation the wireless network will be configured as an access point as follows:

IP address: 10.3.141.1 Username: admin Password: secret DHCP range: 10.3.141.50 to 10.3.141.255 SSID: raspi-webgui Password: ChangeMe Note: As the name suggests, the Quick Installer is a great way to quickly setup a new AP. However, it does not automagically detect the unique configuration of your RPi. Best results are obtained by connecting an RPi to ethernet (eth0) or as a WiFi client, also known as managed mode, with wlan0

Are you willing to help maintaining the software installation, e.g. in case of needed setup changes due to updates etc.? This is not needed, but could speed up our decision to implement it, as man power is always a topic :wink:.

yes - ... #### Vote for this software on FeatHub: https://feathub.com/MichaIng/DietPi/+80
MichaIng commented 5 years ago

@symbios24 Many thanks for your request.

Hmm, I bet this one is too intrusive, breaking/colliding with dietpi-config and dietpi-software in many ways. E.g.: https://github.com/billz/raspap-webgui/blob/master/installers/raspbian.sh#L12 Install Lighttpd hardcoded instead of leaving webserver setup optional for end user. Installs hostapd from APT where we in some cases require a custom build for RTL8818* chips to run. Most likely it also overrides Lighttpd config and turns the device into a single-purpose one, not what we can support.

But I will have a closer look when I can.


Incompatible with PHP7.3, installs fixed PHP versions per-distro: https://github.com/billz/raspap-webgui/blob/master/installers/common.sh#L8-L25

Sets webroot fix to /var/www/html

Jep it is basically something you install onto a fresh image and then it converts it completely into a RaspAP-only device. DietPi aims to achieve the opposite: Having multiple applications running nicely besides each other, which requires that they can be installed non-intrusively, leaving system/backend install/config to the admin (or DietPi in our case).


Only chance is to use the manual install instructions in a much adjusted way: https://github.com/billz/raspap-webgui#manual-installation And then hope that the web UI itself can deal with this.

ikkerus commented 1 year ago

I beleive this can be adopted to suit the needs of DietPi and the dependencies to e.g. lighthttpd. RaspAP has been updated many times now and it uses this script (from install.raspap.com):

raspbian.txt

symbios24 commented 1 year ago

Hello

I think i tried before Raspap it was not working correctly for me,maybe i missed something

In case you put it in dietpi,please don't remove or merge it with the traditional wifi hotspot software,put it as a separate software.

Thank you

billz commented 1 year ago

@ikkerus the install loader (raspbian.sh) calls one of several shell scripts depending on options passed to it.

RaspAP's common install functions could be forked, if necessary, and we could look into adding support for an external installer.

DN2048 commented 1 year ago

I had some free time to spare so I installed a fresh copy of DietPi on a Raspberry PI 4B and after it was finished I installed RaspAP. The RaspAP worked perfectly fine to my surprise. I then installed Pi Hole and everything broke (apparently). I didn't had much time left to investigate what went wrong or if I had to do something before installing Pi Hole or if I should have installed Pi Hole first then RaspAP but what I can conclude is that having RaspAP working with DietPi doesn't seem that hard (no problems whatsoever on a fresh install).

DietPi v8.21 RaspAP v2.9.4

MichaIng commented 1 year ago

If you enable the DHCP server of Pi-hole, it breaks executions of any other DHCP server, including the one from RaspAP. Some extra dmsmasq config would be required to bind Pi-hole related configs to the Ethernet-side interface, so that the second DHCP server from RaspAP can run on the WiFi interface. Or best of course is to use one and the same DHCP server for both interfaces.

We discussed it here: #6485 It is about the DietPi WiFi HotSpot, but the same underlying issue generally applies for any combination of Pi-hole/AGH and any AP implementation, when both run a DHCP server.