You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/antora/modules/howto/pages/installation/debian.adoc
+22-59Lines changed: 22 additions & 59 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,20 +1,19 @@
1
-
= Installing FreeRadius on Ubuntu
1
+
= Build and Install FreeRadius on Ubuntu
2
2
3
-
* Installing from repositories
4
-
* Installing from source
3
+
* Install from repositories
4
+
* Build and Install from Source
5
5
6
-
== Installing from repositories
6
+
== Installing from repositories
7
7
8
-
This is usually the easiest solution, but at the moment of writing (2016-06) both Ubuntu 16.04 and Ubuntu 14.04.4 contain packages which are EOL and which are not the latest in their own main version. So buildingfrom source is recommended as it will contain the latest version, which probably got most of the bugs sorted.
8
+
This is usually the easiest solution, as long as the system packages are the latest in their own main version, or can be updated before building. Building from source is recommended as it will contain the latest version, that contains the most recent bug fixes.
9
9
10
-
To Install :
10
+
To begin your install, enter the command below to get the latest info about packages from Ubuntu:
11
11
12
-
Get the latest info about packages from Ubuntu :
13
12
----
14
-
sudo apt-get update
13
+
sudo apt-get update
15
14
----
16
15
17
-
Then make sure the system is fully upgraded before installing freeradius:
16
+
Then make sure the system is fully upgraded before installing freeradius:
18
17
----
19
18
sudo apt-get upgrade
20
19
----
@@ -24,19 +23,19 @@ or
24
23
sudo apt-get dist-upgrade
25
24
----
26
25
27
-
After that has been done we can use _apt_ to install freeradius:
26
+
After that has been done we can use _apt_ to install freeradius:
28
27
----
29
-
sudo apt-get install freeradius
28
+
sudo apt-get install freeradius
30
29
----
31
30
32
31
This will install the common,utils, ssl-cert, libdbi-perl, and libfreeradius2 packages. As you probably going to connect to a database or use perl, you should probably also install (some of) the suggested packages. Such as: freeradius-ldap, freeradius-postgresql and freeradius-mysql.
33
32
----
34
-
sudo apt-get install freeradius-ldap
33
+
sudo apt-get install freeradius-ldap
35
34
----
36
35
37
36
The 'apt install freeradius' command will list all the suggested packages.
38
37
39
-
If all went well freeradius should now be installed and started. You can start or stop the server with:
38
+
If all went well freeradius should now be installed and started. You can start or stop the server with:
40
39
----
41
40
sudo service freeradius stop
42
41
----
@@ -51,24 +50,13 @@ Suggested is to stop the service and until all is working use freeradius in debu
51
50
sudo freeradius -X
52
51
----
53
52
54
-
Right now your config files are in :
55
-
----
56
-
cd /etc/freeradius
57
-
----
58
-
Documentation and files for creation of certificates are in :
59
-
----
60
-
cd /usr/share/doc/freeradius
61
-
----
62
-
63
-
== Installing from source
53
+
== Installing from Source
64
54
65
-
Installing from source can be daunting for people who never did it but as long as you read the output of the building process, it should tell you what went wrong or what is missing.
55
+
Installing from source can be daunting for first time users, but as long as you read the output of the building process, it tell you what went wrong or what is missing.
66
56
67
57
Your first step is to download the source files which can be found on one of the following sites:
68
58
69
-
1. http://freeradius.org/download.html[Freeradius.org] - Choose the latest release by selecting the relevant button.
70
-
71
-
2. https://github.com/FreeRADIUS/freeradius-server[Github] - Select the branch you wish to install and press clone or download.
59
+
include::partial$get_the_source.adoc[]
72
60
73
61
Make sure unzip or any other utility that can extract the zip is installed. If not :
74
62
----
@@ -114,7 +102,7 @@ In the file _debian/rules_ we might need to make some changes depending on other
The install might show errors. Read the error !! Ask questions on freeradius list if you cannot figure it out. v2 will fail install often on open_ssl issues. Quick thing to change to prevent just that error is to edit a config file so freeradius will not complain about ssl that might be vulnerable. ( /etc/freeradius/eap.conf (v2) or /etc/freeradius/modules-enabled/eap )
159
147
160
148
161
-
162
-
163
-
164
-
165
-
166
-
167
-
168
-
169
-
170
149
== Building on Debian or Ubuntu
171
150
172
151
Building Debian packages (including Ubuntu) of FreeRADIUS from source is kept as simple as possible.
173
152
174
153
== Building the stable release (v3.0)
175
154
176
-
Building packages should be very simple. First obtain a copy of the source and unpack it. Second, build the packages.
155
+
Building packages is very simple. First obtain a copy of the source and unpack it. Second, build the packages.
177
156
178
157
== Getting the source
179
158
180
-
include:Getting-the-Source
159
+
include::partial$get_the-source
181
160
182
-
== Installing build dependencies
161
+
== Build dependencies
183
162
184
163
Use the following to make sure that all build dependencies are all installed:
185
164
@@ -213,31 +192,15 @@ make
213
192
sudo make install
214
193
----
215
194
216
-
217
195
== Building development versions (v4.0)
218
196
219
197
Note that version 4 is for developers only. **Do not use these versions unless you know what you are doing.**
220
198
221
199
== Upgrading GCC
222
200
223
-
Older versions of Debian and Ubuntu use GCC < 4.8, which lacks support for the C11 features needed to build FreeRADIUS >= v4.0.x.
0 commit comments