OBS Silent install on Ubuntu

Is there a way to skip the menu and just install it with sudo apt-get install -qq -y obs-studio? I’ve added the -qq flag after following the guide, but I’m not sure if that’d work yet. I’ve seen people doing /S on Windows. Any Linux alternative?

FROM selenium/node-chrome:4.1.4-20220427
# FROM ubuntu:20.04

# Prevent tzdata config questions.
ENV DEBIAN_FRONTEND noninteractive

# RUN sudo add-apt-repository ppa:obsproject/obs-studio -y

RUN sudo apt-get update --fix-missing && \
    sudo apt-get install -y \
    sudo \
    libsm6 \
    libxext6 \
    libxrender-dev \
    libv4l-dev \
    python3.8 \
    python3-pip \
    python3.8-dev \
    git \
    ffmpeg \
    libgl1-mesa-glx \

# Fake video input. Allows webcam to be used by Chrome.
RUN sudo apt install -y linux-generic v4l2loopback-dkms

RUN sudo apt-get install --yes --no-install-recommends obs-studio
# Answers: 31, 1

COPY . /code/

RUN pip3 install -r /code/requirements.txt

# Test video.
COPY video1.mp4 /opt/media/video1.mp4
RUN sudo apt-get install -y portaudio19-dev
RUN pip3 install pyvirtualcam==0.9.1 \
    opencv-python== \

Docker running the command


Edit: -qq did not work.
Edit2: Add Dockerfile

>Solution :

The -qq is for apt update, what you likely want is to turn interactive behavior off.

From a Dockerfile of mine:

ENV DEBIAN_FRONTEND noninteractive

after which you can do the usual

RUN apt update -qq \
    && apt install --yes --no-install-recommends obs-studio

plus whichever other packages and settings you may want or need. And of course if this is for a shell script rather than Dockerfile, use export DEBIAN_FRONTEND=noninteractive and omit the RUN.

Leave a Reply