jails Can the Linux emulation mechanism written for FreeBSD supports different layers than the Ubuntu one ?

my impression is that we have lost the focus. On a real Linux installation Firefox is able to reproduce DRM contents without problems,but not if it is installed with the Linuxulator. Something is broken there.
Yeah, and that's most likely Widevine. It's a proprietary black box. It's whole reason of existence is to ensure that contents encrypted with it are only viewable on certified platforms, which FreeBSD is not, as well for sure not a Linux binary compability layer under FreeBSD.

So this means that it is highly likely working as intended.
 
When I run Chrome on the Linuxulator I can see protected content,so,I assume that the linuxulator works ok. When I run Firefox on the Linuxulator I can't see protected content,so,I assume that Firefox does not work ok. When I run Firefox on a real Linux system I can see protected content,so I assume that Firefox is ok. Help me to identify what is not ok. Help me even to understand why I'm not ok,because I like to lose my time in this way.
 
When I run Chrome on the Linuxulator I can see protected content,so,I assume that the linuxulator works ok. When I run Firefox on the Linuxulator I can't see protected content,so,I assume that Firefox does not work ok. When I run Firefox on a real Linux system I can see protected content,so I assume that Firefox is ok. Help me to identify what is not ok. Help me even to understand why I'm not ok,because I like to lose my time in this way.

what unluck :p

Code:
marietto@marietto:/home/ziomario# wine Firefox Setup 97.0.1.exe                   

wine: failed to initialize: libm.so.6: failed to map segment from shared object
 
Yes. And that something is Widevine.

I tried to install Firefox with wine with the linuxulator,but nothing. Anyway,I suspect that the missing key is inside Chrome. If Widevine works with chrome is because chrome has something that firefox does not have. We should understand what is this and we can try to export it to Firefox.
 
I tried to install Firefox with wine with the linuxulator,but nothing. Anyway,I suspect that the missing key is inside Chrome. If Widevine works with chrome is because chrome has something that firefox does not have. We should understand what is this and we can try to export it to Firefox.

I want to try an experiment : I want to use the Chrome user agent when I run Firefox. Do you know what's the string ? I mean,this is the string that I use with Chrome when I want to synchronize the informations stored on the cloud "--user-agent="Mozilla/5.0 (X11; FreeBSD amd64; Linux x86_64)" ; what's the opposite string that I can use when I run Firefox to disguise it to Chrome ?
 
I'm not sure that what I want is there. I suppose that the user agent string I need start with "Chrome...",not with Mozilla.
 
Yes. Putin is blacking out all the USA websites in Italy.

I tried like this :

Code:
marietto@marietto:/usr/home/marietto $ /compat/linux/usr/bin/firefox --user-agent="Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36"

So,I went on :


and I saw that Firefox is identified like : "You’re using Firefox 75". I assume that it didnt work.
 
There are several ways to detect the type of browser without using the user agent string.
Maybe that site doesn't use it?

Code:
marietto@marietto:/usr/home/marietto $ /compat/linux/usr/bin/firefox --user-agent="Mozilla/5.0 (X11;
 Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36"


Gtk-Message: 15:01:10.620: Failed to load module "colorreload-gtk-module"
Gtk-Message: 15:01:10.885: Failed to load module "colorreload-gtk-module"
Gtk-Message: 15:01:11.054: Failed to load module "colorreload-gtk-module"
Gtk-Message: 15:01:11.189: Failed to load module "colorreload-gtk-module"
Gtk-Message: 15:02:55.655: Failed to load module "colorreload-gtk-module"

Screenshot_2022-03-04_15-22-24.jpg
 
Never give up. I've upgraded Firefox from 75 to 97 and I've used this user agent :

Code:
marietto@marietto:/usr/home/marietto $ /compat/linux/usr/bin/firefox --user-agent="Mozilla/5.0 (X11;
 Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36"


Gtk-Message: 18:54:06.972: Failed to load module "colorreload-gtk-module"
[GFX1-]: No GPUs detected via PCI
[GFX1-]: glxtest: process failed (received signal 11)

again,it is detected as Firefox 97 and not as Chrome.
 
Are you sure you can set a user agent string via command line?
suggests otherwise.

Btw: I don't know what you want to achieve, but if you want to trick Widevine into believing it runs on Chrome, forget it. This won't work.
 
ok. So I give up. There is nothing that I can do. I suspect that the worst of ideas is to run wine under the linuxulator. So,two emulation layers :D
 
I tried. I've installed the Windows version of Firefox with wine with the linuxulator. Yeah,call me crazy or stupid. Firefox starts even if I can't visit any site actually :

Screenshot_2022-03-04_19-59-52.jpg


Anyway,I'm satisfied.
 

Attachments

  • Screenshot_2022-03-04_20-01-17.jpg
    Screenshot_2022-03-04_20-01-17.jpg
    290 KB · Views: 356
I have to prove you wrong. You said that Widevine does not care about the user-agent. It does not seem to be true. The command below is able to reproduce the protected contents :

Code:
Exec=/compat/devuan/bin/chrome --user-agent="Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36"

Instead,the command below doesn't :

Code:
Exec=/compat/devuan/bin/chrome --user-agent="Mozilla/5.0 (X11; FreeBSD amd64; Linux x86_64)"

Probably it detects FreeBSD as OS and it refuses to work.
 
I want to try an experiment : I want to use the Chrome user agent when I run Firefox. Do you know what's the string ? I mean,this is the string that I use with Chrome when I want to synchronize the informations stored on the cloud "--user-agent="Mozilla/5.0 (X11; FreeBSD amd64; Linux x86_64)" ; what's the opposite string that I can use when I run Firefox to disguise it to Chrome ?
And what exactly do you think you're gaining here? Widevine is talking to your browser using the APIs defined by the browser for that. Chrome probably has a different API for that compared to Firefox, otherwise the internal workings of Widevine will be the same.

So by changing the user agent to Chrome you will surely gain nothing, because Widevine knows which API it is using to talk to the browser. Changing that will surely not change anything, or fool Widevine.
 
… On a real Linux installation Firefox is able to reproduce DRM contents without problems,but not if it is installed with the Linuxulator. …

If I recall correctly (from experiments, years ago): after successful installation of the Widevine plug-in on Linux, it should be possible to copy the relevant file(s).

Place the copies in your preferred Linuxulator.

Placement alone may be insufficient. Also, it may be necessary to set advanced preferences in Firefox (for the application to believe that installation was automated, not performed by hand; that type of thing).

(This is not to understand what's wrong, neither does it aim to fix whatever is wrong, but it's a possible workaround.)

I haven't the time to gather more details at the moment, sorry. Maybe later …



… Chrome user agent when I run Firefox …

I'm quite certain that doing so will not allow installation of Widevine for Firefox.

… chrome has something that firefox does not have.

The differences between Chromium-based browsers and Mozilla Firefox are immense.

We should understand what is this and we can try to export it to Firefox. …

A nice idea, however in a case such as this it is (with respect) not useful to follow that train of thought.
 
Back
Top