Valery Rezvyakov Posted October 8, 2017 Posted October 8, 2017 Hello everyone, today I would like to show you how to compile CoovaChilli and Freeradius for a Wifi Hotspot with captive portal on an Orange Pi PC (or PC Plus). I'm writing this because I couldn't find anything related to this topic on the internet, so I wrote this not very detailed guide. wget https://raw.githubusercontent.com/ua3nbw/opihotspot/master/opihotspot_debian.sh chmod +x opihotspot_debian.sh ./opihotspot_debian.sh Russian version https://ua3nbw.ru/all/orangepi-coovachilli-and-freeradius-for-a-wifi-hotspot-with-capt/ 1
ayyeah Posted November 10, 2017 Posted November 10, 2017 i got problem is after run script and wait a moment and loop to reboot the system ,can you fix? "Please reboot and run the script again"
Valery Rezvyakov Posted November 10, 2017 Author Posted November 10, 2017 2 hours ago, ayyeah said: i got problem is after run script and wait a moment and loop to reboot the system ,can you fix? "Please reboot and run the script again" Upgrading the packages. Please be patient execute_command "apt-get upgrade -y --force-yes"
ayyeah Posted November 10, 2017 Posted November 10, 2017 here last message Quote ::: Checking if wlan0 interface already exists ::: Wifi interface not found. Upgrading the system first ::: Upgrading the distro. Be patient and maybe proccess not completed and phpmadmin, daloradius never seen..
Valery Rezvyakov Posted November 11, 2017 Author Posted November 11, 2017 10 hours ago, ayyeah said: here last message and maybe proccess not completed and phpmadmin, daloradius never seen.. show the output of iwconfig
ayyeah Posted November 11, 2017 Posted November 11, 2017 15 hours ago, Valery Rezvyakov said: show the output of iwconfig here sir, Quote root@orangepipc:~# iwconfig lo no wireless extensions. wlan1 unassociated Nickname:"<WIFI@REALTEK>" Mode:Managed Frequency=2.412 GHz Access Point: Not-Associated Sensitivity:0/0 Retry:off RTS thr:off Fragment thr:off Encryption key:off Power Management:off Link Quality:0 Signal level:0 Noise level:0 Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0 Tx excessive retries:0 Invalid misc:0 Missed beacon:0 wlan0 unassociated Nickname:"<WIFI@REALTEK>" Mode:Managed Frequency=2.412 GHz Access Point: Not-Associated Sensitivity:0/0 Retry:off RTS thr:off Fragment thr:off Encryption key:off Power Management:off Link Quality:0 Signal level:0 Noise level:0 Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0 Tx excessive retries:0 Invalid misc:0 Missed beacon:0 eth0 no wireless extensions. root@orangepipc:~# any mistake? "i will try again" update: if debug $LAN_INTERFACE value is "wlan0 wlan1"
Valery Rezvyakov Posted November 12, 2017 Author Posted November 12, 2017 You first need to figured out what is the chip used in your USB WiFi. To do so, issue the "lsusb" command to figure out which manufacturer it is. Required condition: a board with onboard or supported 3rd party wireless adapter on USB If you know what is your wireless SSID: nmtui-connect SSID If you don’t know, you can browse and then connect nmtui-connect Please describe your setup as best as possible so we know what your operating environment is like. Name of your board: Name of the image you installed: Logs, when you can boot the board: armbianmonitor -u (paste URL to your forum post)
ayyeah Posted November 18, 2017 Posted November 18, 2017 Here my opi spec Board: Orange PI PC Image: Armbian_5.30_Orangepipc_Ubuntu_xenial_default_3.4.113_desktop.img Usb Wifi: ID 0bda:8179 Realtek Semiconductor Corp. RTL8188EUS 802.11n Wireless Network Adapter Usb Lan: ID 0fe6:9700 Kontron (Industrial Computer Source / ICS Advent) DM9601 Fast Ethernet Adapter Is there something wrong? all usb interfaces that have been tested to connect to the internet my question 1.during the installation process which interface should be connected to the internet? 2.how to config how to eth0 source (internet) and eth1 captive portal (I prefer to use 2 ethernet)
ayyeah Posted November 18, 2017 Posted November 18, 2017 hey you, it works. thanks a lot of support. solution is i use hardcode for variable Quote WAN_INTERFACE=`ip link show | grep '^[1-9]' | awk -F ':' '{print $2}' | awk '{$1=$1};1' | grep '^e'` # WAN interface (the one with Internet - default 'eth0' or long name for Debian 9+) LAN_INTERFACE=`ip link show | grep '^[1-9]' | awk -F ':' '{print $2}' | awk '{$1=$1};1' | grep '^w'` # LAN interface (the one for the hotspot) Quote ::: Congratulation ! You now have your hotspot ready ! ::: ::: - Wifi Hotspot available : OPIhotspot - For the user management, please connect to http://192.168.1.103/daloradius or http://OPIhotspot.local/daloradius (login : administrator / password : radius ) - For phpmyadmin, please connect to http://192.168.1.103/phpmyadmin/ (login : root / password : orangepi ) Time started: 22:39:21 Time started: 22:52:33 Total Runtime (minutes): 13.20
Recommended Posts