new changes to starting chromium browser

This commit is contained in:
2021-07-30 17:42:03 +04:00
parent 896bd96ffd
commit be73f23811
4 changed files with 34 additions and 8 deletions

View File

@@ -11,7 +11,7 @@
# from consol/ubuntu-xfce-vnc # from consol/ubuntu-xfce-vnc
# due to dependency issues vnc is still work in progress # 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 # Switch to root user to install additional software
USER 0 USER 0
@@ -52,6 +52,8 @@ run chpasswd -c SHA512 < /root/passwdfile && \
# Port 22 is used for ssh # Port 22 is used for ssh
expose 22 expose 22
expose
# Assign /data as static volume. # Assign /data as static volume.
volume ["/data"] volume ["/data"]

View File

@@ -57,8 +57,15 @@ func main() {
// Returns the URl address type // Returns the URl address type
Addr := Ip4or6(Config.IPAddress) 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 // 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 { if err := cmd.Run(); err != nil {
log.Fatalln(err) log.Fatalln(err)
} }

View File

@@ -4,30 +4,33 @@
# - 8888 (laplace server) # - 8888 (laplace server)
# - 24800 (barrier server) # - 24800 (barrier server)
export REMOTEGAMEPLAY=$PWD
# Updating and installing go compiler # Updating and installing go compiler
apt update apt update
apt install golang apt install -y golang
# Installing git
apt install -y git
# Installing barrier # Installing barrier
apt install barrier apt install -y barrier
# Installing chromium # 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 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 # clone remotegameplay distribution
git clone https://github.com/Akilan1999/remotegameplay git clone https://github.com/Akilan1999/remotegameplay
# enter cloned directory # enter cloned directory
cd remotegameplay cd remotegameplay
export REMOTEGAMEPLAY=$PWD
# Build laplace binary file # Build laplace binary file
go build . go build .
./laplace -setconfig ./laplace -setconfig
./laplace -tls -addr 0.0.0.0:8888 & ./laplace -tls -addr 0.0.0.0:8888 &
./laplace -headless & ./laplace -headless -addr `$1` &
sleep 2 sleep 2

14
scripts/start Normal file
View 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