Advertisement
niammuddin

radiusdesk dan daloradius

Jan 2nd, 2020
269
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.87 KB | None | 0 0
  1.  
  2.  
  3.  
  4. sudo mysql -u root -p rd < /var/www/html/___freeradius/cake3/rd_cake/setup/db/rd.sql
  5.  
  6. sudo tar xzf /var/www/html/___freeradius/cake2/rd_cake/Setup/Radius/freeradius-3-radiusdesk.tar.gz --one-top-level=/etc/freeradius/
  7.  
  8.  
  9. sudo chown -R www-data. /usr/share/nginx/html/cake3/rd_cake/tmp
  10. sudo chown -R www-data. /usr/share/nginx/html/cake3/rd_cake/logs
  11. sudo chown -R www-data. /usr/share/nginx/html/cake3/rd_cake/webroot/img/realms
  12. sudo chown -R www-data. /usr/share/nginx/html/cake3/rd_cake/webroot/img/dynamic_details
  13. sudo chown -R www-data. /usr/share/nginx/html/cake3/rd_cake/webroot/img/dynamic_photos
  14. sudo chown -R www-data. /usr/share/nginx/html/cake3/rd_cake/webroot/img/access_providers
  15. sudo chown -R www-data. /usr/share/nginx/html/cake3/rd_cake/webroot/files/imagecache
  16.  
  17. sudo tar xzf /root/freeradius-3-radiusdesk.tar.gz --one-top-level=/etc/freeradius/
  18.  
  19.  
  20. CREATE DATABASE radius;
  21. GRANT ALL ON radius.* TO radius@localhost IDENTIFIED BY "radius123456";
  22. FLUSH PRIVILEGES;
  23. quit
  24.  
  25. mysql -u root radius < /etc/freeradius/3.0/mods-config/sql/main/mysql/schema.sql
  26.  
  27. mysql -u root -p daloradius < contrib/db/fr2-mysql-daloradius-and-freeradius.sql
  28. mysql -u root -p daloradius < contrib/db/mysql-daloradius.sql
  29.  
  30.  
  31. daloradius
  32. ==========
  33.  
  34. sudo apt -y install apache2
  35. sudo apt -y install php libapache2-mod-php php-{gd,common,mail,mail-mime,mysql,pear,db,mbstring,xml,curl}
  36.  
  37. apt-get remove mariadb-server
  38. sudo apt-get install software-properties-common
  39. sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xF1656F24C74CD1D8
  40. sudo add-apt-repository "deb [arch=amd64,arm64,ppc64el] http://mariadb.mirror.liquidtelecom.com/repo/10.4/ubuntu $(lsb_release -cs) main"
  41. sudo apt update
  42. sudo apt -y install mariadb-server mariadb-client
  43.  
  44.  
  45. mysql -u root -p
  46. CREATE DATABASE radius;
  47. GRANT ALL ON radius.* TO radius@localhost IDENTIFIED BY "radius2020";
  48. FLUSH PRIVILEGES;
  49. quit
  50.  
  51. sudo apt -y install freeradius freeradius-mysql freeradius-utils
  52.  
  53.  
  54. mysql -u root -p radius < /etc/freeradius/3.0/mods-config/sql/main/mysql/schema.sql
  55.  
  56. sudo ln -s /etc/freeradius/3.0/mods-available/sql /etc/freeradius/3.0/mods-enabled/
  57.  
  58. nano /etc/freeradius/3.0/mods-enabled/sql
  59.  
  60. wget https://github.com/lirantal/daloradius/archive/master.zip
  61. unzip master.zip
  62. mv daloradius-master daloradius
  63.  
  64. cd daloradius
  65.  
  66. mysql -u root -p radius < /var/www/html/daloradius/contrib/db/fr2-mysql-daloradius-and-freeradius.sql
  67. mysql -u root -p radius < /var/www/html/daloradius/contrib/db/mysql-daloradius.sql
  68.  
  69. cd ..
  70. sudo mv daloradius /var/www/html/
  71.  
  72. sudo chown -R www-data:www-data /var/www/html/daloradius/
  73. sudo chmod 664 /var/www/html/daloradius/library/daloradius.conf.php
  74.  
  75. nano /var/www/html/daloradius/library/daloradius.conf.php
  76.  
  77. https://sourceforge.net/p/daloradius/discussion/684102/thread/56b11486/?limit=25
  78.  
  79. abcdefghijkmnpqrstuvwxyzABCDEFGHJKMNPQRSTUVWXYZ23456789
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement