Message: 1 Date: Mon, 23 Dec 2013 11:43:04 +0100 From: Laura Marz? Porcar <laura.marza@servidir.es> To: "FreeRadius users mailing list" <freeradius-users@lists.freeradius.org> Subject: RE: DHCP Message-ID: <289ECAAED2DFDB4A9D68C89DF021BC8B018B2748@mail-cs.MARINA.LOCAL> Content-Type: text/plain; charset="iso-8859-1"
Good morning Alan, I have the server in production and I want to do things carefully. While I understand that your role is not to teach this me, but I appreciate if you check what I'll do. My distribution is deb?an and I have the following packages installed:
/var/cache/apt/archives/freeradius_2.1.10+dfsg-2+squeeze1_i386.deb /var/cache/apt/archives/freeradius-common_2.1.10+dfsg-2+squeeze1_all.deb /var/cache/apt/archives/libfreeradius2_2.1.10+dfsg-2+squeeze1_i386.deb /var/cache/apt/archives/freeradius-utils_2.1.10+dfsg-2+squeeze1_i386.deb
The packages that are installed on the server are:
freeradius install freeradius-common install freeradius-utils install libfreeradius2 install libfreetype6 install
I should do: - First, I've copied the entire folder /etc/freeradius in another folder for saving my configuration - I've to download the version 2.2.3 (wget ftp://ftp.freeradius.org/pub/freeradius/freeradius-server-2.2.3.tar.gz) - dpkg -r (for each. deb?) - move to the new folder created freeradius-server-2.2.3 and ./configure --with-dhcp
Tx!
LAURA MARZ? PORCAR Administraci?n de Sistemas Departamento UUTT 964.722.633 - ext. 741 MARINA D'OR - Espa?a laura.marza@servidir.es http://www.marinador.com Soporte: http://soporte.marinador.com
-----Mensaje original----- De: freeradius-users-bounces+laura.marza=servidir.es@lists.freeradius.org[mailto: freeradius-users-bounces+laura.marza=servidir.es@lists.freeradius.org] En nombre de Alan DeKok Enviado el: viernes, 20 de diciembre de 2013 22:50 Para: FreeRadius users mailing list Asunto: Re: DHCP
Laura Marz? Porcar wrote:
Thanks Alan, Then there will be two different instances of the application or the application will be updated?
You will need to re-install everything. Uninstall the RPM. You can't have two versions of FreeRADIUS on the same machine.
Alan DeKok. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
------------------------------
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
End of Freeradius-Users Digest, Vol 104, Issue 56 *************************************************
Hi Alan and Laura dpkg -r deinstalls everything, you will have to do it, of course. However I would advise to compile for the debs instead of doing a ./configure ; make install. In the long run, you will have less problems, and it is more consistent for system administration, and something it is missing, it will install the dependencies automagically when using aptitude, for instance. Please also dont go to the deb cache to list installed packages, do a dpkg -l, or better, installl and get used to aptitude. Regards, Rui
Thanks Rui, is a good advice, but the problem is that I need to install the dhcp, and the only way I've seen to do it is with ./configure --with-dhcp. The first thing I did was apt-get update and then an apt-get install freeradius, but it says that is already in the latest version Tx Laura De: freeradius-users-bounces+laura.marza=servidir.es@lists.freeradius.org [mailto:freeradius-users-bounces+laura.marza=servidir.es@lists.freeradius.org] En nombre de Rui Ribeiro Enviado el: lunes, 23 de diciembre de 2013 20:13 Para: freeradius-users@lists.freeradius.org Asunto: RE: DHCP Message: 1 Date: Mon, 23 Dec 2013 11:43:04 +0100 From: Laura Marz? Porcar <laura.marza@servidir.es> To: "FreeRadius users mailing list" <freeradius-users@lists.freeradius.org> Subject: RE: DHCP Message-ID: <289ECAAED2DFDB4A9D68C89DF021BC8B018B2748@mail-cs.MARINA.LOCAL> Content-Type: text/plain; charset="iso-8859-1" Good morning Alan, I have the server in production and I want to do things carefully. While I understand that your role is not to teach this me, but I appreciate if you check what I'll do. My distribution is deb?an and I have the following packages installed: /var/cache/apt/archives/freeradius_2.1.10+dfsg-2+squeeze1_i386.deb /var/cache/apt/archives/freeradius-common_2.1.10+dfsg-2+squeeze1_all.deb /var/cache/apt/archives/libfreeradius2_2.1.10+dfsg-2+squeeze1_i386.deb /var/cache/apt/archives/freeradius-utils_2.1.10+dfsg-2+squeeze1_i386.deb The packages that are installed on the server are: freeradius install freeradius-common install freeradius-utils install libfreeradius2 install libfreetype6 install I should do: - First, I've copied the entire folder /etc/freeradius in another folder for saving my configuration - I've to download the version 2.2.3 (wget ftp://ftp.freeradius.org/pub/freeradius/freeradius-server-2.2.3.tar.gz) - dpkg -r (for each. deb?) - move to the new folder created freeradius-server-2.2.3 and ./configure --with-dhcp Tx! LAURA MARZ? PORCAR Administraci?n de Sistemas Departamento UUTT 964.722.633 - ext. 741 MARINA D'OR - Espa?a laura.marza@servidir.es http://www.marinador.com Soporte: http://soporte.marinador.com -----Mensaje original----- De: freeradius-users-bounces+laura.marza=servidir.es@lists.freeradius.org [mailto:freeradius-users-bounces+laura.marza <mailto:freeradius-users-bounces%2Blaura.marza> =servidir.es@lists.freeradius.org] En nombre de Alan DeKok Enviado el: viernes, 20 de diciembre de 2013 22:50 Para: FreeRadius users mailing list Asunto: Re: DHCP Laura Marz? Porcar wrote: > Thanks Alan, Then there will be two different instances of the application or the application will be updated? You will need to re-install everything. Uninstall the RPM. You can't have two versions of FreeRADIUS on the same machine. Alan DeKok. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html ------------------------------ - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html End of Freeradius-Users Digest, Vol 104, Issue 56 ************************************************* Hi Alan and Laura dpkg -r deinstalls everything, you will have to do it, of course. However I would advise to compile for the debs instead of doing a ./configure ; make install. In the long run, you will have less problems, and it is more consistent for system administration, and something it is missing, it will install the dependencies automagically when using aptitude, for instance. Please also dont go to the deb cache to list installed packages, do a dpkg -l, or better, installl and get used to aptitude. Regards, Rui
Hi Laura: Am 24.12.13 07:38 schrieb(en) Laura Marzà Porcar:
Thanks Rui, is a good advice, but the problem is that I need to install the dhcp, and the only way I've seen to do it is with ./configure --with-dhcp.
The first thing I did was apt-get update and then an apt-get install freeradius, but it says that is already in the latest version
You could download the source deb package, tweak the options, and build your own deb's. This has the advantage that all the other infrastructure the package maintainers provide works as with the official packages. This is the way I add "local tweaks" on my servers... There are many examples on the web for that. Basically, say sudo apt-get install devscripts sudo apt-get build-dep freeradius apt-get source freeradius In the source folder, edit the file debian/rules and tweak the configure option. Then edit the file debian/changelog and add an extra entry (like the others in the file) at the top, extending the version info by a "local" suffix, e.g. (for Ubuntu "saucy"; change according for your needs) <snip> freeradius (2.1.12+dfsg-1.2ubuntu5laura) saucy; urgency=low * add dhcp option for my server -- your name <your.mail@company.es> Tue, 24 Dec 2013 13:42:19 +0100 </snip> Then say debuild -us -uc -b which produces "freeradius-*-1.2ubuntu5laura" deb packages. Just install them... Remember that you should *not* automagically update ("apt-get upgrade") freeradius. Instead, whenever the package maintainers provide a new version, repeat the procedure above. I wish you a happy and peaceful Christmas, Albrecht.
Thanks Albrecht! I did not know this and it seems really interesting, I'll try it, cheers! LAURA -----Mensaje original----- De: Albrecht Dreß [mailto:albrecht.dress@arcor.de] Enviado el: martes, 24 de diciembre de 2013 13:54 Para: Laura Marzà Porcar CC: FreeRadius users mailing list Asunto: Re: DHCP Hi Laura: Am 24.12.13 07:38 schrieb(en) Laura Marzà Porcar:
Thanks Rui, is a good advice, but the problem is that I need to install the dhcp, and the only way I've seen to do it is with ./configure --with-dhcp.
The first thing I did was apt-get update and then an apt-get install freeradius, but it says that is already in the latest version
You could download the source deb package, tweak the options, and build your own deb's. This has the advantage that all the other infrastructure the package maintainers provide works as with the official packages. This is the way I add "local tweaks" on my servers... There are many examples on the web for that. Basically, say sudo apt-get install devscripts sudo apt-get build-dep freeradius apt-get source freeradius In the source folder, edit the file debian/rules and tweak the configure option. Then edit the file debian/changelog and add an extra entry (like the others in the file) at the top, extending the version info by a "local" suffix, e.g. (for Ubuntu "saucy"; change according for your needs) <snip> freeradius (2.1.12+dfsg-1.2ubuntu5laura) saucy; urgency=low * add dhcp option for my server -- your name <your.mail@company.es> Tue, 24 Dec 2013 13:42:19 +0100 </snip> Then say debuild -us -uc -b which produces "freeradius-*-1.2ubuntu5laura" deb packages. Just install them... Remember that you should *not* automagically update ("apt-get upgrade") freeradius. Instead, whenever the package maintainers provide a new version, repeat the procedure above. I wish you a happy and peaceful Christmas, Albrecht.
Hi Laura: # Hi Albretch, i've some questions.. it's my first time!!! There are many examples on the web for that. Basically, say sudo apt-get install devscripts sudo apt-get build-dep freeradius apt-get source freeradius # Until this step all went well In the source folder, edit the file debian/rules and tweak the configure option. ### I've added the last line ./configure $(confflags) \ --prefix=/usr \ --exec-prefix=/usr \ --mandir=$(mandir) \ --sysconfdir=/etc \ --libdir=$(libdir) \ --datadir=/usr/share \ --localstatedir=/var \ --with-raddbdir=$(raddbdir) \ --with-logdir=/var/log/$(package) \ --enable-ltdl-install=no --enable-strict-dependencies \ --with-large-files --with-udpfromto --with-edir \ --enable-developer \ --config-cache \ --without-rlm_eap_tnc \ --with-rlm_sql_postgresql_lib_dir=`pg_config --libdir` \ --with-rlm_sql_postgresql_include_dir=`pg_config --includedir` \ --without-rlm_eap_ikev2 \ --without-rlm_sql_oracle \ --without-rlm_sql_unixodbc \ --with-system-libtool \ --with-dhcp ### Then edit the file debian/changelog and add an extra entry (like the others in the file) at the top, extending the version info by a "local" suffix, e.g. (for Ubuntu "saucy"; change according for your needs) <snip> freeradius (2.1.12+dfsg-1.2ubuntu5laura) saucy; urgency=low * add dhcp option for my server -- your name <your.mail@company.es> Tue, 24 Dec 2013 13:42:19 +0100 </snip> Then say debuild -us -uc -b which produces "freeradius-*-1.2ubuntu5laura" deb packages. Just install them... Remember that you should *not* automagically update ("apt-get upgrade") freeradius. Instead, whenever the package maintainers provide a new version, repeat the procedure above. ##### # I get the error code 1325, I've searched it and I think that it's because I don't put in the correct folder, is it? The route has been as follows: /etc/freeradius/freeradius-2.1.10+dfsg, where /etc/freeradius/ is the real installation on server, I 've seen in debian/rules: $(MAKE) -C dialup_admin DIALUP_PREFIX=/usr/share/freeradius-dialupadmin \ DIALUP_DOCDIR=/usr/share/doc/freeradius-dialupadmin \ DIALUP_CONFDIR=/etc/freeradius-dialupadmin \ R=$(freeradius_dir) install I must move the entire files of freeradius-2.1.10+dfsg to /etc/freeradius? another thing I've seen is you have to rename the original file to change the nomenclature, ie of freeradius-2.1.10+dfsg to freeradius_2.1.10+dfsg, is it the case? Tx ####################### I wish you a happy and peaceful Christmas, Albrecht. # An a happy new year for you!!
Hi Laura: Am 26.12.13 15:27 schrieb(en) Laura Marzà Porcar:
I've added the last line
./configure $(confflags) \ --prefix=/usr \ [snip] --with-system-libtool \ --with-dhcp
That looks fine...
I get the error code 1325, I've searched it and I think that it's because I don't put in the correct folder, is it? The route has been as follows: /etc/freeradius/freeradius-2.1.10+dfsg, where /etc/freeradius/ is the real installation on server, I 've seen in debian/rules: $(MAKE) -C dialup_admin DIALUP_PREFIX=/usr/share/freeradius-dialupadmin \ DIALUP_DOCDIR=/usr/share/doc/freeradius-dialupadmin \ DIALUP_CONFDIR=/etc/freeradius-dialupadmin \ R=$(freeradius_dir) install
Hmmm, strange... I tried exactly the same (on Ubuntu, but this /shouldn't/ make a big difference), and it succeeds. The statement above is identical. I think either the "changelog" file is not correct, or the build process misses a dependency. There should be a build log file named "freeradius_*.build" one level above the source folder. Could you please gzip it and send it to me; I could have a look at it, maybe I can find the problem (as the log is *huge* I think it is better if you do not CC: it to the mailing list).
I must move the entire files of freeradius-2.1.10+dfsg to /etc/freeradius?
Usually, there is *nothing* you have to do manually if you only modify an existing package. All the logic is already in the debian build files!
another thing I've seen is you have to rename the original file to change the nomenclature, ie of freeradius-2.1.10+dfsg to freeradius_2.1.10+dfsg, is it the case?
This is also done by the debian build process (it produces deb files with name "<package>_<version>_<architecture>.deb", that's why the '-' is replaced by '_'). If all works fine, you just get the deb files...
I wish you a happy and peaceful Christmas, Albrecht.
An a happy new year for you!!
...and the same for you, thank you so much! Cheers, Albrecht.
Hi Albrecht, indeed, the error was in the changelog, I do not know what wrong i had written, but had to be some space or similar, because I've copied an entry from someone else and I've overwritten it, and it has run well. Thank you so much, I enjoyed doing it! See you at my next question, jejejej!! Laura -----Mensaje original----- De: Albrecht Dreß [mailto:albrecht.dress@arcor.de] Enviado el: jueves, 26 de diciembre de 2013 16:56 Para: Laura Marzà Porcar CC: FreeRadius users mailing list Asunto: Re: DHCP Hmmm, strange... I tried exactly the same (on Ubuntu, but this /shouldn't/ make a big difference), and it succeeds. The statement above is identical. I think either the "changelog" file is not correct, or the build process misses a dependency. ... Cheers, Albrecht.
participants (3)
-
Albrecht Dreß -
Laura Marzà Porcar -
Rui Ribeiro