-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
54 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/sh | ||
|
||
sudo apt-get update | ||
sudo apt-get install -y \ | ||
ca-certificates \ | ||
curl \ | ||
gnupg \ | ||
lsb-release | ||
sudo mkdir -p /etc/apt/keyrings | ||
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg | ||
echo \ | ||
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \ | ||
$(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null | ||
sudo apt-get update | ||
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-compose-plugin -y | ||
sudo usermod -aG docker ubuntu |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
#!/bin/bash | ||
|
||
sudo apt-get update | ||
sudo apt-get install -y software-properties-common | ||
sudo add-apt-repository -y ppa:obsproject/obs-studio | ||
sudo add-apt-repository ppa:nextcloud-devs/client | ||
sudo apt-get update | ||
yes | sudo DEBIAN_FRONTEND=noninteractive apt-get install -y lightdm | ||
echo '/usr/sbin/lightdm' | sudo tee /etc/X11/default-display-manager > /dev/null | ||
|
||
sudo apt-get install -y ubuntu-drivers-common nvidia-driver-510 ocl-icd-libopencl1 opencl-headers clinfo obs-studio ffmpeg ubuntu-desktop x11vnc net-tools qt5-image-formats-plugins libmng2 nextcloud-client nextcloud-desktop | ||
sudo nvidia-xconfig | ||
|
||
sudo sh -c "cat <<EOF > /etc/systemd/system/x11vnc.service | ||
[Unit] | ||
Description=x11vnc (Remote access) | ||
After=network-online.target | ||
[Service] | ||
Type=simple | ||
ExecStart=/usr/bin/x11vnc -auth guess -display :0 -rfbauth /etc/.vncpasswd -rfbport 5900 -forever -loop -noxdamage -repeat -shared | ||
ExecStop=/bin/kill -TERM $MAINPID | ||
ExecReload=/bin/kill -HUP $MAINPID | ||
KillMode=control-group | ||
Restart=on-failure | ||
[Install] | ||
WantedBy=graphical.target | ||
EOF" | ||
|
||
cd /tmp | ||
wget https://github.com/obsproject/obs-websocket/releases/download/5.0.0/obs-websocket-5.0.0-Ubuntu64.zip | ||
unzip obs-websocket-5.0.0-Ubuntu64.zip | ||
sudo dpkg -i obs-websocket-5.0.0-Ubuntu64.deb | ||
|
||
sudo systemctl daemon-reload | ||
sudo systemctl enable x11vnc | ||
sudo systemctl start x11vnc |