Kupiki-Hotspot-Script icon indicating copy to clipboard operation
Kupiki-Hotspot-Script copied to clipboard

Rpi2 compatible?

Open gibethub opened this issue 4 years ago • 13 comments

Update rights for nginx sites : Build the docker image of portal backend : Something went wrong with the last command... Rpi2 with rtl8192cu and rt2800usb Nothing modified with the original script...

gibethub avatar Jan 03 '20 07:01 gibethub

My initial install failed there too. Rpi 3b+, Buster.

A symlink fixed that issue:

# ln -s /usr/bin/docker-compose /usr/local/bin/docker-compose

So now I have a captive portal, but cannot login to user management -- Nginx throws a 502 Bad Gateway. I ran the script a second time (yes, bad me...) so I'm going to start over and make sure to create the link first.

Many thanks @pihomeserver. This has wildly exceeded my expectations for a guest hotspot.

dev1098 avatar Jan 04 '20 00:01 dev1098

symlink works, thanks but other problem occurs... Created symlink /etc/systemd/system/multi-user.target.wants/freeradius.service → /etc/systemd/system/freeradius.service. ::: Creating fail2ban local configuration ::: Configuring fail2ban jail rules ::: Reloading fail2ban local configuration OK ::: Disable fail2ban service Synchronizing state of fail2ban.service with SysV service script with /lib/systemd/systemd-sysv-install. Executing: /lib/systemd/systemd-sysv-install disable fail2ban Removed /etc/systemd/system/multi-user.target.wants/fail2ban.service. ::: Stopping fail2ban service ::: Create banner on login ::: Append script version to the banner ::: Changing banner rights ::: Activating the banner for SSH ::: ::: Reload configuration for SSH service ::: ::: Something went wrong with the last command. Please check the log file :::

gibethub avatar Jan 05 '20 14:01 gibethub

Look at the log and paste the error Else try/stop start the ssh service. That should not be a blocking issue

pihomeserver avatar Jan 05 '20 14:01 pihomeserver

Reload configuration for SSH service ssh.service is not active, cannot reload

gibethub avatar Jan 05 '20 15:01 gibethub

So activate it and start it. I guess you don't connect to the pi via ssh ...

pihomeserver avatar Jan 05 '20 15:01 pihomeserver

I tracked down the 502 error when accessing daloRADIUS:

# tail /var/log/nginx/error.log ..... 2020/01/04 19:36:17 [crit] 12107#12107: *1 connect() to unix:/var/run/php/php7.0-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 192.168.x.x, server: _, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.0-fpm.sock:", host: "192.168.x.x"

Fixed by pointing the fastcgi_pass location to: /var/run/php/php7.3-fpm.sock

in both files located in /etc/nginx/sites-available

Everything is working!

dev1098 avatar Jan 05 '20 21:01 dev1098

I will try a clean install... Reformatting sd card...

gibethub avatar Jan 05 '20 23:01 gibethub

"": Installing the portal backend in the user kupiki home folder ::: Updating Captive Portal backend configuration file ::: Update rights for NGINX sites ::: ::: Build the Docker image of Portal backend ::: Adding portal backend in systemd startup ::: Disabling Portal backend service ::: Activating Portal backend service ::: Starting Kupiki Portal Backend service ::: Activating registration in the Portal site ::: Adding Freeradius in systemd startup ::: Activating Freeradius service ::: Creating fail2ban local configuration ::: Configuring fail2ban jail rules ::: Reloading fail2ban local configuration ::: Disable fail2ban service ::: Stopping fail2ban service ::: Create banner on login ::: Append script version to the banner ::: Changing banner rights ::: Activating the banner for SSH ::: ::: Reload configuration for SSH service ssh.service is not active, cannot reload."" a clean automatic script (just few replacement e.g. hotspot name and pass plus the symlink for docker-compose) rpi 2 / 2.5a power adp / 16 gb strontium raspian buster full lg tv/wireless mouse eth (source of internet) r5370 usb wifi

thanks (newbie here)

gibethub avatar Jan 06 '20 11:01 gibethub

# sudo systemctl enable ssh

# sudo systemctl start ssh

dev1098 avatar Jan 07 '20 01:01 dev1098

Creating fail2ban local configuration Configuring fail2ban jail rules Reloading fail2ban local configuration Could not find server...

gibethub avatar Jan 07 '20 02:01 gibethub

Difficult. It might be related to your Python version:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=496633

What do you get from:

$ python -V

Mine is 2.7.16

dev1098 avatar Jan 08 '20 21:01 dev1098

Difficult. It might be related to your Python version:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=496633

What do you get from:

$ python -V

Mine is 2.7.16

Python 2.7.16

gibethub avatar Feb 04 '20 00:02 gibethub

Any further input on compatibility with RPi2B? I ran into multiple errors during and after script execution. I have logged an issue.

Edit: Also, is http://www.pihomeserver.fr/ down for everyone else?? It always worries me when the dev's sites go down.

ghost avatar Jul 03 '20 16:07 ghost