View previous topic :: View next topic |
Author |
Message |
Zucca Moderator
Joined: 14 Jun 2007 Posts: 3832 Location: Rasi, Finland
|
Posted: Wed Jul 10, 2024 11:13 am Post subject: Re: Teams on Linux |
|
|
Yamakuzure wrote: | However, you can install "User Agent Switcher and Manager" extension, set it to white list mode, and apply latest Edge on Windows as the user agent to all microsoft.com URLs.
I tried it, and going on https://teams.microsoft.com/ (*NOT* /v2/ !), it let me log in. I then got a popup, that my organization was switching to the new teams, and asked whether I would follow.
Et voilà, Microsoft Teams V2 in Mozilla Firefox on Gentoo Linux. :) | I finally installed the extension.
Got it working. I actually set the Edge UA string on my "work" container. It works.
I was left wandering what does these black-list and white-list modes have to with extensions? _________________ ..: Zucca :..
My gentoo installs: | init=/sbin/openrc-init
-systemd -logind -elogind seatd |
Quote: | I am NaN! I am a man! |
|
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 22938
|
Posted: Wed Jul 10, 2024 2:16 pm Post subject: |
|
|
I think the idea is to send the fake user-agent only to sites that are known to engage in user-agent blocking, rather than to send the fake user-agent everywhere. Using a wrong user-agent may confuse some sites into doing the wrong thing, so you want to spoof sparingly. |
|
Back to top |
|
|
Massimo B. Veteran
Joined: 09 Feb 2005 Posts: 1820 Location: PB, Germany
|
Posted: Mon Jul 15, 2024 7:48 am Post subject: |
|
|
My current favorite for the keyboard shortcut is: Code: | kdocker microsoft-edge-stable --profile-directory="Profile 1" --disable-extensions --disable-plugins --disable-sync --start-maximized --app=https://teams.microsoft.com/ |
I'm not sure if --enable-features=WebRTCPipeWireCapturer is still supported as I don't see that option in edge://flags.
--start-maximized I need because the application always starts in a sized window, don't know why. This might be caused by the --app option, as kdocker doesn't force it and starting edge as usual is also maximized or remembering the last size.
I also enabled those 2 options in the profile:
edge://flags/#edge-wide-echo-cancellation
edge://flags/#enable-webrtc-hide-local-ips-with-mdns
..because it is not clear to me which state is the default (https://www.ghacks.net/2016/03/02/how-to-find-out-if-a-chrome-flag-is-enabled/). Actually all the local-ip-leak issues should be fixed in current Firefox and Chrome versions.
I also enabled the echo-cancellation option to make WebRTC do that job cancelling the feedback from loudspeakers to mic, maybe better than my EasyEffects.
Old news reported new echo-cancelling techniques in Teams: https://www.zdnet.com/article/microsoft-is-adding-echo-cancellation-anti-interruption-features-to-teams/ It's not clear if the Web-Client also support all those features via WebRTC.
I'm still not able to run Teams (Web) on Linux with loudspeakers without getting bad feedback to the other side when he/she's speaking, which obviously works better on Windows with the native client. _________________ HP ZBook Power 15.6" G8 i7-11800H|HP EliteDesk 800G1 i7-4790|HP Compaq Pro 6300 i7-3770 |
|
Back to top |
|
|
Massimo B. Veteran
Joined: 09 Feb 2005 Posts: 1820 Location: PB, Germany
|
Posted: Mon Dec 09, 2024 8:17 am Post subject: |
|
|
Since the stable package dropped version 130, teams failed to share the screen as already described in various threads on https://answers.microsoft.com/en-us/msteams/forum/ .
Version 130 was dropped completely from Portage if not maintaining a local copy myself. I tested all packages up to microsoft-edge-dev with version 133, and that solved it too. So I keep that -dev package that until it gets stabilized.
Btw. google-chrome-131.0.6778.108 does not have this issue. I use the microsoft-edge only for running a separated teams instance. Is that worth creating a bugreport in order to stabilize either 130 or 133 in Portage just because one single feature of some single "webpage" fails? At least on Linux, one major reason to install microsoft edge beside of Firefox and Chrome might be running MS Teams. _________________ HP ZBook Power 15.6" G8 i7-11800H|HP EliteDesk 800G1 i7-4790|HP Compaq Pro 6300 i7-3770 |
|
Back to top |
|
|
Zucca Moderator
Joined: 14 Jun 2007 Posts: 3832 Location: Rasi, Finland
|
Posted: Mon Dec 09, 2024 11:47 am Post subject: |
|
|
Code: | zucca@NBLK-WAX9X ~ $ qlist -Iv firefox
www-client/firefox-128.5.0 | Teams still works on my setup here. _________________ ..: Zucca :..
My gentoo installs: | init=/sbin/openrc-init
-systemd -logind -elogind seatd |
Quote: | I am NaN! I am a man! |
|
|
Back to top |
|
|
Massimo B. Veteran
Joined: 09 Feb 2005 Posts: 1820 Location: PB, Germany
|
Posted: Mon Dec 09, 2024 12:10 pm Post subject: |
|
|
Zucca wrote: | Code: | www-client/firefox-128.5.0 | Teams still works on my setup here. | Firefox? With all features like Video, Audio, Camera, screen sharing? There have been major missing features when I tried with firefox, so I switched to Chrome and then to Edge soon. Or was it running a PWA was not possible in Firefox?
I would need to run a separate instance and separate profile for Teams anyway so id doesn't hurt to switch the browser for that process to the optimal supporting browser, which MS Edge is not anymore recently appearently _________________ HP ZBook Power 15.6" G8 i7-11800H|HP EliteDesk 800G1 i7-4790|HP Compaq Pro 6300 i7-3770 |
|
Back to top |
|
|
Massimo B. Veteran
Joined: 09 Feb 2005 Posts: 1820 Location: PB, Germany
|
Posted: Mon Dec 09, 2024 12:13 pm Post subject: Re: Teams on Linux |
|
|
That was my latest information. Might be different today... _________________ HP ZBook Power 15.6" G8 i7-11800H|HP EliteDesk 800G1 i7-4790|HP Compaq Pro 6300 i7-3770 |
|
Back to top |
|
|
Zucca Moderator
Joined: 14 Jun 2007 Posts: 3832 Location: Rasi, Finland
|
Posted: Mon Dec 09, 2024 1:36 pm Post subject: |
|
|
Hm. I haven't tried video for a long time. _________________ ..: Zucca :..
My gentoo installs: | init=/sbin/openrc-init
-systemd -logind -elogind seatd |
Quote: | I am NaN! I am a man! |
|
|
Back to top |
|
|
Massimo B. Veteran
Joined: 09 Feb 2005 Posts: 1820 Location: PB, Germany
|
Posted: Tue Dec 10, 2024 7:27 am Post subject: |
|
|
I just found that there is again an "Install" button in the address bar when opening the teams website in a tab.
This creates an application shortcut
~/.local/share/applications/msedge-cifhbcnohmdccbgoicgdjpfamggdegmo-Profile_1.desktop: | /opt/microsoft/msedge-dev/microsoft-edge-dev "--profile-directory=Profile 1" --app-id=cifhbcnohmdccbgoicgdjpfamggdegmo "--app-url=https://teams.microsoft.com/v2/?clientType=pwa" |
Is there any difference compared to...
Massimo B. wrote: | My current favorite for the keyboard shortcut is: Code: | kdocker microsoft-edge-stable --profile-directory="Profile 1" --disable-extensions --disable-plugins --disable-sync --start-maximized --app=https://teams.microsoft.com/ |
|
Is there anything locally cached with a PWA or is it only the visible appearance of the window? _________________ HP ZBook Power 15.6" G8 i7-11800H|HP EliteDesk 800G1 i7-4790|HP Compaq Pro 6300 i7-3770 |
|
Back to top |
|
|
Massimo B. Veteran
Joined: 09 Feb 2005 Posts: 1820 Location: PB, Germany
|
Posted: Tue Dec 10, 2024 7:50 am Post subject: |
|
|
Reading more about PWA-specific features (using --app-id and pre-installing the PWA) and comparing to my wrapper-approach (using --app):
Desktop and Home integration: This is only the way how to start the "app". The PWA installation creates that .desktop file to be found in start menus etc. I already have that via my wrapper script.
Custom App icon: I already have that.
Task-bar integration: I already have that.
Caching of content for offline usage: Ok, this might be a benefit, thoough not sure if teams uses that as it is made for online usage.
Sync when resuming connection: See above
Faster loading on bad connections: Might be a benefit.
Responsive Design: For usage on different screen sices. Not required.
Native notifications: I already have that.
Background service workers for syncing: ?
URL handlers for mailto:, tel: etc.: Might be useful.
Forced HTTPS: I already use HTTPS.
Sandboxing: When using a separate process and profile, I already have kind of a sandbox
Automatic updates: Updating the PWA only helps for the PWA-approach. Using the website is already up-to-date.
After all because of some uncertain details, I would rather prefer the PWA approach for now and see how it goes... I might be that the PWA does some browser configuration in edge://flags/ that I don't have without the PWA. Could anybody comment? _________________ HP ZBook Power 15.6" G8 i7-11800H|HP EliteDesk 800G1 i7-4790|HP Compaq Pro 6300 i7-3770 |
|
Back to top |
|
|
Massimo B. Veteran
Joined: 09 Feb 2005 Posts: 1820 Location: PB, Germany
|
Posted: Fri Dec 13, 2024 7:38 am Post subject: |
|
|
Ok, Teams works perfectly in the following setup as PWA now:- Emerge www-client/microsoft-edge-dev-133.0.2992.0 (masking all other versions to stay on this version until www-client/microsoft-edge gets updated)
Code: | # grep microsoft-edge -r /etc/portage
/etc/portage/package.accept_keywords/custom:www-client/microsoft-edge-dev
/etc/portage/package.mask/custom:>www-client/microsoft-edge-dev-133.0.2992.0 # Bug mit MS Teams Screenshare in 131, 132
/etc/portage/package.mask/custom:<www-client/microsoft-edge-dev-133.0.2992.0 # Bug mit MS Teams Screenshare in 131, 132
/etc/portage/package.license/custom:www-client/microsoft-edge-dev microsoft-edge
/etc/portage/sets/machine_shared:www-client/microsoft-edge-dev |
Create a separate profile, on filesystem called --profile-directory="Profile 1", internally called "Teams", as Edge/Chrome are not able to give custom profile path names like firefox.
Openi https://teams.microsoft.com/ in order to press the Install button in the address bar for installing as PWM. This will create some ~/.local/share/applications/msedge-cifhbcnohmdccbgoicgdjpfamggdegmo-Profile_1.desktop and can be found in application menus.
Emerge x11-misc/kdocker for getting a tray icon for persistent Teams in the background.
Now how to start it: I tried kdocker --name "Microsoft Teams" exo-open ~/.local/share/applications/msedge-cifhbcnohmdccbgoicgdjpfamggdegmo-Profile_1.desktop which doesn't work as kdocker gets the pid of the ex-open wrapper which closes after the application has started. So I created my own wrapper script and copied the Exec= line from the .desktop file:
~/bin/teams : | #!/usr/bin/env bash
kdocker /opt/microsoft/msedge-dev/microsoft-edge-dev "--profile-directory=Profile 1" --app-id=cifhbcnohmdccbgoicgdjpfamggdegmo "--app-url=https://teams.microsoft.com/v2/?clientType=pwa" | I have no specific settings in the edge://flags anymore and nothing specific as command line arguments, because I guess the PWA does all that in a better way.
Some improvement at least on Xfce to get rid of the big PWA decoration bar: I enter Fullscreen mode: Options->More Tools->Fullscreen icon . Then I exit the Fullscreen mode on Xfce via CTRL+F11. That brings the taskbar back but keeps Teams in a frameless window.
Configuring kdocker, my setup is: All options disabled in KDocker->Options. Then setting the icon to some teams icon I copied from the internet. I have the same icon duplicated but with a green dot, set as attention icon. Now save the settings for Microsoft-Edge only.Happy Teaming! _________________ HP ZBook Power 15.6" G8 i7-11800H|HP EliteDesk 800G1 i7-4790|HP Compaq Pro 6300 i7-3770 |
|
Back to top |
|
|
Zucca Moderator
Joined: 14 Jun 2007 Posts: 3832 Location: Rasi, Finland
|
Posted: Sat Dec 14, 2024 7:30 am Post subject: |
|
|
I'm gonna give net-im/teams-for-linux::guru a try.
I'd rather have teams as a separate program (an electron app, I believe *sigh*) than as a firefox tab.
Although teams on Firefox does work, I'm not so sure about the video side.
So I'll try how both fare in this regard... _________________ ..: Zucca :..
My gentoo installs: | init=/sbin/openrc-init
-systemd -logind -elogind seatd |
Quote: | I am NaN! I am a man! |
|
|
Back to top |
|
|
Yamakuzure Advocate
Joined: 21 Jun 2006 Posts: 2305 Location: Adendorf, Germany
|
Posted: Sat Dec 14, 2024 9:14 am Post subject: |
|
|
Hu wrote: | I think the idea is to send the fake user-agent only to sites that are known to engage in user-agent blocking, rather than to send the fake user-agent everywhere. Using a wrong user-agent may confuse some sites into doing the wrong thing, so you want to spoof sparingly. | You are right. Luckily, only a few weeks after I wrote it, that "trick" stopped being necessary. _________________ Edited 220,176 times by Yamakuzure |
|
Back to top |
|
|
Massimo B. Veteran
Joined: 09 Feb 2005 Posts: 1820 Location: PB, Germany
|
Posted: Wed Dec 18, 2024 6:27 am Post subject: |
|
|
Zucca wrote: | I'm gonna give net-im/teams-for-linux::guru a try. | ...which comes from https://github.com/IsmaelMartinez/teams-for-linux . I was using that some time ago. Please report about it compared to MS Edge...
Actually it is running the PWA with Electron instead of MS Edge. Could be using less resources. What is Electron actually, is that a complete browser environment for running PWAs? Zucca wrote: | I'd rather have teams as a separate program (an electron app, I believe *sigh*) than as a firefox tab. | All the thread here is about having Teams as a separate program. The PWA in Edge with separate profile and the tray icon feels like a separate application. _________________ HP ZBook Power 15.6" G8 i7-11800H|HP EliteDesk 800G1 i7-4790|HP Compaq Pro 6300 i7-3770 |
|
Back to top |
|
|
Zucca Moderator
Joined: 14 Jun 2007 Posts: 3832 Location: Rasi, Finland
|
Posted: Wed Dec 18, 2024 12:24 pm Post subject: |
|
|
Massimo B. wrote: | Please report about it compared to MS Edge... | I can at least compare it against Firefox. I doubt I'll install Edge...
Massimo B. wrote: | Actually it is running the PWA with Electron instead of MS Edge. Could be using less resources. What is Electron actually, is that a complete browser environment for running PWAs? Zucca wrote: | I'd rather have teams as a separate program (an electron app, I believe *sigh*) than as a firefox tab. | All the thread here is about having Teams as a separate program. The PWA in Edge with separate profile and the tray icon feels like a separate application. | That sounds a little better then. Although I've dropped tray icon support from my desktop. :D
As for the resource usage... Running Teams on Firefox container vs. as a separate program. Since I'm already having something like four firefox windows open and estimated 60 tabs open in them, having Teams in a separate firefox window won't add up the memory usage that much... BUT it does take HUGE amount of disk space in the site local storage. So I'm also been toying with the idea of dropping all local storage stuff (except for extensions) upon logout or reboot.
I need to compare the disk space utilization against the electron app version... _________________ ..: Zucca :..
My gentoo installs: | init=/sbin/openrc-init
-systemd -logind -elogind seatd |
Quote: | I am NaN! I am a man! |
|
|
Back to top |
|
|
Massimo B. Veteran
Joined: 09 Feb 2005 Posts: 1820 Location: PB, Germany
|
Posted: Wed Dec 18, 2024 1:43 pm Post subject: |
|
|
Eventhough Firefox is my main browser, I wanted to avoid running Teams just as a tab because:
- Firefox was breaking all the audio/video conferencing and screen sharing. Was better by tweaking the user agent but not fully solved. Might be better today, though MS Teams webapp was never developed nor optimized for Firefox.
- Having my webbrowser restarting for updates I want to separate the teams app to keep it running.
- For ressources and stability I also like to run it as separate browser process AND having a dedicated clean and optimized profile. So there is no requirement to run that process with Firefox, mit might be whatever browser is best for Teams.
- And PWA support was dropped in Firefox or was suboptimal by using 3rd party addons...
[/list] _________________ HP ZBook Power 15.6" G8 i7-11800H|HP EliteDesk 800G1 i7-4790|HP Compaq Pro 6300 i7-3770 |
|
Back to top |
|
|
Zucca Moderator
Joined: 14 Jun 2007 Posts: 3832 Location: Rasi, Finland
|
Posted: Sun Jan 05, 2025 10:19 am Post subject: |
|
|
Moved from 'Other Things Open Source' to 'Other Things Gentoo'. _________________ ..: Zucca :..
My gentoo installs: | init=/sbin/openrc-init
-systemd -logind -elogind seatd |
Quote: | I am NaN! I am a man! |
|
|
Back to top |
|
|
|