added p2prc script
This commit is contained in:
41
p2prc.sh
Normal file
41
p2prc.sh
Normal file
@@ -0,0 +1,41 @@
|
||||
# Note: This script is only be executed inside the docker container
|
||||
# Assumes to be running on ubuntu 20.04
|
||||
# Ports required to be allocated internally:
|
||||
# - 8888 (laplace server)
|
||||
# - 24800 (barrier server)
|
||||
|
||||
export REMOTEGAMEPLAY=$PWD
|
||||
|
||||
# Updating and installing go compiler
|
||||
apt update
|
||||
apt install golang
|
||||
|
||||
# Installing barrier
|
||||
apt install barrier
|
||||
|
||||
# Installing chromium
|
||||
wget https://github.com/RobRich999/Chromium_Clang/releases/download/v94.0.4585.0-r904940-linux64-deb-avx/chromium-browser-unstable_94.0.4585.0-1_amd64.deb
|
||||
apt install ./v94.0.4585.0-r904940-linux64-deb-avx/chromium-browser-unstable_94.0.4585.0-1_amd64.deb
|
||||
|
||||
# clone remotegameplay distribution
|
||||
git clone https://github.com/Akilan1999/remotegameplay
|
||||
# enter cloned directory
|
||||
cd remotegameplay
|
||||
|
||||
# Build laplace binary file
|
||||
go build .
|
||||
|
||||
./laplace -setconfig
|
||||
./laplace -tls -addr 0.0.0.0:8888 &
|
||||
./laplace -headless &
|
||||
|
||||
sleep 2
|
||||
|
||||
./laplace -headless -roomInfo >> /tmp/output.txt
|
||||
|
||||
# Installation game script here and start remote gameplay
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user