Skip to content

Latest commit

 

History

History
55 lines (42 loc) · 1.48 KB

README.md

File metadata and controls

55 lines (42 loc) · 1.48 KB

Background Creator for teams-for-linux

This repo refers to Teams for Linux which provides an non-official Electron wrapped Microsoft Teams client for use on Linux.

With this script you can automatically create background images that shall be served by a local webserver (e.g. Apache2) and can then be used for video-conferences background effects.

Preconditions

Install a webserver of your choice and enable it to serve images.

Example on Ubuntu 22.04

sudo -i
apt install apache2
a2enmod headers
cat << EOF | sed -i "$(( $(grep -n 'DocumentRoot /var/www/html' /etc/apache2/sites-enabled/000-default.conf | cut -d: -f1) + 1 ))r /dev/stdin" /etc/apache2/sites-enabled/000-default.conf
        <Directory /var/www/html/>
          Header set Access-Control-Allow-Origin "*"
          Options Indexes FollowSymLinks
          AllowOverride None
          Require all granted
        </Directory>
EOF
systemctl restart apache2.service

Create Images

Make sure all the images are of JPEG format and named *.jpg.

Save all images to: /var/www/html/source/

run the script

./create_backgrounds.sh

Update your config

~/.config/teams-for-linux/config.json

{
        "optInTeamsV2": true,
        "url": "https://teams.microsoft.com/v2/",
        "isCustomBackgroundEnabled": true,
        "customBGServiceConfigFetchInterval": 120
}

Restart teams-for-linux

to pick up the newly available images