How to Make Phone Camera as Laptop Webcam (Ubuntu/All Linux OS)

Afiv Dicky Efendy
3 min readNov 6, 2020

Video conferences are a part of our daily work schedules and we use our laptops and smartphones for video calling. There are popular video calling apps such as JioMeet, Microsoft Teams, Skype and Google Meet. They allow you to host meetings no matter where you are.

Think of a situation where you want to attend an important video conference but your PC does not have one. Perhaps, the web camera on your laptop is of poor quality. You could use your Android smartphone or iPhone as a webcam and we will tell you how.

We tried a few apps, and we recommend using DroidCam Wireless Webcam. This app supports Android, iOS, Linux and Windows. It lets you connect your laptop or a PC over the Wi-Fi network or with the help of a USB cable. Start by downloading the DroidCam app on your phone from the app store, then install the DroidCam Client on your Linux laptop or PC.

If the previous post I made a tutorial for windows now I make it also for linux. and we will use DroidCam application to doing that’s work perfectly.

Windows 10 installation:

Step by step:

Phone setup

  • Download the app and install it.

Mod Version

Original version

Laptop setup

  • Go to Droidcam client for Linux

If droidcam is already installed, make sure it’s not open then update with this command.

cd /tmp/wget https://files.dev47apps.net/linux/droidcam_latest.zipunzip droidcam_latest.zip -d droidcamcd droidcam && sudo ./install-client

# Install Droidcam #

Video

  • Install these packages
sudo apt install linux-headers-`uname -r` gcc make
  • Run
sudo ./install-video

The install script will try to auto-sign the drivers if you have secure boot enabled. If the signing fails, you will be prompted to manually take care of signing the driver by following ‘Secure Boot Module Signing’ instructions for your distro (more info on Google).

If all goes well, you can ensure the video device is loaded via lsmod | grep v4l2loopback_dc. You should see v4l2loopback_dc in the output.

Skype, Zoom, OBS Studio, etc. should now list DroidCam as a video device (it might also be listed as a raw /dev/video device).

Sound (optional)

  • Run (optional)
sudo ./install-sound

This will load the Linux ALSA Loopback sound card, which the Droidcam client will use for audio input.

  • Make launcher for the app

You can start the droidcam client via the Terminal, or create a launcher. There is also a simpler cli client, droidcam-cli

  1. right click on your desktop and choose create launcher.

2. Fill the blank space same with the image below and save.

HD mode

  • Edit the text file
sudo mousepad  /etc/modprobe.d/droidcam.conf
  • Change the Width x Height with 1280x720
options v4l2loopback_dc width=1280 height=720

Standard sizes (Width x Height): 640×480, 960×720, 1280×720 (720p), 1920×1080 (1080p)

  • Done

Thanks for reading and don’t forget to clap this article 👌

--

--

Afiv Dicky Efendy

Linux enthusiast who wants to share his knowledge through writing on the medium