RADIUSdesk

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
getting_started:20_install_ubuntu_freeradius_3 [2021/01/22 21:31] – [Introduction] admingetting_started:20_install_ubuntu_freeradius_3 [2022/01/14 14:14] (current) – [Next steps] admin
Line 27: Line 27:
 sudo mv /etc/freeradius/freeradius /etc/freeradius/3.0 sudo mv /etc/freeradius/freeradius /etc/freeradius/3.0
 sudo chown -R freerad. /etc/freeradius/3.0/ sudo chown -R freerad. /etc/freeradius/3.0/
 +sudo  mkdir /var/run/freeradius
 +chown freerad. /var/run/freeradius
 </code> </code>
   * Configure the site-wide shared secret. This will be the value used by ALL Dynamic Clients.   * Configure the site-wide shared secret. This will be the value used by ALL Dynamic Clients.
Line 75: Line 77:
 sudo systemctl status freeradius sudo systemctl status freeradius
 </code> </code>
 +
 +===== Fixing a small bug =====
 +
 +  * There is a small bug which prevents FreeRADIUS to start up after a reboot.
 +  * It has been reported here: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=954911
 +  * There also seems to be a fix but it has not reached the Ubuntu repositories as of this writing.
 +  * So here is the fix taken from the discussion in the link
 +  * Create a file called **/usr/lib/tmpfiles.d/freeradius.conf**
 +<code bash>
 +sudo vi /usr/lib/tmpfiles.d/freeradius.conf
 +</code>
 +  * Add the following line
 +<code bash>
 +d /run/freeradius 750 freerad freerad -
 +</code>
 +  * If you are curious about what we did, here is a writeup on **tmpfiles.d**
 +     * https://www.commandlinux.com/man-page/man5/tmpfiles.d.5.html
 +
 +
 ===== Add Nginx to run scripts ===== ===== Add Nginx to run scripts =====
   * To create the ability for the web server to exercise some control over FreeRADIUS, we will have a custom script which is added to the** sudoers** file.   * To create the ability for the web server to exercise some control over FreeRADIUS, we will have a custom script which is added to the** sudoers** file.
Line 91: Line 112:
 </code> </code>
   * This will allow the root user in RADIUSdesk to Start and Stop FreeRADIUS service and do on-the-fly activation of debug traces.   * This will allow the root user in RADIUSdesk to Start and Stop FreeRADIUS service and do on-the-fly activation of debug traces.
 +
 +===== Next steps =====
 +  * You need to do a few small tweaks for your environment
 +  * The first part of the instructions if specific to the Raspberry Pi. You can skip them and go to the **Adapt The Settings In MESHdesk** section if you are running RADIUSdesk on something else.
 +  * [[md:pi-configure|Tweak Your Install]]