[SoftWLC] Установка

Подключение репозиториев Элтекс

root@vagrant-ubuntu-trusty-64:/home/vagrant# echo "deb http://archive.eltex.org/ems 3.12 main" >> /etc/apt/sources.list.d/eltex.list

Подключение сторонних репозиториев

root@vagrant-ubuntu-trusty-64:/home/vagrant# add-apt-repository -y ppa:webupd8team/java
gpg: keyring `/tmp/tmpvow23jgr/secring.gpg' created
gpg: keyring `/tmp/tmpvow23jgr/pubring.gpg' created
gpg: requesting key EEA14886 from hkp server keyserver.ubuntu.com
gpg: /tmp/tmpvow23jgr/trustdb.gpg: trustdb created
gpg: key EEA14886: public key "Launchpad VLC" imported
gpg: no ultimately trusted keys found
gpg: Total number processed: 1
gpg: imported: 1 (RSA: 1)
OK

Добавление цифровой подписи

root@vagrant-ubuntu-trusty-64:/home/vagrant# apt-key adv --keyserver keyserver.ubuntu.com --recv F558A287
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --homedir /tmp/tmp.JjIxiUgI0p --no-auto-check-trustdb --trust-model always --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyring /etc/apt/trusted.gpg.d/webupd8team-java.gpg --keyserver keyserver.ubuntu.com --recv F558A287
gpg: requesting key F558A287 from hkp server keyserver.ubuntu.com
gpg: key F558A287: public key "Eltex.EMS build server (Signing for inner Eltex debian packages) <aleksey.sergeev@eltex.nsk.ru>" imported
gpg: Total number processed: 1
gpg: imported: 1 (RSA: 1)

Поиск и установка обновлений пакетов

root@vagrant-ubuntu-trusty-64:/home/vagrant# apt-get update
...
Fetched 12.1 MB in 19s (624 kB/s) 
Reading package lists... Done

Указываем пароль пользователя root для базы данных mysql

root@vagrant-ubuntu-trusty-64:/home/vagrant# debconf-set-selections <<< 'mysql-server mysql-server/root_password password root'
root@vagrant-ubuntu-trusty-64:/home/vagrant# debconf-set-selections <<< 'mysql-server mysql-server/root_password_again password root'

Установка mysql-server

root@vagrant-ubuntu-trusty-64:/home/vagrant# apt-get -y install mysql-server

Подтверждаем согласие с лицензией до установки Oracle Java 8

root@vagrant-ubuntu-trusty-64:/home/vagrant# echo debconf shared/accepted-oracle-license-v1-1 select true | sudo debconf-set-selections
root@vagrant-ubuntu-trusty-64:/home/vagrant# echo debconf shared/accepted-oracle-license-v1-1 seen true | sudo debconf-set-selections

Устанавливаем Oracle Java 8

root@vagrant-ubuntu-trusty-64:/home/vagrant# apt-get -y install oracle-java8-installer

Установка дополнительных пакетов

root@vagrant-ubuntu-trusty-64:/home/vagrant# echo "rsyslog-mysql rsyslog-mysql/dbconfig-install boolean true" | debconf-set-selections
root@vagrant-ubuntu-trusty-64:/home/vagrant# echo "rsyslog-mysql rsyslog-mysql/mysql/app-pass password root" | debconf-set-selections
root@vagrant-ubuntu-trusty-64:/home/vagrant# echo "rsyslog-mysql rsyslog-mysql/app-password-confirm password root" | debconf-set-selections
root@vagrant-ubuntu-trusty-64:/home/vagrant# echo "rsyslog-mysql rsyslog-mysql/password-confirm password root" | debconf-set-selections
root@vagrant-ubuntu-trusty-64:/home/vagrant# echo "rsyslog-mysql rsyslog-mysql/mysql/admin-pass password root" | debconf-set-selections
root@vagrant-ubuntu-trusty-64:/home/vagrant# echo "rsyslog-mysql rsyslog-mysql/remote/port string " | debconf-set-selections
root@vagrant-ubuntu-trusty-64:/home/vagrant# apt-get install --yes expect daemon psmisc mysql-client ntp tftp-hpa tftpd-hpa snmpd snmp rsyslog rsyslog-mysql curl tomcat7 software-properties-common python-pexpect unzip zip mongodb-server isc-dhcp-server pcscd opensc pcsc-tools python-suds libtalloc2 libwbclient0 tomcat7-admin

 

Указываем переменную окружения JAVA_HOME для tomcat7

root@vagrant-ubuntu-trusty-64:/home/vagrant# echo "JAVA_HOME=/usr/lib/jvm/java-8-oracle" >> /etc/default/tomcat7

Установка часового пояса

root@vagrant-ubuntu-trusty-64:/home/vagrant# cp /usr/share/zoneinfo/Asia/Novosibirsk /etc/localtime

Выделение дополнительной оперативной памяти для Java

root@vagrant-ubuntu-trusty-64:/home/vagrant# echo "JAVA_OPTS=\"${JAVA_OPTS} -server -Xms512m -Xmx2048m -XX:-UseParallelGC -XX:+UseConcMarkSweepGC -XX:+AggressiveOpts\"" >> /etc/default/tomcat7

Установка пакета eltex-notification-gw

root@vagrant-ubuntu-trusty-64:/home/vagrant# apt-get install eltex-notification-gw

 

Установка пакета eltex-apb

root@vagrant-ubuntu-trusty-64:/home/vagrant# apt-get install eltex-apb

Установка фреймворка для работы службы SOAP/XML (Apache Axis)

root@vagrant-ubuntu-trusty-64:/home/vagrant#apt-get install eltex-axis

Установка пакета eltex-radius-nbi для стыка SoftWLC с вышестоящими OSS/BSS

root@vagrant-ubuntu-trusty-64:/home/vagrant# apt-get install eltex-radius-nbi
...
Do you want to generate server certificate? [y/N]: N
Skip generating server certificate
- Reconfigure file '/etc/eltex-radius-nbi/radius_nbi_config.txt'
SoftWLC Northbound is installed. Tomcat service will be restarted...
* Stopping Tomcat servlet engine tomcat7
...done.
* Starting Tomcat servlet engine tomcat7
...done.
To check the service works, open the URL:
http://localhost:8080/axis2/services/RadiusNbiService?wsdl
To read documentation, visit the following URL:

http://localhost:8080/eltex-radius-nbi/asciidoc/

 

Установка модифицированной схемы в БД MySQL для службы RADIUS

root@vagrant-ubuntu-trusty-64:/home/vagrant# apt-get install eltex-radius-db
...
Enter your MySQL administrator login (default is 'root'): root
Enter your MySQL administrator password: root
Enable remote access to database? (y/N) y
mysql stop/waiting
mysql start/running, process 17341
Creating database ...
Preparing database ...
Do you want to create a tariff? (Y/n) Y
Enter root domain name (default is 'root'): root
Enter tariff code (its identifier) (default is 'default'): 1
Tariff '1' has been successfully created
There are two types of tariffs:
* Tariff for hotspot with captive portal authorization
* Tariff for customers with WPA Enterprise authorization
Make the tariff for portal authentication only? (Y/n) Y
Please restart RADIUS server manually with "service eltex-radius restart"

Установка БД сервиса авторизации

root@vagrant-ubuntu-trusty-64:/home/vagrant# apt-get install eltex-auth-service-db
...
Enter your mysql administrator login (default is 'root'): root
Enter your mysql administrator password: root
Creating database 'eltex_auth_service'
Create remote database user? (y/N) y
Database 'eltex_auth_service' successfully created
Restart the service with command "service eltex-auth-service restart"
Enter root domain [root]: root
Create default auth-user:
Set login [admin]: 
Set password [password]: 
Default auth-user 'admin' created successfully
Set service user password [softwlc]: 
Service user 'softwlc_service' created successfully. Please, check it at '/etc/eltex-wifi-cab/system.xml' on your 'Eltex Wi-Fi customer cabinet' host.
Create default auth-nas (for eltex-wifi-cab):
Set eltex-wifi-cab ip address (leave empty if 127.0.0.1): 
Default auth-nas '127.0.0.1' created successfully

Установка сервиса аутентификации и авторизации SoftWLC

root@vagrant-ubuntu-trusty-64:/home/vagrant# apt-get install eltex-auth-service

 

Установка пакета для интерпретации MAC-адресов в имена вендоров

root@vagrant-ubuntu-trusty-64:/home/vagrant# apt-get install eltex-oui-list

 

Установка пакета eltex-radius

root@vagrant-ubuntu-trusty-64:/home/vagrant# apt-get install eltex-radius

Установка базы данных Портала

root@vagrant-ubuntu-trusty-64:/home/vagrant# apt-get install eltex-portal-mysql
...
Enter your MySQL administrator login (default is 'root'): root
Enter your MySQL administrator password: root
Creating main database 'ELTEX_PORTAL'

Установка конструктора порталов для кастомизации

root@vagrant-ubuntu-trusty-64:/home/vagrant# apt-get install eltex-portal-constructor

 

Установка портала для авторизации клиентов WiFi в схеме 'Hotspot'

root@vagrant-ubuntu-trusty-64:/home/vagrant# apt-get install eltex-portal

 

Установка схемы в БД MySQL для службы 'eltex-ems'

root@vagrant-ubuntu-trusty-64:/home/vagrant# apt-get install eltex-ems-db
...
Enter your MySQL administrator password: root
Enable remote access to database? (y/N) y
...
Select default language for EMS:
1. Russian
2. English (default)
Enter number: 1
Using locale ru_RU
Select access control type:
1 - Role based 
2 - Domain based (default)
Enter number: 2
Using domain based access control
Enter root domain name (default is 'root'): 
Please restart EMS manually with "service eltex-ems restart"

Установка пакета eltex-ems

root@vagrant-ubuntu-trusty-64:/home/vagrant# apt-get install eltex-ems
...
Replace /etc/default/tftpd-hpa? (type 'd' to view diff) [y/N/d] y
File /etc/default/tftpd-hpa is overwritten
Restarting tftpd-hpa..
tftpd-hpa stop/waiting
tftpd-hpa start/running, process 19261
Replace /etc/snmp/snmpd.conf? (type 'd' to view diff) [y/N/d] y
File /etc/snmp/snmpd.conf is overwritten
Restarting snmpd..
* Restarting network management services:
Replace /etc/rsyslog.conf? (type 'd' to view diff) [y/N/d] y
File /etc/rsyslog.conf is overwritten
Replace /etc/rsyslog.d/50-default.conf? (type 'd' to view diff) [y/N/d] y
File /etc/rsyslog.d/50-default.conf is overwritten
Replace /etc/rsyslog.d/mysql.conf? (type 'd' to view diff) [y/N/d] y
File /etc/rsyslog.d/mysql.conf is overwritten

Установка пакета PCRF

root@vagrant-ubuntu-trusty-64:/home/vagrant# apt-get install eltex-pcrf

Установка личного кабинета B2B, интерфейса управления

 
закрыть