Inspired by the information/recipe in Thread 77559. I tried to get Teams going on FreeBSD as well. The short answer is that it mostly works, but the video conferencing functionality doesn't.
Here's what I did (roughly, sorry I didn't take extensive notes).
1. Set up the Linux Ubuntu distro and chrome as documented in the thread named above (just to make sure that the installed software is OK).
2. Download the Teams client dpkg from Microsoft and make sure that it is accessible in a chroot (if you have nullfs mounted home that shouldn't be a problem).
3. Start a chroot environment:
4. Install the dpkg
5. Install the missing parts:
Then create a update teams script that is similar to the chrome script:
I had to add --single-threaded-gc based on an earlier Thread 75356 on teams.
After that it more or less works. You can login, chat and files work OK. However, no devices (mic, speaker, camera) are shown. These *do* show up in chrome, so there must be something else going on there. Sadly, in the current state, you can do just as well with Firefox and slightly better with chromium.
Checking logs, there seems to something else that is spawned from teams which fails because of the preload. Sadly the logs only report
It is very promising, and I really applaud the work on Linux emulation. Still, it would be nice that these web services could work correctly on all browsers.
Here's what I did (roughly, sorry I didn't take extensive notes).
1. Set up the Linux Ubuntu distro and chrome as documented in the thread named above (just to make sure that the installed software is OK).
2. Download the Teams client dpkg from Microsoft and make sure that it is accessible in a chroot (if you have nullfs mounted home that shouldn't be a problem).
3. Start a chroot environment:
chroot /compat/linux /bin/bash
4. Install the dpkg
dpkg -i teams*.dpkg
5. Install the missing parts:
apt --fix-broken-install
apt install libsecret-1-0
Then create a update teams script that is similar to the chrome script:
Code:
#!/compat/linux/bin/sh
SCRIPT=$(readlink -f "$0")
USR_DIRECTORY=$(readlink -f $(dirname $SCRIPT)/..)
TEAMS_PATH="$USR_DIRECTORY/share/teams/teams"
TEAMS_LOGS="$HOME/.config/Microsoft/Microsoft Teams/logs"
export LD_LIBRARY_PATH=/usr/local/steam-utils/lib64/fakeudev
export LD_PRELOAD=/usr/local/steam-utils/lib64/webfix/webfix.so
export LIBGL_DRI3_DISABLE=1
mkdir -p "$TEAMS_LOGS"
nohup "$TEAMS_PATH" --no-sandbox --no-zygote --test-type --v=0 --single-thearded-gc "$@" > "$TEAMS_LOGS/teams-startup.log" 2>&1 &
After that it more or less works. You can login, chat and files work OK. However, no devices (mic, speaker, camera) are shown. These *do* show up in chrome, so there must be something else going on there. Sadly, in the current state, you can do just as well with Firefox and slightly better with chromium.
Checking logs, there seems to something else that is spawned from teams which fails because of the preload. Sadly the logs only report
Code:
ld-elf.so.1: Shared object "libdl.so.2" not found, required by "webfix.so"
It is very promising, and I really applaud the work on Linux emulation. Still, it would be nice that these web services could work correctly on all browsers.