Getting Started – Ubuntu
3 Set up the AVHS portal
3 Set up the AVHS portal
Having installed and configured all required applications (see
), it is now time to set up the AVHS portal.
The AVHS portal distribution package includes the AVHS configuration file and setup scripts. These will generate a database, web
servers, ST servers and media servers. To set up the portal and start the system, follow these steps:
1. Edit the configuration file
avhs_config.ini
2. Run the setup scripts
3. Copy the startup scripts to the launch daemon directory and link them to the correct run level
4. Start the system
Additional ST servers, web servers and media servers can be added at any time by first adding a new entry to the configuration
file and then running the relevant setup script.
3.1 Edit the AVHS configuration file
The configuration file
avhs_config.ini
should be edited before running the setup scripts:
# su – sts
% vi /home/sts/current/setup/avhs_config.ini
Note
The AVHS system can also be set up behind a NAT.
RTMPT forwarding service
must
be configured for the websocket server to start. How to configure RTMPT forwarding
is beyond the scope of this guide.
When finished editing the file, run
% exit
# php /home/sts/current/setup/config_test.php
to test and check for syntax errors.
3.2 Run the setup scripts
The following setup scripts are available in
/home/sts/current/setup/
setup_db.php
Database setup
setup_websocketserver.php
Websocket server setup
setup_webserver.php
Web server setup
setup_stserver.php
ST server setup
setup_mediaserver.php
Media server setup
setup_sthelpers.php
ST helpers setup
All setup scripts should be run as user
sts
:
# su - sts
% cd /home/sts/current/setup/
13