Skip to content

Instantly share code, notes, and snippets.

@sherbrow
Last active April 27, 2021 16:12
Show Gist options
  • Save sherbrow/77f888b921e9ecb81dc1b75259fa351a to your computer and use it in GitHub Desktop.
Save sherbrow/77f888b921e9ecb81dc1b75259fa351a to your computer and use it in GitHub Desktop.
MonaServer Debian 10 install
;MonaServer.ini
;host = <HOST>:1935
socketBufferSize = 114688
[application]
dir = /usr/local/MonaServer/apps/
[servers]
; targets =
[RTMFP]
port = 1985
keepAlivePeer = 10
keepAliveServer = 15
[RTMP]
;port = 1935
[RTSP]
;port = 554
[WebSocket]
;timeout = 120
[HTTP]
port = 0
; timeout = 7
; index
[logs]
name=log
directory=/usr/local/MonaServer/
;rotation=1
#!/bin/sh
echo "Not fully tested on its own"
exit 1;
apt-get update
apt-get install openssl build-essential libssl-dev git libc-bin
apt-get install libluajit-5.1-dev libluajit-5.1-common libluajit-5.1-2
mkdir /var/src
cd /var/src/
git clone https://github.com/MonaSolutions/MonaServer.git
cd MonaServer
ln -s /usr/include/luajit-2.1 MonaServer/sources/luajit-2.0
make
mkdir /usr/local/MonaServer/
mkdir /usr/local/MonaServer/apps
#cp TODO "make install" i.e. cp bin and deps to /usr/local/MonaServer/
#cp MonaServer /MonaServer/usr/local/MonaServer/
#ln -s /var/src/MonaServer/MonaServer/MonaServer /usr/local/MonaServer/MonaServer
vim /usr/local/MonaServer/MonaServer.ini
ln -s /usr/local/MonaServer/MonaServer.ini /var/src/MonaServer/MonaServer/MonaServer.ini
## Launch
cd /var/src/MonaServer/
/var/src/MonaServer/MonaServer/MonaServer --daemon --pidfile=/var/run/MonaServer.pid
# cd /usr/local/MonaServer/
# /usr/local/MonaServer/MonaServer --daemon --pidfile=/var/run/MonaServer.pid
@sherbrow
Copy link
Author

TODO : use monit or a similar service to keep the server launched

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment