Re: Microsoft Teams for Linux

2020-05-07 Thread Alexandr Krivulya

06.05.20 10:09, Maciej Suszko пишет:

Just adding freebsd-questions list - anyone here who tried to run or use
Microsoft Teams web/app ?

On 5/5/20 2:52 PM, Maciej Suszko wrote:

Hi,

I'm wondering if anyone tried to use Microsoft Temas either web version
or desktop app... Web version does work but making audio/video call
isn't officialy suppported, so you need to spoof user-agent to make it
partially working - but from time to time MS change something and it
just stop working. In the past weeks I was able to make audio calls, now
it's not possible (neither Firefox nor Chrome)

I tested my webcam and mic on https://www.onlinemictest.com/ and it's
all working, so problematic is the web application from MS.

Desktop application - here are two options, one for Linux, one for
Windows. I tried to run the Linux version using linuxulator,
brandelf-ing all the binaries but with no success...

#v+
tlhscd@arsenic:/tmp/teams/share/teams $ ./teams
Trace/BPT trap (core dumped)
#v-

How do you think - are there any chances to make the desktop app working
in out FreeBSD desktops?--


Yesterday I tried to call my colleague via Microsoft Teams web-app 
(latest Firefox on CURRENT, spoofed User-Agent). Yes, there is no audio 
and video at all in both directions.


If I run desktop version with linux strace and it crashes. I think it 
because of unimplemented cgroups calls. Both Microsoft Teams and Skype 
are Electron applications, that tries to run chromium in isolated 
environment.


ipe([8, 9])    = 0
mmap(NULL, 536875008, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0) = 0x8277c

mprotect(0x8277c, 4096, PROT_NONE)  = 0
clone(child_stack=0x8477bfc70, 
flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, 
parent_tidptr=0x8477c09d0, tls=0x8477c0700, child_tidptr=0x8477c09d0) = 
102129
read(4001536, 0x8477bfc70, 35559049680) = -1 ENOSYS (Function not 
implemented)
read(1, 0x7fffe130, 132630488)  = -1 ENOSYS (Function not 
implemented)

set_robust_list(0x8477c09e0, 24)    = 0
gettid()    = 102129
mmap(NULL, 134217728, PROT_NONE, 
MAP_PRIVATE|MAP_ANONYMOUS|MAP_NORESERVE, -1, 0) = 0x8477c1000

munmap(0x8477c1000, 8646656)    = 0
munmap(0x84c00, 58462208)   = 0
mprotect(0x84800, 135168, PROT_READ|PROT_WRITE) = 0
stat("/sys/fs/cgroup/cpuset/chrome", 0x8477bfa40) = -1 ENOENT (No such 
file or directory)
stat("/sys/fs/cgroup/schedtune/chrome", 0x8477bfa40) = -1 ENOENT (No 
such file or directory)

setpriority(PRIO_PROCESS, 0, 0) = 0
gettid()    = 102129
gettid()    = 102129
gettid()    = 102129
gettid()    = 102129
prctl(PR_SET_NAME, "sandbox_ipc_thre")  = 0
futex(0x7fffe1b4, FUTEX_CMP_REQUEUE_PRIVATE, 1, 2147483647, 
0x7fffe188, 2) = 1
read(-7756, 0x80, 1)    = -1 ENOSYS (Function not 
implemented)
read(1, 0x7fffe130, 80) = -1 ENOSYS (Function not 
implemented)

poll([{fd=8, events=POLLIN}, {fd=7, events=POLLIN}], 2, -1) = 0 (Timeout)
readlink("/proc/self/exe", "/compat/linux/usr/share/teams/te"..., 4096) = 35
lstat("/compat", {st_mode=S_IFDIR|0755, st_size=3, ...}) = 0
lstat("/compat/linux", {st_mode=S_IFDIR|0755, st_size=15, ...}) = 0
lstat("/compat/linux/usr", {st_mode=S_IFDIR|0775, st_size=10, ...}) = 0
lstat("/compat/linux/usr/share", {st_mode=S_IFDIR|0775, st_size=50, 
...}) = 0
lstat("/compat/linux/usr/share/teams", {st_mode=S_IFDIR|0755, 
st_size=18, ...}) = 0
lstat("/compat/linux/usr/share/teams/teams", {st_mode=S_IFREG|0755, 
st_size=114964776, ...}) = 0

socketpair(AF_LOCAL, SOCK_SEQPACKET, 0, [10, 11]) = 0
setsockopt(10, SOL_SOCKET, SO_PASSCRED, [1], 4) = -1 ENOPROTOOPT 
(Protocol not available)
--- SIGTRAP {si_signo=SIGTRAP, si_code=TRAP_BRKPT, si_errno=32767, 
si_value={int=132631408, ptr=0x7e7cb70}} ---

/compat/linux/bin/strace: [ Process PID=38396 runs in x32 mode. ]
syscall_18446744072635809788(0x8477bf9e0, 0x2, 0x, 0x7fff, 
0, 0x7e7cb50 

+++ killed by SIGTRAP +++


___
freebsd-emulation@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-emulation
To unsubscribe, send any mail to "freebsd-emulation-unsubscr...@freebsd.org"


Re: Microsoft Teams for Linux

2020-05-07 Thread Damjan Jovanovic
On Tue, May 5, 2020 at 2:52 PM Maciej Suszko  wrote:

> Hi,
>
> I'm wondering if anyone tried to use Microsoft Temas either web version
> or desktop app... Web version does work but making audio/video call
> isn't officialy suppported, so you need to spoof user-agent to make it
> partially working - but from time to time MS change something and it
> just stop working. In the past weeks I was able to make audio calls, now
> it's not possible (neither Firefox nor Chrome)
>
> I tested my webcam and mic on https://www.onlinemictest.com/ and it's
> all working, so problematic is the web application from MS.
>
> Desktop application - here are two options, one for Linux, one for
> Windows. I tried to run the Linux version using linuxulator,
> brandelf-ing all the binaries but with no success...
>
>
The Linux version is buggy. The microphone often doesn't work.

Wine seems to be 1 bug away from running the Windows version:
https://bugs.winehq.org/show_bug.cgi?id=48775
Since I am forced to use Teams, I might take a look at it soon.

Regards
Damjan
___
freebsd-emulation@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-emulation
To unsubscribe, send any mail to "freebsd-emulation-unsubscr...@freebsd.org"


Re: Microsoft Teams for Linux

2020-05-07 Thread Maciej Suszko
On 5/7/20 5:50 PM, Damjan Jovanovic wrote:
> 
> 
> On Tue, May 5, 2020 at 2:52 PM Maciej Suszko  > wrote:
> 
> Hi,
> 
> I'm wondering if anyone tried to use Microsoft Temas either web version
> or desktop app... Web version does work but making audio/video call
> isn't officialy suppported, so you need to spoof user-agent to make it
> partially working - but from time to time MS change something and it
> just stop working. In the past weeks I was able to make audio calls, now
> it's not possible (neither Firefox nor Chrome)
> 
> I tested my webcam and mic on https://www.onlinemictest.com/ and it's
> all working, so problematic is the web application from MS.
> 
> Desktop application - here are two options, one for Linux, one for
> Windows. I tried to run the Linux version using linuxulator,
> brandelf-ing all the binaries but with no success...
> 
> 
> The Linux version is buggy. The microphone often doesn't work.
> 
> Wine seems to be 1 bug away from running the Windows version:
> https://bugs.winehq.org/show_bug.cgi?id=48775
> Since I am forced to use Teams, I might take a look at it soon.

I tried that too... and still trying to get it to work. Now I have a
problem with current emulators/wine-devel - amd64 version does not work
at all, emulators/i386-wine-devel does not support staging, which is
required to build runas.exe.
Building emulators/wine-devel from ports on i386 chroot (with staging
enabled) throws some errors which I can't cope with:

#v+
gcc9 -o wine main.o -Wl,--rpath,\$ORIGIN/../libs/wine -Wl,--export-dynamic \
  -Wl,-Ttext-segment=0x6000 -Wl,-z,max-page-size=0x1000 -lwine
-lpthread \
  ../libs/port/libwine_port.a -L/usr/local/lib -L../libs/wine
-fstack-protector-strong -Wl,-rpath=/usr/local/lib/gcc9
-L/usr/local/lib/gcc9
/usr/local/bin/ld: main.o: in function `main':
main.c:(.text.startup+0x1b0): undefined reference to `wine_get_patches'
collect2: error: ld returned 1 exit status
gmake[3]: *** [Makefile:260: wine] Error 1
gmake[3]: *** Waiting for unfinished jobs
/usr/local/bin/ld: main.o: in function `main':
main.c:(.text.startup+0x1b0): undefined reference to `wine_get_patches'
collect2: error: ld returned 1 exit status
gmake[3]: *** [Makefile:264: wine-installed] Error 1
gmake[3]: Leaving directory
'/usr/ports/emulators/wine-devel/work/wine-5.7/loader'
gmake[2]: *** [Makefile:8940: loader] Error 2
gmake[2]: *** Waiting for unfinished jobs
gcc9 -o widl client.o expr.o hash.o header.o proxy.o register.o server.o
typegen.o typelib.o \
  typetree.o utils.o widl.o write_msft.o write_sltg.o parser.tab.o
parser.yy.o \
  ../../libs/port/libwine_port.a ../../libs/wpp/libwpp.a
-L/usr/local/lib -fstack-protector-strong -Wl,-rpath=/usr/local/lib/gcc9
-L/usr/local/lib/gcc9
gmake[3]: Leaving directory
'/usr/ports/emulators/wine-devel/work/wine-5.7/tools/widl'
gmake[2]: Leaving directory '/usr/ports/emulators/wine-devel/work/wine-5.7'
#v-

I even tried to copy runas.exe from some other wine binary build, but
I'm not sure it's the way to go - wine throws exception, which tells me
nothing :)

#v+
wine: Call from 0x7bc77671 to unimplemented function
ntdll.dll.__wine_create_default_token, aborting
wine: Unimplemented function ntdll.dll.__wine_create_default_token
called at address 7BC77671 (thread 0009), starting debugger...
#v-

At work I use Teams on a daily basis and it's more and more pain in the
a** having problems with audio/video calls. Switching to other OS is the
last thing I'd like to do...

BTW Some of my coworkers use Linux and they don't have much problems
with desktop app, although it's quite cpu/memory hog.

-- 
regards, Maciej Suszko.



signature.asc
Description: OpenPGP digital signature


Re: Microsoft Teams for Linux

2020-05-07 Thread Damjan Jovanovic
On Thu, May 7, 2020 at 11:58 PM Maciej Suszko  wrote:

> On 5/7/20 5:50 PM, Damjan Jovanovic wrote:
> >
> >
> > On Tue, May 5, 2020 at 2:52 PM Maciej Suszko  > > wrote:
> >
> > Hi,
> >
> > I'm wondering if anyone tried to use Microsoft Temas either web
> version
> > or desktop app... Web version does work but making audio/video call
> > isn't officialy suppported, so you need to spoof user-agent to make
> it
> > partially working - but from time to time MS change something and it
> > just stop working. In the past weeks I was able to make audio calls,
> now
> > it's not possible (neither Firefox nor Chrome)
> >
> > I tested my webcam and mic on https://www.onlinemictest.com/ and
> it's
> > all working, so problematic is the web application from MS.
> >
> > Desktop application - here are two options, one for Linux, one for
> > Windows. I tried to run the Linux version using linuxulator,
> > brandelf-ing all the binaries but with no success...
> >
> >
> > The Linux version is buggy. The microphone often doesn't work.
> >
> > Wine seems to be 1 bug away from running the Windows version:
> > https://bugs.winehq.org/show_bug.cgi?id=48775
> > Since I am forced to use Teams, I might take a look at it soon.
>
> I tried that too... and still trying to get it to work. Now I have a
> problem with current emulators/wine-devel - amd64 version does not work
> at all, emulators/i386-wine-devel does not support staging, which is
> required to build runas.exe.
> Building emulators/wine-devel from ports on i386 chroot (with staging
> enabled) throws some errors which I can't cope with:
>
> #v+
> gcc9 -o wine main.o -Wl,--rpath,\$ORIGIN/../libs/wine -Wl,--export-dynamic
> \
>   -Wl,-Ttext-segment=0x6000 -Wl,-z,max-page-size=0x1000 -lwine
> -lpthread \
>   ../libs/port/libwine_port.a -L/usr/local/lib -L../libs/wine
> -fstack-protector-strong -Wl,-rpath=/usr/local/lib/gcc9
> -L/usr/local/lib/gcc9
> /usr/local/bin/ld: main.o: in function `main':
> main.c:(.text.startup+0x1b0): undefined reference to `wine_get_patches'
> collect2: error: ld returned 1 exit status
> gmake[3]: *** [Makefile:260: wine] Error 1
> gmake[3]: *** Waiting for unfinished jobs
> /usr/local/bin/ld: main.o: in function `main':
> main.c:(.text.startup+0x1b0): undefined reference to `wine_get_patches'
> collect2: error: ld returned 1 exit status
> gmake[3]: *** [Makefile:264: wine-installed] Error 1
> gmake[3]: Leaving directory
> '/usr/ports/emulators/wine-devel/work/wine-5.7/loader'
> gmake[2]: *** [Makefile:8940: loader] Error 2
> gmake[2]: *** Waiting for unfinished jobs
> gcc9 -o widl client.o expr.o hash.o header.o proxy.o register.o server.o
> typegen.o typelib.o \
>   typetree.o utils.o widl.o write_msft.o write_sltg.o parser.tab.o
> parser.yy.o \
>   ../../libs/port/libwine_port.a ../../libs/wpp/libwpp.a
> -L/usr/local/lib -fstack-protector-strong -Wl,-rpath=/usr/local/lib/gcc9
> -L/usr/local/lib/gcc9
> gmake[3]: Leaving directory
> '/usr/ports/emulators/wine-devel/work/wine-5.7/tools/widl'
> gmake[2]: Leaving directory '/usr/ports/emulators/wine-devel/work/wine-5.7'
> #v-
>
> I even tried to copy runas.exe from some other wine binary build, but
> I'm not sure it's the way to go - wine throws exception, which tells me
> nothing :)
>
> #v+
> wine: Call from 0x7bc77671 to unimplemented function
> ntdll.dll.__wine_create_default_token, aborting
> wine: Unimplemented function ntdll.dll.__wine_create_default_token
> called at address 7BC77671 (thread 0009), starting debugger...
> #v-
>
> At work I use Teams on a daily basis and it's more and more pain in the
> a** having problems with audio/video calls. Switching to other OS is the
> last thing I'd like to do...
>
> BTW Some of my coworkers use Linux and they don't have much problems
> with desktop app, although it's quite cpu/memory hog.
>
> --
> regards, Maciej Suszko.
>
>
Thank you, that should help me get started.

I have 14 years and 295 patches worth of development experience with Wine,
so hopefully I'll get further.

Regards
Damjan
___
freebsd-emulation@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-emulation
To unsubscribe, send any mail to "freebsd-emulation-unsubscr...@freebsd.org"