new changes to starting chromium browser
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
# from consol/ubuntu-xfce-vnc
|
||||
|
||||
# due to dependency issues vnc is still work in progress
|
||||
from ubuntu:20.04
|
||||
from dorowu/ubuntu-desktop-lxde-vnc
|
||||
|
||||
# Switch to root user to install additional software
|
||||
USER 0
|
||||
@@ -52,6 +52,8 @@ run chpasswd -c SHA512 < /root/passwdfile && \
|
||||
# Port 22 is used for ssh
|
||||
expose 22
|
||||
|
||||
expose
|
||||
|
||||
|
||||
# Assign /data as static volume.
|
||||
volume ["/data"]
|
||||
|
||||
9
main.go
9
main.go
@@ -57,8 +57,15 @@ func main() {
|
||||
// Returns the URl address type
|
||||
Addr := Ip4or6(Config.IPAddress)
|
||||
|
||||
// If address is provided
|
||||
if *addr != "" {
|
||||
Addr = *addr
|
||||
// Add brackets if the ip address is ipv6
|
||||
Addr = Ip4or6(Addr)
|
||||
}
|
||||
|
||||
// Starting screen share headless
|
||||
cmd := exec.Command("chromium" ,"--auto-select-desktop-capture-source=Entire screen","--url","https://" + Addr + ":8888/?mode=headless","--ignore-certificate-errors")
|
||||
cmd := exec.Command("chromium-browser" ,"--no-sandbox","--auto-select-desktop-capture-source=Entire screen","--url","https://" + Addr + ":8888/?mode=headless","--ignore-certificate-errors")
|
||||
if err := cmd.Run(); err != nil {
|
||||
log.Fatalln(err)
|
||||
}
|
||||
|
||||
15
p2prc.sh
15
p2prc.sh
@@ -4,30 +4,33 @@
|
||||
# - 8888 (laplace server)
|
||||
# - 24800 (barrier server)
|
||||
|
||||
export REMOTEGAMEPLAY=$PWD
|
||||
|
||||
# Updating and installing go compiler
|
||||
apt update
|
||||
apt install golang
|
||||
apt install -y golang
|
||||
|
||||
# Installing git
|
||||
apt install -y git
|
||||
|
||||
# Installing barrier
|
||||
apt install barrier
|
||||
apt install -y 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
|
||||
apt install -y ./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
|
||||
|
||||
export REMOTEGAMEPLAY=$PWD
|
||||
|
||||
# Build laplace binary file
|
||||
go build .
|
||||
|
||||
./laplace -setconfig
|
||||
./laplace -tls -addr 0.0.0.0:8888 &
|
||||
./laplace -headless &
|
||||
./laplace -headless -addr `$1` &
|
||||
|
||||
sleep 2
|
||||
|
||||
|
||||
14
scripts/start
Normal file
14
scripts/start
Normal file
@@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
# -----------------------------------------------------------------------------
|
||||
# docker-ubuntu-sshd /start script
|
||||
#
|
||||
# Authors: Art567
|
||||
# Updated: Sep 20th, 2015
|
||||
# -----------------------------------------------------------------------------
|
||||
|
||||
|
||||
# Run OpenSSH server in daemon mode
|
||||
/usr/sbin/sshd -D
|
||||
|
||||
# Running x11 server with password
|
||||
|
||||
Reference in New Issue
Block a user