Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

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 \
    libglib2.0-0

# 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==4.6.0.66 \
    pyaudio==0.2.11

Docker running the command

Thanks!

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

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.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading