Last active
July 10, 2024 14:37
-
-
Save serycodes/a349fa333a03a63acace7e2988971787 to your computer and use it in GitHub Desktop.
Rough setup for headless OBS
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
add-apt-repository ppa:obsproject/obs-studio | |
apt-get update | |
apt-get install xorg obs-studio software-properties-common curl htop libmng2 qt5-image-formats-plugins xvfb -y | |
# enable X11 forwarding and X11DisplayOffset in here: | |
# X11Forwarding yes | |
# X11DisplayOffset 10 | |
nano /etc/ssh/sshd_config | |
service sshd restart | |
# OBS websockets install | |
wget https://github.com/obsproject/obs-websocket/releases/download/4.9.1/obs-websocket_4.9.1-1_amd64.deb | |
dpkg -i obs-websocket_4.9.1-1_amd64.deb | |
# inside putty SSH with X11 forwarding enabled | |
# I also have VcXsrv on windows up and running for X11 | |
# if everything works, OBS should come up for ya. | |
obs | |
# testing | |
xvfb-run -s "-screen 0 640x480x24" obs --startstreaming | |
# firewall | |
ufw allow 22 | |
ufw allow 4444 | |
ufw enable | |
# cat /etc/systemd/system/obs.service | |
[Unit] | |
Description=OBS | |
After=network.target | |
StartLimitIntervalSec=0 | |
[Service] | |
Type=simple | |
User=root | |
ExecStart=xvfb-run -s "-screen 0 640x480x24" obs --startstreaming | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
xvfb-run
in the package install list on line 3 should just bexvfb
!