git clone git@gitlab.ksproject.org:teonet/teonet.git
cd teonet
git submodule update --init --recursive
git submodule update --remote --merge
-
at error: "SSL certificate problem: unable to get local issuer certificate while accessing https ..." execute git command:
git config --global http.sslVerify false
sh/build-ubuntu.sh
./autogen.sh
./configure
make
It is possible use deb packages to install teonet instead of make install
command. To create teonet debian packages use next command:
make deb-package
To install teonet debian package use next commands (there X.X.X is current teonet version):
sudo dpkg -i libtuntap-dev_0.3.0_amd64.deb
sudo dpkg -i libteonet-dev_X.X.X-1_amd64.deb
To remove installed debian packages use next commands:
sudo dpkg -r libteonet-dev
sudo dpkg -r libtuntap-dev
autoreconf --force --install
./autogen.sh
./configure
make
autoreconf --force --install
./configure
make
libev - A full-featured and high-performance event loop
URL: http://libev.schmorp.de/
PBL - The Program Base Library
URL: http://www.mission-base.com/peter/source/
MYSQL - MariaDB or MySQL connector (used in teoweb application)
sudo apt-get install libmysqlclient-dev
CUnit - A Unit Testing Framework for C
sudo apt-get install libcunit1-dev
Cpputest - CppUTest unit testing and mocking framework for C/C++
sudo apt-get install cpputest
DEB / RPM repository: http://repo.ksproject.org
http://repo.ksproject.org/ubuntu/
Add repository key:
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 8CC88F3BE7D6113C
Add repository:
sudo apt-get install -y software-properties-common
sudo add-apt-repository "deb http://repo.ksproject.org/ubuntu/ teonet main"
or add the following line to your /etc/apt/sources.list:
deb http://repo.ksproject.org/ubuntu/ teonet main
Update repositories database:
sudo apt-get update
sudo apt-get install -y libteonet-dev
teovpn -?
http://repo.ksproject.org/rhel/x86_64/
vi /etc/yum.repos.d/teonet.repo
[teonet]
name=Teonet library for RHEL / CentOS / Fedora
baseurl=http://repo.ksproject.org/rhel/x86_64/
enabled=1
gpgcheck=0
# yum clean all
yum install libteonet
ldconfig
teovpn -?
zypper ar -f http://repo.ksproject.org/opensuse/x86_64/ teonet
zypper in -y libteonet
ldconfig
teovpn -?
# Build teonet
cd /$HOME/Projects/teonet
make clean && make
# Copy teonet library to bin folder for use with node applications
sh/libteonet_copy.sh
# L0 and websocket server
cd /$HOME/Projects/teohws
make clean && make
src/teohws teo-hws -p 9009 --l0_allow --l0_tcp_port 9009
# L0 server web config file
#
# document_root = "/var/www"
# http_port = 8082
# l0_server_name = "127.0.0.1"
# l0_server_port = 9009
# auth_server_url = "http://teomac.ksproject.org:1234/api/auth/"
# Auth helper server
cd /$HOME/Projects/teonode
node app/authasst/index.js teo-auth -a 127.0.0.1 -P 9009
# Teonet room controller
cd /$HOME/Projects/teoroom
make clean && make
src/teoroom teo-room -a 127.0.0.1 -P 9009
# Teonet match making controller
cd /$HOME/Projects/teomm
make clean && make
src/teomm teo-mm -a 127.0.0.1 -P 9009
# Teonet db
cd /$HOME/Projects/teodb
make clean && make
src/teodb teo-db -a 127.0.0.1 -P 9009
When you run teonet in LXC container you posible need to open(forward) UDP port (8000 in exampe below) in LXC host:
iptables -t nat -A PREROUTING -i eth0 -p udp --dport 8000 -j DNAT --to 10.29.213.63:8000