Skip to content

Instantly share code, notes, and snippets.

@neverkas
Last active August 25, 2023 05:07
Show Gist options
  • Select an option

  • Save neverkas/4c9a3123ba682e8ccbe4114adf41afc2 to your computer and use it in GitHub Desktop.

Select an option

Save neverkas/4c9a3123ba682e8ccbe4114adf41afc2 to your computer and use it in GitHub Desktop.

Revisions

  1. neverkas revised this gist Aug 25, 2023. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion linux-webcam.mk
    Original file line number Diff line number Diff line change
    @@ -36,5 +36,5 @@ droidcam-download:
    droidcam-install: adb-driver-install video-configure-modules droidcam-download
    cd /tmp/droidcam \
    && sudo ./install-client \
    && sudo ./install-sound
    && sudo ./install-sound \
    && sudo ./install-video
  2. neverkas created this gist Aug 25, 2023.
    40 changes: 40 additions & 0 deletions linux-webcam.mk
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,40 @@
    # cheese
    cheese-install:
    sudo aptitude install cheese

    cheese-run:
    cheese

    # v4l2loopback
    #
    # - This module allows you to create "virtual video devices".
    # - https://unix.stackexchange.com/questions/644591/how-to-install-droidcam
    # - https://github.com/umlaeute/v4l2loopback
    video-configure-modules:
    sudo aptitude install v4l2loopback-dkms v4l2loopback-utils \
    && sudo modprobe -v v4l2loopback

    # adb driver
    adb-driver-install:
    sudo aptitude install adb

    adb-driver-list-devices:
    adb devices -l

    # droidcam
    #
    # https://www.dev47apps.com/droidcam/linux/
    droidcam-run:
    cd /tmp/droidcam \
    && ./droidcam

    droidcam-download:
    cd /tmp/ \
    && wget -O droidcam_latest.zip https://files.dev47apps.net/linux/droidcam_2.0.0.zip \
    && unzip droidcam_latest.zip -d droidcam

    droidcam-install: adb-driver-install video-configure-modules droidcam-download
    cd /tmp/droidcam \
    && sudo ./install-client \
    && sudo ./install-sound
    && sudo ./install-video